Forum Discussion

kridsana_52318's avatar
kridsana_52318
Icon for Nimbostratus rankNimbostratus
Feb 02, 2015

How to config 2 Built-in Monitor in pool and use script on top of it?

From this picture scenario

 

How Can I make Availability of this pool member Online ?

 

(Assume https monitor is for web-tier and MySQL is for app-tier)

 

I want if https monitor available >> Availability of this member is Online even though MySQL is down.

 

And If https monitor down >> Availability of this member is Offline even though MySQL is Up.

 

Do I need to add additional script monitor to this member? or there is no way to do.

 

Thank you very much

 

PS. I assign two monitor for monitoring purpose only but for functional we can just monitor web-tier.

 

4 Replies

  • Set Availability requirement to "at lest 1" is not good because

     

    If https monitor down >> Availability of this member is still Online if MySQL is Up.

     

    Client will fail in connectivity.

     

  • we found the solution on test server about add another one monitor for web-tier and set Availability requirement to "at lest 2"

     

    This time it will be monitor 1 >> check tcp port of web-service

     

    monitor 2 >> check contenct of web-service

     

    monitor 3 >> check tcp port of app-server

     

    If we set "at least 2" , we can make sure that Availability of pool is Online when Web-service is up. and offline when web-service is down.

     

    App-server is cluster so we ignore it even though it's down.

     

    Is this practical solution? Please recommend us Thank you very much

     

  • Hi teepan123,

     

    in case you want to use the same server for different services you can place it in different pools (even if the same service port is used).

     

    You assign pool/service specific monitors and this way you will get a valid pool member availability state.

     

    Thanks, Stephan

     

  • Thank you Stephan

     

    I do as your advice to create a new pool for monitoring app only, and assign monitor separately.

     

    Everything is fine, client can access normally and admin can see If service still working?

     

    Cheers!