Skip to content

Commit

Permalink
Merge pull request #1710 from kube-logging/pepov-scaling-docs
Browse files Browse the repository at this point in the history
chore(docs): update scaling notes
  • Loading branch information
pepov authored Mar 28, 2024
2 parents 0e2ed07 + aa9980e commit 54a2dd0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/scaling.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ You can check that the custom metric is available with:
kubectl get --raw '/apis/custom.metrics.k8s.io/v1beta1/namespaces/default/pods/*/buffer_space_usage_ratio'
```

The replica count of the stateful set is enforced by the logging-operator based on the logging resource's replica count (even if it's not set explicitly).
To allow for HPA to control the replica count of the stateful set this coupling has to be severed.
***Currently, there is no way to turn off this coupling, other than shutting off the logging-operator by deleting its deployment.***
The replica count of the stateful set is enforced by the logging-operator only if it is explicitly set in the logging resource's replica count.

If it's not set explicitly in the logging resource, then the logging operator allows managing it from the outside.

To allow for HPA to control the replica count of the statefulset simply avoid setting the replica count through the logging resource.

Finally, the HPA resource must be created.
```yaml
Expand Down

0 comments on commit 54a2dd0

Please sign in to comment.