Hide Forgot
Description of problem: As per US1463 I should be able to scale up an app, but I am not able to scale up the app. Version-Release number of selected component (if applicable): devenv_1643 How reproducible: Always Steps to Reproduce: 1. Create a scaleable app - curl -k -H "Accept: application/xml" --user "<user>:<pass>" https://localhost/broker/rest/domains/<user>/applications -X POST -d name=<appname> -d cartridge=php-5.3 -d scale=true 2. Scale up the app - curl -k -H "Accept: application/xml" --user "<user>:<pass>" https://localhost/broker/rest/domains/<user>/applications/<appname>/events -X POST -d event=scale-up 3. Actual results: Scale up fails - <title>502 Proxy Error</title> </head><body> <h1>Proxy Error</h1> <p>The proxy server received an invalid response from an upstream server.<br /> The proxy server could not handle the request <em><a href="/broker/rest/domains/cgole10/applications/p1/events">POST /broker/rest/domains/cgole10/applications/p1/events</a></em>.<p> Reason: <strong>Error reading from remote server</strong></p></p> <hr> Expected results: App should scale up. Additional info:
Had a discussion with Rajat, and he figured this is an mcollective issue. Still debugging the issue..
The mcollective on this build suspiciously takes long. The request times out from passenger proxy. The mcollective calls to some hooks sometimes take a minute. Total request time being ~200 seconds. Thats a lot. Tested this with new build - cant reproduce the problem. The total request time on new build is ~40 seconds. Scale up times are ~25 seconds. The request for scaling is heavy and needs to be looked into in the future anyway, though.
THis bug was filed against a micro instance. Scaling up and down works fine on a large instance.