开发者

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

开发者 https://www.devze.com 2023-03-25 12:25 出处:网络
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 adju

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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号