英文:
Timescale DB Create distributed hypertable
问题
I want to create a PoC of a distributed hypertable, using TimescaleDB and docker compose.
I've set up a docker compose with two instances and created the respective table in both instances.
Let's say instance A is the access node (main node)
Before executing the query SELECT create_distributed_hypertable('sensor_data', 'time', 'sensor_id');
, I added the other data node successfully by running: SELECT add_data_node('australia-node', host => 'au-db', password => 'XXXXX', database => 'XXXXX');
Also, by querying SELECT * FROM timescaledb_information.data_nodes;
, the australia-node is the only entry in this view, meaning that it is recognized by the access node
When I try to run SELECT create_distributed_hypertable('sensor_data', 'time', 'sensor_id');
, I receive the following error:
SQL Error [08001]: ERROR: could not connect to "australia-node" Detail: fe_sendauth: no password supplied
Note: I execute all the queries using DBeaver SQL editor.
英文:
I want to create a PoC of a distributed hypertable, using TimescaleDB and docker compose.
I've set up a docker compose with two instances and created the respective table in both instances.
Let's say instance A is the access node (main node)
Before executing the query SELECT create_distributed_hypertable('sensor_data', 'time', 'sensor_id');
, I added the other data node successfully by running: SELECT add_data_node('australia-node', host => 'au-db', password => 'XXXXX', database => 'XXXXX');
Also, by querying SELECT * FROM timescaledb_information.data_nodes;
, the australia-node is the only entry in this view, meaning that it is recgonized by the access node
When I try to run SELECT create_distributed_hypertable('sensor_data', 'time', 'sensor_id');
, I receive the folllowing error:
SQL Error [08001]: ERROR: could not connect to "australia-node" Detail: fe_sendauth: no password supplied
Note: I execute all the queries, using DBeaver SQL editor
答案1
得分: 1
Once your instances are up and running, you need to configure authentication so that data nodes accept connections from the access node. This is what we refer to as Multi-node authentication.
Since it is a PoC, go for Trust authentication, which trusts all incoming connections, and then create a distributed hypertable.
Reference: https://docs.timescale.com/self-hosted/latest/multinode-timescaledb/multinode-auth/
英文:
Once your instances are up and running, you need to configure authentication so that data nodes accept connections from access node. This is what we refer as Multi-node authentication.
Since it is a PoC, go for Trust authentication which trusts all incoming connections and then create distributed hypertable
Reference: https://docs.timescale.com/self-hosted/latest/multinode-timescaledb/multinode-auth/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论