Documentation
¶
Index ¶
- func MakeCondition(conditionType string, ok bool, msg string, err error) metav1.Condition
- func MasterQuorumHealth(ctx context.Context, ytClient yt.Client, mastersPath ypath.Path, ...) (ok bool, message string, err error)
- func MergeConditions(output metav1.Condition, getter func(conditionType string) *metav1.Condition, ...) metav1.Condition
- type MasterAddressWithAttributes
- type MasterHydra
- type MasterState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCondition ¶
func MasterQuorumHealth ¶
Types ¶
type MasterHydra ¶
type MasterHydra struct {
State MasterState `yson:"state"`
SelfID int32 `yson:"self_id"`
LeaderID int32 `yson:"leader_id"`
Voting bool `yson:"voting"`
Active bool `yson:"active"`
ActiveLeader bool `yson:"active_leader"`
ActiveFollower bool `yson:"active_follower"`
BuildingSnapshot bool `yson:"building_snapshot"`
EnteringReadOnlyMode bool `yson:"entering_read_only_mode"`
LastSnapshotReadOnly bool `yson:"last_snapshot_read_only"`
ReadOnly bool `yson:"read_only"`
}
See: https://github.com/ytsaurus/ytsaurus/blob/main/yt/yt/server/lib/hydra/distributed_hydra_manager.cpp
type MasterState ¶
type MasterState string
NYT::NHydra::EPeerState
const ( MasterStateLeading MasterState = "leading" MasterStateFollowing MasterState = "following" )
Click to show internal directories.
Click to hide internal directories.