当前位置:网站首页>【微服务|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,依此类推)



版本说明
边栏推荐
- 李宏毅《机器学习》丨5. Tips for neural network design(神经网络设计技巧)
- MVC三層架構
- Metadata management Apache Atlas Compilation (embedded) deployment and various error records encountered
- 入行软件测试5年,跳槽3次,我摸透了软件测试这一行
- 搭建一套 gocd 的环境
- 【Mac】安全性与隐私中没有任何来源选项
- 【毕业季_进击的技术er】送别过去两年迷茫的自己。重整旗鼓,大三我来啦
- dolphinscheduler 1.2.1 数据迁移到 dolphinscheduler 2.0.5方法及迁移后数据测试记录
- Automatically add watermark to screenshot
- "Wechat applet - Basics" takes you to understand the routing system of the applet (2)
猜你喜欢

微信小程序:微信也可以发闪照了闪照制作生成微信小程序源码下载,自定义闪照时间

Rtklib new version 2.4.3 B34 test comparison

8年经验之谈:月薪3000到30000,测试工程师的变“行”记

当SBAS遇上rtklib

Function declaration and call of 17 generator

MVC three-tier architecture

Do280openshift command and troubleshooting -- common troubleshooting and chapter experiments

Brief ideas and simple cases of JVM tuning - why do you need JVM tuning?

UI自动化定位利器-xpath实战

Go learning record II (window)
随机推荐
使用PX4的ECL进行多传感器数据融合的后处理
PHP move_uploaded_file上传移动图片失败
【Proteus仿真】Arduino UNO+PCF8574+LCD1602+MPX4250电子秤
Do280openshift command and troubleshooting -- common troubleshooting and chapter experiments
新晋职场人的 技术进击?之旅
Emergency response HW review
微信小程序:星际旅行飞船乘坐票制作生成
Course design C for freshmen -- clothing management system
硬核,成为高素质测试人员:学会和产品沟通需求
Less than a year after development, I dared to ask for 20k in the interview, but I didn't even want to give 8K after the interview~
C'est dur de trouver un emploi? Ali des trois côtés, heureusement qu'il s'est bien préparé et qu'il a pris un produit.
LeetCode 797:所有可能的路径
【图像融合】基于非凸罚分的稀疏正则化实现图像融合附matlab代码
② Cocoapods principle and podspec file uploading operation
微信小程序:凑单满减计算神器
apache atlas 快速入门
insert into... where not exists插入避免重复的使用
笔者认为所谓的产业互联网,就是一个产业与互联网深度融合的过程
Banner banner
Dolphin scheduler 2.0.5 task test (spark task) reported an error: container exited with a non zero exit code 1