twemproxy.ctmpl 1.1 KB

123456789101112131415161718192021222324
  1. cpredis:
  2. listen: 0.0.0.0:2112
  3. hash: fnv1a_64
  4. distribution: ketama
  5. timeout: 1000
  6. preconnect: true
  7. redis: true
  8. auto_eject_hosts: false
  9. server_retry_timeout: 2000
  10. backlog: 2048
  11. server_connections: 10
  12. servers:
  13. {{ range service "redis-19901" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  14. {{ range service "redis-19902" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  15. {{ range service "redis-19903" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  16. {{ range service "redis-19904" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  17. {{ range service "redis-19905" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  18. {{ range service "redis-19906" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  19. {{ range service "redis-19907" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  20. {{ range service "redis-19908" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  21. {{ range service "redis-19909" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  22. {{ range service "redis-19910" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  23. {{ range service "redis-19911" }} - {{ .Address }}:{{ .Port }}:1{{ end}}
  24. {{ range service "redis-19912" }} - {{ .Address }}:{{ .Port }}:1{{ end}}