
title: Rotating Proxy Server

daemon: false

pidfile: /var/run/rps.pid

servers:
    - proto: socks5
      listen: 0.0.0.0
      port: 9890
      #username: rps
      #password: secret
      timeout: 30 #30 seconds
      

    - proto: http
      listen: "::"
      port: 9891
      timeout: 30 #30 seconds

upstreams:
    refresh: 300 #5 minutes

    #rr: round-robin
    #random: random schedule
    #wrr: weighted round robin
    schedule: rr

    # Just make hybrid=false if you don't understand what will happen 
    # after enable hybrid
    hybrid: false

    maxretry: 3

    pools:
        - proto: socks5
          rediskey: rps:upstream:socks5

        - proto: http
          rediskey: rps:upstream:http

redis:
    host: dev1
    port: 6379
    db: 0
    password: tfqmcA0JvG04EHKDj
    timeout: 5

log:
    file: ../logs/rps.log
    level: INFO #DEBUG| INFO| NOTICE| WARN| ERROR| CRIT



title: Rotating Proxy Server

daemon: false

pidfile: /var/run/rps.pid

servers:
    - proto: socks5
      listen: 0.0.0.0
      port: 9890
      #username: rps
      #password: secret
      timeout: 30 #30 seconds
      

    - proto: http
      listen: "::"
      port: 9891
      timeout: 30 #30 seconds

upstreams:
    refresh: 300 #5 minutes

    #rr: round-robin
    #random: random schedule
    #wrr: weighted round robin
    schedule: rr

    # Just make hybrid=false if you don't understand what will happen 
    # after enable hybrid
    hybrid: false

    # If connect upstream failed in upstream phase, attempt connect new upstream.
    # re-connect is low cost operation relative to retry.
    maxreconn: 3 

    # If handshake with upstream failed, try handshake with new upstream.
    # Need re-connect, re-handshake, re-auth etc..
    maxretry: 3

    pools:
        - proto: socks5
          rediskey: rps:upstream:socks5

        - proto: http
          rediskey: rps:upstream:http

redis:
    host: dev1
    port: 6379
    db: 0
    password: tfqmcA0JvG04EHKDj
    timeout: 5

log:
    file: ../logs/rps.log
    level: INFO #DEBUG| INFO| NOTICE| WARN| ERROR| CRIT


Append maxreconn and maxretry configure.
Append maxreconn and maxretry configure.
