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

kontena/lb should sort overlapping KONTENA_LB_VIRTUAL_PATH services to forward requests to the most specific route #3269

Open
SpComb opened this issue Feb 13, 2018 · 0 comments · May be fixed by kontena/kontena-loadbalancer#45

Comments

@SpComb
Copy link
Contributor

SpComb commented Feb 13, 2018

If you have a default service with KONTENA_LB_VIRTUAL_PATH=/, and another service service with KONTENA_LB_VIRTUAL_PATH=/foo, the LB may forward requests for /foo/... to the default service, not the server service.

As an example, this kind of generated config will not route any requests to the healthcheck-test-500-server backend service:

   acl host_healthcheck-test-500-default_virtual_path url_beg /
   acl host_healthcheck-test-500-server_virtual_path url_beg /healthcheck-test-500
   use_backend healthcheck-test-500-default if host_healthcheck-test-500-default_virtual_path
   use_backend healthcheck-test-500-server if host_healthcheck-test-500-server_virtual_path

The routing of requests for /foo depends on the order of the generated configs... I'm not sure if this is currently even deterministic?

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

Successfully merging a pull request may close this issue.

1 participant