Hi,
we are using consul connect with envoy as sidecar proxy to connect our services platform. All our services run AWS Spot instances, so there is a mix of instances sizes serving the same service with different number of CPU and available RAM.
In order to send traffic to the service proportionally to the instance capacity for example based on number of CPUs we would like to configure weighted round robin in consul+envoy in a way that for example, the weight of each service instance is the number of CPUs that instance has.
- 2 CPU: Weight 2
- 4 CPU: Weight 4
(this will allow us to be more efficient in terms of resources usage and also to be more consistent with the autoscaling policies)
Checking Consul documentation i came across https://www.consul.io/docs/discovery/services#dns-srv-weights that seems to reply with the weight when doing SRV DNS requests.
Does this setting also apply to the weighted round robin load balancing strategy that envoy supports? If not, is there any other way with consul+envoy to do this or is not posible at this moment.
Thanks you,