当前位置:网站首页>[microservices | Nacos] list of issues related to the Nacos version

[microservices | Nacos] list of issues related to the Nacos version

2022-06-23 05:20:00 Bulst

Nacos:1.4.2 vs 2.0.3 vs 2.1.0

here , The officially recommended version is 2.0.3.
 This is the time ()

Because when setting up a cluster environment , Operations that need to be upgraded :

  1. Post startup self test
    All the machines in the cluster are deployed as 2.0.X Version and start , Post startup checks should be carried out .
    When all nodes in the cluster logs/naming-server.log It was observed in the log that upgrade check result true And Upgrade to 2.0.X, It is determined that the cluster is ready , Only then can you use Nacos2.0.

  2. Turn off double write
    To save performance overhead , When the cluster deployment is completed , You can observe the operation for a period of time , When it's confirmed , Double write can be turned off , This releases performance , The specific closing method is through API Conduct :
    curl -X PUT 'localhost:8848/nacos/v1/ns/operator/switches?entry=doubleWriteEnabled&value=false'
    After closing, it can be accessed from logs/naming-server.log It was observed in the log that Disable Double write, stop and clean v1.x cache and features word . Note double write is turned off .
    Be careful , After double write is turned off, smooth degradation cannot be performed , Please confirm that the cluster is running correctly before shutting down .

therefore , I upgraded directly to Nacos2.1.0, Then there is the problem that the service cannot be registered , I first thought about the version incompatibility , Compared with the database sql file , Find out something different , Then all relevant data tables are replaced , This time it's OK . It was later discovered that the console did not display the registration list , Later, I thought of relying on Nacos Version or 2.0.3, I want to replace it with 2.1.0 When , Find out Spring Cloud Alibaba The framework has not been integrated yet Nacos2.1.0 edition , The specific reason :

because Spring Boot 2.4 The versions above and below have changed a lot , At present, it is related to old projects of enterprise customers Spring Boot The version is still in Spring Boot 2.4 following , In order to meet the different needs of existing users and new users at the same time , Community to Spring Boot 2.4 For the dividing line , At the same time maintain 2.2.x and 2021.x Two branch iterations .

So I changed it to Nacos1.4.2 edition

2021.x Branch

adapter Spring Boot 2.4, Spring Cloud 2021.x Version and above Spring Cloud Alibaba The versions are shown in the table below ( The latest version uses * Mark ): ( Be careful , This branch Spring Cloud Alibaba The version naming method has been adjusted , The future will correspond to Spring Cloud edition , The first three are Spring Cloud edition , The last bit is the extended version , For example, adaptation Spring Cloud 2021.0.1 The version corresponds to Spring Cloud Alibaba The first version is :2021.0.1.0, The second version is :2021.0.1.1, And so on )

 Insert picture description here
 Insert picture description here
 Insert picture description here

Version Description

https://github.com/alibaba/spring-cloud-alibaba/wiki

原网站

版权声明
本文为[Bulst]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230223461209.html