已答复 Azure Load Balancer

  • lunes, 05 de marzo de 2012 18:11
     
     

    Hi,

    In the following scenario on premises I have one application www.myapp.com running on 2 front ends behind load balancer.

    If I build the same scenario in Azure ... 2 instances, behind load balancer ... is there a way you can make some redirection rules at the load balancer level ... so if user try to access www.myapp.com/search, the load balancer redirects the user to www.bing.com or wherever else ?

    Or how redirection can be set in windows azure so if user try to access a defined rule, than the user request is redirected to a custom page from load balancer level, so the request don't hit the application ?

    Merci!

Todas las respuestas

  • lunes, 05 de marzo de 2012 18:24
    Moderador
     
     Respondida

    IMHO, that's less of a load balaner issue then it is a URL redirct via htp headers.

    Unfortunately, today there is no way to add custom rules to the Azure load balancers. But what you *might* be able to do is configure IIS within your hosted instances to attempt this behavior via a custom header of some type. But I've never attempted it and don't have any real guidance I can provide on doing it.

  • lunes, 05 de marzo de 2012 19:16
     
     

    Hi Alex,

    Brent is right, this is something you'll need to do in IIS in your web role. Depending on what you want to do you have 2 options:

    Sandrino

  • lunes, 05 de marzo de 2012 19:26
     
     

    Hi,

    Thanks for your answer ...

    Yep I know about the IIS, but I was just asking if you can apply rules to load balancer in Azure ... we (networking colleagues) kinda do this way in our on premise environment ... if a request to resource x arrives at load balancer and there is a rule (at load balancer level) that says: for this resource x redirect to site Y or whatever, the load balancer will redirect the user/browser to Y instead of passing the request to our application/IIS ...

  • martes, 06 de marzo de 2012 7:30
    Moderador
     
     Respondida

    Hi,

    As Brent points out that we have no control over the load balancer.

    In addition, each instance of the same role will behave exactly the same. If you want them to have different behaviors, please use multiple roles. For example, you can use a particular role to dispatch requests to other roles based on your rules.

    Best Regards,

    Ming Xu.


    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact msdnmg@microsoft.com.
    Microsoft One Code Framework