distributed-example.yaml 1.5 KB
Newer Older
O
oceanbase-admin 已提交
1 2 3 4 5
## Only need to configure when remote login is required
# user:
#   username: your username
#   password: your password if need
#   key_file: your ssh-key file path if need
6 7
#   port: your ssh port, default 22
#   timeout: ssh connection timeout (second), default 30
O
oceanbase-admin 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
oceanbase-ce:
  servers:
    - name: z1
      # Please don't use hostname, only IP can be supported
      ip: 172.19.33.2
    - name: z2
      ip: 172.19.33.3
    - name: z3
      ip: 172.19.33.4
  global:
    # Please set devname as the network adaptor's name whose ip is  in the setting of severs.
    # if set severs as "127.0.0.1", please set devname as "lo"
    # if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
    devname: eth0
    # if current hardware's memory capacity is smaller than 50G, please use the setting of "mini-single-example.yaml" and do a small adjustment.
    memory_limit: 64G
    datafile_disk_percentage: 20
25 26 27
    syslog_level: INFO
    enable_syslog_recycle: true
    max_syslog_file_count: 4
O
oceanbase-admin 已提交
28
    cluster_id: 1
R
Rongfeng Fu 已提交
29
    root_password: # root user password
O
oceanbase-admin 已提交
30 31 32
  # In this example , support multiple ob process in single node, so different process use different ports.
  # If deploy ob cluster in multiple nodes, the port and path setting can be same. 
  z1:
33
    mysql_port: 2881
O
oceanbase-admin 已提交
34 35 36 37
    rpc_port: 2882
    home_path: /root/observer
    zone: zone1
  z2:
38
    mysql_port: 2881
O
oceanbase-admin 已提交
39 40 41 42
    rpc_port: 2882
    home_path: /root/observer
    zone: zone2
  z3:
43
    mysql_port: 2881
O
oceanbase-admin 已提交
44 45 46
    rpc_port: 2882
    home_path: /root/observer
    zone: zone3