我的任务是升级基于 Ubuntu 的 Cassandra 集群 - 之前没有使用 Cassandra 的经验。
我尝试深入研究文档,但无法找到有关如何以受支持的方式进行升级的任何说明。
幸运的是,我有一个测试集群,只需确保 apt 指向正确的存储库并执行操作即可很好地升级apt upgrade
- 但这可能只是由于数据库没有处于任何特定负载下。
是否应该在升级或类似操作之前封锁节点?或者信任 apt 做它的事情是否安全?
例如,nodetool upgradesstables
从 4.0 升级到 4.1 后是否应该手动运行?
是否有我未能找到的有关该主题的文档?
I managed to find this resource and it is quite a lot more involved than the apt upgrade
I feel was completely successful.
The 2nd upgrade guide that you found is the right one and has the most accurate steps for the C* upgrade.
Yes, just let apt "do its thing."
Cassandra versions 4.0 and 4.1 do use different versions for SSTable files ("nb" and "nc", respectively). So "yes"
nodetool upgradesstables
should be run after upgrading all nodes to 4.1.