ITPub博客

首页 > 数据库 > 国内数据库 > 【YashanDB 知识库】备库扩缩容指导

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

原创 国内数据库 作者:崖山数据库系统YashanDB 时间:2025-01-23 15:39:41 0 删除 编辑

本文内容来自 YashanDB 官网,原文内容请见  https:///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 **,否则无法关闭归档日志 **


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70028812/viewspace-3070608/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
崖山数据库系统YashanDB是深圳计算科学研究院完全自主研发设计的新型数据库系统,融入原创理论,支持单机/主备、共享集群、分布式等多种部署方式,覆盖OLTP/HTAP/OLAP交易和分析混合负载场景,为客户提供一站式的企业级融合数据管理解决方案。

注册时间:2023-04-11

  • 博文量
    722
  • 访问量
    640009