We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to share a single table in to multiple nodes using Sharding , I have used this Doc
I need to share a single table in to multiple nodes using Sharding , which is not happening , it is writing only a single node always
SET citus.explain_all_tasks TO on; EXPLAIN ANALYZE SELECT * FROM events;
testdb=# EXPLAIN ANALYZE SELECT * FROM events; QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------- Custom Scan (Citus Adaptive) (cost=0.00..0.00 rows=100000 width=52) (actual time=38.927..38.928 rows=5 loops=1) Task Count: 32 Tuple data received from nodes: 290 bytes Tasks Shown: One of 32 -> Task Tuple data received from node: 0 bytes Node: host=192.168.1.100 port=5432 dbname=testdb -> Seq Scan on events_102040 events (cost=0.00..20.20 rows=1020 width=52) (actual time=0.005..0.006 rows=0 loops=1) Planning Time: 0.509 ms Execution Time: 0.032 ms Planning Time: 1.453 ms Execution Time: 38.974 ms (12 rows)
postgres=# SELECT * FROM pg_dist_node; nodeid | groupid | nodename | nodeport | noderack | hasmetadata | isactive | noderole | nodecluster | metadatasynced | shouldhaveshards --------+---------+---------------+----------+----------+-------------+----------+----------+-------------+----------------+------------------ 18 | 17 | 192.168.1.100 | 5432 | default | t | t | primary | default | t | t 1 | 0 | 192.168.1.101 | 5432 | default | t | t | primary | default | t | f 20 | 19 | 192.168.1.150 | 5435 | default | t | t | primary | default | t | t (3 rows)
Worker nodes list from both server.
postgres=# SELECT * FROM citus_get_active_worker_nodes(); node_name | node_port ---------------+----------- 192.168.1.150 | 5435 192.168.1.100 | 5432 (2 rows)
Database Postgres percona cluster
postgres=# SELECT VERSION(); version ------------------------------------------------------------------------------------------------------------------------------ PostgreSQL 15.7 - Percona Distribution on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit (1 row)
citus_version
postgres=# select citus_version(); citus_version ---------------------------------------------------------------------------------------------------- Citus 12.0.1 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit (1 row)
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Report
I need to share a single table in to multiple nodes using Sharding , I have used this Doc
More about the problem
I need to share a single table in to multiple nodes using Sharding , which is not happening , it is writing only a single node always
Steps to reproduce
Worker nodes list from both server.
Versions
Database Postgres percona cluster
citus_version
Anything else?
No response
The text was updated successfully, but these errors were encountered: