diff --git a/about/index.html b/about/index.html index 2bf1245..c7a31ac 100644 --- a/about/index.html +++ b/about/index.html @@ -21,7 +21,7 @@ - + @@ -285,7 +285,7 @@

分类

标签

- +
@@ -299,7 +299,7 @@

归档

七月 2023 -
6
+
8
@@ -314,23 +314,23 @@

最新文章

diff --git a/archives/2023/07/index.html b/archives/2023/07/index.html index f8d10f9..4888beb 100644 --- a/archives/2023/07/index.html +++ b/archives/2023/07/index.html @@ -283,7 +283,7 @@

分类

标签

- +
@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

@@ -361,6 +361,44 @@

Archive

+ +
07-18
+
+
+
+
+
+ + Nacos源码阅读与实战 + +
+
+
+ #Nacos #SpringCloud +
+
+ + + + +
07-18
+
+
+
+
+
+ + Nacos学习笔记 + +
+
+
+ #Nacos #SpringCloud +
+
+ + +
07-11
diff --git a/archives/2023/index.html b/archives/2023/index.html index ea84f7b..4fb6657 100644 --- a/archives/2023/index.html +++ b/archives/2023/index.html @@ -283,7 +283,7 @@

分类

@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

@@ -361,6 +361,44 @@

Archive

+ +
07-18
+
+
+
+
+
+ + Nacos源码阅读与实战 + +
+
+
+ #Nacos #SpringCloud +
+
+ + + + +
07-18
+
+
+
+
+
+ + Nacos学习笔记 + +
+
+
+ #Nacos #SpringCloud +
+
+ + +
07-11
diff --git a/archives/index.html b/archives/index.html index 3b41d3f..e7ce502 100644 --- a/archives/index.html +++ b/archives/index.html @@ -283,7 +283,7 @@

分类

@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

@@ -361,6 +361,44 @@

Archive

+ +
07-18
+
+
+
+
+
+ + Nacos源码阅读与实战 + +
+
+
+ #Nacos #SpringCloud +
+
+ + + + +
07-18
+
+
+
+
+
+ + Nacos学习笔记 + +
+
+
+ #Nacos #SpringCloud +
+
+ + +
07-11
diff --git "a/articles/Hexo/Hexo\346\220\255\345\273\272\344\270\252\344\272\272\347\275\221\347\253\231\357\274\210\344\270\200\357\274\211/index.html" "b/articles/Hexo/Hexo\346\220\255\345\273\272\344\270\252\344\272\272\347\275\221\347\253\231\357\274\210\344\270\200\357\274\211/index.html" index c3def14..bfc322d 100644 --- "a/articles/Hexo/Hexo\346\220\255\345\273\272\344\270\252\344\272\272\347\275\221\347\253\231\357\274\210\344\270\200\357\274\211/index.html" +++ "b/articles/Hexo/Hexo\346\220\255\345\273\272\344\270\252\344\272\272\347\275\221\347\253\231\357\274\210\344\270\200\357\274\211/index.html" @@ -288,7 +288,7 @@

分类

@@ -302,7 +302,7 @@

归档

七月 2023 -
6
+
8
@@ -317,23 +317,23 @@

最新文章

@@ -353,7 +353,7 @@

最新文章

- + diff --git "a/articles/Hexo/Hexo\346\220\255\345\273\272\344\270\252\344\272\272\347\275\221\347\253\231\357\274\210\344\272\214\357\274\211/index.html" "b/articles/Hexo/Hexo\346\220\255\345\273\272\344\270\252\344\272\272\347\275\221\347\253\231\357\274\210\344\272\214\357\274\211/index.html" index f7fc8a4..9e4ba87 100644 --- "a/articles/Hexo/Hexo\346\220\255\345\273\272\344\270\252\344\272\272\347\275\221\347\253\231\357\274\210\344\272\214\357\274\211/index.html" +++ "b/articles/Hexo/Hexo\346\220\255\345\273\272\344\270\252\344\272\272\347\275\221\347\253\231\357\274\210\344\272\214\357\274\211/index.html" @@ -288,7 +288,7 @@

分类

@@ -302,7 +302,7 @@

归档

七月 2023 -
6
+
8
@@ -317,23 +317,23 @@

最新文章

@@ -353,7 +353,7 @@

最新文章

- + diff --git "a/articles/Spring/WebFlux\345\255\246\344\271\240\347\254\224\350\256\260\357\274\210\344\270\200\357\274\211/index.html" "b/articles/Spring/WebFlux\345\255\246\344\271\240\347\254\224\350\256\260\357\274\210\344\270\200\357\274\211/index.html" index a25e7a7..11481cd 100644 --- "a/articles/Spring/WebFlux\345\255\246\344\271\240\347\254\224\350\256\260\357\274\210\344\270\200\357\274\211/index.html" +++ "b/articles/Spring/WebFlux\345\255\246\344\271\240\347\254\224\350\256\260\357\274\210\344\270\200\357\274\211/index.html" @@ -288,7 +288,7 @@

分类

@@ -302,7 +302,7 @@

归档

七月 2023 -
6
+
8
@@ -317,23 +317,23 @@

最新文章

@@ -353,7 +353,7 @@

最新文章

- + @@ -529,10 +529,15 @@

-

+ + Nacos学习笔记

diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/cover.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/cover.png" new file mode 100644 index 0000000..679697f Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/cover.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image1.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image1.png" new file mode 100644 index 0000000..aec6b6e Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image1.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image10.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image10.png" new file mode 100644 index 0000000..b84179b Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image10.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image11.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image11.png" new file mode 100644 index 0000000..564f78c Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image11.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image12.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image12.png" new file mode 100644 index 0000000..19971dc Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image12.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image13.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image13.png" new file mode 100644 index 0000000..d3530c0 Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image13.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image14.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image14.png" new file mode 100644 index 0000000..786eb3c Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image14.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image15.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image15.png" new file mode 100644 index 0000000..d360589 Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image15.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image16.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image16.png" new file mode 100644 index 0000000..9371f6a Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image16.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image17.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image17.png" new file mode 100644 index 0000000..1ed6fe6 Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image17.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image2.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image2.png" new file mode 100644 index 0000000..cee7a31 Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image2.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image3.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image3.png" new file mode 100644 index 0000000..3419ccd Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image3.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image4.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image4.png" new file mode 100644 index 0000000..cf2da65 Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image4.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image5.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image5.png" new file mode 100644 index 0000000..789bd1b Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image5.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image6.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image6.png" new file mode 100644 index 0000000..e85ee55 Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image6.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image7.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image7.png" new file mode 100644 index 0000000..99cc506 Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image7.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image8.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image8.png" new file mode 100644 index 0000000..0dd5b56 Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image8.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image9.png" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image9.png" new file mode 100644 index 0000000..d3ea9b0 Binary files /dev/null and "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/image9.png" differ diff --git "a/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/index.html" "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/index.html" new file mode 100644 index 0000000..1140f22 --- /dev/null +++ "b/articles/SpringCloud/Nacos\345\255\246\344\271\240\347\254\224\350\256\260/index.html" @@ -0,0 +1,578 @@ + + + + + + + + + + + + + + 归档 | 小小黑的技术屋 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Theme Preview

+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +

Hue:

+
+ + + + + + + + + +
+ + +
+ + +
+ + +
+
+ + + + + +
+
+ + +
+
+
+ +
+
+ + +

+ Nacos学习笔记 +

+ + +
+ +
+
+ +
+
+
+ + SpringCloud + +
+ +
+
+ 5.5k 词 +
+
+ + + +
+
+ +

本文主要内容是我看完Nacos架构&原理做的一些笔记,学习的版本是Nacos2.x。

+

Nacos服务发现模块

数据模型

Nacos 在经过内部多年生产经验后提炼出的数据模型,则是⼀种服务-集群-实例的三层模型。

+

image1.png

+

隔离模型

Nacos 提供了四层的数据逻辑隔离模型,用户账号对应的可能是⼀个企业或者独立的个体,这个数据⼀般情况下不会透传到服务注册中心。⼀个用户账号可以新建多个命名空间,每个命名空间对应⼀个客户端实例,这个命名空间对应的注册中心物理集群是可以根据规则进行路由的,这样可以让注册中心内部的升级和迁移对用户是无感知的,同时可以根据用户的级别,为用户提供不同服务级别的物理集群。再往下是服务分组和服务名组成的二维服务标识,可以满足接口级别的服务隔离。

+

而服务实例(以下简称实例)是某个服务的具体提供能力的节点,⼀个实例仅从属于⼀个服务,而⼀个服务可以包含⼀个或多个实例。

+

image2.png

+

image8.png

+

定义服务

通常推荐使用由运行环境作为命名空间、应用名作为分组和服务功能作为服务名的组合来确保该服务的天然唯⼀性,当然使用者可以忽略命名空间和分组,仅使用服务名作为服务唯⼀标示,这就需要使用者在定义服务名时额外增加自己的规则来确保在使用中能够唯⼀定位到该服务而不会发现到错误的服务上。

+

服务元数据

服务的定义只是为服务设置了⼀些基本的信息,用于描述服务以及方便快速的找到服务,而服务的元数据是进⼀步定义了 Nacos 中服务的细节属性和描述信息。主要包含:

+
    +
  • 健康保护阈值(ProtectThreshold):为了防止因过多实例故障,导致所有流量全部流入剩余实例,继而造成流量压力将剩余实例被压垮形成的雪崩效应。应将健康保护阈值定义为⼀个0到1之间的浮点数。当域名健康实例数占总服务实例数的比例小于该值时,无论实例是否健康,都会将这个实例返回给客户端。这样做虽然损失了⼀部分流量,但是保证了集群中剩余健康实例能正常工作。
  • +
  • 实例选择器(Selector):用于在获取服务下的实例列表时,过滤和筛选实例。该选择器也被称为路由器,目前 Nacos 支持通过将实例的部分信息存储在外部元数据管理CMDB 中,并在发现服务时使用 CMDB 中存储的元数据标签来进行筛选的能力。
  • +
  • 拓展数据(extendData):用于用户在注册实例时自定义扩展的元数据内容,形式为K-V 。可以在服务中拓展服务的元数据信息,方便用户实现自己的自定义逻辑。
  • +
+

image9.png

+

定义实例

由于服务实例是具体提供服务的节点,因此 Nacos 在设计实例的定义时,主要需要存储该实例的⼀些网络相关的基础信息,主要包含以下内容:

+
    +
  • 网络 IP 地址:该实例的 IP 地址,在 Nacos2.0 版本后支持设置为域名。 网络端口:该实例的端口信息。
  • +
  • 健康状态(Healthy):用于表示该实例是否为健康状态,会在 Nacos 中通过健康检查的手段进行维护,具体内容将在 Nacos 健康检查机制章节中详细说明,读者目前只需要该内容的含义即可。
  • +
  • 集群(Cluster):用于标示该实例归属于哪个逻辑集群,有关于集群的相关内容,将在后文详细说明。
  • +
  • 拓展数据(extendData):用于用户自定义扩展的元数据内容,形式为K-V。可以在实例中拓展该实例的元数据信息,方便用户实现自己的自定义逻辑和标示该实例。
  • +
+

实例元数据

和服务元数据不同,实例的元数据主要作用于实例运维相关的数据信息。主要包含:

+
    +
  • 权重(Weight):实例级别的配置。权重为浮点数,范围为 0-10000。权重越大,分配给该实例的流量越大。
  • +
  • 上线状态(Enabled):标记该实例是否接受流量,优先级大于权重和健康状态。用于运维人员在不变动实例本身的情况下,快速地手动将某个实例从服务中移除。
  • +
  • 拓展数据(extendData):不同于实例定义中的拓展数据,这个拓展数据是给予运维人员在不变动实例本身的情况下,快速地修改和新增实例的扩展数据,从而达到运维实例的作用。
  • +
+

在 Nacos2.0 版本中,实例数据被拆分为实例定义和实例元数据,主要是因为这两类数据其实是同⼀个实例的两种不同场景:开发运行场景及运维场景。对于上下线及权重这种属性,⼀般认为在实例已经在运行时,需要运维人员手动修改和维护的数据,而 IP,端口和集群等信息,⼀般情况下在
Nacos 架构< 84实例启动并注册后,则不会在进行变更。将这两部分数据合并后,就能够得到实例的完整信息,也是 Nacos1.0 版本中的实例数据结构。

+

image10.png

+

临时实例和持久化实例

Nacos 1.0.0 介绍的另外⼀个新特性是:临时实例和持久化实例。在定义上区分临时实例和持久化实例的关键是健康检查的方式。临时实例使用客户端上报模式,而持久化实例使用服务端反向探测模式。临时实例需要能够自动摘除不健康实例,而且无需持久化存储实例,那么这种实例就适用于类 Gossip 的协议。右边的持久化实例使用服务端探测的健康检查方式,因为客户端不会上报心跳,那么自然就不能去自动摘除下线的实例。

+

image3.png

+

在大中型的公司里,这两种类型的服务往往都有。⼀些基础的组件例如数据库、缓存等,这些往往不能上报心跳,这种类型的服务在注册时,就需要作为持久化实例注册。而上层的业务服务,例如微服务或者 Dubbo 服务,服务的 Provider 端支持添加汇报心跳的逻辑,此时就可以使用动态服务的注册方式。

+

Nacos 2.0 中继续沿用了持久化及非持久化的设定,但是有了⼀些调整。Nacos 1.0 中持久化及非持久化的属性是作为实例的⼀个元数据进行存储和识别。这导致同⼀个服务下可以同时存在持久化实例和非持久化实例。但是在实际使用中,我们发现这种模式会给运维人员带来极大的困惑和运维复杂度;与此同时,从系统架构来看,⼀个服务同时存在持久化及非持久化实例的场景也是存在⼀定矛盾的。这就导致该能力事实上并未被广泛使用。为了简化 Nacos 的服务数据模型,降低运维人员的复杂度,提升 Nacos 的易用性,在 Nacos2.0 中我们将是否持久化的数据抽象至服务级别,且不再允许⼀个服务同时存在持久化实例和非持久化实例,实例的持久化属性继承自服务的持久化属性。

+

在 Nacos2.0 版本后,持久化属性的定义被抽象到服务中,⼀个服务只能被定义成持久化服务或非持久化服务,⼀旦定义完成,在服务生命周期结束之前,无法更改其持久化属性。持久化属性将会影响服务及实例的数据是否会被 Nacos 进行持久化存储,设置为持久化之后,实例将不会再被自动移除,需要使用者手动移除实例。

+

考虑到目前大多数使用动态服务发现的场景为非持久化服务的类型(如 Spring Cloud,Dubbo,Service Mesh 等),Nacos 将缺醒值设置为了非持久化服务。

+

集群(cluster)

集群是 Nacos 中⼀组服务实例的⼀个逻辑抽象的概念,它介于服务和实例之间,是⼀部分服务属性的下沉和实例属性的抽象。

+

在 Nacos 中,集群中主要保存了有关健康检查的⼀些信息和数据:健康检查类型、健康检查端口、是否使用实例端口进行健康检查、拓展数据。

+

image11.png

+

数据一致性

Nacos 因为要支持多种服务类型的注册,并能够具有机房容灾、集群扩展等必不可少的能力,在1.0.0 正式支持 AP 和 CP 两种⼀致性协议并存。1.0.0 重构了数据的读写和同步逻辑,将与业务相关的 CRUD 与底层的⼀致性同步逻辑进行了分层隔离。然后将业务的读写(主要是写,因为读会直接使用业务层的缓存)抽象为 Nacos 定义的数据类型,调用⼀致性服务进行数据同步。在决定使用 CP 还是 AP ⼀致性时,使用⼀个代理,通过可控制的规则进行转发。

+

目前的⼀致性协议实现,⼀个是基于简化的 Raft 的 CP ⼀致性,⼀个是基于自研协议Distro的AP ⼀致性。Raft 协议不必多言,基于 Leader 进行写入,其 CP 也并不是严格的,只是能保证⼀半所见⼀致,以及数据的丢失概率较小。Distro 协议则是参考了内部 ConfigServer 和开源Eureka,在不借助第三方存储的情况下,实现基本大同小异。Distro 重点是做了⼀些逻辑的优化和性能的调优。

+

image4.png

+

负载均衡

负载均衡严格的来说,并不算是传统注册中心的功能。⼀般来说服务发现的完整流程应该是先从注册中心获取到服务的实例列表,然后再根据自身的需求,来选择其中的部分实例或者按照⼀定的流量分配机制来访问不同的服务提供者,因此注册中心本身⼀般不限定服务消费者的访问策略。Eureka、Zookeeper 包括 Consul,本身都没有去实现可配置及可扩展的负载均衡机制,Eureka的负载均衡是由 ribbon 来完成的,而 Consul 则是由 Fabio 做负载均衡。

+

image5.png

+

在阿里巴巴集团内部,却是使用的相反的思路。服务消费者往往并不关心所访问的服务提供者的负载均衡,它们只关心以最高效和正确的访问服务提供者的服务。而服务提供者,则非常关注自身被访问的流量的调配,这其中的第⼀个原因是,阿里巴巴集团内部服务访问流量巨大,稍有不慎就会导致流量异常压垮服务提供者的服务。因此服务提供者需要能够完全掌控服务的流量调配,并可以动态调整。

+

服务端的负载均衡,给服务提供者更强的流量控制权,但是无法满足不同的消费者希望使用不同负载均衡策略的需求。而不同负载均衡策略的场景,确实是存在的。而客户端的负载均衡则提供了这种灵活性,并对用户扩展提供更加友好的支持。但是客户端负载均衡策略如果配置不当,可能会导致服务提供者出现热点,或者压根就拿不到任何服务提供者。

+

image6.png

+

抛开负载均衡到底是在服务提供者实现还是在服务消费者实现,我们看到目前的负载均衡有基于权重、服务提供者负载、响应时间、标签等策略。

+

在 Nacos 0.7.0 版本中,我们除了提供基于健康检查和权重的负载均衡方式外,还新提供了基于第三方 CMDB 的标签负载均衡器,具体可以参考 CMDB 功能介绍文章。使用基于标签的负载均衡器,目前可以实现同标签优先访问的流量调度策略,实际的应用场景中,可以用来实现服务的就近访问,当您的服务部署在多个地域时,这非常有用。

+

健康检查

Nacos 目前支持临时实例使用心跳上报方式维持活性,发送心跳的周期默认是 5 秒,Nacos 服务端会在15 秒没收到心跳后将实例设置为不健康,在 30 秒没收到心跳时将这个临时实例摘除。

+

Nacos 提供了两种服务类型供用户注册实例时选择,分为临时实例和永久实例。

+

临时实例只是临时存在于注册中心中,会在服务下线或不可用时被注册中心剔除,临时实例会与注册中心保持心跳,注册中心会在⼀段时间没有收到来自客户端的心跳后会将实例设置为不健康,然后在⼀段时间后进行剔除。

+

临时实例只是临时存在于注册中心中,会在服务下线或不可用时被注册中心剔除,临时实例会与注册中心保持心跳,注册中心会在⼀段时间没有收到来自客户端的心跳后会将实例设置为不健康,然后在⼀段时间后进行剔除。

+

永久实例在被删除之前会永久的存在于注册中心,且有可能并不知道注册中心存在,不会主动向注册中心上报心跳,那么这个时候就需要注册中心主动进行探活。

+

从上面的介绍我们可以看出,Nacos 中两种健康探测方式均有被使用,Nacos 中监看检查的整体交互如下如所示。下面我们会详细介绍 Nacos 中对于两种实例的健康检查机制。

+

image7.png

+

临时实例健康检查机制

在 Nacos 中,用户可以通过两种方式进行临时实例的注册,通过 Nacos 的OpenAPI 进行服务注册或通过 Nacos 提供的 SDK 进行服务注册。

+

OpenAPI 的注册方式实际是用户根据自身需求调用 Http 接口对服务进行注册,然后通过Http接口发送心跳到注册中心。在注册服务的同时会注册⼀个全局的客户端心跳检测的任务。在服务⼀段时间没有收到来自客户端的心跳后,该任务会将其标记为不健康,如果在间隔的时间内还未收到心跳,那么该任务会将其剔除。

+

SDK 的注册方式实际是通过 RPC 与注册中心保持连接(Nacos 2.x 版本中,旧版的还是仍然通过OpenAPI 的方式),客户端会定时的通过 RPC 连接向 Nacos 注册中心发送心跳,保持连接的存活。如果客户端和注册中心的连接断开,那么注册中心会主动剔除该 client 所注册的服务,达到下线的效果。同时 Nacos 注册中心还会在注册中心启动时,注册⼀个过期客户端清除的定时任务,用于删除那些健康状态超过⼀段时间的客户端。

+

从上面的特点我们可以发现,对于不同类型的使用方式,Nacos 对于健康检查的特点实际都是相同的,都是由客户端向注册中心发送心跳,注册中心会在连接断开或是心跳过期后将不健康的实例移除。

+

image12.png

+

永久实例健康检查机制

Nacos 中使用 SDK 对于永久实例的注册实际也是使用 OpenAPI 的方式进行注册,这样可以保证即使是客户端下线后也不会影响永久实例的健康检查。

+

对于永久实例的的健康检查,Nacos 采用的是注册中心探测机制,注册中心会在永久服务初始化时根据客户端选择的协议类型注册探活的定时任务。Nacos 现在内置提供了三种探测的协议,即Http、TCP 以及 MySQL 。⼀般而言 Http 和 TCP 已经可以涵盖绝大多数的健康检查场景。MySQL 主要用于特殊的业务场景,例如数据库的主备需要通过服务名对外提供访问,需要确定当前访问数据库是否为主库时,那么我们此时的健康检查接口,是⼀个检查数据库是否为主库的MySQL命令。

+

image13.png

+

由于持久化服务的实例的在被主动删除前⼀直存在的特性,探活的定时任务会不断探测服务的健康状态,并且将无法探测成功的实例标记为不健康。但是有些时候会有这样的场景,有些服务不希望去校验其健康状态,Nacos 也是提供了对应的白名单配置,用户可以将服务配置到该白名单,那么Nacos 会放弃对其进行健康检查,实例的健康状态也始终为用户传入的健康状态。

+

集群模式下的健康检查机制

image14.png

+

在 Nacos 中,服务的注册我们从注册方式维度实际可以分为两大类。第⼀类通过SDK RPC连接进行注册,客户端会和注册中心保持链接。第二类,通过 OpenAPI 进行 IP 和端口注册。

+

对于第⼀类,如何寻找到对其负责的注册中心节点呢?聪明的你肯定想到了,只需要和注册中心集群中的任意⼀台节点建立联系,那么由这个节点负责这个客户端就可以了。注册中心会在启动时注册⼀个全局的同步任务,用于将其当前负责的所有节点信息同步到集群中的其他节点,其他非负责的节点也会创建该客户端的信息,在非负责的节点上,连接类型的客户端,会有⼀个续约时间的概念,在收到其他节点的同步信息时,更新续约时间为当前时间,如果在集群中的其他节点在⼀段时间内没有收到不是自己的负责的节点的同步信息,那么认为此节点已经不健康,从而达到对不是自己负责的节点健康状态检查。

+

image15.png

+

对于第二类,方式其实也基本和第⼀类⼀致,OpenAPI 注册的临时实例也是通过同步自身负责的节点到其他节点来更新其他节点的对应的临时实例的心跳时间,保证其他节点不会删除或者修改此实例的健康状态。前面我们特别指明了是临时实例而没有说所有实例,你应该也可能会想到这种方式对于持久化节点会显得多余,永久实例会在被主动删除前⼀直存在于注册中心,那么我们健康检查并不会去删除实例,所以我们只需要在负责的节点永久实例健康状态变更的时候通知到其余的节点即可。

+

image16.png

+

Nacos配置管理模块

配置一致性模型

Nacos 配置管理⼀致性协议分为两个大部分,第⼀部分是 Server 间⼀致性协议,⼀个是SDK与Server 的⼀致性协议,配置作为分布式系统中非强⼀致数据,在出现脑裂的时候可用性高于⼀致性,因此阿里配置中心是采用 AP ⼀致性协议。

+

Server 间的⼀致性协议

有 DB 模式(读写分离架构)

⼀致性的核心是 Server 与 DB 保持数据⼀致性,从而保证 Server 数据⼀致;Server 之间都是对等的。数据写任何⼀个 Server,优先持久化,持久化成功后异步通知其他节点到数据库中拉取最新配置值,并且通知写入成功。

+

image17.png

+

无 DB 模式

Server 间采用 Raft 协议保证数据⼀致性,行业大部分产品采用此模式,因此不展开介绍。Nacos提供此模式,是方便用户本机运行,降低对存储依赖。

+

SDK 与 Server 的⼀致性协议

SDK 与 Server ⼀致性协议的核心是通过 MD5 值是否⼀致,如果不⼀致就拉取最新值。

+

Nacos 1.X

Nacos 1.X 采用 Http 1.1 短链接模拟长链接,每 30s 发⼀个心跳跟 Server 对比SDK配置MD5 值是否跟 Server 保持⼀致,如果⼀致就 hold 住链接,如果有不⼀致配置,就把不⼀致的配置返回,然后 SDK 获取最新配置值。

