Hi,
I have a total of 5 servers, all sending Netflow data using filebeat to the same server (1 of the 5 servers) running ES. Each server is also running 2 instances of filebeat, so in total, I have 5 x 2 filebeat instances.
- When I only have 1 filebeat instance running, my index rate can go up to about 24K/s
- With 2 filebeat instances running (be it on the same server, or 1 instance from 1 server each), the total index rate can go up to about 37K
- With 3 filebeat instances, the highest index rate I've seen is about 42K/s, but usually about 30+K/s
So it seems more filebeat instances don't result in a linear increase in Index rate.
I also have similar observations from the Stack Monitoring -> Beats -> Instances page.
- When 1 filebeat instance is running, the Event Rate is ~24K/s
- When 3 filebeat instances are running, the Event Rate for all 3 filebeat instances drop to 11-12K/s.
- When 5 filebeat are instances running, the Event Rate for all 5 filebeat instances drop to ~6-8K/s, meaning my Index Rate is about 33K/s.
I have the following settings in my filebeat.yml
.
queue.mem.events: 64000
queue.mem.flush.min_events: 4000
output.elasticsearch.bulk_max_size: 4000
output.elasticsearch.worker: 8
A few questions:
- I'm trying to understand why the Event Rate seem to be "equally divided" among my filebeat instances, and if there is any way to improve the performance.
- When I have 2 instances of filebeat running on the same server, does the
queue.mem
settings apply to each filebeat instance individually, or do both instances "share" the queue? - From the documentation, it says that
output.elasticsearch.worker
is "the number of workers per configured host publishing events to Elasticsearch." So when I have 3 filebeat instances running (say, 2 on the same server + 1 from another server), are 3 x 8 workers are started on my ES, or 2 x 8 workers? I have 96 CPUs on my server, how many workers is appropriate? - I noticed that on the Stack Monitoring -> Beats -> Instances page, when I have 2 filebeat instances running on the same server, only one of the 2 filebeat instances are shown, and it seems to randomly alternate between the 2. Why is this so?
Thank you.