You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expired silenced entries will be deleted, no matter how many there are.
Current Behavior
{"component":"store","error":"internal error: etcdserver: too many operations in txn request","level":"error","msg":"error deleting expired silenced entries","time":"2021-08-10T20:57:55Z"}
It seems that when the number of silenced entries for an entity pass a certain threshold, trying to delete all of them in a transaction produces an error.
Possible Solution
Batch the operations in smaller amounts.
The text was updated successfully, but these errors were encountered:
However, ours is different in that it can sometime cause the actual sensu-backend service to fail starting. We believe that this was caused by someone accidentally silencing everything. We noted that we had over 800 keys in the /sensu.io/silenced keyspace.
You have to carefully increase the etcd --max-txn-ops flag, because if it is too high, you can start reaching context deadline exceeded territory due to transactions taking too long, I noticed this when initializing keepalives for namespace/node.
Caveats:
We are running an 3 node external etcd 3.5.0 (chef managed).
We are running a community build at 6.4.0 (chef managed).
@tarcinil yeah this is an unfortunate side effect of trying to batch silenced operations into transactions. Sensu needs to be patched to use multiple batches instead of trying to do everything in a single txn.
Expected Behavior
Expired silenced entries will be deleted, no matter how many there are.
Current Behavior
It seems that when the number of silenced entries for an entity pass a certain threshold, trying to delete all of them in a transaction produces an error.
Possible Solution
Batch the operations in smaller amounts.
The text was updated successfully, but these errors were encountered: