-
Notifications
You must be signed in to change notification settings - Fork 1.5k
gcp: document gcp-routes service interdependency #3512
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,18 @@ resource "google_compute_address" "cluster_ip" { | |
| resource "google_compute_health_check" "api_internal" { | ||
| name = "${var.cluster_id}-api-internal" | ||
|
|
||
| // CAUTION: the gcp-routes mechanism must be _faster_ than this value: | ||
| // | ||
| // Otherwise, local client traffic will go to the GCP LB until the | ||
| // gcp-routes mechanism is done rerouting, and therefore back to the | ||
| // local node in 1/3 of cases, which is blackholed (due to missing | ||
| // hairpinning support). | ||
| healthy_threshold = 3 | ||
| // CAUTION: the gcp-routes mechanism must be _slower_ than this value: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hrm. If both
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You assume that the gcp-routes mechanism is symmetric. It isn't:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So in theory:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But this might be an issue, cc @squeed: gcp-routes only polls every 5s. So |
||
| // | ||
| // Otherwise, local client traffic will go to the GCP LB until the LB | ||
| // endpoint is deactived, and therefore back to the local node in 1/3 | ||
| // of cases, which is blackholed (due to missing hairpinning support). | ||
| unhealthy_threshold = 3 | ||
| check_interval_sec = 2 | ||
| timeout_sec = 2 | ||
|
|
||
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.
Nit,
Can you maybe add docs/dev/gcp readme that details this and point to that file here?
Otherwise this causes noise here...
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 can put the link into the readme. But I definitely want to keep this warning here. It's too easy to change this and break all the sensitive timing.
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.
seems like good enough for approvers and reviewers
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 do what you suggest. But for the record, I don't think it is clever to move documentation into the readme.
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.
There is no readme yet. Feel free to take over this PR and create it. For me this comment is more than adequat.
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.
since #3537 merged, can we update this PR
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 don't see how #3537 is related to my added comment. This gcp specific, about their strange network setup. #3537 gives generic timing advice.