Skip to main content

Module replica_http_locator

Module replica_http_locator 

Source
Expand description

Tracks HTTP addresses for cluster replica processes.

This module provides the ReplicaHttpLocator which maintains an in-memory mapping of cluster replica HTTP addresses. This is used by environmentd to proxy HTTP requests to clusterd internal endpoints without requiring direct network access to the clusterd pods.

The reason for this to exist is that the process orchestrator with HTTP-to-domain socket proxies only lazily starts its proxies, meaning we don’t know the ports to forward to until after the replica is started.

Structs§

ReplicaHttpLocator
Tracks HTTP addresses for cluster replica processes.