-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Setting Up In Swarm #27
Comments
Hi, @sstubbs. Thanks a lot for your kind comments. It should work fine in Swarm (and indeed, Kubernetes, too). How exactly that looks, however, depends on your intended topology, and potentially some stuff about your own setup. It isn't really possible to provide a single file which would work for everyone. With reasonably up-to-date Docker, though, using the modern Docker Swarm (as opposed to the old project), then something like the files already there for You should be setting Could I please confirm which version of the Docker Hub images you're using? (I presume you're using them, not building the container yourself from scratch?) There's no point in using one older than a few weeks ago, as I vastly improved the healthchecks and networking, whilst still providing an older Postgres-XL version (but with the latest patches installed from upstream). Also, could I please ask for more information about what exactly fails, and at which stage? Do the images load? Note that you'll need to configure the cluster manually using the instructions in the I recommend that, if you haven't installed it before, you start with an example using Docker Compose and running the |
p.s. Your starting-point should probably be here: |
OK thanks a lot. I'll do that and get back to you with what I find. Everything you say makes a lot of sense. I tried both the source and the prebuilt containers. |
Thank you very much. I will try again with what you have said and let you know if I have any issues. |
This issue can be closed. It works perfectly. I will run it in my dev environment for a couple months before I try it in staging. I will let you know once it's all up and running and if I run into any issues. |
Excellent; glad to hear it. I would be interested in hearing more about your final setup. |
Hi,
Firstly I would like to say what an awesome project. I have been trying alternatives and looking at this architecture for some time but haven't been successful in creating a reusable deployment of them in such a clean way as you have done here.
I am trying to test this in a swarm. I am happy to help wherever I can with this project as I think this is something that has been sorely missed in the postgres community.
I am trying to set it up in swarm mode just on one machine for the time being. However only the GTM starts if I start it like
docker stack deploy --compose-file docker-compose.image.yml postgresxl
My first thought was that the network local might not work in swarm mode so I changed it to overlay in the docker-compose file like this
however it's still not working. I'm happy to dig into it a bit more and perhaps create a separate yml file for swarm if necessary but perhap is there something simple I'm not doing?
Thanks
The text was updated successfully, but these errors were encountered: