I understand that using comsistentHash setting of loadBalancer in DestinationRule, I can implement sticky routing in Istio.
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: sticky-svc
spec:
host: sticky-svc.default.svc.cluster.local
trafficPolicy:
loadBalancer:
consistentHash:
httpHeaderName: x-user
EOF
How do I auto-scale the sticky routing. If one client calls me with 1000 rps I want to route the requests to a larger pool of pods, as opposed to another client that calls me with 10 rps.