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

config: finish warming only after named response #6151

Merged

Conversation

ramaraochavali
Copy link
Contributor

Description: This PR changes the way cluster warming works and finishes warming only after a named response i.e a ClusterLoadAssginment response for the cluster being warmed. This happens consistently both in init/updated warming cases.
Risk Level: Medium
Testing: Added automated tests to test the new behaviour.
Docs Changes: N/A
Release Notes: Updated
Fixes #5168

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
@ramaraochavali
Copy link
Contributor Author

@ramaraochavali
Copy link
Contributor Author

@mattklein123 @htuch @snowp implemented as discussed in the doc. PTAL.

Regarding doc updates, I think the cluster warming section here https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/cluster_manager.html?highlight=cluster%20warming#cluster-warming correctly represents the expected behaviour.

I will update xDS protocol doc (including guidance on renaming) in a follow-up PR.

@ramaraochavali
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: coverage (failed build)

🐱

Caused by: a #6151 (comment) was created by @ramaraochavali.

see: more, trace.

@dio dio requested a review from htuch March 3, 2019 14:17
@dio dio assigned snowp Mar 3, 2019
@htuch htuch self-assigned this Mar 4, 2019
@htuch
Copy link
Member

htuch commented Mar 4, 2019

Looks good code wise. A few things to consider:

  1. Should we config guard? It does change behavior.
  2. Can you add references to Empty EDS prevents LDS and RDS requests #4485 and the rollback to your commit message, so we have a commit trail.
  3. We need to get @rfaulk looped in on this, to make sure his concerns are addressed. He is a Googler, so I will reach out to him internally and bring this to his attention.

@ramaraochavali
Copy link
Contributor Author

ramaraochavali commented Mar 4, 2019

Should we config guard? It does change behavior.

My personal opinion - I think we should not because this is the desired behavior we want and

  • The warming documentation linked above states clearly the expected behavior of cluster warming
  • This fix does not invalidate/contradict with any of the existing docs though it is a change in behavior. We have not documented any where that warming would be complete with a ClusterLoadAssignment response that does not reference a cluster.

But open to it if others feel it is best to add the config.

Can you add references to #4485 and the rollback to your commit message, so we have a commit trail.

Sorry this is not clear to me. Do you want me to push a empty commit with references to this?

We need to get @rfaulk looped in on this, to make sure his concerns are addressed. He is a Googler, so I will reach out to him internally and bring this to his attention.

Thank you. That makes sense.

…d because of envoyproxy#4485 via envoyproxy#4490

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
@ramaraochavali
Copy link
Contributor Author

nm on 2, added references.

@htuch
Copy link
Member

htuch commented Mar 5, 2019

I chatted with @rfaulk and we're good to go with this PR, we'll make the required changes internally to deal with this. @costinm FYI, this may have Pilot side implications, unclear.

I don't feel that strongly about config guarding, I'll let @alyssawilk who is our new config guard police provide thoughts.

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
@ramaraochavali
Copy link
Contributor Author

@htuch Thank you.

@mattklein123 mattklein123 self-assigned this Mar 5, 2019
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Approved, contingent on approval from another @envoyproxy/senior-maintainers, since this is technically a behavioral change and might warrant guarding.

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

I think I'm OK without a config guard here. IMO the previous behavior was super confusing and could be considered a bug.

Thanks @ramaraochavali for working through this!

@mattklein123 mattklein123 merged commit 0a450fb into envoyproxy:master Mar 6, 2019
@ramaraochavali ramaraochavali deleted the fix/warming_consistency branch March 7, 2019 02:26
htuch pushed a commit that referenced this pull request Mar 12, 2019
As a follow-up to #6151 , this PR updates xds docs.

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
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.

None yet

4 participants