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

It is not work with auto scaling #32

Open
almothafar opened this issue Dec 20, 2016 · 3 comments
Open

It is not work with auto scaling #32

almothafar opened this issue Dec 20, 2016 · 3 comments

Comments

@almothafar
Copy link

I have many issues with scaling this cartridge, I'm using zipped distribution file, when the application receives man hits, the gears got scaled but the problem the new gear is just like new gear not clone anything from original gear, so the variables in .profile and any system variables will not be shared, also the problem I don't see my git repository cloned.

Not only this, when I see HAProxy the new gear is down, and using ssh it says Distribution file not found.

The Critical part is the whole application go down after that!

Any suggestion for this issue to solve?

@almothafar
Copy link
Author

I solved the auto scaled gears issue in my fork: https://github.com/almothafar/openshift-cartridge-play2

The problem in the newly created gear is:

  • .profile file will not be the same in newly created gear (the new gear will get the first version of .profile)
  • the new gear will be created as new gear and will not get the data pushed with git inside app-root directory, instead, the data can be found inside app-deployment directory so you need to start from there, not from root one.

You may need to check my fork (I have changed the control file mainly, but you can compare with git), let me know what you think.

@miguelbaldi
Copy link

@almothafar Did you sent a pull request?

@almothafar
Copy link
Author

almothafar commented Dec 26, 2016

@miguelbaldi I can do pull request but in my fork only support play 2.4.x and later.
And changed README to use my version.

if it is ok, I can do pull request, otherwise, you can use my fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants