Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

envoy/registry: do not track disconnected proxies #4216

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

shashankram
Copy link
Member

Description:

Proxies are expected to disconnect when the corresponding
pods are recycled.
Since the cluster can go through a lot of churn, keeping
track of disconnected proxies results in additional
memory consumption and bookkeeping which is better avoided.
It is easy enough to know how many times a proxy has
reconnected to a control plane after a disconnect using
the osm_proxy_reconnect_count metric.

Affected area:

Functional Area
Control Plane [X]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change? no

@shashankram shashankram requested a review from a team as a code owner October 6, 2021 16:23
Proxies are expected to disconnect when the corresponding
pods are recycled.
Since the cluster can go through a lot of churn, keeping
track of disconnected proxies results in additional
memory consumption and bookkeeping which is better avoided.
It is easy enough to know how many times a proxy has
reconnected to a control plane after a disconnect using
the osm_proxy_reconnect_count metric.

Signed-off-by: Shashank Ram <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Merging #4216 (2d9dc11) into main (0309a0f) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4216      +/-   ##
==========================================
- Coverage   69.58%   69.55%   -0.03%     
==========================================
  Files         211      211              
  Lines       11424    11411      -13     
==========================================
- Hits         7949     7937      -12     
+ Misses       3426     3425       -1     
  Partials       49       49              
Flag Coverage Δ
unittests 69.55% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/debugger/proxy.go 7.31% <ø> (+0.17%) ⬆️
pkg/envoy/registry/registry.go 89.47% <ø> (-1.44%) ⬇️
pkg/envoy/registry/debugger.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0309a0f...2d9dc11. Read the comment docs.

@shashankram shashankram merged commit d0d5d97 into openservicemesh:main Oct 6, 2021
@shashankram shashankram deleted the proxy-unreg branch October 6, 2021 17:13
snehachhabria pushed a commit to snehachhabria/osm that referenced this pull request Oct 14, 2021
Proxies are expected to disconnect when the corresponding
pods are recycled.
Since the cluster can go through a lot of churn, keeping
track of disconnected proxies results in additional
memory consumption and bookkeeping which is better avoided.
It is easy enough to know how many times a proxy has
reconnected to a control plane after a disconnect using
the osm_proxy_reconnect_count metric.

Signed-off-by: Shashank Ram <[email protected]>
Signed-off-by: Sneha Chhabria <[email protected]>
allenlsy pushed a commit to allenlsy/osm that referenced this pull request Dec 28, 2021
Proxies are expected to disconnect when the corresponding
pods are recycled.
Since the cluster can go through a lot of churn, keeping
track of disconnected proxies results in additional
memory consumption and bookkeeping which is better avoided.
It is easy enough to know how many times a proxy has
reconnected to a control plane after a disconnect using
the osm_proxy_reconnect_count metric.

Signed-off-by: Shashank Ram <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants