-
Notifications
You must be signed in to change notification settings - Fork 102
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
Recommended pattern for database creation #14
Comments
Also, it might be worth noting that I'm running Docker native Version 1.13.0-rc3-beta32 (14523) on Mac OS X |
For anyone who comes across this, I did following to get me by for now:
tl;dr Only use these images for local development. Don't use them in production. |
Hey, this ticket slipped through the cracks of our support in December… I'm going to give it a look later today. I may have some answers around As far as the seeding goes; I do think it'll be safer to populate during startup. For "the workers don't always connect to the master"… is this what you meant? The primary connections go from master to worker. There are scenarios wherein the workers connect to master, but they're triggered less often. Can you provide repro steps? |
@jasonmp85 Thanks for looking into this. I haven't been able to find deterministic steps to reproduce the problem so I'm thinking it's some kind of race condition. I have a docker compose file that's not entirely dissimilar to the example one. I have references to a couple of other containers I'm using (Zookeeper, Kafka). I'm using In the situations where the second worker doesn't register, the logs on the Cittus config node look something like this:
Manually running |
It's been a while since I've looked over the issues in this repo. Were there any further questions? We're doing some work on our own |
Not at this time. I think we can close this. Thank you! |
Hi @enragedginger & @jasonmp85 , I seem to be running into problems with docker-compose and POSTGRES_USER/PASSWORD variables too... Was this ever looked into and fixed or was it just closed due to lack of need/interest? |
Hi @RVN-BR, it's been awhile, but I believe I closed it due to lack of interest. |
See this: https://github.com/citusdata/docker/blob/master/Dockerfile#L35
I am having the same issue. But manually running the script seems counter intuitive and I believe somewhat diminish the use of docker like tools. There should be a proper way or event to notify that node initialization is complete. and then custom scripts should be run. @jasonmp85 comments please
See this: #124 (comment) |
@mubaidr I agree. However it was not so trivial, and slightly hard to figure out readiness reporting and detection in the docker service dependencies. I created 2 seperate PRs that aim to address this problem. Feel free to comment on these: |
Thanks and yes, I too ended up using |
Hello,
Thanks for putting this project together. What's the recommended pattern for database creation for local development with Citus and Docker?
I have a SQL script that creates my database tables--some of which are Citus distributed tables. I'd like to run a command using docker compose to start up a master and two workers, and run the SQL create script. What's the recommended approach for doing this?
Right now, I've updated the docker compose script to look something like this:
The Dockerfile for my custom Citus image looks something like this:
During startup, the master is unable to connect to the workers while attempting to run the
create_distributed_table
command. The logs on the master read something like this:Am I missing something here or is my approach entirely wrong?
The text was updated successfully, but these errors were encountered: