sensu-go icon indicating copy to clipboard operation
sensu-go copied to clipboard

Round robin checks don't function properly with multiple subscriptions

Open echlebek opened this issue 3 years ago • 4 comments

Expected Behavior

Specifying multiple subscriptions in round robin checks causes a union of all the agents with those subscriptions to become the ring that the check will execute in.

Current Behavior

Unique rings for each subscription are created and used.

Possible Solution

Either support unions of subscriptions (very hard or impossible under current design), or don't let people set multiple subscriptions on round robin checks. Additionally, don't let users set entity subscriptions on round robin checks.

echlebek avatar Jul 20 '21 18:07 echlebek

TODO:

  1. Document the current round-robin scheduler behaviour when more than one subscription is used
  2. Log a strong message (warn level) when more than one subscription is used for a round-robin check
  3. Incorporate this into the next iteration of check configuration/schedulring (i.e. Jerbs)

portertech avatar Jul 20 '21 20:07 portertech

"JERBS"

calebhailey avatar Jul 20 '21 20:07 calebhailey

Note to self: call out in the release notes that the "fix" for now is documentation + logging, but a future version may introduce new config validation rules...

calebhailey avatar Jul 21 '21 19:07 calebhailey

I think we should definitely make it a validation error in the next API version. Perhaps it's time to start tracking these "little things"?

echlebek avatar Jul 21 '21 19:07 echlebek