+

Nacos 2.X

Nacos 2.x 相比上面 30s ⼀次的长轮训,升级成长链接模式,配置变更,启动建立长链接,配置变更服务端推送变更配置列表,然后 SDK 拉取配置更新,因此通信效率大幅提升。

+ + +
+ + +
+ + +
+ + + + + + +
+ + + +
+
+
+
留言
+
+
+
+ + +
+ +
+ +
+ + + +
+ + + diff --git "a/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/cover.png" "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/cover.png" new file mode 100644 index 0000000..c0c3c4a Binary files /dev/null and "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/cover.png" differ diff --git "a/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image1.png" "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image1.png" new file mode 100644 index 0000000..edc784a Binary files /dev/null and "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image1.png" differ diff --git "a/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image2.png" "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image2.png" new file mode 100644 index 0000000..9a3e9b0 Binary files /dev/null and "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image2.png" differ diff --git "a/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image3.png" "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image3.png" new file mode 100644 index 0000000..eeeb785 Binary files /dev/null and "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image3.png" differ diff --git "a/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image4.png" "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image4.png" new file mode 100644 index 0000000..1c6a527 Binary files /dev/null and "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image4.png" differ diff --git "a/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image5.png" "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image5.png" new file mode 100644 index 0000000..524a389 Binary files /dev/null and "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image5.png" differ diff --git "a/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image6.png" "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image6.png" new file mode 100644 index 0000000..2a8a27c Binary files /dev/null and "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image6.png" differ diff --git "a/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image7.png" "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image7.png" new file mode 100644 index 0000000..eaea868 Binary files /dev/null and "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/image7.png" differ diff --git "a/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/index.html" "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/index.html" new file mode 100644 index 0000000..a5b0a8a --- /dev/null +++ "b/articles/SpringCloud/Nacos\346\272\220\347\240\201\351\230\205\350\257\273\344\270\216\345\256\236\346\210\230/index.html" @@ -0,0 +1,528 @@ + + + + + + + + + + + + + + 归档 | 小小黑的技术屋 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Theme Preview

+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +

Hue:

+
+ + + + + + + + + +
+ + +
+ + +
+ + +
+
+ + + + + +
+
+ + +
+
+
+ +
+
+ + +

+ Nacos源码阅读与实战 +

+ + +
+ +
+
+ +
+
+
+ + SpringCloud + +
+ +
+
+ 610 词 +
+
+ + + +
+
+ +

本文主要内容是对于部分源码的理解还有在使用Nacos时遇到的一些问题汇总。

+

对于阅读源码,我的思路是先找到一些注册成功的日志,然后打断点,看整个调用链路。

+

客户端注册源码解读

在NacosServiceRegistry类的注册完成日志的代码打个断点,我们可以看到项目启动后的整个调用链路。

+

image1.png

+

从头开始看,首先还是进到熟悉的refresh方法,在finishRefresh中做处理。

+

image2.png

+

实际上创建完实例后,使用了spring的发布事件机制,会发布一个注册事件。

+

image3.png

+

发布完事件后,实际上是给springcloud包(非alibaba)的AbstractAutoServiceRegistration类监听到了这个事件,然后NacosServiceRegistry又实现了ServiceRegistry,所以由Nacos接收到这个事件并注册。

+

image4.png

+

这里可以看到,真正注册的逻辑在下面这个方法中。

+
com.alibaba.nacos.client.naming.NacosNamingService#registerInstance(java.lang.String, java.lang.String, com.alibaba.nacos.api.naming.pojo.Instance)
+ +

打断点进去会看到正真处理的类是NamingClientProxyDelegate,里面会先调用getExecuteClientProxy方法去选择执行注册的代理,这里比较有意思:

+

image5.png

+
private NamingClientProxy getExecuteClientProxy(Instance instance) {
+    return instance.isEphemeral() ? grpcClientProxy : httpClientProxy;
+}
+ +
+

这里会判断如果是临时实例,用的是GRPC;持久化实例用的是httpClient。我觉得这里原因是因为临时实例的数据同步和健康检查是由客户端发送心跳的,这里使用长连接可以节省频繁发送心跳建立链接消耗性能的问题,并且客户端连接用的是nacos提供的包所以肯定支持GRPC协议。
但是持久化实例不一样,他主要是使用服务端探测的健康检查方式,因为客户端不会上报心跳,所以他并不知道客户端是否支持GRPC(例如mysql就不支持),所以他只能用httpClient的方式。

+
+

因为我调试时用的是临时实例,所以进到了NamingGrpcClientProxy中:

+

image6.png

+

NamingGrpcClientProxy最终封装一个Request去注册服务实例

+

image7.png

+

Nacos部署遇到的一些问题

数据库链接不上的问题(No Database Set)

可以试试在配置文件中把下面的配置注释掉

+
# spring.datasource.platform=mysql
+

然后数据库连接配置改成这样,主要加了allowPublicKeyRetrieval和换一下时区:

+
jdbc:mysql://127.0.0.1:3306/nacos_config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
+ + + + + +
+ + +
+ + +
+ + + + + + +
+ + + +
+
+
+
留言
+
+
+
+ + +
+ +
+ +
+ + + +
+ + + diff --git "a/articles/\345\260\217\347\237\245\350\257\206/\345\210\206\345\270\203\345\274\217\344\270\200\350\207\264\346\200\247\347\256\227\346\263\225/index.html" "b/articles/\345\260\217\347\237\245\350\257\206/\345\210\206\345\270\203\345\274\217\344\270\200\350\207\264\346\200\247\347\256\227\346\263\225/index.html" index 8afa85d..79c9632 100644 --- "a/articles/\345\260\217\347\237\245\350\257\206/\345\210\206\345\270\203\345\274\217\344\270\200\350\207\264\346\200\247\347\256\227\346\263\225/index.html" +++ "b/articles/\345\260\217\347\237\245\350\257\206/\345\210\206\345\270\203\345\274\217\344\270\200\350\207\264\346\200\247\347\256\227\346\263\225/index.html" @@ -288,7 +288,7 @@

分类

@@ -302,7 +302,7 @@

归档

七月 2023 -
6
+
8
@@ -317,23 +317,23 @@

最新文章

@@ -353,7 +353,7 @@

最新文章

- + diff --git "a/articles/\345\260\217\347\237\245\350\257\206/\350\275\273\351\207\217\347\272\247\350\231\232\346\213\237\346\234\272Multipass/index.html" "b/articles/\345\260\217\347\237\245\350\257\206/\350\275\273\351\207\217\347\272\247\350\231\232\346\213\237\346\234\272Multipass/index.html" index 4ada330..16b9f7c 100644 --- "a/articles/\345\260\217\347\237\245\350\257\206/\350\275\273\351\207\217\347\272\247\350\231\232\346\213\237\346\234\272Multipass/index.html" +++ "b/articles/\345\260\217\347\237\245\350\257\206/\350\275\273\351\207\217\347\272\247\350\231\232\346\213\237\346\234\272Multipass/index.html" @@ -288,7 +288,7 @@

分类

@@ -302,7 +302,7 @@

归档

七月 2023 -
6
+
8
@@ -317,23 +317,23 @@

最新文章

@@ -353,7 +353,7 @@

最新文章

- + diff --git "a/articles/\345\260\217\347\237\245\350\257\206/\351\233\252\350\212\261\347\256\227\346\263\225\345\255\230\345\234\250\347\232\204\351\227\256\351\242\230\345\222\214\350\247\243\345\206\263\346\226\271\346\241\210/index.html" "b/articles/\345\260\217\347\237\245\350\257\206/\351\233\252\350\212\261\347\256\227\346\263\225\345\255\230\345\234\250\347\232\204\351\227\256\351\242\230\345\222\214\350\247\243\345\206\263\346\226\271\346\241\210/index.html" index 94e916e..8dde2d1 100644 --- "a/articles/\345\260\217\347\237\245\350\257\206/\351\233\252\350\212\261\347\256\227\346\263\225\345\255\230\345\234\250\347\232\204\351\227\256\351\242\230\345\222\214\350\247\243\345\206\263\346\226\271\346\241\210/index.html" +++ "b/articles/\345\260\217\347\237\245\350\257\206/\351\233\252\350\212\261\347\256\227\346\263\225\345\255\230\345\234\250\347\232\204\351\227\256\351\242\230\345\222\214\350\247\243\345\206\263\346\226\271\346\241\210/index.html" @@ -288,7 +288,7 @@

分类

@@ -302,7 +302,7 @@

归档

七月 2023 -
6
+
8
@@ -317,23 +317,23 @@

最新文章

@@ -353,7 +353,7 @@

最新文章

- + diff --git a/categories/Hexo/index.html b/categories/Hexo/index.html index 8163eec..7bd17f5 100644 --- a/categories/Hexo/index.html +++ b/categories/Hexo/index.html @@ -283,7 +283,7 @@

分类

@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

diff --git a/categories/Spring/index.html b/categories/Spring/index.html index 53f3202..443a8bf 100644 --- a/categories/Spring/index.html +++ b/categories/Spring/index.html @@ -283,7 +283,7 @@

分类

@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

diff --git a/categories/SpringCloud/index.html b/categories/SpringCloud/index.html new file mode 100644 index 0000000..94e3e93 --- /dev/null +++ b/categories/SpringCloud/index.html @@ -0,0 +1,439 @@ + + + + + + + + + + + + + + 目录: SpringCloud | 小小黑的技术屋 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Theme Preview

+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +

Hue:

+
+ + + + + + + + + +
+ + + + +
+ +
+ + + +
+ + + diff --git a/categories/index.html b/categories/index.html index f25531d..d760691 100644 --- a/categories/index.html +++ b/categories/index.html @@ -21,7 +21,7 @@ - + @@ -285,7 +285,7 @@

分类

@@ -299,7 +299,7 @@

归档

七月 2023 -
6
+
8
@@ -314,23 +314,23 @@

最新文章

