Uh oh!
There was an error while loading. Please reload this page.
[feature](compaction) Add an http action for visibility of compaction score on each tablet (#38489) - #40826
Conversation
… score on each tablet (apache#38489) As title. Usage: 1. `curl http://be_ip:be_host/api/compaction_score?top_n=10` Returns a json object contains compaction score for top n, n=top_n. ``` [ { "compaction_score": "5", "tablet_id": "42595" }, { "compaction_score": "5", "tablet_id": "42587" }, { "compaction_score": "5", "tablet_id": "42593" }, { "compaction_score": "5", "tablet_id": "42597" }, { "compaction_score": "5", "tablet_id": "42589" }, { "compaction_score": "5", "tablet_id": "42599" }, { "compaction_score": "5", "tablet_id": "42601" }, { "compaction_score": "5", "tablet_id": "42591" }, { "compaction_score": "5", "tablet_id": "42585" }, { "compaction_score": "4", "tablet_id": "10034" } ] ``` If top_n is not specified, return all compaction score for all tablets. If top_n is illegal, raise an error. ``` invalid argument: top_n=wrong ``` 2. `curl http://be_ip:be_host/api/compaction_score?sync_meta=true` `sync_meta` is only available on cloud mode, will sync meta from meta service. It can cooperate with top_n. If add param `sync_meta` on non-cloud mode, will raise an error. ``` sync meta is only available for cloud mode ``` 3. In the future, this endpoint may extend other utility, like fetching tablet compaction score by table id, etc.
doris-robot
commented
Sep 13, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Hastyshell
commented
Sep 13, 2024
run buildall |
| #pragma once | ||
| #include <gen_cpp/FrontendService_types.h> |
There was a problem hiding this comment.
warning: 'gen_cpp/FrontendService_types.h' file not found [clang-diagnostic-error]
#include<gen_cpp/FrontendService_types.h>
^Hastyshell
commented
Sep 13, 2024
run buildall |
Hastyshell
commented
Sep 13, 2024
run buildall |
Hastyshell
commented
Sep 13, 2024
run buildall |
Hastyshell
commented
Sep 13, 2024
run buildall |
Hastyshell
commented
Sep 14, 2024
run buildall |
Hastyshell
commented
Sep 19, 2024
run buildall |
doris-robot
commented
Sep 19, 2024
TeamCity be ut coverage result: |
Hastyshell
commented
Sep 21, 2024
run p0 |
pick: #38489
Usage:
curl http://be_ip:be_host/api/compaction_score?top_n=10Returns a json object contains compaction score for top n, n=top_n.If top_n is not specified, return all compaction score for all tablets. If top_n is illegal, raise an error.
curl http://be_ip:be_host/api/compaction_score?sync_meta=truesync_metais only available on cloud mode, will sync meta from meta service. It can cooperate with top_n.If add param
sync_metaon non-cloud mode, will raise an error.Proposed changes
Issue Number: close #xxx