如何用HAProxy代理minio?
- By : Will
- Category : MinIO, Reverse Proxy

MinIO
1 前言
一个问题,一篇文章,一出故事。
笔者今天需要实现HAProxy代理minio,因此整理此文。
2 最佳实践
2.1 实践环境
2.1.1 准备HAProxy集群环境
2.1.2 准备GlusterFS服务环境
2.2 配置代理
2.2.1 修改配置文件
vim /etc/haproxy/conf.d/minio.cmdschool.org_9000_90001_minio.cfg
加入如下配置,
frontend minio_data bind *:9000 mode tcp timeout client 1m log global default_backend minio_data_servers frontend minio_web bind *:9001 mode tcp timeout client 1m log global default_backend minio_web_servers backend minio_data_servers mode tcp log global timeout server 1m timeout connect 5s balance roundrobin server minio01 10.168.0.241:9000 check server minio02 10.168.0.242:9000 check server minio03 10.168.0.243:9000 check server minio04 10.168.0.244:9000 check backend minio_web_servers mode tcp log global timeout server 1m timeout connect 5s balance roundrobin server minio01 10.168.0.241:9001 check server minio02 10.168.0.242:9001 check server minio03 10.168.0.243:9001 check server minio04 10.168.0.244:9001 check
2.2.2 检查配置
haproxy -c -f /etc/haproxy/conf.d
2.2.3 应用配置
systemctl reload haproxy.service systemctl status haproxy.service
参阅文档
======================
https://www.mail-archive.com/haproxy@formilux.org/msg23817.html
https://haproxy.formilux.narkive.com/EpMmLH3G/for-sftp-load-balancing
https://www.cnblogs.com/rongfengliang/p/10319205.html
https://jakec007.github.io/2021-03-09-load-balancing-ssh-with-haproxy/
https://docs.haproxy.org/2.2/configuration.html
https://www.haproxy.com/documentation/haproxy-configuration-tutorials/session-persistence/
https://www.haproxy.com/documentation/haproxy-configuration-tutorials/load-balancing/passive-ftp/
没有评论