当前位置:网站首页>【微服务|Nacos】Nacos版本相关问题一览
【微服务|Nacos】Nacos版本相关问题一览
2022-06-23 03:54:00 【步尔斯特】
Nacos:1.4.2 vs 2.0.3 vs 2.1.0
此时,官方推荐的版本是2.0.3。
因为搭建集群环境的时候,需要升级的操作:
启动后自检
集群中所有机器部署为2.0.X版本并启动时,应当进行启动之后的检查。
当集群中所有节点logs/naming-server.log日志中观察到upgrade check result true及Upgrade to 2.0.X,便判定为集群准备完毕时,此时才可以使用Nacos2.0。关闭双写
为了节省性能开销,当集群部署完成后,可以先观察一段时间运行情况,当确认无误后,可以关闭双写,从而释放性能,具体的关闭方式是通过API进行:curl -X PUT 'localhost:8848/nacos/v1/ns/operator/switches?entry=doubleWriteEnabled&value=false'
关闭后可以从logs/naming-server.log日志中观察到Disable Double write, stop and clean v1.x cache and features字样。说明关闭双写。
注意,关闭双写后无法在进行平滑降级,请先确认关闭前集群正确运行。
所以,我直接升级成了Nacos2.1.0,然后就出现服务注册不上的问题,我首先想到了版本不兼容,对比了数据库的sql文件,发现不一样,然后替换了所有相关的数据表,这次可以了。随后又发现控制台不显示注册列表,后来想到依赖的Nacos版本还是2.0.3,在想替换成2.1.0的时候,发现Spring Cloud Alibaba框架还没有整合Nacos2.1.0版本,具体原因:
由于 Spring Boot 2.4 以上和一下版本变化较大,目前企业级客户老项目相关 Spring Boot 版本仍停留在 Spring Boot 2.4 以下,为了同时满足存量用户和新用户不同需求,社区以 Spring Boot 2.4 为分界线,同时维护 2.2.x 和 2021.x 两个分支迭代。
所以我又更换成了Nacos1.4.2版本
2021.x 分支
适配 Spring Boot 2.4, Spring Cloud 2021.x 版本及以上的 Spring Cloud Alibaba 版本如下表(最新版本用*标记): (注意,该分支 Spring Cloud Alibaba 版本命名方式进行了调整, 未来将对应 Spring Cloud 版本, 前三位为 Spring Cloud 版本,最后一位为扩展版本,比如适配 Spring Cloud 2021.0.1 版本对应的 Spring Cloud Alibaba 第一个版本为:2021.0.1.0,第个二版本为:2021.0.1.1,依此类推)



版本说明
边栏推荐
- Talk about the composite pattern in C #
- HCIP 交换机实验
- 入行软件测试5年,跳槽3次,我摸透了软件测试这一行
- 直接插入排序——【常见排序法(1/8)】
- Beyond chips and AI, why is hard technology capital becoming more and more "hard core"?
- PHP move_uploaded_file上传移动图片失败
- Implementation of the rotation chart
- MySQL stored procedure
- 精密星历介绍与使用
- Flask Foundation: environment setup + configuration + mapping between URL and attempt + redirection + database connection
猜你喜欢

"Wechat applet - Basics" takes you to understand the routing system of the applet (2)

Learn to draw Er graph in an article

BGP第二次试验

dolphinscheduler 2.0.5 spark 任务测试总结(源码优化)

Arduino火焰传感器(含代码)

MVC三层架构

功能测试人员如何做到花一个月的时间进阶自动化软件测试工程师

开源生态|超实用开源License基础知识扫盲帖(下)

servlet自学笔记

Beyond chips and AI, why is hard technology capital becoming more and more "hard core"?
随机推荐
Cookie-Session讲解
HCIP 重发布实验
三层架构实验
dolphinscheduler 1.2.1 数据迁移到 dolphinscheduler 2.0.5方法及迁移后数据测试记录
JDBC调用存储过程、MySQL触发器
Implementation of the rotation chart
SwiftUI 2.0 课程笔记 Chapter 4
《微信小程序-基础篇》带你了解小程序的路由系统(二)
985 test engineer is hanged. Who is more important in terms of education and experience?
强推,软件测试快速入门,一看就会
元数据管理Apache Atlas编译(内嵌式)部署及遇到各种错误记录
laravel8实现图片验证码
JSP入门级笔记
开源生态|超实用开源License基础知识扫盲帖(下)
Actual combat | multiple intranet penetration through Viper
Beyond chips and AI, why is hard technology capital becoming more and more "hard core"?
Automatically add watermark to screenshot
395. redundant path
Hard core, become a high-quality tester: learn to communicate with products
李宏毅《机器学习》丨5. Tips for neural network design(神经网络设计技巧)