Documentation ¶
Overview ¶
Package mon for the Ceph monitors.
Package mon for the Ceph monitors.
Package mon for the Ceph monitors.
Package mon for the Ceph monitors.
Index ¶
- Constants
- Variables
- func AdminSecretEnvVar() v1.EnvVar
- func ClusterNameEnvVar(name string) v1.EnvVar
- func EndpointEnvVar() v1.EnvVar
- func LoadClusterInfo(context *clusterd.Context, namespace string) (*mon.ClusterInfo, int, error)
- func PublicIPEnvVar(publicIP string) v1.EnvVar
- func SecretEnvVar() v1.EnvVar
- func WriteConnectionConfig(context *clusterd.Context, clusterInfo *mon.ClusterInfo) error
- type Cluster
- type HealthChecker
Constants ¶
const ( // EndpointConfigMapName is the name of the configmap with mon endpoints EndpointConfigMapName = "rook-ceph-mon-endpoints" // EndpointDataKey is the name of the key inside the mon configmap to get the endpoints EndpointDataKey = "data" // MaxMonIDKey is the name of the max mon id used MaxMonIDKey = "maxMonId" // MappingKey is the name of the mapping for the mon->node and node->port MappingKey = "mapping" )
Variables ¶
var ( // HealthCheckInterval interval to check the mons to be in quorum HealthCheckInterval = 20 * time.Second // MonOutTimeout the duration to wait before removing/failover to a new mon pod MonOutTimeout = 300 * time.Second )
Functions ¶
func AdminSecretEnvVar ¶
AdminSecretEnvVar is the admin secret environment var
func ClusterNameEnvVar ¶ added in v0.3.1
ClusterNameEnvVar is the cluster name environment var
func EndpointEnvVar ¶ added in v0.5.0
EndpointEnvVar is the mon endpoint environment var
func LoadClusterInfo ¶ added in v0.6.0
LoadClusterInfo constructs or loads a clusterinfo and returns it along with the maxMonID
func PublicIPEnvVar ¶ added in v0.5.0
PublicIPEnvVar is the public ip env var for monitors
func SecretEnvVar ¶ added in v0.5.0
SecretEnvVar is the mon secret environment var
func WriteConnectionConfig ¶ added in v0.6.0
func WriteConnectionConfig(context *clusterd.Context, clusterInfo *mon.ClusterInfo) error
WriteConnectionConfig save monitor connection config to disk
Types ¶
type Cluster ¶
type Cluster struct { Namespace string Keyring string Version string MasterHost string Size int Paused bool Port int32 HostNetwork bool // contains filtered or unexported fields }
Cluster is for the cluster of monitors
type HealthChecker ¶ added in v0.5.0
type HealthChecker struct {
// contains filtered or unexported fields
}
HealthChecker check health for the monitors
func NewHealthChecker ¶ added in v0.5.0
func NewHealthChecker(monCluster *Cluster) *HealthChecker
NewHealthChecker creates a new HealthChecker object
func (*HealthChecker) Check ¶ added in v0.5.0
func (hc *HealthChecker) Check(stopCh chan struct{})
Check periodically the health of the monitors