server - Tomcat manual load balancing: multiple domains or single one -


i hope questione doesn't sound trivial.

we develop web application in saas style deployed tomcat instance. in same virtual machine installed both db server app , tomcat. db in multitenant configuration, same schema replicated each our our customers, preserve data integrity.

we thinking of splitting configuration installing virtual machine divide number of customers between 2 machine instead of one, reducing problems half of our customers in case 1 of machine out maintenance , better distribute resources; sort of manual load balancing.

the problem if should buy domain new server , new customers (we insert new customers in new server) should type www.myapp2.com instead of old www.myapp.com , sounds ugly.

i took time sketch simple graph:

enter image description here

maybe can resolved server responding @ www.myapp.com manage login data , redirect user 1 of 2 servers.

or maybe messing , should investigate in proper load balancing solution proxy(not manual).

what best approach in modern industry?

thanks


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -