Skip to content

dynamic clusters misc fixes#473

Merged
mattklein123 merged 5 commits intomasterfrom
cds_misc_fixes
Feb 13, 2017
Merged

dynamic clusters misc fixes#473
mattklein123 merged 5 commits intomasterfrom
cds_misc_fixes

Conversation

@mattklein123
Copy link
Copy Markdown
Member

  1. httpConnPoolForCluster() can now be called when a cluster does not exist
    during normal operation (during router retry). Have it return nullptr in
    this case also. The router already handles the function returning nullptr
    so no other changes are needed.
  2. When we remove a cluster, we need to drain the http connection pools for
    hosts in the cluster.
  3. Correctly handle the cm initialize edge case where a cluster initialized,
    but then gets removed before overall initialization is complete.

fixes #460

1) httpConnPoolForCluster() can now be called when a cluster does not exist
   during normal operation (during router retry). Have it return nullptr in
   this case also. The router already handles the function returning nullptr
   so no other changes are needed.
2) When we remove a cluster, we need to drain the http connection pools for
   hosts in the cluster.
3) Correctly handle the cm initialize edge case where a cluster initialized,
   but then gets removed before overall initialization is complete.

fixes #460
@mattklein123
Copy link
Copy Markdown
Member Author

@lyft/network-team
@htuch this is somewhat related to what you have been working on in case you feel like giving it a quick review.

@htuch
Copy link
Copy Markdown
Member

htuch commented Feb 13, 2017

Based on my high level understanding of the underlying drain, seems good to me.

@mattklein123 mattklein123 merged commit 56744a0 into master Feb 13, 2017
@mattklein123 mattklein123 deleted the cds_misc_fixes branch February 13, 2017 21:56
rshriram pushed a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
wolfguoliang pushed a commit to wolfguoliang/envoy that referenced this pull request Jan 23, 2021
jpsim pushed a commit that referenced this pull request Nov 28, 2022
envoyproxy/envoy-mobile#489

Integrating https://github.com/rules-proto-grpc/rules_proto_grpc to unblock testing for our gRPC codec

Followed the instructions for integrating with java here:
https://github.com/rules-proto-grpc/rules_proto_grpc/tree/master/java

Signed-off-by: Alan Chiu <achiu@lyft.com>

Description: kotlin: Add simple grpc echo server/client
Risk Level: low
Testing: unit
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
envoyproxy/envoy-mobile#489

Integrating https://github.com/rules-proto-grpc/rules_proto_grpc to unblock testing for our gRPC codec

Followed the instructions for integrating with java here:
https://github.com/rules-proto-grpc/rules_proto_grpc/tree/master/java

Signed-off-by: Alan Chiu <achiu@lyft.com>

Description: kotlin: Add simple grpc echo server/client
Risk Level: low
Testing: unit
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: JP Simard <jp@jpsim.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.

cds: correctly drain conn pools when deleting clusters

3 participants