获取源码并进入源码目录
github
git clone --branch haproxy https://github.com/lsqtzj/openGauss_master_slave.git cd openGauss_master_slave
或 gitee
git clone --branch haproxy https://gitee.com/CyrusZHou/openGauss_master_slave.git cd openGauss_master_slave2、运行
参考 docker-compose 一键生成 openGauss_2.1.0 极简版 master slave 主从测试环境_CyrusZhou的专栏-CSDN博客
3、haproxy 使用说明http://localhost:9980/pgadmin4 登录pgAdmin4
默认管理员 / 密码:admin@domain.com / admin
添加服务
Host:haproxy
port:5000 读写 5001 只读
username:gauss
password:Gauss666
4、HAProxy 状态监控
Statistics Report for HAProxyhttp://localhost:7000/



