PR is welcome. You can refer to the sticky implementation of ingress-nginx
https://github.com/kubernetes/ingress-nginx/tree/master/rootfs/etc/nginx/lua/balancer

15717900 <15717...@qq.com> 于2021年3月24日周三 上午11:21写道:
>
> hello,
>
>
> &nbsp; &nbsp; &nbsp;The current solution is to set hash_on is 
> vars_combinations and choose $remote_ Addr and a value in the cookie to 
> simulate cookie sticky, but in the VPN scenario, because the remote_addr is 
> the same, this way will lead to load imbalance, and there is no other way to 
> achieve cookie sticky load balancing effect.
>
>
> &nbsp; &nbsp; &nbsp;I suggest adding cookie sticky as a native implementation 
> to the product code, or providing an official recommended configuration 
> standard. Thank you very much.
>
>
> Looking forward to answer,thanks

Reply via email to