Open divyankm opened 1 year ago
Have you tried to increase the max_compilations_rate
to a very high number such as 52000/5m
? Also this seems like it is a limitation on the OpenSearch cluster itself and the configuration of the cluster. Is there maybe a way where you can not run the monitors every minute and make sure the monitors' schedules are not all the same, so they dont all run at the same time during each execution?
Have you tried to increase the max_compilations_rate to a very high number such as 52000/5m?
max_compilations_rate
to 52000/5m
. max_compilations_rate
is decided, i checked online but nothing significant find out.Also this seems like it is a limitation on the OpenSearch cluster itself and the configuration of the cluster.
- Running single node Opensearch cluster in
docker-container, version:1.2.0 . Any documentation of standard cluster parameters will help. In future for
productionenv, will be using multi node opensearch cluster using
docker-swarm`.Is there maybe a way where you can not run the monitors every minute and make sure the monitors' schedules are not all the same, so they don't all run at the same time during each execution? I fear this cannot be avoided, as currently, 100+ monitors are having
trigger_interval
of1 min
and scan interval oflast 5 min
. Actually, same monitor parameters we are looking to generate alerts. In Future, we will be adding 100+ monitors of the same monitor condition, which will definitely result in the overlapping running of multiple monitors at the same time during each execution.
I am not getting errors until only 30 monitors are enabled in above configuration. Post 30 monitors alerting engine unable to run monitors.
Ideally,Single Opensearch Cluster will have 500 monitors, of same monitor condition,need to refactor performance issue. Do let me know, any workaround can make it work.
Thanks for the acknowledgment.
Ideally,Single Opensearch Cluster will have 500 monitors, of same monitor condition,need to refactor performance issue. Do let me know, any workaround can make it work.
Can you explain your use case? If they have the same monitor condition, why do you need 500 of the same monitor?
Can you explain your use case? If they have the same monitor condition, why do you need 500 of the same monitor?
We have 100's of IOT Sensors/devices installed, giving real-time feeds, though the trigger condition of each device is similar, the only change will be the device name given to each monitor resulting in the creation of 100s of monitors.
Sample monitor condition attached above.
I believe bucket level monitors fit your use case better and you can bucket the device name so you can have one monitor instead of 100s. documentation: https://opensearch.org/docs/latest/monitoring-plugins/alerting/monitors/#monitor-types
OS Version: 1.2.0
Alerting Plugin version:1.2.0
We are having 100+ monitors in alerting plugin which are having trigger condition to check every one min.
Getting Alerts of error in .opendistro-alerting-alert* index.
Error:
I changed script.max_compilations_rate from 75/m to 510/m but still getting same error. Anything else that can be done to mitigate ths error?
Ref link: Understanding and fixing “too many script compilations” errors in Elasticsearch
Logs:
Sample Monitor:
Snaps: