-
Notifications
You must be signed in to change notification settings - Fork 695
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
Invocation of master_add_node() fails if citus wasn't created on a worker beforehand #3879
Comments
We have the same problems. |
@heldopslippers CREATE DATABASE <db_name>;
-- ssh to workers and invoke
-- CREATE DATABASE <db_name>;
-- \c <db_name>
-- CREATE EXTENSION citus;
-- ALTER <user_name> PASSWORD '<old_pass>';
\c <db_name>
CREATE EXTENSION citus;
SELECT master_add_node('worker_1_ip', 5432);
SELECT master_add_node('worker_2_ip', 5432); Also, for some reason a password for a user that invokes |
argh! Thanxs! You saved me a week probably ;) |
If you use different passwords between coordinator and worker, then it's best to disable that with |
The expectation is that the worker is up-and-running and has the Citus extension installed at master_add_node time. This is normally when reference tables are replicated, types are created, etc. We're gradually expanding the number of things that Citus replicates to workers, so even on an otherwise empty cluster some synchronization is done. I think one thing that would be convenient for cluster set up is a function like |
If there is such the expectation now, it is better to adjust the docs accordingly, because the described way to create new databases is outdated. |
@marcocitus |
Makes sense, I opened an issue in our docs repo. |
@marcocitus Are citus, changes password for workers by |
Description
Before
9.3.0
we used the following script to create a new database on an existing server:Expected behavior
Database is created
Actual behavior
With
9.3.0
master_add_node
fails withThe text was updated successfully, but these errors were encountered: