#服务器配置文件
服务器配置文件列示YashanDB服务端所有实例的物理信息。
示例:(hosts.toml)
# 以下内容以实际展示结果为准
uuid = "64f04f0e999c72db72bd565762e6a4ea" #系统自动生成,不建议修改
cluster = "yashandb" #安装后修改也不会生效,除非重新安装
secret_key = "e8540d7ef94a2c43" #系统自动生成,不建议修改
plugins = ["all"] # 安装的插件
[om] #yasom信息
hostid = "host0001" #yasom所在服务器标识
[om.config]
LISTEN_ADDR = "127.0.0.1:1675" #yasom侦听端口
[[host]]
hostid = "host0001" #数据库实例所在服务器标识
user = "yashan" #登录服务器的SSH用户(数据库安装用户)
password = "password" #SSH登录密码
ip = "192.168.1.2" #数据库服务器
port = 22 #登录服务器的SSH端口
path = "/data/yashan/yasdb_home" #产品安装路径,需保证该路径为空,安装后修改也不会生效,除非重新安装
log_path = "/data/yashan/log" # yasom和yasagent的日志
jvm_path = "" #jvm的安装路径,安装后修改也不会生效,除非重新安装
[host.yasagent]
[host.yasagent.config]
LISTEN_ADDR = "192.168.1.2:1676" #yasagent侦听端口
# 高可用模式下会多出如下备库信息
[[host]]
hostid = "host0002"
group = "yashan"
user = "yashan"
password ="password"
ip = "192.168.1.3"
port = 22
path = "/data/yashan/yasdb_home"
log_path = "/data/yashan/log"
jvm_path = ""
[host.yasagent]
[host.yasagent.config]
LISTEN_ADDR = "192.168.1.3:1676"
[[host]]
hostid = "host0003"
group = "yashan"
user = "yashan"
password ="password"
ip = "192.168.1.4"
port = 22
path = "/data/yashan/yasdb_home"
log_path = "/data/yashan/log"
jvm_path = ""
[host.yasagent]
[host.yasagent.config]
LISTEN_ADDR = "192.168.1.4:1676"