Results 1 to 9 of 9

Thread: Can't get multiple instances to work

  1. #1
    Join Date
    Sep 2010
    Posts
    8

    Default Can't get multiple instances to work

    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?
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2008
    Posts
    19

    Default

    I've experienced the same problem. Whats the alternative? Deploy the app separately multiple times and put them behind a load balancer?

  3. #3
    Join Date
    Sep 2010
    Posts
    8

    Default

    That won't work, because then you will have two different databases for the two different apps :-(

  4. #4
    Join Date
    Jul 2008
    Posts
    19

    Default

    I don't see any reason why you can't point both instances at the same database. No?

  5. #5
    Join Date
    Sep 2010
    Posts
    8

    Default

    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.

  6. #6
    Join Date
    Jul 2008
    Posts
    19

    Default

    Really...thats not good.

    Can someone on the Spring team help us on this?

  7. #7
    Join Date
    Sep 2010
    Posts
    8

    Default

    I don't know if the read the threads, or if there is a way to flag this tread for their attention. What do you think?

  8. #8
    Join Date
    Jul 2008
    Posts
    19

    Default

    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.

    I didn't test it extensively though.

  9. #9
    Join Date
    Jun 2005
    Posts
    102

    Default

    Sorry about the delayed response.
    The errors in the tomcat log indicate that your application cannot connect to the database.

    When you launch the deployment you should specify JVM options containing something similar to this:

    -DyourApplicationSpecificSystemProperty=${databaseP rivateDnsName}

    Cloud Foundry will then substitute the correct hostname.

    Or you should access the database using dbmaster has the hostname.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •