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

[orc8r][service_registry] Add cache to service registry service #4648

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

hcgatewood
Copy link
Contributor

Summary

We're getting rate limited trying to reach the kube-apiserver for service queries. This PR adds a cache to the service_registry service, updated with configurable frequency, which service_registry's gRPC methods can use instead of going over the network.

One notable quirk: we're using service_registry.yml as both the generic orc8r service registry file, as well as the service-specific config file for service_registry service. Should be fine though, since the service registry configs are scoped under the services key

Test Plan

  • update relevant test
  • test in staging

Additional Information

  • This change is backwards-breaking

@magmabot magmabot added component: agw Access gateway-related issue component: cwag CWAG related issues labels Jan 29, 2021
Signed-off-by: Hunter Gatewood <hgatewood@gmail.com>
@mpgermano mpgermano added the apply-v1.4 Needs to be applied to v1.4 release branch as well label Feb 2, 2021
Copy link

@mpgermano mpgermano left a comment

Choose a reason for hiding this comment

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

LGTM

@mpgermano mpgermano merged commit 521f176 into magma:master Feb 2, 2021
themarwhal pushed a commit that referenced this pull request Feb 2, 2021
Signed-off-by: Hunter Gatewood <hgatewood@gmail.com>
@themarwhal themarwhal added the backported-v1.4 Has been backported to v1.4 release branch label Feb 2, 2021
HannaFar pushed a commit to HannaFar/magma that referenced this pull request Feb 3, 2021
…a#4648)

Signed-off-by: Hunter Gatewood <hgatewood@gmail.com>
Signed-off-by: HannaFar <hannafarag159@gmail.com>
@karthiksubraveti
Copy link
Contributor

closes #4622

chandra-77 pushed a commit to chandra-77/magma that referenced this pull request Mar 30, 2021
…a#4648)

Signed-off-by: Hunter Gatewood <hgatewood@gmail.com>
@hcgatewood hcgatewood deleted the sr_cache branch July 8, 2021 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apply-v1.4 Needs to be applied to v1.4 release branch as well backported-v1.4 Has been backported to v1.4 release branch component: agw Access gateway-related issue component: cwag CWAG related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants