【YashanDB知识库】备库扩缩容指导

本文内容来自YashanDB官网,原文内容请见 https://www.yashandb.com/newsinfo/7281309.html?templateId=1718516

扩容

Step1:生成配置文件

$ yasboot config node gen -c yashandb -u yashan -p password --ip ip1,ip2...ipn --port 22 --install-path /var/database/yashan -g 1 --node 2

Step2:部署新服务器

如果是在已有服务器上增加备库节点,则跳过该步骤。

$ yasboot host add -c yashandb -i yashandb-23.2.2.100-linux-x86_64.tar.gz -t hosts_add.toml

Step3:扩容

$ yasboot node add -c yashandb -t yashandb_add.toml -p password

缩容

$ yasboot node remove --node-ids 1-4,1-5 --purge --force -c yashandb

注:如果缩容到1副本,则需删除所有dn配置文件中的配置项replication_addr,否则无法关闭归档日志

posted @   YashanDB  阅读(1)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 实操Deepseek接入个人知识库
· 易语言 —— 开山篇
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
点击右上角即可分享
微信分享提示