[英]How do you stop Azure Application Gateway creating new sessions every 30 seconds
I have a VM Scale Set setup behind a Azure Application Gateway which is load balancing web traffic between the 2 nodes in the scaleset which host a .net core web application. I have a VM Scale Set setup behind a Azure Application Gateway which is load balancing web traffic between the 2 nodes in the scaleset which host a .net core web application.
We have session affinity turned off and have moved sessions to a redis distributed cache.我们关闭了 session 关联,并将会话移至 redis 分布式缓存。
Now the problem is that every 30 seconds 2 new sessions gets created in the redis-cache.现在的问题是每 30 秒在 redis 缓存中创建 2 个新会话。 I believe this is the load balancer doing a health check.
我相信这是负载均衡器进行健康检查。 But since it creates 4 new sessions every minute, this becomes a problem since it fills upp redis.
但由于它每分钟创建 4 个新会话,这成为一个问题,因为它会填满 redis。
How do you avoid this problem?你如何避免这个问题? Anyone facing a similar issue?
任何人都面临类似的问题?
Unfortunately there is no way to stop AppGW in creating new session as this is used for health probe purpose.不幸的是,没有办法阻止 AppGW 创建新的 session,因为这用于健康探测目的。 You can increase the health probe interval appropriately such that the number of sessions will be less and also to make sure at the time of service failure the detection time is optimal.
您可以适当增加健康探测间隔,以减少会话数,并确保在服务失败时检测时间是最佳的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.