Skip to content
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

[BUG]Computing and storage separate deployment "show datanodes" don't show query node. #1966

Open
liikeuforever opened this issue Jan 27, 2024 · 4 comments
Assignees
Labels
type/bug Something isn't working

Comments

@liikeuforever
Copy link
Contributor

liikeuforever commented Jan 27, 2024

Describe the bug

Computing and storage separate deployment client ping query node ,and"show datanodes" don't show query node.
version: https://github.com/cnosdb/cnosdb-enterprise/commit/cca656f386e10a1e9cb59d6c360a7f67af99d791

To Reproduce

1 meta 2data
modify run_cluster.sh

"echo "*** start CnosDB server 8902......"
nohup ./target/debug/cnosdb run -M tskv --config ./config/config_8902.toml 
echo "*** start CnosDB server 8912......"
nohup ./target/debug/cnosdb run -M query --config ./config/config_8912.toml
"

./run_cluster.sh
cargo run --package client --bin cnosdb-cli -- -P 8912

public ❯ show datanodes;
+---------+-----------+-----------+---------+-----------+------------+------------+---------------------+
| node_id | host      | attribute | status  | disk_free | disk_total | location   | last_updated_time   |
+---------+-----------+-----------+---------+-----------+------------+------------+---------------------+
| 1001    | localhost | hot       | healthy | 93.84 GB  | 245.11 GB  | /dc1/rack1 | 2024-01-27 02:15:02 |
+---------+-----------+-----------+---------+-----------+------------+------------+---------------------+
Query took 0.025 seconds.

Expected behavior

No response

Additional context

No response

@liikeuforever liikeuforever changed the title [Bug]Computing and storage separate deployment "show datanodes" don't show query node. [BUG]Computing and storage separate deployment "show datanodes" don't show query node. Jan 27, 2024
@liikeuforever liikeuforever added the type/bug Something isn't working label Jan 30, 2024
@liikeuforever liikeuforever self-assigned this Feb 2, 2024
@liikeuforever
Copy link
Contributor Author

liikeuforever commented Feb 2, 2024

The command "show datanodes" should only display task and storage nodes. However, it would be helpful if we could also have a way to view query nodes, such as using the command "show nodes".

@liikeuforever
Copy link
Contributor Author

liikeuforever commented Mar 29, 2024

this is not a bug, so please close it, and add_query_node We'll flesh out the implementation later.
https://github.com/cnosdb/cnosdb-enterprise/pull/187/files

@Benxiaohai001
Copy link
Member

Waiting for community version 2.3, 2.4 and enterprise version 2.4 to be synchronized

@roseboy-liu
Copy link
Contributor

Indeed, in the storage-compute separation mode, it is necessary to keep track of the status of query nodes. Upon the startup of a query node, it needs to register with the metadata service. By using the "show node" command, you can query both the storage nodes and the query nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants