Skip to content

cluster manager: add drainConnections() API#17747

Merged
mattklein123 merged 1 commit intomainfrom
cm_drain_pools_api
Aug 18, 2021
Merged

cluster manager: add drainConnections() API#17747
mattklein123 merged 1 commit intomainfrom
cm_drain_pools_api

Conversation

@mattklein123
Copy link
Member

This will allow Envoy Mobile to force drain all cluster connection pool
connections on network change, foregrounding after a long background,
etc.

Risk Level: Low
Testing: New integration test
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

This will allow Envoy Mobile to force drain all cluster connection pool
connections on network change, foregrounding after a long background,
etc.

Signed-off-by: Matt Klein <mklein@lyft.com>
Copy link
Contributor

@goaway goaway left a comment

Choose a reason for hiding this comment

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

From the Envoy Mobile perspective this looks great. String-based lookup is especially helpful, so we don't have to track Cluster references.

Thanks @mattklein123!

Copy link
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

LGTM

@mattklein123 mattklein123 merged commit 5909e49 into main Aug 18, 2021
@mattklein123 mattklein123 deleted the cm_drain_pools_api branch August 18, 2021 16:15
mpuncel added a commit to mpuncel/envoy that referenced this pull request Aug 19, 2021
* main:
  Fix for fuzz tests failing due to invalid corpus paths (envoyproxy#17767)
  kafka: fix integration test (envoyproxy#17764)
  Fix typo in cluster.proto (envoyproxy#17755)
  cluster manager: add drainConnections() API (envoyproxy#17747)
  kafka broker filter: move to contrib (envoyproxy#17750)
  quiche: switch external dependency to github (envoyproxy#17732)
  quiche: implement stream idle timeout in codec (envoyproxy#17674)
  Update c-ares to 1.17.2 (envoyproxy#17704)
  Fix dns resolve fuzz bug (envoyproxy#17107)
  Remove members that shadow members of the base class (envoyproxy#17713)
  thrift proxy: missing parts from the previous PR (envoyproxy#17668)
  thrift-proxy: cleanup ConnectionManager::ActiveRpc (envoyproxy#17734)
  listener: extra warning for deprecated use_proxy_proto field (envoyproxy#17736)
  kafka: add support for metadata request in mesh-filter (envoyproxy#17597)
  upstream: add all host map to priority set for fast host searching (envoyproxy#17290)
  Remove the support for `hidden_envoy_deprecated_per_filter_config` (envoyproxy#17725)
  tls: SDS support for private key providers (envoyproxy#16737)
  bazel: update rules_foreign_cc (envoyproxy#17445)

Signed-off-by: Michael Puncel <mpuncel@squareup.com>
junr03 added a commit that referenced this pull request Aug 19, 2021
Commit Message: cluster manager - overload drainConnections
Additional Description: expands on #17747 with an overloaded method that drains all conn pools for all clusters in the cluster manager.
Risk Level: low - new API
Testing: integration test

Signed-off-by: Jose Nino <jnino@lyft.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.

4 participants