Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use rsync's proxy protocol and haproxy together #738

Open
Firebasky opened this issue Mar 8, 2025 · 0 comments
Open

how to use rsync's proxy protocol and haproxy together #738

Firebasky opened this issue Mar 8, 2025 · 0 comments

Comments

@Firebasky
Copy link

I want to know how to use rsync's proxy protocol and haproxy together? Can you give me a demo?

look. error.
Image

haproxy.cfg

global
    log 127.0.0.1 local2
    ulimit-n 800000
    chroot /var/lib/haproxy
    pidfile /var/run/haproxy.pid
    maxconn 4000
    user haproxy
    group haproxy
    daemon
    stats socket /var/lib/haproxy/stats

defaults
    mode tcp                    # 配置 tcp 模式
    log global
    option dontlognull
    retries 3
    maxconn 6000
    timeout queue 1m
    timeout connect 1000s
    timeout client 150000m
    timeout server 150000m
    timeout check 10s

frontend forward8080
    bind *:8080                  # 代理服务监听 8080 端口
    default_backend server6000

backend server6000
                                 # 后端业务服务监控 6000 端口
    server server1  127.0.0.1:873 send-proxy maxconn 3000    # v1 版本
    #server server1 127.0.0.1:6000 send-proxy-v2 maxconn 3000  # v2 版本

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant