tomcat - Which is the best way to emulate a balancer locally? -


enviroment:

  • so: windows
  • app server: 2 x tomcat 7.0.32 (both run locally)

my application deployed on 2 tomcats, each 1 configured unique port (8081 , 8082).

i need way configure new port (8080) , load balance between 2 tomcats automatically.

currently using functionality tcp/ip monitor provides eclipse, allows me manually routing.

i need configuration reproduce error occurs in prod cluster. i'm considering using tomcat balancer, i'm not sure best option. has better idea?

thanks!

nginx upstream should best option you. here. configuration straightforward , can use either round-robin or ip_hash (useful sticky sessions), whichever scenario suits best.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -