Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TortoiseNameAnnotation - VPA and HPA managed by tortoise have this label. TortoiseNameAnnotation = "tortoises.autoscaling.mercari.com/tortoise-name" // If this annotation is set to "true", it means that tortoise manages that resource, // and will be removed when the tortoise is deleted. ManagedByTortoiseAnnotation = "tortoise.autoscaling.mercari.com/managed-by-tortoise" )
annotation on HPA and VPA resource.
View Source
const ( // IstioSidecarInjectionAnnotation - If this annotation is set to "true", it means that the sidecar injection is enabled. IstioSidecarInjectionAnnotation = "sidecar.istio.io/inject" IstioSidecarProxyCPUAnnotation = "sidecar.istio.io/proxyCPU" IstioSidecarProxyMemoryAnnotation = "sidecar.istio.io/proxyMemory" )
View Source
const ( // If this annotation is set to "true", it means that dryrun tortoise will get changed in the autoscaling policy // when a corresponding HPA is changed. // e.g., If HPA is changed to have containerResource metric for "istio-proxy" cpu, tortoise will modify the autoscaling policy to have "Horizontal" to "istio-proxy" cpu. // // Background: // In mercari, we're using DryRun Tortoise to periodically check the recommendation from Tortoises. // Auto Tortoise is keep modifing HPAs to have the recommendation from Tortoise, // which means the autoscaling policy in Auto Tortoise is always consistent with metrics in HPAs. // Even if users manually add/remove metrics in HPAs, Auto Tortoise will revert the change soon. // But, DryRun Tortoise is not allowed to modify HPAs, and if users manually add/remove metrics in HPAs, // it could result in being inconsistent with the autoscaling policy in DryRun Tortoise. ModifyDryRunTortoiseWhenHPAIsChangedAnnotation = "tortoise.autoscaling.mercari.com/modify-dryrun-tortoise-when-hpa-is-changed" )
annotation on Tortoise resource.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.