Services in calicovpp support different load balancing types, and can use specific fields in hash calculation for load balancing.
This is implemented using service annotations, here is an example:
apiVersion: v1
kind: Service
metadata:
name: my-service
annotations:
"cni.projectcalico.org/vppLBType": "maglev"
"cni.projectcalico.org/vppHashConfig": "symmetric, iproto, dstport, srcport"- Possible values for
vppLBTypeareecmp,maglev,maglevdsrmaglevimplements consistent hashing for better redundancy and scalability.maglebdsroffers Direct Server Return to accelerate server response times. vppHashConfigis a list of elements fromsrcport, dstport, srcaddr, dstaddr, iproto, reverse, symmetric, that the forwarding of packets is based on.
For troubleshooting, please consult [troubleshooting.md]