Skip to main content

Module datacenter

Module datacenter 

Source
Expand description

Datacenter deployment optimizations — cluster node management, object store sharding, replication factor control, health monitoring, Prometheus-style metrics, and connection pooling configuration.

These features enable Lit to operate in distributed datacenter environments with high availability, fault tolerance, and observability requirements.

Structs§

ClusterConfig
Cluster-level configuration
ClusterNode
A registered datacenter cluster node
Metric
Prometheus-style metric representation
NodeCapacity
Capacity and utilization metrics for a node

Enums§

HealthStatus
Health status of a node
NodeRole
Role a node plays in the cluster
ReplicationMode
Replication mode
ShardStrategy
Sharding strategy for distributing objects across nodes

Functions§

execute_configure
Configure cluster-level settings
execute_health
Run health checks on all registered nodes
execute_metrics
Collect and return Prometheus-style metrics
execute_register_node
Register a new cluster node
execute_remove_node
Remove a node from the cluster (drain first recommended)
execute_status
Show cluster status — nodes, shard distribution, config