Expand description
The balancerd service is a horizontally scalable, stateless, multi-tenant ingress router for pgwire and HTTPS connections.
It listens on pgwire and HTTPS ports. When a new pgwire connection starts, the requested user is authenticated with frontegg from which a tenant id is returned. From that a target internal hostname is resolved to an IP address, and the connection is proxied to that address which has a running environmentd’s pgwire port. When a new HTTPS connection starts, its SNI hostname is used to generate an internal hostname that is resolved to an IP address, which is similarly proxied.
Structs§
- Balancer
Config - Balancer
Metrics - Prometheus monitoring metrics.
- Balancer
Service - Frontegg
Resolver - SniTemplate
- Template for constructing the destination hostname from a TLS SNI
servername.
{}is replaced with the first label of the servername. - Tenant
DnsResolver - Resolves tenant hostnames for pgwire and HTTPS routing.
Enums§
Constants§
- BUILD_
INFO - Balancer build information.