Skip to content

Commit

Permalink
doc: profiling remote compute nodes (#7426)
Browse files Browse the repository at this point in the history
Approved-By: BugenZhao

Co-Authored-By: Yuhao Su <yuhaosu@outlook.com>
Co-Authored-By: Bugen Zhao <i@bugenzhao.com>
Co-Authored-By: Yuhao Su <31772373+yuhao-su@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 18, 2023
1 parent 55d82fd commit f0918d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs/cpu-profiling.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# CPU Profiling Guide

## Profiling on host
Share an easy-to-use profiler and flamegraph tool: https://github.com/koute/not-perf.git

Record samples:
Expand All @@ -13,3 +14,12 @@ Generate flamegraph:
```shell
nperf flamegraph perf.data > perf.svg
```

## Profiling remote compute nodes
You can profile remote compute nodes from a local machine by simply type the following command.
```shell
./risedev ctl profile --sleep [seconds]
```
All compute nodes will be profile for a given `seconds` time and generated flame graph will be transferred to your local machine `.risingwave/profiling/`.

Note: To profile compute nodes remotely, please make sure all remote nodes have a public IP address accessible from your local machine (where you are running `risedev`).
2 changes: 1 addition & 1 deletion docs/developer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ cargo run --bin risectl -- --help
... or
```
./risingwave risectl --help
./risedev ctl --help
```
for more information.
Expand Down

0 comments on commit f0918d7

Please sign in to comment.