pg_ctl.exe register -N "ManageEngine ADAudit Plus - Database" -D ..\data -S demand
listen_addresses = '*'
host all all 127.0.0.1/32 md5
host all all <DB 服务器 IP 地址>/32 md5
host all all <主服务器 IP 地址>/32 md5
host all all <备用服务器 IP 地址>/32 md5
host all all <公共 IP 地址>/32 md5
url=jdbc:postgresql://localhost:33307/adap
wrapper.exe -i ..\conf\wrapper.conf
xnode.host = <DataEngine 服务器名称>
xnode.location = remote
xnode.connector.accept_remote_request=true
xnodes = <DataEngine 服务器名称>
对于 PostgreSQL:
insert into adshaconfiguration values (<查询1 的值 + 1>, 3, '<主服务器名称>', '<备份服务器名称>', 'Postgres', '<公共 IP>', '', '', null)
对于 Microsoft SQL:
insert into adshaconfiguration values (<查询1 的值 + 1>, 3, '<主服务器名称>', '<备份服务器名称>', 'mssql', '<公共 IP>', '', '', null)
#IP 地址属性
#服务器特定 - 使用 ipconfig 查找 IP 地址
ipaddr=<ip4 地址>
#服务器特定 - 查找请运行 iflist.exe 并使用结果中的 '适配器名称'
publicIP.Ifname=<适配器名称>
#服务器特定 - 使用 ipconfig 查找子网掩码
publicIP.netmask=<子网掩码>
#HA 通用 IP. 应为静态 IP
publicIP.ipaddr=<公共 IP 地址>
#共享名称
repl.remoteinstallationDir=
wrapper.event.wrapper_stop.command.argv.1=..\bin\ipdel.exe
wrapper.event.wrapper_stop.command.argv.2=<要解除绑定的公共 IP 的值>
wrapper.event.wrapper_stop.command.block=TRUE
#wrapper.event.wrapper_stop.command.block.timeout=20
wrapper.event.wrapper_stop.command.on_exit.0=CONTINUE
wrapper.event.wrapper_stop.command.on_exit.default=CONTINUE
<configuration name="VersionHandler"
value="com.manageengine.ads.fw.ha.HAVersionHandler"/>
<configuration name="StartDBServer" value="false"/>
IS_HA_ENABLED=true
注意: 这里,ADAP-DC1 是数据库服务器,ADAP-MS2 是主服务器,ADAP-MS3 是备用服务器。