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
{{ message }}
This repository was archived by the owner on May 25, 2021. It is now read-only.
We are getting alerts raised by Sensu shortly after deployments that are caused by how we are handling check scripts ans Sensu client's inability to pick up check definition changes quickly enough.
For example:
Deployment 1 defines a check with a script called my-check.sh
Deployment agent creates a Sensu check definition as such:
Previous directory /temp/deployments/1 is deleted by deployment agent
Sensu client takes a long time to pick up this change and results in the check failing due to the fact that /temp/deployments/1/healthchecks/sensu/my-check.sh no longer exists on disk.
Potential solutions:
Deployments should automate the silencing of checks until we know for sure that Sensu client has picked up the latest definitions. How we know that? I am not sure.
Deployment agent can more local check scripts to the deployment location of an application, e.g. /opt/application_name/healthchecks/sensu/my-script.sh. When redeploying, we would end up overwriting the existing script to ensure that the checks currently defined still work.
We are getting alerts raised by Sensu shortly after deployments that are caused by how we are handling check scripts ans Sensu client's inability to pick up check definition changes quickly enough.
For example:
my-check.sh{ "checks" : { "check-name": { "command": "/temp/deployments/1/healthchecks/sensu/my-check.sh" } } }{ "checks" : { "check-name": { "command": "/temp/deployments/2/healthchecks/sensu/my-check.sh" } } }/temp/deployments/1is deleted by deployment agent/temp/deployments/1/healthchecks/sensu/my-check.shno longer exists on disk.Potential solutions:
/opt/application_name/healthchecks/sensu/my-script.sh. When redeploying, we would end up overwriting the existing script to ensure that the checks currently defined still work.