« Previous Next »

Thread: Custom ARR LB algorithm logic for Querystring rule

Last post 11-12-2009 7:04 PM by anilr. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 11-06-2009, 6:48 PM

    • jessev
    • Not Ranked
    • Joined on 11-06-2009, 11:40 PM
    • Posts 1

    Custom ARR LB algorithm logic for Querystring rule

    Hello; I have a website which has two request types per view:

    1) Is an aspx page with a querystring.

    2) Is a "file" which has a filename of the querystring from (1) base-64 encoded. This "file" is rewritten to page.aspx?query=<filename> by the LB machines.

     

    A client will request (1), then (2). The problem is that both (1) and (2) need to be routed to the same application server.

    The reasons for this setup are necessary, but difficult to explain, sorry. Given these requirements, we tried using IP-based affinity (our client doesn't respect cookie affinity). This worked until we were behind a CDN. Now the client IP is hidden, there are no client-based request headers, and so all requests are hitting the same server.

    Ideally, I'd like to be able to hash both (1) and (2) to the same randomly chosen application server. This seems like it would require some base64 logic in the Querystring rule, but maybe not.

     Any thoughts? Thanks!

  • 11-12-2009, 7:04 PM In reply to

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

    Re: Custom ARR LB algorithm logic for Querystring rule

    You will have to write a module (native or managed) to extract the common value from the url and set a server-variable with that value.  You can then configure ARR to do server-variable hash-based load balancing where the server-variable used for hashing is the one your module is setting.

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