-
Notifications
You must be signed in to change notification settings - Fork 20
Make persistent containers #1
Comments
Hi, I actually do not want it to be persistent, since it should only be for testing during plugin development. So see it like Currently I am happy with the way it works. But you can feel free to fork an modify everything to your needs. This is now part of my release strategy, so I will not change it in the way it works, |
Makes complete sense - the persistent containers are for a different use-case. I would like to modify and add this option to your script, as well as a parameter for a new target version - perform a zero downtime upgrade. I honestly admire the work you have done, so I would certainly base the above on your script and images - if you allow it of course. If you do, what do you think would be the best way to fork the two? Do you think that making it modular somehow would be possible, so that future features on either path would be available for either use-case? |
Ok, sorry I was rather busy the last days due to the pre-release/release phase of one of my plugins. Since forking only the management script will not be enough. And relying on my docker-images is also not a good idea, since I want to freely be able to change their structure, even though I am always trying to maintain a stable API - I suggest you to propose a pull request, with your new features and I will see if I can include it into my script and from then on maintain it in future versions. I think it would be best if you could add another parameter, so that you can do:
And maybe then something like, (maybe you can come up with something better)
And think of the following Corner Cases/Acceptance Criteria:
I personally see a lot of side effects that could happen when cluster is persistent, so please try to think of that and provide proper documentation on what could happen. So I am waiting for your PR |
I've removed the
--rm
flag from docker run commands in the script, so that you can make a persistent cluster that then can be started via docker start at a later stage. If you could put a sleep 300 between scaling on "create", then you'd not need to--scale 1
on action=create, and cluster nodes would start up gradually. it will still work, but you need to docker stop/start nodes >1 so they sync up with the cluster properly.The text was updated successfully, but these errors were encountered: