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.