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

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -