-
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
Worker node not being added #124
Comments
This happened to me; And now |
I created two PRs that aims to resolve this issue:
Once they are merged, this issue should be resolved |
I am currently using similar method to wait for db. i.e. using |
^ got the answer. Need to wait for worker nodes to run Currently I am using this script to check: # wait for worker nodes to be added to citus membership manager
while [ 0 == $(psql --username postgres --dbname ${POSTGRES_DB} --tuples-only --command "SELECT count(*) from master_get_active_worker_nodes();") ]; do
sleep 3s
done is there a better way? |
I think it is better to wait until all your worker nodes are registered, and ready to accept connections. If you distribute a table when only one worker node is active, your queries may be slower than expected due to the uneven distribution of your data |
Ok Cool. Thanks Any future nodes will be added by SELECT rebalance_table_shards(); |
I want to remind you that shard rebalancing is an enterprise feature and is not available in the docker setup. |
Well, surprised, did not know that. |
You can see https://www.citusdata.com/product/comparison for a comparison of features between Citus community, Citus enterprise and Citus on Azure |
Hi! |
docker-compose.yml
Everything seems to work, except no active nodes are returned when running
SELECT master_get_active_worker_nodes();
The text was updated successfully, but these errors were encountered: