Is the network load balancer of a web farm affected by GC strain?

限于喜欢 提交于 2019-12-24 01:17:36

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/6931831/is-the-network-load-balancer-of-a-web-farm-affected-by-gc-strain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!