diff --git "a/categories/\345\260\217\347\237\245\350\257\206/index.html" "b/categories/\345\260\217\347\237\245\350\257\206/index.html" index 853eac7..9525a93 100644 --- "a/categories/\345\260\217\347\237\245\350\257\206/index.html" +++ "b/categories/\345\260\217\347\237\245\350\257\206/index.html" @@ -283,7 +283,7 @@

分类

@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

diff --git a/index.html b/index.html index 70b8712..c7892e3 100644 --- a/index.html +++ b/index.html @@ -283,7 +283,7 @@

分类

@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

@@ -343,6 +343,138 @@

最新文章

+ + + + + + + + + + + +
diff --git a/link/index.html b/link/index.html index b42d8ca..4c7b727 100644 --- a/link/index.html +++ b/link/index.html @@ -21,7 +21,7 @@ - + @@ -285,7 +285,7 @@

分类

@@ -299,7 +299,7 @@

归档

七月 2023 -
6
+
8
@@ -314,23 +314,23 @@

最新文章

diff --git a/log/index.html b/log/index.html index a6218b0..aafe6e7 100644 --- a/log/index.html +++ b/log/index.html @@ -21,7 +21,7 @@ - + @@ -285,7 +285,7 @@

分类

@@ -299,7 +299,7 @@

归档

七月 2023 -
6
+
8
@@ -314,23 +314,23 @@

最新文章

diff --git a/log/xxiaohei-log.html b/log/xxiaohei-log.html index c2836a7..ed0f8ca 100644 --- a/log/xxiaohei-log.html +++ b/log/xxiaohei-log.html @@ -21,7 +21,7 @@ - + @@ -285,7 +285,7 @@

分类

@@ -299,7 +299,7 @@

归档

七月 2023 -
6
+
8
@@ -314,23 +314,23 @@

最新文章

diff --git a/tags/Hexo/index.html b/tags/Hexo/index.html index ec755ee..e180584 100644 --- a/tags/Hexo/index.html +++ b/tags/Hexo/index.html @@ -283,7 +283,7 @@

分类

标签

- +
@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

diff --git a/tags/Linux/index.html b/tags/Linux/index.html index a8ce6a9..15be31e 100644 --- a/tags/Linux/index.html +++ b/tags/Linux/index.html @@ -283,7 +283,7 @@

分类

标签

- +
@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

diff --git a/tags/Nacos/index.html b/tags/Nacos/index.html new file mode 100644 index 0000000..e6388ad --- /dev/null +++ b/tags/Nacos/index.html @@ -0,0 +1,439 @@ + + + + + + + + + + + + + + 标签: Nacos | 小小黑的技术屋 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Theme Preview

+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +

Hue:

+
+ + + + + + + + + +
+ + +
+ + + +
+ +
+ +
+ + + +
+ + + diff --git a/tags/Spring/index.html b/tags/Spring/index.html index b9a6d5f..b8e5eae 100644 --- a/tags/Spring/index.html +++ b/tags/Spring/index.html @@ -283,7 +283,7 @@

分类

标签

- +
@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

diff --git a/tags/SpringCloud/index.html b/tags/SpringCloud/index.html new file mode 100644 index 0000000..dab45bf --- /dev/null +++ b/tags/SpringCloud/index.html @@ -0,0 +1,439 @@ + + + + + + + + + + + + + + 标签: SpringCloud | 小小黑的技术屋 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Theme Preview

+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +

Hue:

+
+ + + + + + + + + +
+ + +
+ + + +
+ +
+ +
+ + + +
+ + + diff --git a/tags/index.html b/tags/index.html index 2ee575b..81c3d7d 100644 --- a/tags/index.html +++ b/tags/index.html @@ -21,7 +21,7 @@ - + @@ -285,7 +285,7 @@

分类

标签

- +
@@ -299,7 +299,7 @@

归档

七月 2023 -
6
+
8
@@ -314,23 +314,23 @@

最新文章

diff --git "a/tags/\345\210\206\345\270\203\345\274\217/index.html" "b/tags/\345\210\206\345\270\203\345\274\217/index.html" index 29ec672..59b8069 100644 --- "a/tags/\345\210\206\345\270\203\345\274\217/index.html" +++ "b/tags/\345\210\206\345\270\203\345\274\217/index.html" @@ -283,7 +283,7 @@

分类

标签

- +
@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

diff --git "a/tags/\351\233\252\350\212\261\347\256\227\346\263\225/index.html" "b/tags/\351\233\252\350\212\261\347\256\227\346\263\225/index.html" index a1f0151..1b37db6 100644 --- "a/tags/\351\233\252\350\212\261\347\256\227\346\263\225/index.html" +++ "b/tags/\351\233\252\350\212\261\347\256\227\346\263\225/index.html" @@ -283,7 +283,7 @@

分类

标签

- +
@@ -297,7 +297,7 @@

归档

七月 2023 -
6
+
8
@@ -312,23 +312,23 @@

最新文章

diff --git a/tools/index.html b/tools/index.html index 7f94c19..647ff22 100644 --- a/tools/index.html +++ b/tools/index.html @@ -21,7 +21,7 @@ - + @@ -285,7 +285,7 @@

分类

标签

- +
@@ -299,7 +299,7 @@

归档

七月 2023 -
6
+
8
@@ -314,23 +314,23 @@

最新文章