简体   繁体   English

你如何停止 Azure 应用程序网关每 30 秒创建新会话

[英]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.

相关问题 创建新的角色提供程序时如何停止此错误? - How do I stop this error when creating a new Role Provider? 最小化浏览器时,asp mvc每30秒重新加载一次页面 - asp mvc reload page every 30 seconds when browser is minimized 如何设计需要为每个新客户定制的Web应用程序? - How do you design a web application that needs to be customized for each new client? 如何使用Azure Active Directory授予应用程序对新用户帐户的访问权限? - How do I grant application access to new user accounts using Azure Active Directory? 如何检查控制器的每个动作的会话? - How to check sessions on every action of a controller? 如何将WebAPI修改为MVC应用程序? - How do you modify a WebAPI into an MVC application? 你需要做些什么才能让会话在MVC5中运行? - What do you have to do to get sessions working in MVC5? Knockout.js - 使用新值每5秒更新一次页面 - Knockout.js - Update page every 5 seconds with new value 对于Azure Web应用程序,如何监视安全威胁流量? - For Azure Web Applications, how do you monitor Security Threat traffic? 您如何看待Azure应用服务的特定“数据输入”负载? - How do you see the specific “data in” load for an Azure App Service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM