HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Primary and Standby Cluster

One Primary and One Standby

global:
  # Cluster name
  cluster_name: c1
  # OS user name
  user: omm
  # System user password
  user_password: "" # ptk encrypt password
  # Database password
  db_password: ""  # ptk encrypt password
  # Database port
  db_port: 26000
  # Database installation base directory
  base_dir: /data/mogdb

db_servers:
  - host: <IP1>
    # Database roles, supported: primary, standby, cascade_standby
    role: primary
    # SSH connection configuration
    ssh_option:
      port: 22
      user: root
      password: ""  # ptk encrypt password
      key_file: ""
      passphrase: ""
  - host: <IP2>
    role: standby
    ssh_option:
      port: 22
      user: root
      password: "" # ptk encrypt password
      key_file: ""
      passphrase: ""

One Primary Two Standby and One Cascade

global:
  # Cluster name
  cluster_name: shockley
  # OS user name
  user: vimiix
  # System user password
  user_password: "" # ptk encrypt password
  # Database password
  db_password: ""  # ptk encrypt password
  # Database port
  db_port: 26000
  # Database installation base directory
  base_dir: /data/mogdb
  # SSH login information, here we demonstrate that all database servers have the same login information.
  # So you only need to configure this information in global section.
  ssh_option:
    port: 22
    user: root
    password: ""  # ptk encrypt password
    key_file: ""
    passphrase: ""

db_servers:
  - host: <IP1>
    role: primary
  - host: <IP2>
    role: standby
  - host: <IP3>
    role: standby
  - host: <IP4>
    role: cascade_standby
    # Upstream standby node IP of the current cascade standby node
    upstream_host: <IP3>
Copyright © 2011-2024 www.enmotech.com All rights reserved.