Skip to content

gcp: document gcp-routes service interdependency#3512

Closed
sttts wants to merge 1 commit intoopenshift:masterfrom
sttts:sttts-gcp-routes-docs
Closed

gcp: document gcp-routes service interdependency#3512
sttts wants to merge 1 commit intoopenshift:masterfrom
sttts:sttts-gcp-routes-docs

Conversation

@sttts
Copy link
Copy Markdown
Contributor

@sttts sttts commented Apr 27, 2020

The readiness probes for the internal gcp LBs must match the gcp-routes timing values.

Today:

Note: the latter is wrong (too slow) for the health case. To be fixed in MCO in a follow-up.

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign patrickdillon
You can assign the PR to them by writing /assign @patrickdillon in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

openshift-ci-robot commented Apr 27, 2020

@sttts: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/tf-fmt d263c2e link /test tf-fmt
ci/prow/e2e-aws-upgrade d263c2e link /test e2e-aws-upgrade
ci/prow/e2e-ovirt d263c2e link /test e2e-ovirt
ci/prow/e2e-aws-scaleup-rhel7 d263c2e link /test e2e-aws-scaleup-rhel7
ci/prow/e2e-aws d263c2e link /test e2e-aws

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

resource "google_compute_health_check" "api_internal" {
name = "${var.cluster_id}-api-internal"

// CAUTION: the gcp-routes mechanism must be _faster_ than this value:
Copy link
Copy Markdown
Contributor

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...

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Contributor

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.

// IMPORTANT: <link>

seems like good enough for approvers and reviewers

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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.

// 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:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hrm. If both healthy_threshold and unhealthy_threshold are 3, how can the former be faster than the gcp-routes mechanism while the latter is slower than that same gcp-routes mechanism?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

@sttts sttts Jun 10, 2020

Choose a reason for hiding this comment

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

So in theory:

  • 3*2s (LB noticing green readyz) > 1*2s (gcp-routes noticing green readyz)
  • 3*2s (LB noticing red readyz) < 8*2s (gcp-routes noticing red readyz)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But this might be an issue, cc @squeed:

https://github.com/openshift/machine-config-operator/pull/1670/files#diff-c8e870b664ab100f0b50218e3fdd5d46R143

gcp-routes only polls every 5s. So 1*2s could become 1*2s+5s which is bigger than 3*2s.

@abhinavdahiya
Copy link
Copy Markdown
Contributor

Closing this as it has stalled for very long. Please feel free to re-open in case you intent to keep working on it, or consider tracking the work in an issue if this requires agreement for implementation.

/close

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@abhinavdahiya: Closed this PR.

Details

In response to this:

Closing this as it has stalled for very long. Please feel free to re-open in case you intent to keep working on it, or consider tracking the work in an issue if this requires agreement for implementation.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants