How to run only 1 backend plugin in a cluster environment

I have a cluster of Grafana servers behind the load balancer. The Grafana instances share the same Postgres database. One of the datasources is enabled for alerts (backend plugin).

I noticed all Grafana instances run the backend plugin daemons for the same alerts, resulting duplicate alert queries.

Is there any way to configure the Grafana cluster so that only one backendend plugin runs at a time for the same datasource instance?

It turned out it’s a known issue. Torkel said

Alerting rules will be executed from all your grafana servers

You can disable alert rule execution on one server with this setting: