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
feat: introduce rw_worker_nodes, rw_parallel_units and support show clusters command #10656
Conversation
Some examples of a local run: dev=> select * from rw_worker_nodes;
id | host | port | type | state | parallelism | is_streaming | is_serving | is_unschedulable
------+-----------+------+--------------+---------+-------------+--------------+------------+------------------
3001 | 127.0.0.1 | 5688 | COMPUTE_NODE | RUNNING | 4 | t | t | f
(1 row)
dev=> show clusters;
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)
dev=> select * from rw_parallel_units ;
id | worker_id
------+-----------
3000 | 3001
3001 | 3001
3002 | 3001
3003 | 3001
(4 rows) |
Codecov Report
@@ Coverage Diff @@
## main #10656 +/- ##
==========================================
- Coverage 70.22% 70.19% -0.03%
==========================================
Files 1280 1282 +2
Lines 220315 220452 +137
==========================================
+ Hits 154718 154753 +35
- Misses 65597 65699 +102
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
src/frontend/src/catalog/system_catalog/rw_catalog/rw_sources.rs
Outdated
Show resolved
Hide resolved
src/frontend/src/catalog/system_catalog/rw_catalog/rw_worker_nodes.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, up to you @BugenZhao
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Related #8803.
rw_worker_nodes
andrw_parallel_units
:show clusters
:columns
inrw_sources
to array type ofvarchar
and remove columnprimary_keys
.arg_type_ids
inrw_functions
to array type ofinteger
.Checklist
./risedev check
(or alias,./risedev c
)Documentation
Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.
Release note
rw_worker_nodes
andrw_parallel_units
.SHOW CLUSTERS
.primary_keys
inrw_sources
.