Skip to main content

Module cluster

Module cluster 

Source
Expand description

HTTP proxy for cluster replica endpoints.

This module provides an HTTP proxy that forwards requests from environmentd to clusterd internal HTTP endpoints (profiling, metrics, tracing). This allows accessing clusterd endpoints through environmentd’s canonical HTTP port without requiring direct network access to the clusterd pods.

StructsΒ§

ClusterProxyConfig
Configuration for the cluster HTTP proxy.
ClustersTemplate πŸ”’
ReplicaInfo
Information about a replica for the clusters page template.

ConstantsΒ§

CONNECT_TIMEOUT πŸ”’
Connection timeout for proxied requests.
REQUEST_TIMEOUT πŸ”’
Overall request timeout for proxied requests.

FunctionsΒ§

handle_cluster_proxy πŸ”’
Proxy handler for cluster replica HTTP endpoints.
handle_cluster_proxy_inner πŸ”’
handle_cluster_proxy_root πŸ”’
Proxy handler for cluster replica HTTP endpoints (root path).
handle_clusters πŸ”’
Handler for the clusters overview page.
proxy_replica_request πŸ”’
rewrite_request_for_replica πŸ”’
Rewrites req to target a clusterd HTTP endpoint at http_addr.