Closed maskshell closed 6 years ago
@sunadm To merge Services into one with the same host is useful for some test cases. For example, if you have two different version of services, you can set the the same VIRTUAL_HOST and later scale up one service and scale down another. In such a case, you can control the percentage of the user to be forwarded to different versions of your services.
As the merge is based on pure string comparison, you can disable the feature by making a slightly change of the envvar. For example, using cookie-route.mydomain.com
in one service and http://cookie-route.mydomain.com
in another.
Consider this haproxy config sample:
this can route traffic by client's cookie value, and based on same domain name.
it is useful for canary release process ---- we can choose a part of "specific" users such as with same user tag to test the specific version of service.
but in the current implementation,