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

refactor: Removed client monitoring #2595

Merged
merged 2 commits into from
Jun 25, 2020

Conversation

lenny-goodell
Copy link
Member

#1723 PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit subject follows the Conventional Commits spec
  • The commit message follows the EdgeX Contributor Guide
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • make test has completed successfully

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

For each depend service, each Service pings Consul every 15 seconds to get the latest URL which never changes.

Issue Number: #2594

What is the new behavior?

No longer monitor the client URLs. Just set the url went Client is created and use it.

Does this PR introduce a breaking change?

  • Yes
  • No

Are there any new imports or modules? If so, what are they used for and why?

No

Are there any specific instructions or things that should be known prior to reviewing?

Other information

@bnevis-i
Copy link
Collaborator

Does the affect consul's reporting whether the service is healthy or not?

@lenny-goodell
Copy link
Member Author

Does the affect consul's reporting whether the service is healthy or not?

Nope. Just removes services asking Consul for the current URL for a dependent service.

closes edgexfoundry#2594

Signed-off-by: lenny <leonard.goodell@intel.com>
@codecov-commenter
Copy link

Codecov Report

Merging #2595 into master will increase coverage by 0.09%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2595      +/-   ##
==========================================
+ Coverage   38.87%   38.97%   +0.09%     
==========================================
  Files         145      145              
  Lines       12826    12671     -155     
==========================================
- Hits         4986     4938      -48     
+ Misses       7560     7459     -101     
+ Partials      280      274       -6     
Impacted Files Coverage Δ
internal/core/command/init.go 0.00% <0.00%> (ø)
internal/core/data/init.go 0.00% <0.00%> (ø)
internal/core/metadata/init.go 0.00% <0.00%> (ø)
internal/security/secretstore/init.go 3.92% <0.00%> (-2.25%) ⬇️
...adata/operators/device_profile/value_descriptor.go 97.67% <0.00%> (-0.70%) ⬇️

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 803f94a...2ea1893. Read the comment docs.

@lenny-goodell lenny-goodell linked an issue Jun 23, 2020 that may be closed by this pull request
Copy link
Member

@tonyespy tonyespy left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@cloudxxx8 cloudxxx8 left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarcloud
Copy link

sonarcloud bot commented Jun 25, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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.

Remove client monitoring
6 participants