Documentation ¶
Index ¶
- Constants
- func IsHAAvailable(characterType, workloadType string) bool
- type Ha
- func (ha *Ha) DecreaseClusterReplicas(cluster *dcs3.Cluster)
- func (ha *Ha) DeleteCurrentMember(ctx context.Context, cluster *dcs3.Cluster) error
- func (ha *Ha) HasOtherHealthyMember(cluster *dcs3.Cluster) bool
- func (ha *Ha) IsHealthiestMember(ctx context.Context, cluster *dcs3.Cluster) bool
- func (ha *Ha) RunCycle()
- func (ha *Ha) ShutdownWithWait()
- func (ha *Ha) Start()
Constants ¶
View Source
const ( WorkloadTypeKey = "workloadType" Replication = "Replication" Consensus = "Consensus" )
Variables ¶
This section is empty.
Functions ¶
func IsHAAvailable ¶
Types ¶
type Ha ¶
type Ha struct {
// contains filtered or unexported fields
}
func (*Ha) DecreaseClusterReplicas ¶
func (*Ha) DeleteCurrentMember ¶
func (*Ha) IsHealthiestMember ¶
func (*Ha) ShutdownWithWait ¶
func (ha *Ha) ShutdownWithWait()
Click to show internal directories.
Click to hide internal directories.