OBD可以通过只配置文件的方式进行集群扩容吗?

一开始使用如下配置了单台数据库服务器:

user:
  username: admin
  password: 123456
oceanbase-ce:
  servers:
  - name: server1
    ip: 192.168.56.120
  global:
    production_mode: false
    memory_limit: 8G
    system_memory: 1G
    __mini_full_resource_pool_memory: 1073741824
    datafile_size: 10G
    log_disk_size: 10G
    enable_syslog_wf: false
    max_syslog_file_count: 4
    appname: obcp1
    # root_password: # root user password, can be empty
    # proxyro_password: # proxyro user pasword, consistent with obproxy's observer_sys_password, can be empty
    cluster_id: 1764318625
    root_password: 9pNSpelCEH55ClJ1rxFl
  server1:
    mysql_port: 2881
    rpc_port: 2882
    obshell_port: 2886
    home_path: /home/admin/observer
    # The directory for data storage. The default value is $home_path/store.
    # data_dir: /data
    # The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
    # redo_dir: /redo
    zone: zone1

建立表后,将配置修改为1-1-1架构的集群配置,然后使用"obd cluster redeploy obcp1",发现前面建立的表和数据又没有了?

user:
  username: admin
  password: 123456
oceanbase-ce:
  servers:
  - name: server1
    ip: 192.168.56.120
  - name: server2
    ip: 192.168.56.121
  - name: server3
    ip: 192.168.56.122
  global:
    production_mode: false
    memory_limit: 8G
    system_memory: 1G
    __mini_full_resource_pool_memory: 1073741824
    datafile_size: 10G
    log_disk_size: 10G
    enable_syslog_wf: false
    max_syslog_file_count: 4
    appname: obcp1
    # root_password: # root user password, can be empty
    # proxyro_password: # proxyro user pasword, consistent with obproxy's observer_sys_password, can be empty
    cluster_id: 1764318625
    root_password: 9pNSpelCEH55ClJ1rxFl
  server1:
    mysql_port: 2881
    rpc_port: 2882
    obshell_port: 2886
    home_path: /home/admin/observer
    # The directory for data storage. The default value is $home_path/store.
    # data_dir: /data
    # The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
    # redo_dir: /redo
    zone: zone1
  server2:
    mysql_port: 2881
    rpc_port: 2882
    obshell_port: 2886
    home_path: /home/admin/observer
    # The directory for data storage. The default value is $home_path/store.
    # data_dir: /data
    # The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
    # redo_dir: /redo
    zone: zone2
  server3:
    mysql_port: 2881
    rpc_port: 2882
    obshell_port: 2886
    home_path: /home/admin/observer
    # The directory for data storage. The default value is $home_path/store.
    # data_dir: /data
    # The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
    # redo_dir: /redo
    zone: zone3

自己研究了下,原来还有个obd cluster scale_out xxx -c 命令可用;

新问题:OBD能缩容吗?比如减少一台机器?

应该是不行的 能扩容

1 个赞

嗯嗯,好像确实没有找到缩容命令