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

[Enhancement](show-backends-disks) Add show backends disks #24229

Merged
merged 15 commits into from
Oct 12, 2023

Conversation

yongjinhou
Copy link
Contributor

@yongjinhou yongjinhou commented Sep 12, 2023

…ry of BE node

Proposed changes

Issue Number: close #24226

Add statement to query disk information corresponding to data and log directory of BE node.

'show backends disks;'
+-----------+-------------+------------------------------+---------+----------+---------------+-------------+-------------------+---------+
| BackendId | Host | RootPath | DirType | DiskState| TotalCapacity | UsedCapacity| AvailableCapacity | UsedPct |
+-----------+-------------+------------------------------+---------+----------+---------------+-------------+-------------------+---------+
| 10002 | 10.xx.xx.90 | /home/work/output/be/storage | STORAGE | ONLINE | 7.049 TB | 2.478 TB | 4.571 TB | 35.16 % |
| 10002 | 10.xx.xx.90 | /home/work/output/be | DEPLOY | ONLINE | 7.049 TB | 2.478 TB | 4.571 TB | 35.16 % |
| 10002 | 10.xx.xx.90 | /home/work/output/be/log | LOG | ONLINE | 7.049 TB | 2.478 TB | 4.571 TB | 35.16 % |
+-----------+-------------+------------------------------+---------+----------+---------------+-------------+-------------------+---------+

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@yongjinhou
Copy link
Contributor Author

run buildall

@yongjinhou
Copy link
Contributor Author

run clickbench

@yongjinhou
Copy link
Contributor Author

run p0

@doris-robot
Copy link

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.41 seconds
stream load tsv: 595 seconds loaded 74807831229 Bytes, about 119 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size: 17162395826 Bytes

@yongjinhou
Copy link
Contributor Author

run p0

`
### Keywords

SHOW, BACKENDS
Copy link
Contributor

Choose a reason for hiding this comment

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

SHOW, BACKENDS, DISK, DISKS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will add it when implementing corresponding tvf.

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

luozenglin
luozenglin previously approved these changes Sep 13, 2023
Copy link
Contributor

@luozenglin luozenglin left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Sep 13, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

xy720
xy720 previously approved these changes Sep 14, 2023
Copy link
Member

@xy720 xy720 left a comment

Choose a reason for hiding this comment

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

LGTM


ImmutableMap<String, DiskInfo> disksRef = backend.getDisks();
for (DiskInfo disk : disksRef.values()) {
if (disk.getState() == DiskState.ONLINE) {
Copy link
Member

Choose a reason for hiding this comment

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

May be we should also show the offline disk. The offline disk is also reported from be to master. (Offline disk means the disk health check is bad). And we should add a column to show this disk's online/offline state.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@yongjinhou yongjinhou dismissed stale reviews from xy720 and luozenglin via 17d0f25 September 15, 2023 03:25
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@yongjinhou
Copy link
Contributor Author

run buildall

@yongjinhou
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@yongjinhou
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.96% (7982/21597)
Line Coverage: 28.91% (63986/221311)
Region Coverage: 27.85% (33204/119228)
Branch Coverage: 24.41% (17037/69784)
Coverage Report: http://coverage.selectdb-in.cc/coverage/bf38d144fc2dbb95354eeacce1149da1378fda23_bf38d144fc2dbb95354eeacce1149da1378fda23/report/index.html

@doris-robot
Copy link

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 48.52 seconds
stream load tsv: 608 seconds loaded 74807831229 Bytes, about 117 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size: 17162217024 Bytes

@yongjinhou
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.82% (7981/21673)
Line Coverage: 28.85% (63977/221767)
Region Coverage: 27.79% (33202/119493)
Branch Coverage: 24.38% (17038/69880)
Coverage Report: http://coverage.selectdb-in.cc/coverage/aa0a58d11579b6f7c6744739d96fc60da196170d_aa0a58d11579b6f7c6744739d96fc60da196170d/report/index.html

@doris-robot
Copy link

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.48 seconds
stream load tsv: 600 seconds loaded 74807831229 Bytes, about 118 MB/s
stream load json: 21 seconds loaded 2358488459 Bytes, about 107 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 33 seconds loaded 861443392 Bytes, about 24 MB/s
insert into select: 29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size: 17162416181 Bytes

@yongjinhou
Copy link
Contributor Author

run p0

1 similar comment
@yongjinhou
Copy link
Contributor Author

run p0

@adonis0147
Copy link
Contributor

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.22% (8156/22517)
Line Coverage: 28.33% (65287/230436)
Region Coverage: 27.05% (33805/124991)
Branch Coverage: 23.88% (17251/72238)
Coverage Report: http://coverage.selectdb-in.cc/coverage/402de283dd8a8c4794a988052c85aae58328b683_402de283dd8a8c4794a988052c85aae58328b683/report/index.html

@doris-robot
Copy link

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.03 seconds
stream load tsv: 557 seconds loaded 74807831229 Bytes, about 128 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 33 seconds loaded 861443392 Bytes, about 24 MB/s
insert into select: 29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size: 17162177566 Bytes

Copy link
Contributor

@chenlinzhong chenlinzhong left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@xy720 xy720 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Oct 12, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@chenlinzhong chenlinzhong merged commit 21223e6 into apache:master Oct 12, 2023
yiguolei added a commit that referenced this pull request Oct 13, 2023
yiguolei added a commit that referenced this pull request Oct 13, 2023
@xiaokang xiaokang added the not-merge/2.0 do not merge into 2.0 branch label Oct 13, 2023
dutyu pushed a commit to dutyu/doris that referenced this pull request Oct 28, 2023
)

* Add statement to query disk information corresponding to data directory of BE node


[msyql]->'show backends disks;'
+-----------+-------------+------------------------------+---------+----------+---------------+-------------+-------------------+---------+
| BackendId | Host | RootPath | DirType | DiskState| TotalCapacity | UsedCapacity| AvailableCapacity | UsedPct |
+-----------+-------------+------------------------------+---------+----------+---------------+-------------+-------------------+---------+
| 10002 | 10.xx.xx.90 | /home/work/output/be/storage | STORAGE | ONLINE | 7.049 TB | 2.478 TB | 4.571 TB | 35.16 % |
| 10002 | 10.xx.xx.90 | /home/work/output/be | DEPLOY | ONLINE | 7.049 TB | 2.478 TB | 4.571 TB | 35.16 % |
| 10002 | 10.xx.xx.90 | /home/work/output/be/log | LOG | ONLINE | 7.049 TB | 2.478 TB | 4.571 TB | 35.16 % |
+-----------+-------------+------------------------------+---------+----------+---------------+-------------+-------------------+---------+
dutyu pushed a commit to dutyu/doris that referenced this pull request Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. area/show stmt area/storage Issues or PRs related to storage engine kind/feature Categorizes issue or PR as related to a new feature. not-merge/2.0 do not merge into 2.0 branch reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Add statement to query disk information corresponding to data directory of BE node
7 participants