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

shell: improve subcommand app_stat and nodes #277

Merged
merged 5 commits into from
Feb 19, 2019
Merged

shell: improve subcommand app_stat and nodes #277

merged 5 commits into from
Feb 19, 2019

Conversation

qinzuoyan
Copy link
Contributor

for app_stat:

  • split column rdb_mem_mb to mem_tbl_mb and mem_idx_mb.

for nodes:

  • add -r|--resolve_ip option.
  • add -u|--resource_usage option to add columns: memused_res_mb, block_cache_mb, mem_tbl_mb mem_idx_mb, disk_avl_total_ratio, disk_avl_min_ratio.

src/shell/commands.h Show resolved Hide resolved
src/shell/commands.h Outdated Show resolved Hide resolved
src/shell/commands.h Outdated Show resolved Hide resolved
src/shell/commands.h Outdated Show resolved Hide resolved
for (int i = 0; i < partitions.size(); i++) {
const dsn::partition_configuration &p = partitions[i];
if (!p.primary.is_invalid()) {
auto find = tmp_map.find(p.primary);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

find改下名字? 一是跟函数find重名,二是不知道啥内容

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还有几个地方用的find

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个问题不大,我一直都是这么写的

src/shell/commands.h Outdated Show resolved Hide resolved
@qinzuoyan qinzuoyan merged commit ea490d3 into master Feb 19, 2019
@qinzuoyan qinzuoyan deleted the qinzuoyan branch February 19, 2019 05:04
neverchanje pushed a commit to neverchanje/pegasus that referenced this pull request Jul 13, 2019
Former-commit-id: c459eebd8ef3f8aca5a2fe4abee23fd4edf2fd3b [formerly ea490d3]
Former-commit-id: 125bed9901bb1c05c4e405cae0b19b79a46160be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/shell pegasus shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants