Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHcloud deploy is slow #79

Closed
cben opened this issue Feb 20, 2015 · 1 comment
Closed

RHcloud deploy is slow #79

cben opened this issue Feb 20, 2015 · 1 comment

Comments

@cben
Copy link
Owner

cben commented Feb 20, 2015

Following up from #57 (comment).
git push rhcloud takes ~7min :-(
Luckily it doens't cause downtime because I'm scaled to at least 2 gears, and they're upgraded one by one.

I could add .openshift/markers/hot_deploy file which I thought is bad because it doesn't restart server.
But Openshift runs nodejs under https://www.npmjs.com/package/supervisor (unless I add .openshift/markers/use_npm, which also prevents hot_deploy) which should restart on hot deploy:

A little supervisor script for nodejs. It runs your program, and watches for code changes, so you can have hot-code reloading-ish behavior, without worrying about memory leaks and making sure you clean up all the inter-module references, and without a whole new require system.

The deploy code is at https://github.com/openshift/origin-server/blob/master/cartridges/openshift-origin-cartridge-nodejs/bin/control

@cben
Copy link
Owner Author

cben commented Sep 3, 2015

This slowness is root cause of #115 (deploys / scaling fail by timing out).
Closing this as a separate issue.

@cben cben closed this as completed Sep 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant