Skip to content

Conversation

@wyxxxcat
Copy link
Contributor

@wyxxxcat wyxxxcat commented Jun 30, 2025

Release note

call this api to directly know how many resources need to be recycled at this time (number and size (bytes)) in brpc metrics, even if config::enable_recycler_metrics is false

// metrics
recycler_instance_to_recycle_num
recycler_instance_to_recycle_bytes

usage:

// brpc_listen_port is port of recycler
// If instance id is empty, no action will be performed.

// if instance id is "*", it will statistics all instances
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["recycle_indexes"]
}'

// if "resource_type" is empty or it is "*", it will statistics all resource types in all instances
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=xxxx" \
    -d '{
    "instance_ids" : ["default_instance_id", "default_instance_id_0", ...]
}'
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"]
}'

// else it is not empty, it will only stastics specified resource type
// such as rowset, index, partition
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=xxxx" \
    -d '{
    "instance_ids" : ["default_instance_id", "default_instance_id_0", ...],
    "resource_type" : ["recycle_rowsets", "recycle_indexes", "recycle_partitions", ...]
}'

// invalid arg
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=xxx" \
    -d '{
    "instance_ids" : ["default_instance_id"],
    "resource_type" : ["11"]
}'
invalid resource type: invalid_resource_type, valid resource_type have [recycle_indexes, recycle_partitions, recycle_tmp_rowsets, recycle_rowsets, abort_timeout_txn, recycle_expired_txn_label, recycle_versions, recycle_copy_jobs, recycle_stage, recycle_expired_stage_objects, recycle_tablet, recycle_segment]

curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=xxx" \
    -d '{
    "instance_ids" : ["invalid_instance_id"]
}'
invalid instance id: invalid_instance_id

eg.

curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["*"]
}'

Instance ID: default_instance_id
----------------------------------------
Task Type: abort_timeout_txn
  • Need to abort timeout txn count: 0 items
  • Need to recycle timeout txn size: 0 bytes
----------------------------------------
Task Type: recycle_copy_jobs
  • Need to recycle copy job count: 0 items
  • Need to recycle copy job size: 0 bytes
----------------------------------------
Task Type: recycle_expired_stage_objects
  • Need to recycle expired stage object count: 0 items
  • Need to recycle expired stage object size: 0 bytes
----------------------------------------
Task Type: recycle_expired_txn_label
  • Need to recycle expired txn label count: 24 items
  • Need to recycle expired txn label size: 0 bytes
----------------------------------------
Task Type: recycle_indexes
  • Need to recycle index count: 4 items
  • Need to recycle index size: 16195 bytes
----------------------------------------
Task Type: recycle_partitions
  • Need to recycle partition count: 0 items
  • Need to recycle partition size: 0 bytes
----------------------------------------
Task Type: recycle_rowsets
  • Need to recycle rowset count: 9 items
  • Need to recycle rowset size: 7573 bytes
----------------------------------------
Task Type: recycle_segment
  • Need to recycle segment count: 48 items
  • Need to recycle segment size: 55604 bytes
----------------------------------------
Task Type: recycle_stage
  • Need to recycle stage count: 0 items
  • Need to recycle stage size: 0 bytes
----------------------------------------
Task Type: recycle_tablet
  • Need to recycle tablet count: 30 items
  • Need to recycle tablet size: 16195 bytes
----------------------------------------
Task Type: recycle_tmp_rowsets
  • Need to recycle tmp rowset count: 0 items
  • Need to recycle tmp rowset size: 0 bytes
----------------------------------------
Task Type: recycle_versions
  • Need to recycle version count: 0 items
  • Need to recycle version size: 0 bytes
----------------------------------------
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["recycle_indexes","recycle_tablet","recycle_segment","recycle_rowsets"]
}'

Instance ID: default_instance_id
----------------------------------------
Task Type: recycle_indexes
  • Need to recycle index count: 4 items
  • Need to recycle index size: 16195 bytes
----------------------------------------
Task Type: recycle_rowsets
  • Need to recycle rowset count: 9 items
  • Need to recycle rowset size: 7573 bytes
----------------------------------------
Task Type: recycle_segment
  • Need to recycle segment count: 48 items
  • Need to recycle segment size: 55604 bytes
----------------------------------------
Task Type: recycle_tablet
  • Need to recycle tablet count: 30 items
  • Need to recycle tablet size: 16195 bytes
----------------------------------------

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@wyxxxcat
Copy link
Contributor Author

run buildall

@wyxxxcat wyxxxcat force-pushed the http_recycler_metrics branch 3 times, most recently from 14320b4 to fc188af Compare June 30, 2025 09:39
@wyxxxcat
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

Cloud UT Coverage Report

Increment line coverage 17.70% (154/870) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 81.45% (1168/1434)
Line Coverage 65.40% (20170/30841)
Region Coverage 66.67% (10259/15387)
Branch Coverage 56.16% (5378/9576)

@doris-robot
Copy link

TPC-H: Total hot run time: 35409 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit fc188af905d23db9e22bb6c8910de83d4396ecf7, data reload: false

------ Round 1 ----------------------------------
q1	17603	5236	5130	5130
q2	1989	305	208	208
q3	10248	1333	786	786
q4	10244	1034	590	590
q5	7540	2480	2375	2375
q6	193	163	129	129
q7	913	768	626	626
q8	9329	1369	1128	1128
q9	7581	5171	5184	5171
q10	6928	2409	2025	2025
q11	491	317	297	297
q12	365	366	237	237
q13	17765	3772	3217	3217
q14	236	237	219	219
q15	547	479	481	479
q16	447	440	410	410
q17	669	875	386	386
q18	7917	7270	7115	7115
q19	1216	979	584	584
q20	364	382	241	241
q21	4258	3447	3086	3086
q22	1077	1059	970	970
Total cold run time: 107920 ms
Total hot run time: 35409 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5241	5139	5168	5139
q2	249	324	218	218
q3	2171	2731	2329	2329
q4	1438	1880	1391	1391
q5	4546	4448	4441	4441
q6	223	166	125	125
q7	1951	1947	1740	1740
q8	2613	2437	2568	2437
q9	7143	7198	7150	7150
q10	3042	3310	2836	2836
q11	578	520	502	502
q12	745	793	636	636
q13	3653	3987	3392	3392
q14	310	286	263	263
q15	545	486	489	486
q16	477	480	432	432
q17	1154	1457	1366	1366
q18	7385	7159	7238	7159
q19	890	927	990	927
q20	2009	2038	1835	1835
q21	4908	4454	4317	4317
q22	1103	1074	1015	1015
Total cold run time: 52374 ms
Total hot run time: 50136 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 189142 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit fc188af905d23db9e22bb6c8910de83d4396ecf7, data reload: false

query1	998	403	417	403
query2	6550	1844	1858	1844
query3	6739	228	221	221
query4	26191	23716	23396	23396
query5	4409	591	457	457
query6	314	238	224	224
query7	4631	533	325	325
query8	298	240	227	227
query9	8625	2986	3028	2986
query10	481	349	298	298
query11	15952	15190	15072	15072
query12	170	114	109	109
query13	1654	574	446	446
query14	9834	5811	5918	5811
query15	209	193	191	191
query16	7659	658	481	481
query17	1216	733	617	617
query18	2045	425	323	323
query19	214	206	173	173
query20	133	125	120	120
query21	222	131	111	111
query22	4111	4231	4054	4054
query23	34597	33279	33157	33157
query24	8377	2428	2432	2428
query25	552	473	413	413
query26	1236	280	157	157
query27	2707	543	369	369
query28	4260	2418	2377	2377
query29	735	584	441	441
query30	286	222	195	195
query31	957	823	787	787
query32	77	68	69	68
query33	563	370	355	355
query34	844	877	564	564
query35	815	817	754	754
query36	1041	1055	955	955
query37	121	100	85	85
query38	4305	4332	4114	4114
query39	1527	1436	1421	1421
query40	212	117	109	109
query41	58	56	56	56
query42	136	118	119	118
query43	547	550	518	518
query44	1427	906	912	906
query45	174	167	166	166
query46	896	1070	672	672
query47	1743	1866	1722	1722
query48	425	457	334	334
query49	738	502	408	408
query50	692	710	437	437
query51	4174	4313	4120	4120
query52	121	119	106	106
query53	247	268	205	205
query54	622	630	548	548
query55	87	83	86	83
query56	346	322	298	298
query57	1201	1218	1134	1134
query58	279	266	270	266
query59	2819	2817	2770	2770
query60	352	337	340	337
query61	127	124	124	124
query62	820	721	687	687
query63	234	198	200	198
query64	4251	1077	694	694
query65	4271	4176	4226	4176
query66	1056	413	323	323
query67	16045	15871	15548	15548
query68	7949	970	617	617
query69	488	308	286	286
query70	1275	1271	1232	1232
query71	466	354	340	340
query72	5707	4854	4936	4854
query73	749	677	393	393
query74	8987	9023	8728	8728
query75	3782	3239	2791	2791
query76	3617	1169	763	763
query77	787	393	315	315
query78	10111	10347	9436	9436
query79	2239	846	647	647
query80	615	531	480	480
query81	499	259	226	226
query82	458	137	103	103
query83	274	277	254	254
query84	255	120	90	90
query85	805	380	325	325
query86	391	291	318	291
query87	4468	4543	4442	4442
query88	3840	2484	2490	2484
query89	403	332	340	332
query90	1864	233	209	209
query91	156	152	118	118
query92	79	63	58	58
query93	1688	1017	641	641
query94	681	403	304	304
query95	392	314	294	294
query96	550	591	298	298
query97	2783	2777	2690	2690
query98	249	246	211	211
query99	1463	1400	1298	1298
Total cold run time: 277825 ms
Total hot run time: 189142 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.18 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit fc188af905d23db9e22bb6c8910de83d4396ecf7, data reload: false

query1	0.04	0.04	0.03
query2	0.11	0.06	0.05
query3	0.30	0.07	0.07
query4	1.61	0.09	0.10
query5	0.44	0.42	0.42
query6	1.17	0.67	0.67
query7	0.03	0.01	0.01
query8	0.06	0.05	0.06
query9	0.66	0.54	0.55
query10	0.60	0.60	0.60
query11	0.28	0.14	0.14
query12	0.27	0.14	0.15
query13	0.66	0.64	0.64
query14	0.83	0.86	0.84
query15	1.00	0.92	0.92
query16	0.39	0.39	0.38
query17	1.14	1.14	1.14
query18	0.26	0.25	0.25
query19	2.06	1.91	2.07
query20	0.02	0.01	0.01
query21	15.36	1.01	0.71
query22	0.95	1.06	0.81
query23	14.72	1.63	0.77
query24	5.48	0.57	0.30
query25	0.17	0.10	0.09
query26	0.57	0.24	0.20
query27	0.10	0.09	0.09
query28	11.08	1.30	0.62
query29	12.54	4.32	3.61
query30	0.29	0.10	0.06
query31	2.82	0.67	0.44
query32	3.26	0.61	0.52
query33	3.16	3.24	3.21
query34	16.62	5.49	4.78
query35	4.81	4.84	4.81
query36	0.68	0.52	0.53
query37	0.22	0.19	0.18
query38	0.18	0.20	0.18
query39	0.06	0.06	0.05
query40	0.20	0.17	0.17
query41	0.11	0.05	0.06
query42	0.07	0.06	0.07
query43	0.06	0.05	0.05
Total cold run time: 105.44 s
Total hot run time: 31.18 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage `` 🎉
Increment coverage report
Complete coverage report

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 57.08% (15346/26885)
Line Coverage 46.16% (139401/301968)
Region Coverage 45.46% (70638/155380)
Branch Coverage 40.24% (37306/92716)

@wyxxxcat
Copy link
Contributor Author

run p0

@wyxxxcat wyxxxcat force-pushed the http_recycler_metrics branch from fc188af to a024283 Compare July 2, 2025 07:39
@wyxxxcat
Copy link
Contributor Author

wyxxxcat commented Jul 2, 2025

run buildall

@hello-stephen
Copy link
Contributor

Cloud UT Coverage Report

Increment line coverage 16.67% (153/918) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 80.57% (1182/1467)
Line Coverage 65.12% (20236/31076)
Region Coverage 66.52% (10290/15469)
Branch Coverage 56.01% (5381/9608)

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage `` 🎉
Increment coverage report
Complete coverage report

@doris-robot
Copy link

TPC-H: Total hot run time: 33937 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit a024283d8e978f658089add39cf1b4678bcc98d4, data reload: false

------ Round 1 ----------------------------------
q1	17594	5369	5088	5088
q2	1971	303	183	183
q3	10364	1309	743	743
q4	10249	1014	509	509
q5	7824	2390	2375	2375
q6	182	160	127	127
q7	892	757	612	612
q8	9321	1345	1044	1044
q9	6856	5145	5101	5101
q10	6880	2389	1993	1993
q11	481	287	279	279
q12	350	353	211	211
q13	17770	3674	3087	3087
q14	234	221	220	220
q15	532	476	473	473
q16	439	418	369	369
q17	590	861	359	359
q18	7646	7095	7136	7095
q19	1281	968	554	554
q20	322	350	215	215
q21	4000	2582	2349	2349
q22	1017	995	951	951
Total cold run time: 106795 ms
Total hot run time: 33937 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5137	5154	5133	5133
q2	233	315	221	221
q3	2214	2670	2249	2249
q4	1387	1829	1355	1355
q5	4204	4550	4513	4513
q6	214	185	134	134
q7	2098	1988	1767	1767
q8	2965	2791	2636	2636
q9	7331	7285	7190	7190
q10	3171	3295	2901	2901
q11	583	512	490	490
q12	744	772	653	653
q13	3650	4036	3324	3324
q14	298	301	280	280
q15	511	620	516	516
q16	455	483	444	444
q17	1192	1595	1425	1425
q18	7900	7771	7589	7589
q19	815	879	900	879
q20	1958	1977	1831	1831
q21	4777	4281	4350	4281
q22	1066	1027	972	972
Total cold run time: 52903 ms
Total hot run time: 50783 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 184697 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit a024283d8e978f658089add39cf1b4678bcc98d4, data reload: false

query1	1020	394	386	386
query2	6534	1663	1637	1637
query3	6740	216	214	214
query4	26010	23952	23418	23418
query5	4755	590	435	435
query6	296	215	202	202
query7	4629	502	295	295
query8	295	220	210	210
query9	8616	2639	2658	2639
query10	468	330	290	290
query11	15630	15085	14794	14794
query12	161	111	108	108
query13	1645	532	406	406
query14	8936	5757	5741	5741
query15	204	185	168	168
query16	7605	627	463	463
query17	1138	705	577	577
query18	2011	390	294	294
query19	189	185	157	157
query20	121	111	110	110
query21	210	119	104	104
query22	3980	4239	3915	3915
query23	33910	33004	33103	33004
query24	8378	2432	2351	2351
query25	517	459	391	391
query26	1229	266	147	147
query27	2756	498	346	346
query28	4270	2154	2132	2132
query29	715	556	441	441
query30	279	220	194	194
query31	916	850	742	742
query32	69	68	58	58
query33	550	349	311	311
query34	825	831	516	516
query35	814	796	725	725
query36	927	966	920	920
query37	109	108	83	83
query38	4154	4050	4112	4050
query39	1493	1457	1597	1457
query40	216	124	105	105
query41	55	53	54	53
query42	126	109	107	107
query43	485	510	478	478
query44	1339	830	820	820
query45	173	167	159	159
query46	849	1017	636	636
query47	1718	1756	1705	1705
query48	379	419	314	314
query49	746	480	391	391
query50	643	680	434	434
query51	4094	4199	4116	4116
query52	113	117	100	100
query53	227	273	186	186
query54	581	573	506	506
query55	85	78	82	78
query56	315	307	300	300
query57	1160	1185	1112	1112
query58	255	260	252	252
query59	2467	2616	2491	2491
query60	324	321	294	294
query61	122	117	116	116
query62	784	724	662	662
query63	216	189	188	188
query64	4239	1077	633	633
query65	4243	4178	4187	4178
query66	1104	397	308	308
query67	15712	15468	15269	15269
query68	7152	881	530	530
query69	501	312	274	274
query70	1223	1134	1118	1118
query71	398	317	308	308
query72	5551	4788	4683	4683
query73	630	599	349	349
query74	9030	9102	8938	8938
query75	3178	3273	2652	2652
query76	3159	1133	714	714
query77	490	379	313	313
query78	10048	10251	9387	9387
query79	1949	828	583	583
query80	651	523	462	462
query81	483	259	220	220
query82	182	124	94	94
query83	259	270	227	227
query84	259	106	89	89
query85	758	360	304	304
query86	333	282	268	268
query87	4326	4504	4293	4293
query88	2929	2284	2288	2284
query89	388	327	280	280
query90	1795	215	213	213
query91	140	139	111	111
query92	60	58	54	54
query93	1023	945	586	586
query94	631	429	311	311
query95	375	298	282	282
query96	495	566	278	278
query97	2661	2740	2622	2622
query98	229	200	208	200
query99	1328	1402	1248	1248
Total cold run time: 268488 ms
Total hot run time: 184697 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.19 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit a024283d8e978f658089add39cf1b4678bcc98d4, data reload: false

query1	0.04	0.03	0.04
query2	0.11	0.06	0.06
query3	0.32	0.06	0.06
query4	1.60	0.08	0.07
query5	0.43	0.40	0.41
query6	1.15	0.66	0.65
query7	0.02	0.01	0.02
query8	0.06	0.05	0.05
query9	0.65	0.54	0.53
query10	0.57	0.57	0.57
query11	0.26	0.13	0.13
query12	0.25	0.13	0.14
query13	0.65	0.63	0.63
query14	0.79	0.87	0.80
query15	1.01	0.88	0.89
query16	0.39	0.39	0.38
query17	1.09	1.09	1.08
query18	0.25	0.23	0.23
query19	2.06	1.85	2.00
query20	0.01	0.01	0.02
query21	15.36	0.98	0.68
query22	0.94	1.13	0.85
query23	14.69	1.56	0.76
query24	5.55	0.57	0.28
query25	0.16	0.10	0.09
query26	0.56	0.22	0.19
query27	0.09	0.09	0.09
query28	10.96	1.26	0.58
query29	12.56	4.03	3.35
query30	0.28	0.09	0.05
query31	2.86	0.62	0.43
query32	3.23	0.60	0.50
query33	3.15	3.11	3.15
query34	17.05	5.43	4.72
query35	4.77	4.79	4.83
query36	0.66	0.51	0.50
query37	0.21	0.18	0.18
query38	0.17	0.15	0.15
query39	0.05	0.04	0.04
query40	0.19	0.19	0.16
query41	0.10	0.05	0.05
query42	0.06	0.05	0.05
query43	0.05	0.05	0.04
Total cold run time: 105.41 s
Total hot run time: 30.19 s

@wyxxxcat wyxxxcat force-pushed the http_recycler_metrics branch from a024283 to fbb751d Compare July 2, 2025 10:11
@wyxxxcat
Copy link
Contributor Author

wyxxxcat commented Jul 2, 2025

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 33989 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit fbb751dd91c8dd3635c3bd33ed70533ac919e8da, data reload: false

------ Round 1 ----------------------------------
q1	17682	5172	5061	5061
q2	1934	293	187	187
q3	10631	1328	717	717
q4	10307	1078	547	547
q5	8974	2433	2338	2338
q6	184	160	130	130
q7	918	747	610	610
q8	9323	1311	1130	1130
q9	7567	5094	5095	5094
q10	6884	2377	1960	1960
q11	501	285	266	266
q12	358	363	209	209
q13	17754	3713	3078	3078
q14	234	234	210	210
q15	543	483	471	471
q16	426	429	384	384
q17	579	870	359	359
q18	7552	7231	7181	7181
q19	1251	943	532	532
q20	332	364	224	224
q21	3887	2625	2347	2347
q22	1057	1003	954	954
Total cold run time: 108878 ms
Total hot run time: 33989 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5185	5100	5092	5092
q2	244	328	224	224
q3	2168	2673	2278	2278
q4	1399	1808	1363	1363
q5	4443	4681	4529	4529
q6	216	165	124	124
q7	2025	1975	1827	1827
q8	2667	2583	2641	2583
q9	7202	7385	7243	7243
q10	3107	3247	2825	2825
q11	567	524	486	486
q12	708	829	649	649
q13	3648	4147	3380	3380
q14	293	304	283	283
q15	522	474	479	474
q16	446	509	466	466
q17	1241	1580	1381	1381
q18	8089	7694	7732	7694
q19	811	830	925	830
q20	2006	2067	1994	1994
q21	4975	4640	4552	4552
q22	1118	1047	1072	1047
Total cold run time: 53080 ms
Total hot run time: 51324 ms

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2025

PR approved by anyone and no changes requested.

@doris-robot
Copy link

TPC-DS: Total hot run time: 184812 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit fbb751dd91c8dd3635c3bd33ed70533ac919e8da, data reload: false

query1	1019	392	379	379
query2	6534	1680	1679	1679
query3	6738	213	212	212
query4	26701	23743	23105	23105
query5	4325	561	454	454
query6	293	218	198	198
query7	4621	501	297	297
query8	284	222	210	210
query9	8585	2627	2650	2627
query10	481	329	287	287
query11	15763	15018	14857	14857
query12	157	112	101	101
query13	1656	525	402	402
query14	8807	5605	5667	5605
query15	203	186	178	178
query16	7180	633	451	451
query17	1204	711	603	603
query18	1984	404	307	307
query19	205	185	175	175
query20	121	121	115	115
query21	213	123	105	105
query22	4015	4186	4660	4186
query23	34852	33994	33673	33673
query24	8427	2385	2424	2385
query25	521	451	383	383
query26	1224	265	140	140
query27	2781	502	346	346
query28	4286	2146	2115	2115
query29	788	553	452	452
query30	285	224	187	187
query31	927	836	798	798
query32	68	57	63	57
query33	557	369	308	308
query34	838	856	525	525
query35	761	820	739	739
query36	943	960	871	871
query37	113	97	73	73
query38	4155	4151	3994	3994
query39	1456	1387	1421	1387
query40	206	115	106	106
query41	58	56	50	50
query42	121	103	104	103
query43	494	508	460	460
query44	1330	832	817	817
query45	176	171	160	160
query46	851	1012	634	634
query47	1751	1789	1765	1765
query48	382	417	309	309
query49	715	453	416	416
query50	654	679	400	400
query51	4084	4146	4016	4016
query52	100	103	98	98
query53	223	269	186	186
query54	584	575	499	499
query55	84	82	80	80
query56	305	305	294	294
query57	1158	1196	1110	1110
query58	260	257	250	250
query59	2501	2684	2562	2562
query60	322	334	315	315
query61	125	121	117	117
query62	793	741	645	645
query63	224	190	188	188
query64	4360	1066	641	641
query65	4294	4225	4183	4183
query66	1147	395	305	305
query67	15877	15357	15258	15258
query68	8736	891	522	522
query69	477	301	283	283
query70	1206	1127	1091	1091
query71	449	317	302	302
query72	5430	4653	4690	4653
query73	704	592	347	347
query74	8831	9052	8627	8627
query75	4136	3180	2826	2826
query76	3652	1138	704	704
query77	788	382	293	293
query78	10203	10103	9288	9288
query79	4633	801	566	566
query80	662	509	441	441
query81	481	251	217	217
query82	647	126	94	94
query83	274	245	224	224
query84	298	104	81	81
query85	800	351	308	308
query86	328	296	278	278
query87	4458	4368	4313	4313
query88	3335	2256	2272	2256
query89	441	319	281	281
query90	1955	210	209	209
query91	136	136	107	107
query92	73	59	52	52
query93	3238	941	582	582
query94	672	412	291	291
query95	372	293	285	285
query96	488	560	281	281
query97	2711	2716	2624	2624
query98	229	212	201	201
query99	1429	1420	1252	1252
Total cold run time: 279522 ms
Total hot run time: 184812 ms

@wyxxxcat wyxxxcat force-pushed the http_recycler_metrics branch from ecf3f67 to 08db574 Compare July 10, 2025 08:19
@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Jul 10, 2025
@wyxxxcat
Copy link
Contributor Author

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 10, 2025
@github-actions
Copy link
Contributor

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

@doris-robot
Copy link

Cloud UT Coverage Report

Increment line coverage 16.87% (168/996) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 78.40% (1252/1597)
Line Coverage 65.33% (20965/32093)
Region Coverage 66.71% (10625/15928)
Branch Coverage 56.38% (5580/9898)

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage `` 🎉
Increment coverage report
Complete coverage report

@doris-robot
Copy link

TPC-H: Total hot run time: 33287 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 08db5743f5fb29dec6ff7fa72126c3cfee9eb1ea, data reload: false

------ Round 1 ----------------------------------
q1	17575	5196	5036	5036
q2	1927	271	195	195
q3	10387	1269	740	740
q4	10215	1000	524	524
q5	7534	2455	2360	2360
q6	182	155	124	124
q7	921	777	608	608
q8	9299	1318	1129	1129
q9	7221	5071	5101	5071
q10	6888	2371	1952	1952
q11	485	295	280	280
q12	347	355	216	216
q13	17776	3741	3059	3059
q14	221	238	210	210
q15	535	471	480	471
q16	424	438	379	379
q17	597	922	365	365
q18	7854	7170	7224	7170
q19	1378	960	543	543
q20	322	352	218	218
q21	3886	3456	2329	2329
q22	371	334	308	308
Total cold run time: 106345 ms
Total hot run time: 33287 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5153	5078	5116	5078
q2	259	324	228	228
q3	2164	2708	2313	2313
q4	1350	1790	1348	1348
q5	4219	4396	4578	4396
q6	219	165	130	130
q7	1971	2054	1846	1846
q8	2646	2634	2589	2589
q9	7441	7232	7314	7232
q10	3091	3349	2848	2848
q11	571	538	497	497
q12	731	867	659	659
q13	3600	4034	3350	3350
q14	289	302	287	287
q15	525	479	489	479
q16	449	497	446	446
q17	1183	1587	1397	1397
q18	8065	7866	7451	7451
q19	840	804	844	804
q20	1945	1982	1813	1813
q21	4806	4345	4343	4343
q22	615	628	551	551
Total cold run time: 52132 ms
Total hot run time: 50085 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 186930 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 08db5743f5fb29dec6ff7fa72126c3cfee9eb1ea, data reload: false

query1	990	380	384	380
query2	6557	1701	1730	1701
query3	6732	212	215	212
query4	26675	23221	23491	23221
query5	4382	590	441	441
query6	309	227	201	201
query7	4623	505	288	288
query8	279	226	206	206
query9	8622	2645	2679	2645
query10	454	338	267	267
query11	15870	14979	14827	14827
query12	149	105	103	103
query13	1642	532	401	401
query14	8664	5804	5810	5804
query15	212	194	167	167
query16	7120	617	430	430
query17	928	695	574	574
query18	1978	412	329	329
query19	211	194	163	163
query20	128	125	118	118
query21	206	124	105	105
query22	4077	4301	4092	4092
query23	34091	32957	33137	32957
query24	8524	2395	2370	2370
query25	563	492	417	417
query26	1256	268	150	150
query27	2765	515	410	410
query28	4373	2147	2142	2142
query29	780	559	431	431
query30	281	216	188	188
query31	937	828	768	768
query32	74	60	59	59
query33	551	347	357	347
query34	791	835	516	516
query35	788	822	725	725
query36	934	949	876	876
query37	113	94	69	69
query38	4193	4114	4037	4037
query39	1486	1421	1467	1421
query40	211	111	109	109
query41	60	57	61	57
query42	120	106	105	105
query43	511	491	463	463
query44	1327	825	819	819
query45	174	166	160	160
query46	845	1026	621	621
query47	1747	1779	1742	1742
query48	397	417	316	316
query49	746	490	400	400
query50	638	685	420	420
query51	5527	5504	5383	5383
query52	118	109	94	94
query53	213	245	178	178
query54	585	574	502	502
query55	80	81	79	79
query56	308	280	282	280
query57	1154	1172	1134	1134
query58	265	257	260	257
query59	2603	2667	2618	2618
query60	326	315	340	315
query61	127	123	123	123
query62	799	730	669	669
query63	225	186	187	186
query64	4401	986	657	657
query65	4241	4171	4173	4171
query66	1160	411	324	324
query67	15842	15383	15649	15383
query68	7950	879	526	526
query69	468	307	273	273
query70	1194	1104	1102	1102
query71	451	327	302	302
query72	5761	4832	4968	4832
query73	686	679	359	359
query74	8875	9079	9049	9049
query75	3626	3179	2711	2711
query76	3383	1148	759	759
query77	794	415	294	294
query78	9992	10260	9381	9381
query79	2006	802	578	578
query80	607	520	497	497
query81	495	251	230	230
query82	429	124	97	97
query83	257	251	236	236
query84	294	106	89	89
query85	788	360	391	360
query86	332	302	289	289
query87	4395	4398	4285	4285
query88	3594	2291	2265	2265
query89	385	318	289	289
query90	1954	213	211	211
query91	154	160	116	116
query92	73	58	55	55
query93	1419	923	589	589
query94	686	406	289	289
query95	378	291	279	279
query96	490	576	279	279
query97	2778	2736	2704	2704
query98	234	198	206	198
query99	1367	1379	1284	1284
Total cold run time: 274353 ms
Total hot run time: 186930 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.22 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 08db5743f5fb29dec6ff7fa72126c3cfee9eb1ea, data reload: false

query1	0.04	0.04	0.03
query2	0.11	0.06	0.05
query3	0.29	0.07	0.06
query4	1.60	0.07	0.08
query5	0.43	0.40	0.41
query6	1.16	0.67	0.68
query7	0.02	0.02	0.02
query8	0.06	0.06	0.06
query9	0.65	0.53	0.52
query10	0.58	0.58	0.58
query11	0.26	0.14	0.12
query12	0.25	0.13	0.14
query13	0.66	0.63	0.63
query14	0.80	0.83	0.83
query15	0.98	0.89	0.91
query16	0.38	0.39	0.38
query17	1.09	1.08	1.11
query18	0.24	0.22	0.24
query19	1.99	1.83	1.86
query20	0.01	0.02	0.01
query21	15.38	0.95	0.67
query22	0.92	1.01	0.84
query23	14.68	1.55	0.76
query24	5.42	0.61	0.29
query25	0.17	0.09	0.09
query26	0.54	0.22	0.18
query27	0.09	0.09	0.08
query28	11.05	1.18	0.58
query29	12.58	4.02	3.37
query30	0.27	0.08	0.06
query31	2.87	0.63	0.43
query32	3.24	0.60	0.50
query33	3.22	3.08	3.14
query34	17.01	5.39	4.78
query35	4.76	4.76	4.82
query36	0.66	0.52	0.50
query37	0.20	0.18	0.17
query38	0.18	0.15	0.15
query39	0.05	0.05	0.04
query40	0.20	0.17	0.18
query41	0.11	0.05	0.04
query42	0.06	0.06	0.05
query43	0.05	0.06	0.05
Total cold run time: 105.31 s
Total hot run time: 30.22 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 57.03% (15502/27182)
Line Coverage 45.87% (138332/301579)
Region Coverage 35.27% (103418/293181)
Branch Coverage 37.73% (45523/120643)

@wyxxxcat
Copy link
Contributor Author

run cloud_p0

@wyxxxcat
Copy link
Contributor Author

run nonConcurrent

@dataroaring dataroaring merged commit 9468214 into apache:master Jul 11, 2025
26 of 28 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 11, 2025
### Release note

call this api to directly know how many resources need to be recycled at
this time (number and size (bytes)) in brpc metrics, even if
config::enable_recycler_metrics is false

```
// metrics
recycler_instance_to_recycle_num
recycler_instance_to_recycle_bytes
```

usage:
```
// brpc_listen_port is port of recycler
// If instance id is empty, no action will be performed.

// if instance id is "*", it will statistics all instances
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["recycle_indexes"]
}'

// if "resource_type" is empty or it is "*", it will statistics all resource types in all instances
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=xxxx" \
    -d '{
    "instance_ids" : ["default_instance_id", "default_instance_id_0", ...]
}'
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"]
}'

// else it is not empty, it will only stastics specified resource type
// such as rowset, index, partition
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=xxxx" \
    -d '{
    "instance_ids" : ["default_instance_id", "default_instance_id_0", ...],
    "resource_type" : ["recycle_rowsets", "recycle_indexes", "recycle_partitions", ...]
}'

// invalid arg
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=xxx" \
    -d '{
    "instance_ids" : ["default_instance_id"],
    "resource_type" : ["11"]
}'
invalid resource type: invalid_resource_type, valid resource_type have [recycle_indexes, recycle_partitions, recycle_tmp_rowsets, recycle_rowsets, abort_timeout_txn, recycle_expired_txn_label, recycle_versions, recycle_copy_jobs, recycle_stage, recycle_expired_stage_objects, recycle_tablet, recycle_segment]

curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=xxx" \
    -d '{
    "instance_ids" : ["invalid_instance_id"]
}'
invalid instance id: invalid_instance_id

```
eg.
```
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["*"]
}'

Instance ID: default_instance_id
----------------------------------------
Task Type: abort_timeout_txn
  • Need to abort timeout txn count: 0 items
  • Need to recycle timeout txn size: 0 bytes
----------------------------------------
Task Type: recycle_copy_jobs
  • Need to recycle copy job count: 0 items
  • Need to recycle copy job size: 0 bytes
----------------------------------------
Task Type: recycle_expired_stage_objects
  • Need to recycle expired stage object count: 0 items
  • Need to recycle expired stage object size: 0 bytes
----------------------------------------
Task Type: recycle_expired_txn_label
  • Need to recycle expired txn label count: 24 items
  • Need to recycle expired txn label size: 0 bytes
----------------------------------------
Task Type: recycle_indexes
  • Need to recycle index count: 4 items
  • Need to recycle index size: 16195 bytes
----------------------------------------
Task Type: recycle_partitions
  • Need to recycle partition count: 0 items
  • Need to recycle partition size: 0 bytes
----------------------------------------
Task Type: recycle_rowsets
  • Need to recycle rowset count: 9 items
  • Need to recycle rowset size: 7573 bytes
----------------------------------------
Task Type: recycle_segment
  • Need to recycle segment count: 48 items
  • Need to recycle segment size: 55604 bytes
----------------------------------------
Task Type: recycle_stage
  • Need to recycle stage count: 0 items
  • Need to recycle stage size: 0 bytes
----------------------------------------
Task Type: recycle_tablet
  • Need to recycle tablet count: 30 items
  • Need to recycle tablet size: 16195 bytes
----------------------------------------
Task Type: recycle_tmp_rowsets
  • Need to recycle tmp rowset count: 0 items
  • Need to recycle tmp rowset size: 0 bytes
----------------------------------------
Task Type: recycle_versions
  • Need to recycle version count: 0 items
  • Need to recycle version size: 0 bytes
----------------------------------------
```
```
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["recycle_indexes","recycle_tablet","recycle_segment","recycle_rowsets"]
}'

Instance ID: default_instance_id
----------------------------------------
Task Type: recycle_indexes
  • Need to recycle index count: 4 items
  • Need to recycle index size: 16195 bytes
----------------------------------------
Task Type: recycle_rowsets
  • Need to recycle rowset count: 9 items
  • Need to recycle rowset size: 7573 bytes
----------------------------------------
Task Type: recycle_segment
  • Need to recycle segment count: 48 items
  • Need to recycle segment size: 55604 bytes
----------------------------------------
Task Type: recycle_tablet
  • Need to recycle tablet count: 30 items
  • Need to recycle tablet size: 16195 bytes
----------------------------------------
```
wyxxxcat added a commit to wyxxxcat/doris that referenced this pull request Jul 11, 2025
…#52523)

call this api to directly know how many resources need to be recycled at
this time (number and size (bytes)) in brpc metrics, even if
config::enable_recycler_metrics is false

```
// metrics
recycler_instance_to_recycle_num
recycler_instance_to_recycle_bytes
```

usage:
```
// brpc_listen_port is port of recycler
// If instance id is empty, no action will be performed.

// if instance id is "*", it will statistics all instances
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["recycle_indexes"]
}'

// if "resource_type" is empty or it is "*", it will statistics all resource types in all instances
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=xxxx" \
    -d '{
    "instance_ids" : ["default_instance_id", "default_instance_id_0", ...]
}'
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"]
}'

// else it is not empty, it will only stastics specified resource type
// such as rowset, index, partition
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=xxxx" \
    -d '{
    "instance_ids" : ["default_instance_id", "default_instance_id_0", ...],
    "resource_type" : ["recycle_rowsets", "recycle_indexes", "recycle_partitions", ...]
}'

// invalid arg
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=xxx" \
    -d '{
    "instance_ids" : ["default_instance_id"],
    "resource_type" : ["11"]
}'
invalid resource type: invalid_resource_type, valid resource_type have [recycle_indexes, recycle_partitions, recycle_tmp_rowsets, recycle_rowsets, abort_timeout_txn, recycle_expired_txn_label, recycle_versions, recycle_copy_jobs, recycle_stage, recycle_expired_stage_objects, recycle_tablet, recycle_segment]

curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=xxx" \
    -d '{
    "instance_ids" : ["invalid_instance_id"]
}'
invalid instance id: invalid_instance_id

```
eg.
```
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["*"]
}'

Instance ID: default_instance_id
----------------------------------------
Task Type: abort_timeout_txn
  • Need to abort timeout txn count: 0 items
  • Need to recycle timeout txn size: 0 bytes
----------------------------------------
Task Type: recycle_copy_jobs
  • Need to recycle copy job count: 0 items
  • Need to recycle copy job size: 0 bytes
----------------------------------------
Task Type: recycle_expired_stage_objects
  • Need to recycle expired stage object count: 0 items
  • Need to recycle expired stage object size: 0 bytes
----------------------------------------
Task Type: recycle_expired_txn_label
  • Need to recycle expired txn label count: 24 items
  • Need to recycle expired txn label size: 0 bytes
----------------------------------------
Task Type: recycle_indexes
  • Need to recycle index count: 4 items
  • Need to recycle index size: 16195 bytes
----------------------------------------
Task Type: recycle_partitions
  • Need to recycle partition count: 0 items
  • Need to recycle partition size: 0 bytes
----------------------------------------
Task Type: recycle_rowsets
  • Need to recycle rowset count: 9 items
  • Need to recycle rowset size: 7573 bytes
----------------------------------------
Task Type: recycle_segment
  • Need to recycle segment count: 48 items
  • Need to recycle segment size: 55604 bytes
----------------------------------------
Task Type: recycle_stage
  • Need to recycle stage count: 0 items
  • Need to recycle stage size: 0 bytes
----------------------------------------
Task Type: recycle_tablet
  • Need to recycle tablet count: 30 items
  • Need to recycle tablet size: 16195 bytes
----------------------------------------
Task Type: recycle_tmp_rowsets
  • Need to recycle tmp rowset count: 0 items
  • Need to recycle tmp rowset size: 0 bytes
----------------------------------------
Task Type: recycle_versions
  • Need to recycle version count: 0 items
  • Need to recycle version size: 0 bytes
----------------------------------------
```
```
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["recycle_indexes","recycle_tablet","recycle_segment","recycle_rowsets"]
}'

Instance ID: default_instance_id
----------------------------------------
Task Type: recycle_indexes
  • Need to recycle index count: 4 items
  • Need to recycle index size: 16195 bytes
----------------------------------------
Task Type: recycle_rowsets
  • Need to recycle rowset count: 9 items
  • Need to recycle rowset size: 7573 bytes
----------------------------------------
Task Type: recycle_segment
  • Need to recycle segment count: 48 items
  • Need to recycle segment size: 55604 bytes
----------------------------------------
Task Type: recycle_tablet
  • Need to recycle tablet count: 30 items
  • Need to recycle tablet size: 16195 bytes
----------------------------------------
```
dataroaring pushed a commit that referenced this pull request Jul 12, 2025
…rics #52523 (#53117)

Cherry-picked from #52523

Co-authored-by: Uniqueyou <wangyixuan@selectdb.com>
wyxxxcat added a commit to wyxxxcat/doris that referenced this pull request Jul 21, 2025
…#52523)

### Release note

call this api to directly know how many resources need to be recycled at
this time (number and size (bytes)) in brpc metrics, even if
config::enable_recycler_metrics is false

```
// metrics
recycler_instance_to_recycle_num
recycler_instance_to_recycle_bytes
```

usage:
```
// brpc_listen_port is port of recycler
// If instance id is empty, no action will be performed.

// if instance id is "*", it will statistics all instances
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["recycle_indexes"]
}'

// if "resource_type" is empty or it is "*", it will statistics all resource types in all instances
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=xxxx" \
    -d '{
    "instance_ids" : ["default_instance_id", "default_instance_id_0", ...]
}'
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"]
}'

// else it is not empty, it will only stastics specified resource type
// such as rowset, index, partition
curl "127.0.0.1:${brpc_listen_port}/RecyclerService/http/statistics_recycle?token=xxxx" \
    -d '{
    "instance_ids" : ["default_instance_id", "default_instance_id_0", ...],
    "resource_type" : ["recycle_rowsets", "recycle_indexes", "recycle_partitions", ...]
}'

// invalid arg
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=xxx" \
    -d '{
    "instance_ids" : ["default_instance_id"],
    "resource_type" : ["11"]
}'
invalid resource type: invalid_resource_type, valid resource_type have [recycle_indexes, recycle_partitions, recycle_tmp_rowsets, recycle_rowsets, abort_timeout_txn, recycle_expired_txn_label, recycle_versions, recycle_copy_jobs, recycle_stage, recycle_expired_stage_objects, recycle_tablet, recycle_segment]

curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=xxx" \
    -d '{
    "instance_ids" : ["invalid_instance_id"]
}'
invalid instance id: invalid_instance_id

```
eg.
```
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["*"]
}'

Instance ID: default_instance_id
----------------------------------------
Task Type: abort_timeout_txn
  • Need to abort timeout txn count: 0 items
  • Need to recycle timeout txn size: 0 bytes
----------------------------------------
Task Type: recycle_copy_jobs
  • Need to recycle copy job count: 0 items
  • Need to recycle copy job size: 0 bytes
----------------------------------------
Task Type: recycle_expired_stage_objects
  • Need to recycle expired stage object count: 0 items
  • Need to recycle expired stage object size: 0 bytes
----------------------------------------
Task Type: recycle_expired_txn_label
  • Need to recycle expired txn label count: 24 items
  • Need to recycle expired txn label size: 0 bytes
----------------------------------------
Task Type: recycle_indexes
  • Need to recycle index count: 4 items
  • Need to recycle index size: 16195 bytes
----------------------------------------
Task Type: recycle_partitions
  • Need to recycle partition count: 0 items
  • Need to recycle partition size: 0 bytes
----------------------------------------
Task Type: recycle_rowsets
  • Need to recycle rowset count: 9 items
  • Need to recycle rowset size: 7573 bytes
----------------------------------------
Task Type: recycle_segment
  • Need to recycle segment count: 48 items
  • Need to recycle segment size: 55604 bytes
----------------------------------------
Task Type: recycle_stage
  • Need to recycle stage count: 0 items
  • Need to recycle stage size: 0 bytes
----------------------------------------
Task Type: recycle_tablet
  • Need to recycle tablet count: 30 items
  • Need to recycle tablet size: 16195 bytes
----------------------------------------
Task Type: recycle_tmp_rowsets
  • Need to recycle tmp rowset count: 0 items
  • Need to recycle tmp rowset size: 0 bytes
----------------------------------------
Task Type: recycle_versions
  • Need to recycle version count: 0 items
  • Need to recycle version size: 0 bytes
----------------------------------------
```
```
curl "127.0.0.1:5271/RecyclerService/http/statistics_recycle?token=greedisgood9999" \
    -d '{
    "instance_ids" : ["*"],
    "resource_type" : ["recycle_indexes","recycle_tablet","recycle_segment","recycle_rowsets"]
}'

Instance ID: default_instance_id
----------------------------------------
Task Type: recycle_indexes
  • Need to recycle index count: 4 items
  • Need to recycle index size: 16195 bytes
----------------------------------------
Task Type: recycle_rowsets
  • Need to recycle rowset count: 9 items
  • Need to recycle rowset size: 7573 bytes
----------------------------------------
Task Type: recycle_segment
  • Need to recycle segment count: 48 items
  • Need to recycle segment size: 55604 bytes
----------------------------------------
Task Type: recycle_tablet
  • Need to recycle tablet count: 30 items
  • Need to recycle tablet size: 16195 bytes
----------------------------------------
```
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. cloud dev/3.0.7-merged dev/3.1.0-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants