Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Support for node-specific routing in API paths #81

Closed
jimmie opened this issue Nov 3, 2021 · 2 comments
Closed

Support for node-specific routing in API paths #81

jimmie opened this issue Nov 3, 2021 · 2 comments

Comments

@jimmie
Copy link
Member

jimmie commented Nov 3, 2021

If we intend to a single load balancer across all nodes' registry (which we need to do because of the DNS limitations) the destination node needs to be part of the request URL so the LB can accurately route the request to the appropriate registry deployment. While largely meaningless to the registry service once routed, the request will still contain the node specification (since it cannot be 'filtered' by the LB). The service hence must disregard but tolerate this part of the path.

The current path w/o the node must remain supported.

@jimmie jimmie self-assigned this Nov 3, 2021
@jimmie jimmie changed the title Need to add tolerance of node-specific routing to API paths Support for node-specific routing in API paths Nov 3, 2021
@jimmie
Copy link
Member Author

jimmie commented Nov 5, 2021

Sean and Eugene made the excellent suggestion of putting the node in an HTTP header - x-request-node. Verified that AWS LB rules support routing based on header values. QED. Thanks @nutjob4life & @tdddblog.

Will close this ticket once we have the rules in place and tested.

No header value will route to EN node.

@jimmie
Copy link
Member Author

jimmie commented Nov 16, 2021

Tested and working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants