I am trying to deploy my application with multiple instances option enabled, but without any success. As soon as I start I get a red exclamation mark for health of the context and red exclamation marks for the context root for the Apache web server and application servers (tc Server) (see attached screenshot).
In the cloudfoundry server log it first tries to connect to port 8080, which fails. As soon as it tries to connect to port 80 it gets 503 - Service Temporarily Unavailable (see attached log file).
In the application log I get loads of ContextLoader and JDBC exceptions (see attached log file).
I've tried to restart with no effect. Does anyone have any suggestions on how to get multiple instances working?
I share you're thoughts, that would have been great! But as it is, the startup script in cloudfoundry first stopps the active database before deploying the app. If this step was removed then you could do what you suggested.
Yeah Im not sure. I emailed cloud foundry support with something similar about load balancing with Amazon load balancer and have not received a response.
I did try deploying with multiple instances 2 nights ago and it seemed to work. I was also able to add and remove app servers through the GUI.