网络场的网络负载均衡器是否会受到 GC 压力的影响?
网络场中一台计算机的资源是否会受到以垃圾收集模式=“服务器模式”运行的应用程序的影响,以便网络负载均衡器会对此进行调整?
Can the resources of one machine in a web farm be affected to such a point by an app running with Garbage Collection Mode = "server mode" such that the network load balancer will adjust for it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
网络负载均衡器对GC并不“敏感”,从某种意义上说,它不知道GC何时何地发生。它可能会尝试通过检查机器上的“负载”来执行一些奇怪的操作,但通常这会损害性能,并且简单的循环法对于大多数情况来说是更好的方法。
在企业层面,人们通常完全忽视GC,它在宏观层面上太复杂了。
Network load balancer is not "sensitive" to GC, in a sense it doesn't know when or where it happens. It may attempt to do some funky stuff with checking the "load" on the machine, but usually it hurts performance and a simple round robin turns out to be better a approach for most of the scenarios.
At the enterprise level one usually totally disregards GC, it is too much complexity on the macro level.
我认为您正在寻找垃圾收集通知。这将使您能够以最小的努力实现这样的系统。
参考此处:http://msdn.microsoft.com/ en-us/library/cc713687(v=vs.110)
如果您使用高端 NLB,您可能需要查看支持 .NET GC 的规范通知,你可能会感到惊讶。
I think you are looking for Garbage Collection notifications. This will allow you to implement such a system with a minimum effort.
Reference here: http://msdn.microsoft.com/en-us/library/cc713687(v=vs.110)
If you are using high end NLB's you may want to watch in the specs for supporting .NET GC Notifications, you might be surprised.