« Previous Next »

Thread: Problems getting loadbalancing working with ARR

Last post 10-29-2009 1:55 PM by anilr. 14 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (15 items)

Sort Posts:

  • 10-15-2009, 3:12 AM

    • kriks
    • Not Ranked
    • Joined on 10-15-2009, 2:56 AM
    • Posts 7

    Problems getting loadbalancing working with ARR

    Hi,

    My first attempt to create a server farm hasnt went so well.

    Goal is to get a loadbalanced site with arr in two contentservers.

    First quick overview of my deployment

    ARR server (no sites, plain IIS7 + ARR) hosting 1 farm with name http://site.com

    IIS1 server (1 site, works - under binding http://site1.com, also has a  binding http://site.com)

    IIS2 server (1 site, works - under binding http://site2.com, also has a  binding http://site.com)

    URL rewrite rule is default one, created with the server farm

    address http://site.com is forwarded to ARR-s IP.

     

    No traffic is reaching  the content servers, http://site.com shows "page cannot be displayed".

    when i do a health check on farm, the url http://site.com/test.htm gets "Pass" status from both contentservers, but  in monitoring and managment tab, both contentservers are in "unknown" state.

    What im doing wrong?

    Thanks,

    Kriks

  • 10-15-2009, 1:40 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Problems getting loadbalancing working with ARR

    Based on above, I don't think the request is even reaching the ARR server.  What ip is mapped to site.com in DNS?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 10-19-2009, 2:16 AM In reply to

    • kriks
    • Not Ranked
    • Joined on 10-15-2009, 2:56 AM
    • Posts 7

    Re: Problems getting loadbalancing working with ARR

     Hi,

     IP mapped to site.com is ARR servers IP.

     

    kriks

  • 10-22-2009, 8:14 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Problems getting loadbalancing working with ARR

    Can you look at the IIS/httperr logs on the ARR server to see if the request is even making it to ARR and what the status/sub-status code is for it?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 10-23-2009, 1:36 AM In reply to

    • kriks
    • Not Ranked
    • Joined on 10-15-2009, 2:56 AM
    • Posts 7

    Re: Problems getting loadbalancing working with ARR

     Hi there are no httperr or IIS logs in the ARR server, i listened to http traffic and the web request definetly comes in from address site.com to ARR server, it doesnt get forwarded.

     

    Kriks

  • 10-26-2009, 2:32 PM In reply to

    Re: Problems getting loadbalancing working with ARR

    Do you have a health test setups for the content servers?  That will confirm if you are routing content from the ARR server to the content nodes in the server farm.

    You might also confirm that the health status for the content servers on the Monitoring and Management form is reporting Available and Healthy.

    Jim

  • 10-27-2009, 3:09 AM In reply to

    • kriks
    • Not Ranked
    • Joined on 10-15-2009, 2:56 AM
    • Posts 7

    Re: Problems getting loadbalancing working with ARR

     Hi,

    Health test is set up and verifying testurl gives "Pass" on both nodes.

    Monitoring and managment gives Availability and Health status "Unknown" on both nodes.

    Here are my rewrite rule and webfarm conf from applicationhost.config from server ARR

     <rewrite>
                <globalRules>
                    <rule name="ARR_http://site.com_loadbalance" patternSyntax="Wildcard" stopProcessing="true">
                        <match url="*" />
                        <action type="Rewrite" url="http://site.com/{R:0}" />
                    </rule>
                </globalRules>
            </rewrite>

    ----------------------

        <webFarms>
            <webFarm name="site.com" enabled="true">
                <server address="IIS1" enabled="true">
                    <applicationRequestRouting weight="100" />
                </server>
                <server address="IIS2" enabled="true">
                    <applicationRequestRouting weight="100" />
                </server>
                <applicationRequestRouting>
                    <healthCheck url="http://site.com/test.aspx" />
                    <loadBalancing algorithm="WeightedRoundRobin" />
                </applicationRequestRouting>
            </webFarm>
            <applicationRequestRouting>
                <hostAffinityProviderList>
                    <add name="Microsoft.Web.Arr.HostNameRoundRobin" />
                    <add name="Microsoft.Web.Arr.HostNameMemory" />
                </hostAffinityProviderList>
            </applicationRequestRouting>
        </webFarms>

     

  • 10-27-2009, 5:17 AM In reply to

    Re: Problems getting loadbalancing working with ARR

    I had the same problem but i found a temporary fix.

    Go on ARR server, open IIS7, create site.com website with bindings and with home folder at c:\inetput\wwwroot, restart IIS and everything will start working.

    http://dotnetpanel.com
  • 10-27-2009, 1:30 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Problems getting loadbalancing working with ARR

    kriks, what is the output of (from an elevated command prompt)

    %windir%\system32\inetsrv\appcmd.exe list sites

    %windir%\system32\inetsrv\appcmd.exe list apppools

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 10-28-2009, 4:18 AM In reply to

    • kriks
    • Not Ranked
    • Joined on 10-15-2009, 2:56 AM
    • Posts 7

    Re: Problems getting loadbalancing working with ARR

     Hi,

     creating site.com in ARR server made it work. Thanks

     

    But another issue came up, when i restart all the apppools of site.com in all servers, first time after logging in the application behind site.com (.net 2.0 app), i get an error, if i refresh the page application opens like it should:

    502 - Web server received an invalid response while acting as a gateway or proxy server.

    There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

     

  • 10-28-2009, 8:03 AM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Problems getting loadbalancing working with ARR

    What is the win32 error code for this (from the IIS log on the ARR machine).

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 10-28-2009, 9:44 AM In reply to

    • kriks
    • Not Ranked
    • Joined on 10-15-2009, 2:56 AM
    • Posts 7

    Re: Problems getting loadbalancing working with ARR

    Hi,

    I get 502.3 one or two times (probably once on one node).
    And another problem has emerged, after staying idle for a while a event is raised in ARR machines eventlog:

    - System

      - Provider

       [ Name]  Application Request Routing
     
      - EventID 1000

       [ Qualifiers]  32768
       Level 3
       Task 0
       Keywords 0x80000000000000
     
      - TimeCreated

       [ SystemTime]  2009-10-28T13:02:11.000000000Z
       EventRecordID 1398
       Channel Application
       Computer ARR
       Security
     
    - EventData

       IIS1
       site.com
       health check status code failure

    and same event for another contentserver (IIS2), then 502.4 is the status code.
  • 10-28-2009, 1:21 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Problems getting loadbalancing working with ARR

    502.3 is the status/sub-status codes - what is the win32-error code in the log?

    Also, for the health check failure, can you find the corresponding request on your content server and see what status code it actually replied with?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 10-29-2009, 2:26 AM In reply to

    • kriks
    • Not Ranked
    • Joined on 10-15-2009, 2:56 AM
    • Posts 7

    Re: Problems getting loadbalancing working with ARR

     Hi,

    win32-error codes are as follows (i copied corresponding logstring also just in case)

    for 502.4 its 0

    2009-10-28 09:32:01 W3SVC1 ARR ARR-IP GET / X-ARR-CACHE-HIT=0 80 - CLIENT-IP HTTP/1.0 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+InfoPath.2;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04324.17;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) - - site.com 502 4 0 1658 609 0

     --------------------------------------

    for 502.3 its 12002

    2009-10-28 08:12:55 W3SVC1 ARR ARR-IP POST /Login.aspx X-ARR-CACHE-HIT=0&X-ARR-LOG-ID=eda101e8-2c1d-49a3-b34f-50ae0d760ed1 80 - CLIENT-IP HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+2.0.50727;+.NET+CLR+1.1.4322;+.NET+CLR+3.0.04506.30;+FDM;+InfoPath.2;+MS-RTC+EA+2;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+OfficeLiveConnector.1.3;+OfficeLivePatch.0.0) ARRAffinity=7d7e4657277664df860112621c41b9b77aac1925c7b1f515a3feb15e058a2adc;+ASPSESSIONIDQSQDCSSR=IEFDHOPDLCIKOBLPPGNMEBBB;+ASP.NET_SessionId=utx0mcieozjfxxfzljynn345 http://site.com/Login.aspx site.com 502 3 12002 1639 1942 29125

    -----------------------------------

    For health check:

    2009-10-28 22:35:16 W3SVC1 IIS1 IIS1-IP GET /Login.aspx - 80 - ARR-IP HTTP/1.1 - - - site.com 200 0 64 0 106 15
    2009-10-28 22:36:01 W3SVC1 IIS1 IIS1-IP GET /Login.aspx - 80 - ARR-IP HTTP/1.1 - - - site.com 500 0 64 5840 106 15038

     

    Hope this helps You.

     Thanks,

    kriks

  • 10-29-2009, 1:55 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Problems getting loadbalancing working with ARR

    Seems like you are hitting timeout for the live requests - you can increase the timeout - assuming that your end users are willing to wait for more than 30 secs for the page to load - otherwise, you probably need to add more capacity on the backend.

    For the health check failure, you can use failed request tracing to see why you are hitting 500 error with the health check request.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (15 items)
Microsoft Communities