A tiny note on adding cpu quotas for logstash (#143494)

This commit is contained in:
Mat Schaffer 2022-10-18 16:21:17 +09:00 committed by GitHub
parent a946155600
commit 4549c4e2f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,13 @@ docker run --name logstash \
docker.elastic.co/logstash/logstash:master-SNAPSHOT
```
Note that you can add these arguments to populate cgroup/cfs data for logstash as well. This will require a cgroup v1 docker host until [logstash#14534](https://github.com/elastic/logstash/issues/14534) is resolved:
```
--cpu-period=100000 \
--cpu-quota=150000 \
```
# Complete docker setup
We also maintain an internal docker-compose setup for running a full stack with monitoring enabled for all components.