Description
Expected Behavior
When receiving a SIGTERM, sensu backend keeps applying filters on events processed until the whole backend is properly stopped.
Current Behavior
While shutting down, sensu backend executes handlers for events that should be filtered by custom filters, but are not.
Possible Solution
Maybe the components are not stopped in the right order (?)
Steps to Reproduce (for bugs)
Sensu backend is running on a Kubernetes cluster.
Deleting the pod running sensu backend container is enough to see some events being sent to handler.
Context
We are running sensu on an EKS cluster based on spot instances.
When AWS reclaims an instance, the pod is deleted in order to be rescheduled elsewhere.
We are running about ~400 agents with an avg ~15 checks on each and each time a node is reclaimed we get a load of 10 to 30 unwanted "OK" events on our alerts dedicated slack channel.
This adds some noise on our monitoring system.
Your Environment
- Sensu version used: sensu-backend v6.1.2 OSS
- Installation method: docker
- Operating System and version: kubernetes 1.17 (EKS)