Documentation ¶
Overview ¶
Package bucket provides helper functions for Autoscaler buckets. The buckets are used in Leader Election to support multiple Autoscaler pods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoscalerBucketName ¶ added in v0.19.0
AutoscalerBucketName returns the name of the Autoscaler bucket with given `ordinal` and `total` bucket count.
func AutoscalerBucketSet ¶ added in v0.19.0
AutoscalerBucketSet returns a hash.BucketSet consisting of Autoscaler buckets with the given `total` count.
func ExtractPodNameAndIP ¶ added in v0.19.0
ExtractPodNameAndIP extracts the pod name and IP from the given Lease holder identity.
func Identity ¶ added in v0.19.0
Identity returns a identify for this Autoscaler pod used as the Lease holder identity. It's in the format of <POD-NAME>_<POD-IP> whose information is ready from environment variables.
func IsBucketHost ¶
IsBucketHost returns true if the given host is a host of a K8S Service of a bucket.
Types ¶
This section is empty.