openshift-cartridge-play2 icon indicating copy to clipboard operation
openshift-cartridge-play2 copied to clipboard

It is not work with auto scaling

Open almothafar opened this issue 8 years ago • 3 comments

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 avatar Dec 20 '16 12:12 almothafar

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.

almothafar avatar Dec 22 '16 11:12 almothafar

@almothafar Did you sent a pull request?

miguelbaldi avatar Dec 26 '16 16:12 miguelbaldi

@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

almothafar avatar Dec 26 '16 17:12 almothafar