5 Replies Latest reply: Jan 10, 2012 7:27 AM by Jose Huerta RSS

load balanced - how to tell what servers user is on

KL NameToUpdate

Hi

always had a question on our soon to be live ITSM 7.6.04.  We have a load balancer - three web boxes - load balancer - 4 apps boxes and one db box.  When a user logs into the front end... how would be a way to tell what web & app server they are on?  he url has the virtual load balancer name in it...

 

Sure appreciate the help.

 

thanks kevin

  • 1. load balanced - how to tell what servers user is on
    Ravishankar Munukutla

    Hi Kevin,

     

    Please Refer to the post:

     

    https://communities.bmc.com/communities/docs/DOC-18162

    Page 15 from the above Doc

     

    "

    • Setup arsystem.response.hostip=true in Mid-Tier config.properties and restart Mid-Tier. This setting prints the Mid-Tier Host IP Address as the ARRESPONSEHOSTIP header in the HTTP Servlet Response. This can be used along with Fiddler for examining the HTTP Response Headers and for making sure that all Requests for a User Session are directed to the same Host IP Address. If all Requests for a User Session are not directed to the same Host IP Address, there can be a problem with Load Balancer settings."

     

    tTis will help from the client machine/browser using fiddler logs- a given request is redirected to which Mid-tier.

     

     

    Alternatively the logging can also be enabled at the Load Balancer level to know where the requests are getting re-directed too. ( The networking team that setup Load Balancer should help out with the LB logs)

     

    Thanks,

    Ravi

     

  • 2. load balanced - how to tell what servers user is on
    patchsk NameToUpdate

    For knowing the which midtier the user is connected to, we slightly modified the midtier login html page to add a hardcoded server name in it. The only down side with this is anytime you redploy midtier you need to redo these changes. And to to know the which arserver the midtier connected to, usually before 7.6.04 once the midtier connected to a arserver it will always connected to the same arserver untill the midtier or arserver is restarted.

    So we usually check the user logs in each arserver to verify which midtier is connected to which arserver.

    But with 7.6.04 it would be tricky becasue there is no need to maintain a session affinity between midtier and arserver. So these connections can be different from user to user.

  • 3. load balanced - how to tell what servers user is on
    Ron Pierce

    For the ARS App Servers you can view the License Management form on each named server and see who is on it.

  • 4. load balanced - how to tell what servers user is on
    KL NameToUpdate

    Hey patchsk:

     

    Would you have that bit of code by chance to share with me?

     

    thanks kevin

  • 5. load balanced - how to tell what servers user is on
    Jose Huerta

    To show the mid-tier name in the Patchsk's way is very easy. Just modify the login.jsp file in the mid-tier. Is HTML, and there is an special space to put whatever you want. You can add <p> Server 1</p> at one server and <p>Server 2</p> at the other server.