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

Prevent consumers from sending requests to servers outside of their zone. #342

Open
willgraf opened this issue May 18, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@willgraf
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Multizone clusters are nice because they allow for redundant deployments. However, sending requests outside of the current zone comes with a fee (multizone egress fee). For the consumers, we are sending some large payloads across the network, so this can really add up.

Describe the solution you'd like
Ideally, the consumers will be able to send their requests ONLY to a tf-serving instance in their own zone.

@willgraf willgraf added the enhancement New feature or request label May 18, 2020
@dylanbannon
Copy link
Contributor

dylanbannon commented May 18, 2020

One idea is to have separate services that target pods using node information (every node has its zone encoded as an attribute), in addition to their standard targeting mechanisms:
https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service

If we have, say, tf-serving-zone1 and tf-serving-zone2 services, then we can somehow tell our redis-consumers to send their traffic to the appropriate service. I'm not totally sure how this would happen, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants