Im getting following error while changing the APM configuration in apm-server.yml
-
'output.elasticsearch.bulk_max_size': has to be a number between [100, 5000] inclusive
I am changing the config to increase the size of APM queue so that it can handle more than 30K events. Below is the config change that I did -
output.elasticsearch:
worker: 4
bulk_max_size: 10000
queue.mem.events: 40000
I cannot understand the reason of this error. ref - https://www.elastic.co/guide/en/apm/server/master/tune-apm-server.html#adjust-queue-size
Note - The issue is partially resolved by the answer given by Opster Elasticsearch Ninja's . But - The issue is not fully resolved yet. But I'm getting this error a lot less (2 times last week) after his suggestion to increase node and keeping bulk_max_size as 5000 only. But I'm still looking into some quantitative answers to this issue. Something like X node, W worker, B bulk_max_size, and S queue.mem.events will provide us the capacity to have a maximum N number of events per minute or at a time. For example - one of the last errors was when events in 1 minute reached around 90-100K, so I'm still researching.