Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sql): add configuration property sql.healthIntervalMillis #1275

Merged

Conversation

dbyron-sf
Copy link
Contributor

that controls how often the health endpoint refreshes information when using sql. It defaults to 30 seconds to match the behavior before this change.

Information about cache status for each object type (e.g. pipelines, applications, etc.) contributes to the response from front50's /health endpoint. This change makes it possible to reduce the likelihood that the cache has refreshed, but the response from the /health endpoint doesn't reflect that.

that controls how often the health endpoint refreshes information when using sql.  It
defaults to 30 seconds to match the behavior before this change.

Information about cache status for each object type (e.g. pipelines, applications, etc.)
contributes to the response from front50's /health endpoint.  This change makes it
possible to reduce the likelihood that the cache has refreshed, but the response from the
/health endpoint doesn't reflect that.
/**
* How frequently to refresh health information (e.g. for the health endpoint).
*/
var healthIntervalMillis: Long = Duration.ofSeconds(30).toMillis()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this could be a Duration and converted to other duration units on demand.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. I still need to wrap my head around what that means for variable names and how config files look to do it that way.

@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Jun 30, 2023
@mergify mergify bot added the auto merged label Jun 30, 2023
@mergify mergify bot merged commit e824522 into spinnaker:master Jun 30, 2023
4 checks passed
@dbyron-sf dbyron-sf deleted the configurable-sql-health-interval branch June 30, 2023 19:59
dbyron-sf added a commit to dbyron-sf/spinnaker.io that referenced this pull request Jun 30, 2023
dbyron-sf added a commit to spinnaker/spinnaker.io that referenced this pull request Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants