influxdata / influxdata/helm-charts

Telegraf does not support a HorizontalPodAutoScaler

Open
#624 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Mustache
Stars
257
Forks
347
Avg merge
4d 20h
Merged PRs (30d)
9

Description

Telegraf currently does not support a HorizontalPodAutoScaler in its deployment and has to be pre-scalled to a number of replicas according to the peak event load it might have to process. This makes it difficult to dealing with a varying load dynamically and we are having to prescale it too high to mean peak load.

HPAs are standard for Kubernetes pods that can be horizontally scalled, which telegraf should be? See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ for docs and https://github.com/bitnami/charts/blob/main/bitnami/nginx/templates/hpa.yaml for a reference example. We would be able to set 'autoscaling' values for min and max replicas, allowing it to scale when target cpu/mem resource utilization has reached on any pod and scale down as required when it has stabilized.

Please let us know if this is on the roadmap. If not would there be an objection to us submitting a PR? Thanks

Contributor guide

Open the contributing guide

Research direction

Read the linked Kubernetes HPA documentation and Bitnami hpa.yaml example first, then inspect the Telegraf chart's deployment and values entry points. Done means the chart supports autoscaling values for minimum and maximum replicas and target CPU or memory utilization, with scaling up and down handled by Kubernetes.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes
Domain
devops, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.