Why is Azure not dispatching HTTP requests on one of my two instances?

前端 未结 2 1002
刺人心
刺人心 2021-01-26 10:38

I have an Azure web role with two instances. Both instances are \"ready\" - running okay.

On my desktop I have four instances of the same program running simultaneously

2条回答
  •  灰色年华
    2021-01-26 10:47

    Looks like this behavior is due to IIS "keep alive" (. Because of "keep alive" once a client has been served by an instance it gets stuck with that instance.

    Disabling "keep alive" removes that and requests now get to all instances more or less randomly. MSDN says disabling "keep alive" may reduce performance but for the sake of testing concurrent operation it would be okay.

提交回复
热议问题