docker-compose 一键生成 openGauss 极简版 数据库haproxy 读写负载均衡 测试环境

1、源码获取
获取源码并进入源码目录

github

git clone --branch haproxy https://github.com/CyrusZhou-CN/openGauss_master_slave.git
cd openGauss_master_slave

或 gitee

git clone --branch haproxy https://gitee.com/CyrusZHou/openGauss_master_slave.git
cd openGauss_master_slave

2、运行

参考 docker-compose 一键生成 openGauss 极简版 master slave 主从测试环境_CyrusZhou的专栏-CSDN博客目录说明1、源码获取2、运行A.快速运行B.编译运行3、使用方式1.登录pgAdmin42.创建服务器链接说明容器基于openeuler/openeuler:20.03 系统,由于官方的Data Studio无法链接容器中的数据库,为方便管理集成了 pgadmin4 6.0。1、源码获取获取源码并进入源码目录git clone https://github.com/lsqtzj/openGauss_master_slave.gitcd openGa..https://blog.csdn.net/lsqtzj/article/details/120850420

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/

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值