Skip to content

Commit e4b8853

Browse files
authored
Merge pull request #240 from kube-logging/pepov-patch-1
Update scaling.md
2 parents 091fab5 + 5e47b6f commit e4b8853

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

content/docs/operation/scaling.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ aliases:
55
- /docs/one-eye/logging-operator/scaling/
66
---
77

8+
> Note: When multiple instances send logs to the same output, the output can receive chunks of messages out of order. Some outputs tolerate this (for example, Elasticsearch), some do not, some require fine tuning (for example, Loki).
9+
10+
## Scaling Fluentd
11+
812
In a large-scale infrastructure the logging components can get high load as well. The typical sign of this is when `fluentd` cannot handle its [buffer](../../configuration/plugins/outputs/buffer/) directory size growth for more than the configured or calculated (timekey + timekey_wait) flush interval. In this case, you can [scale the fluentd statefulset]({{< relref "../logging-infrastructure/fluentd.md#scaling" >}}).
913

10-
{{< warning >}}
11-
When scaling down Fluentd, the Logging operator does not flush the buffers before terminating the pod. Unless you have a good plan to get the data out from the detached PVC, we don't recommend scaling Fluentd down directly from the Logging operator.
14+
The Logging Operator supports scaling a **Fluentd aggregator** statefulset up and down. Scaling statefulset pods down is challenging, because we need to take care of the underlying volumes with buffered data that hasn't been sent, but the Logging Operator supports that use case as well.
1215

13-
To avoid this problem, you can either write a custom readiness check to get the last pod out from the endpoints of the service, and stop the node only when its buffers are empty.
14-
{{< /warning >}}
16+
The details for that and how to configure an HPA is described in the following documents:
17+
- https://github.com/kube-logging/logging-operator/blob/master/docs/volume-drainer.md
18+
- https://github.com/kube-logging/logging-operator/blob/master/docs/scaling.md
1519

16-
> Note: When multiple instances send logs to the same output, the output can receive chunks of messages out of order. Some outputs tolerate this (for example, Elasticsearch), some do not, some require fine tuning (for example, Loki).
20+
## Scaling SyslogNG
21+
22+
SyslogNG can be scaled up as well, but persistent disk buffers are not processed automatically when scaling the statefulset down. That is currently a manual process.

0 commit comments

Comments
 (0)