-
Notifications
You must be signed in to change notification settings - Fork 241
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
Add healthcheck_mode to service config #194
Conversation
@@ -495,6 +496,7 @@ def load_service_namespace_config(service, namespace, soa_dir=DEFAULT_SOA_DIR): | |||
# and there's other things that appear in the smartstack section in | |||
# several cases. | |||
key_whitelist = set([ | |||
'healthcheck_mode', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised this is it? Don't we need something like line 522?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't took like that's necessary because line 515 adds everything in the whitelist to the configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
configure_nerve in nerve tools will use this config, and it will default to the mode if it's not present.
@fede1024 I'm ok with the small change, but in paasta if a service specifies this mode, seems like we should take advantage of it and adjust our healthchecks accordingly? |
I think this is ok to ship. @solarkennedy here is the corresponding commit for nerve-tools. This is a consequence of
I think we're actually okay here. We already use the |
@fede1024 can you merge/rebase master and we can see how the tests look? |
9113bc5
to
7b4d8a1
Compare
It's now rebased on master. Unit tests and integration tests look fine on my box. |
Add healthcheck_mode to service config
Merged. |
The healthcheck_mode option was added to nerve-tools, but it is not actually loaded from the config file since the 'healthcheck_mode' key is not in the whitelist.