Tcp Round Robin

TCP round-robin load balancing across database replicas

Category: Setup-dependent integration
Task: TCP round-robin load balancing across database replicas

Prerequisites: The external service, credentials, or certificates referenced by this configuration.

Run it: Use ghcr.io/praxis-proxy/praxis:0.7.2 and follow the first reverse-proxy tutorial to mount and start the configuration.

This configuration comes from the selected release. The example has not been run here; external services are not bundled.

Download the source file.

# TCP round-robin load balancing across database replicas.
#
clusters:
  - name: db_pool
    endpoints:
      - "127.0.0.1:15432"
      - "127.0.0.1:15433"
      - "127.0.0.1:15434"

insecure_options:
  allow_private_endpoints: true
  allow_private_upstreams: true

filter_chains:
  - name: tcp_lb
    filters:
      - filter: tcp_load_balancer
        clusters:
          - name: db_pool
            endpoints:
              - "127.0.0.1:15432"
              - "127.0.0.1:15433"
              - "127.0.0.1:15434"