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

update results of show cluster #2203

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions docs/sql/commands/sql-show-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,25 @@ slug: /sql-show-cluster
<link rel="canonical" href="https://docs.risingwave.com/docs/current/sql-show-cluster/" />
</head>

Use the `SHOW CLUSTER` command to show the details of your RisingWave cluster, including the address of the cluster, its state, the parallel units it is using, and whether it's streaming data, serving data or unschedulable.
Use the `SHOW CLUSTER` command to display various details of your cluster, such as the cluster's address, type, state, and starting time. It will also indicate the number of parallel units the cluster is utilizing and whether it is currently streaming data, serving data, or unschedulable.

## Syntax

```sql
SHOW CLUSTER;
```

import rr from '@theme/RailroadDiagram'

export const svg = rr.Diagram(
rr.Sequence(
rr.Terminal('SHOW CLUSTER'),
rr.Terminal(';')
)
);

<drawer SVG={svg} />

## Example
## Examples

```sql
SHOW CLUSTER;

------RESULT
Addr | State | Parallel Units | Is Streaming | Is Serving | Is Unschedulable
----------------+---------+------------------------+--------------+------------+------------------
127.0.0.1:5688 | RUNNING | 3000, 3001, 3002, 3003 | true | true | false
(1 row)
Id | Addr | Type | State | Parallel Units | Is Streaming | Is Serving | Is Unschedulable | Started At
----+----------------+--------------------------+---------+----------------+--------------+------------+------------------+---------------------------
0 | 127.0.0.1:5690 | WORKER_TYPE_META | RUNNING | | | | | 2024-05-07 07:57:18+00:00
1 | 127.0.0.1:5688 | WORKER_TYPE_COMPUTE_NODE | RUNNING | 0, 1, 2, 3 | t | t | f | 2024-05-07 07:57:21+00:00
2 | 127.0.0.1:4566 | WORKER_TYPE_FRONTEND | RUNNING | | | | | 2024-05-07 07:57:24+00:00
3 | 127.0.0.1:6660 | WORKER_TYPE_COMPACTOR | RUNNING | | | | | 2024-05-07 07:57:24+00:00
(4 rows)
```
Loading