Tcp Least Connections
TCP least-connections load balancing
Category: Setup-dependent integration
Task: TCP least-connections load balancing
Prerequisites: The external service, credentials, or certificates referenced by this 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 least-connections load balancing.
#
# Usage:
# cargo run -p praxis-proxy -- -c examples/configs/protocols/tcp-least-connections.yaml
listeners:
- name: postgres
address: "127.0.0.1:5432"
protocol: tcp
cluster: db_pool
filter_chains: [tcp_lb]
clusters:
- name: db_pool
endpoints:
- "127.0.0.1:15432"
- "127.0.0.1:15433"
- "127.0.0.1:15434"
load_balancer_strategy:
least_connections: ~
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"
load_balancer_strategy:
least_connections: ~