logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

spring-cloud-eureka (一) 原理分析

spring-cloud-eureka是spring-cloud-nettfix微服务套件中的一部分, 它基于nettfix-eureka做了二次封装,主要负责微服务架构中的服务治理功能。如果了解dubbo的朋友应该知道,dubbo就是一个服务治理的框架,dubbo是基于zookeeper实现服务治理功能的。至于dubbo和nettfix-eureka的区别这里不多说,网上有不少这类文章。

#eureka
基于Spring cloud ribbon实现多版本控制

在我们使用spring mvc单体架构时, 我们可以通过uri,或者请求头做多版本路由,虽然同一个功能需要维护多个版本的接口,但是对于系统而言,不会因为新增一个接口版本而影响到老用户。当我们使用spring cloud构建微服务平台时,也希望能做到这一点,然而spring cloud并没有提供这个功能。在spring cloud的微服务体系中,大多是使用eureka做为注册中心,ribbon做

查看docker容器的内存占用

使用docker stats命令可以查看容器的内存,但是有时候docker stats命令获得的数据可能准确,可以参考下面这种方式先通过docker ps -a 找到容器的container id再使用ps -ef 找到容器对应的进程获得容器对应的pid后,就可以使用top、pmap、ps等查看进程内存的命令查看容器的内存占用情况了toptop -p 5140内容解释PID...

#docker
安装node,npm,cnpm [linux]

找到node最新的版本列表地址:https://npm.taobao.org/mirrors/node目前最新的版本是是v8.1.3,下载地址:https://npm.taobao.org/mirrors/node/v8.1.3/node-v8.1.3-linux-x64.tar.gz下载并安装node新建目录(这一步可以略过)root# mkdir /srv/noderoo

#npm
linux上部署spring-boot项目

sh脚本运行下面几个脚本仅供参考,请根据自己需要做调整start.sh#!/bin/shrm -f tpidAPP_NAME=fm-eureka-client-1.0-SNAPSHOTAPP_JAR=$APP_NAME".jar"##nohup命令提交作业,那么在缺省情况下该作业的所有输出都被重定向到一个名为nohup.out的文件中,除非另外指定了输出文件。这里指定输出文件在为./fm-eu

#linux
mTLS: openssl创建CA证书

证书可以通过openssl或者keytool创建,在本篇文章中,只介绍openssl。

failed to launch process in the docker container on mac m2, and return message “could not launch pro

try to remote debug istio pilot as referring to the document of istio wiki (link: https://github.com/istio/istio/wiki/Remote-Debugging), and following the steps in this document, present two differenc

#istio
go mod出现zip: not a valid zip file的解决办法

问题原因:go mod代理服务器下载出错;导致在下载时出现": zip: not a valid zip file"优先使用aliyun的代理服务,调整直接使用https://goproxy.cn。重新执行kubebuilder init 正常完成。

#golang
到底了