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

(cloud-merge) Supports online capacity expansion and contraction #37484

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

Lchangliang
Copy link
Contributor

@Lchangliang Lchangliang commented Jul 8, 2024

  1. Support to reset capacity online via BE HTTP requet
  2. Support to analyze cache conf when only get path_name file_cache_path=[{"path":"xxxx"}], we can only specify the path for a file cache instance from now on, if we don't care about the detailed capacity limit
# clear file cache
curl ip:http_port/api/file_cache?op=clear
# reset capacity of a certain instance of file cache
curl ip:http_port/api/file_cache?op=reset&capacity=${capacity}&path=${cache_path} 

curl 127.0.0.1:8060/api/file_cache?op=clear
curl 127.0.0.1:8060/api/file_cache?op=reset&capacity=102400000&path=/user/file_cache

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@Lchangliang
Copy link
Contributor Author

run buildall

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

@@ -30,6 +30,7 @@ FileCacheSettings get_file_cache_settings(size_t capacity, size_t max_query_cach
size_t normal_percent, size_t disposable_percent,
size_t index_percent) {
io::FileCacheSettings settings;
if (capacity == 0) return settings;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: statement should be inside braces [readability-braces-around-statements]

Suggested change
if (capacity == 0) return settings;
if (capacity == 0) { return settings;
}

auto key = io::BlockFileCache::hash("key1");
auto key2 = io::BlockFileCache::hash("key2");
io::BlockFileCache cache(cache_base_path, settings);
auto sp = SyncPoint::get_instance();
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: 'auto sp' can be declared as 'auto *sp' [readability-qualified-auto]

Suggested change
auto sp = SyncPoint::get_instance();
s);auto *

Comment on lines +4172 to +4316
;
EXPECT_EQ(cache._cur_cache_size, 30);
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: statement should be inside braces [readability-braces-around-statements]

Suggested change
;
EXPECT_EQ(cache._cur_cache_size, 30);
he) {
;
}

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17906	4677	4374	4374
q2	3026	202	200	200
q3	11655	1199	1229	1199
q4	10347	871	804	804
q5	7558	2749	2698	2698
q6	225	144	145	144
q7	1009	643	626	626
q8	9225	2090	2137	2090
q9	8801	6536	6532	6532
q10	8951	3756	3725	3725
q11	468	254	245	245
q12	416	242	238	238
q13	18843	2989	2993	2989
q14	275	230	241	230
q15	521	487	486	486
q16	519	384	387	384
q17	990	691	731	691
q18	8091	7659	7396	7396
q19	3956	1462	1495	1462
q20	699	349	341	341
q21	4994	3968	4087	3968
q22	425	377	366	366
Total cold run time: 118900 ms
Total hot run time: 41188 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4381	4253	4271	4253
q2	373	276	258	258
q3	2991	2765	2778	2765
q4	1865	1636	1607	1607
q5	5287	5383	5290	5290
q6	224	132	133	132
q7	2160	1776	1720	1720
q8	3232	3353	3364	3353
q9	8441	8455	8443	8443
q10	3899	3664	3687	3664
q11	600	527	506	506
q12	794	620	612	612
q13	16291	3019	2994	2994
q14	288	261	265	261
q15	529	473	470	470
q16	461	409	420	409
q17	1781	1484	1487	1484
q18	7789	7708	7585	7585
q19	1704	1637	1574	1574
q20	2030	1792	1748	1748
q21	4890	4729	4765	4729
q22	671	572	557	557
Total cold run time: 70681 ms
Total hot run time: 54414 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173877 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 5a14840e369597074c1cc71f625a7caed9cf33d0, data reload: false

query1	914	383	370	370
query2	6460	2575	2369	2369
query3	6657	207	223	207
query4	28311	17472	17243	17243
query5	4244	506	480	480
query6	297	173	173	173
query7	4598	303	289	289
query8	346	308	312	308
query9	8629	2471	2460	2460
query10	621	314	281	281
query11	11712	9959	10030	9959
query12	140	95	86	86
query13	1651	374	387	374
query14	9735	8181	7907	7907
query15	233	191	191	191
query16	7437	314	309	309
query17	1815	533	523	523
query18	1409	276	274	274
query19	190	159	162	159
query20	89	81	80	80
query21	214	137	126	126
query22	4303	4082	4092	4082
query23	33808	33119	32970	32970
query24	10971	2813	2783	2783
query25	610	358	377	358
query26	1018	148	150	148
query27	2643	273	277	273
query28	7231	2103	2083	2083
query29	874	627	638	627
query30	280	150	147	147
query31	948	746	735	735
query32	100	52	54	52
query33	765	297	293	293
query34	920	480	482	480
query35	679	587	583	583
query36	1083	958	923	923
query37	148	76	83	76
query38	2866	2723	2737	2723
query39	864	784	812	784
query40	206	124	123	123
query41	57	52	57	52
query42	119	104	102	102
query43	613	550	575	550
query44	1228	735	718	718
query45	188	160	165	160
query46	1085	747	735	735
query47	1850	1761	1774	1761
query48	367	301	298	298
query49	1058	414	410	410
query50	785	445	417	417
query51	6969	6793	6750	6750
query52	106	93	95	93
query53	359	284	289	284
query54	876	449	451	449
query55	74	74	76	74
query56	288	283	280	280
query57	1124	1084	1027	1027
query58	261	246	268	246
query59	3568	3205	3194	3194
query60	315	279	291	279
query61	94	95	97	95
query62	830	657	633	633
query63	323	287	289	287
query64	9778	2215	1614	1614
query65	3221	3097	3096	3096
query66	916	330	330	330
query67	15497	15094	15013	15013
query68	4567	565	539	539
query69	492	334	334	334
query70	1199	1178	1070	1070
query71	416	280	287	280
query72	7315	5440	5576	5440
query73	752	332	332	332
query74	5903	5537	5533	5533
query75	3389	2700	2659	2659
query76	2822	1033	967	967
query77	470	295	309	295
query78	12766	9381	8749	8749
query79	3021	529	527	527
query80	1760	530	478	478
query81	583	220	222	220
query82	559	138	136	136
query83	290	173	176	173
query84	281	91	98	91
query85	739	311	315	311
query86	489	341	307	307
query87	3259	3114	3110	3110
query88	4358	2450	2454	2450
query89	480	408	390	390
query90	1982	190	199	190
query91	134	103	105	103
query92	66	53	51	51
query93	3944	520	511	511
query94	1219	217	218	217
query95	421	331	331	331
query96	603	272	272	272
query97	3189	3015	3078	3015
query98	238	202	195	195
query99	1722	1249	1243	1243
Total cold run time: 287396 ms
Total hot run time: 173877 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.08	0.04	0.04
query3	0.23	0.05	0.05
query4	1.67	0.08	0.07
query5	0.51	0.50	0.49
query6	1.13	0.73	0.72
query7	0.02	0.01	0.02
query8	0.04	0.04	0.04
query9	0.55	0.49	0.51
query10	0.54	0.54	0.53
query11	0.15	0.12	0.11
query12	0.15	0.12	0.12
query13	0.59	0.59	0.58
query14	0.77	0.77	0.78
query15	0.85	0.82	0.81
query16	0.38	0.37	0.38
query17	1.06	1.03	1.04
query18	0.23	0.22	0.23
query19	1.76	1.76	1.80
query20	0.01	0.00	0.00
query21	15.41	0.75	0.66
query22	4.25	6.42	2.65
query23	18.34	1.36	1.35
query24	2.08	0.23	0.23
query25	0.15	0.10	0.08
query26	0.30	0.21	0.21
query27	0.45	0.23	0.24
query28	13.29	1.02	0.99
query29	12.64	3.35	3.32
query30	0.26	0.05	0.05
query31	2.89	0.39	0.39
query32	3.27	0.48	0.47
query33	2.92	2.88	2.89
query34	17.14	4.33	4.32
query35	4.42	4.41	4.42
query36	0.65	0.48	0.50
query37	0.19	0.15	0.15
query38	0.16	0.15	0.15
query39	0.04	0.03	0.03
query40	0.15	0.12	0.13
query41	0.09	0.05	0.04
query42	0.06	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.95 s
Total hot run time: 31.54 s

@Lchangliang
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17619	4336	4227	4227
q2	2032	195	199	195
q3	10432	1223	1176	1176
q4	10181	779	839	779
q5	7494	2612	2607	2607
q6	216	141	135	135
q7	962	595	599	595
q8	9246	2044	2072	2044
q9	8854	6485	6572	6485
q10	8941	3957	3737	3737
q11	468	238	240	238
q12	467	234	240	234
q13	17989	2993	3033	2993
q14	264	219	230	219
q15	534	490	497	490
q16	491	370	373	370
q17	969	620	722	620
q18	8177	7485	7549	7485
q19	8092	1545	1454	1454
q20	658	328	344	328
q21	4887	3183	3874	3183
q22	396	346	354	346
Total cold run time: 119369 ms
Total hot run time: 39940 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4424	4288	4284	4284
q2	383	287	276	276
q3	3224	3013	3040	3013
q4	1997	1845	1804	1804
q5	5628	5684	5624	5624
q6	250	144	143	143
q7	2429	1982	2028	1982
q8	3388	3483	3467	3467
q9	8789	8948	8662	8662
q10	4014	3697	3832	3697
q11	573	508	502	502
q12	816	617	654	617
q13	16396	3189	3244	3189
q14	309	288	299	288
q15	529	485	500	485
q16	506	425	413	413
q17	1824	1525	1560	1525
q18	8241	7923	7852	7852
q19	1811	1601	1633	1601
q20	2625	1869	1868	1868
q21	11602	4863	4885	4863
q22	643	564	555	555
Total cold run time: 80401 ms
Total hot run time: 56710 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 174181 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 7e4f193ae758099da01ba174b3f4fc09a02d2715, data reload: false

query1	916	367	367	367
query2	6412	2393	2376	2376
query3	6656	204	216	204
query4	27556	17586	17107	17107
query5	3638	490	481	481
query6	246	166	162	162
query7	4578	291	274	274
query8	318	313	296	296
query9	8548	2423	2411	2411
query10	437	292	280	280
query11	11829	9981	10057	9981
query12	129	87	84	84
query13	1650	366	388	366
query14	9430	7861	7609	7609
query15	235	194	192	192
query16	7726	327	311	311
query17	1737	555	539	539
query18	1920	292	281	281
query19	206	158	159	158
query20	91	85	83	83
query21	215	131	128	128
query22	4518	4190	4107	4107
query23	34207	33806	33777	33777
query24	10751	2812	2805	2805
query25	619	432	417	417
query26	706	149	149	149
query27	2222	278	284	278
query28	6198	2144	2150	2144
query29	914	713	635	635
query30	252	149	151	149
query31	956	772	772	772
query32	93	53	54	53
query33	683	334	295	295
query34	917	492	503	492
query35	663	566	598	566
query36	1151	943	971	943
query37	144	89	83	83
query38	2963	2858	2773	2773
query39	864	800	818	800
query40	197	117	117	117
query41	52	51	52	51
query42	119	100	97	97
query43	585	564	537	537
query44	1122	730	731	730
query45	194	159	153	153
query46	1161	738	693	693
query47	1880	1733	1786	1733
query48	366	296	295	295
query49	833	402	405	402
query50	787	386	392	386
query51	6934	6828	6767	6767
query52	109	89	95	89
query53	356	282	293	282
query54	835	439	443	439
query55	74	72	71	71
query56	281	286	263	263
query57	1154	1057	1073	1057
query58	248	250	247	247
query59	3520	3349	3355	3349
query60	294	271	283	271
query61	93	92	96	92
query62	782	625	647	625
query63	310	296	283	283
query64	9151	2141	1605	1605
query65	3185	3115	3119	3115
query66	707	322	331	322
query67	15544	14945	14902	14902
query68	4532	517	518	517
query69	590	418	356	356
query70	1198	1140	1138	1138
query71	425	277	319	277
query72	8142	5501	5345	5345
query73	733	318	319	318
query74	5902	5483	5441	5441
query75	3446	2679	2695	2679
query76	2715	1069	923	923
query77	638	302	292	292
query78	10325	8979	8840	8840
query79	2781	510	516	510
query80	3002	469	468	468
query81	583	220	224	220
query82	907	137	132	132
query83	307	173	173	173
query84	274	92	89	89
query85	2101	366	303	303
query86	469	312	330	312
query87	3314	3104	3103	3103
query88	4020	2365	2346	2346
query89	486	368	380	368
query90	1850	199	192	192
query91	137	102	102	102
query92	61	49	53	49
query93	3424	502	502	502
query94	1151	210	210	210
query95	418	330	322	322
query96	601	268	265	265
query97	3187	3052	3029	3029
query98	243	204	205	204
query99	1549	1288	1255	1255
Total cold run time: 283678 ms
Total hot run time: 174181 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.07	0.03	0.04
query3	0.22	0.05	0.06
query4	1.67	0.09	0.08
query5	0.49	0.48	0.48
query6	1.14	0.72	0.73
query7	0.01	0.01	0.02
query8	0.06	0.04	0.04
query9	0.56	0.47	0.48
query10	0.54	0.54	0.55
query11	0.16	0.11	0.11
query12	0.15	0.13	0.13
query13	0.61	0.58	0.59
query14	0.77	0.78	0.76
query15	0.85	0.81	0.80
query16	0.37	0.37	0.37
query17	1.03	1.01	1.04
query18	0.23	0.22	0.22
query19	1.82	1.83	1.70
query20	0.01	0.01	0.01
query21	15.39	0.77	0.64
query22	4.24	7.30	1.90
query23	18.29	1.29	1.30
query24	2.05	0.23	0.24
query25	0.16	0.08	0.09
query26	0.29	0.21	0.21
query27	0.46	0.23	0.23
query28	13.30	1.02	1.01
query29	12.61	3.33	3.33
query30	0.25	0.07	0.06
query31	2.85	0.38	0.40
query32	3.28	0.47	0.47
query33	2.93	2.89	2.97
query34	17.14	4.39	4.32
query35	4.38	4.35	4.44
query36	0.66	0.47	0.48
query37	0.19	0.16	0.16
query38	0.16	0.15	0.16
query39	0.05	0.03	0.04
query40	0.14	0.11	0.12
query41	0.09	0.04	0.04
query42	0.06	0.05	0.05
query43	0.05	0.04	0.04
Total cold run time: 109.82 s
Total hot run time: 30.59 s

@Lchangliang
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18466	5101	4370	4370
q2	3016	194	199	194
q3	11023	1179	1156	1156
q4	11096	842	877	842
q5	7585	2745	2738	2738
q6	229	148	143	143
q7	996	612	597	597
q8	9224	2103	2099	2099
q9	8821	6620	6634	6620
q10	8867	3825	3796	3796
q11	447	244	240	240
q12	407	234	231	231
q13	17826	2989	3046	2989
q14	290	232	236	232
q15	516	487	486	486
q16	494	377	382	377
q17	982	664	678	664
q18	8193	7513	7439	7439
q19	7117	1370	1404	1370
q20	674	317	335	317
q21	4972	3149	3932	3149
q22	354	296	281	281
Total cold run time: 121595 ms
Total hot run time: 40330 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4391	4265	4290	4265
q2	377	277	260	260
q3	3007	2781	2774	2774
q4	1951	1616	1601	1601
q5	5320	5328	5383	5328
q6	215	133	134	133
q7	2162	1782	1761	1761
q8	3198	3354	3347	3347
q9	8494	8478	8451	8451
q10	3935	3690	3677	3677
q11	593	509	492	492
q12	779	592	602	592
q13	16511	3005	3027	3005
q14	315	278	298	278
q15	519	482	474	474
q16	488	415	404	404
q17	1782	1501	1467	1467
q18	7727	7575	7363	7363
q19	1687	1560	1612	1560
q20	2015	1794	1773	1773
q21	4905	4676	4777	4676
q22	600	529	496	496
Total cold run time: 70971 ms
Total hot run time: 54177 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 175753 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 30b8959261359d0ba710f07bea45fa4c45900144, data reload: false

query1	936	387	378	378
query2	6461	1840	1795	1795
query3	6664	211	216	211
query4	28614	17861	17665	17665
query5	4199	515	509	509
query6	273	188	172	172
query7	4524	296	301	296
query8	261	196	204	196
query9	8165	2474	2425	2425
query10	454	298	287	287
query11	11086	10258	10273	10258
query12	149	88	82	82
query13	1556	393	391	391
query14	10582	8059	7826	7826
query15	220	167	169	167
query16	7876	477	471	471
query17	1568	552	529	529
query18	1980	279	282	279
query19	201	153	150	150
query20	90	86	84	84
query21	219	129	133	129
query22	4443	4065	3997	3997
query23	34088	33280	33216	33216
query24	12008	2958	2868	2868
query25	658	393	371	371
query26	1831	155	152	152
query27	2953	276	277	276
query28	7565	2014	2007	2007
query29	1133	650	626	626
query30	289	152	154	152
query31	1029	751	749	749
query32	93	53	55	53
query33	767	336	337	336
query34	902	494	508	494
query35	873	759	723	723
query36	1137	967	904	904
query37	207	82	76	76
query38	2903	2800	2799	2799
query39	901	851	842	842
query40	277	126	124	124
query41	47	43	44	43
query42	123	101	106	101
query43	499	447	461	447
query44	1247	737	738	737
query45	211	176	176	176
query46	1105	718	765	718
query47	1875	1807	1792	1792
query48	366	291	298	291
query49	1201	430	421	421
query50	814	407	405	405
query51	6804	6643	6743	6643
query52	104	95	99	95
query53	372	300	296	296
query54	913	457	459	457
query55	77	74	77	74
query56	299	285	281	281
query57	1207	1023	1085	1023
query58	258	259	256	256
query59	2845	2691	2654	2654
query60	321	285	294	285
query61	100	98	95	95
query62	829	660	662	660
query63	331	299	301	299
query64	10523	2285	1718	1718
query65	3212	3134	3139	3134
query66	1380	335	345	335
query67	15356	15169	15180	15169
query68	4624	559	552	552
query69	483	365	344	344
query70	1214	1133	1106	1106
query71	421	291	289	289
query72	7034	5797	5271	5271
query73	781	333	331	331
query74	6083	5789	5660	5660
query75	3488	2717	2745	2717
query76	2814	993	987	987
query77	484	334	309	309
query78	11180	9964	10819	9964
query79	4489	544	545	544
query80	1611	505	497	497
query81	581	225	223	223
query82	417	142	142	142
query83	280	172	181	172
query84	286	93	97	93
query85	897	322	312	312
query86	390	318	318	318
query87	3327	3168	3121	3121
query88	3981	2418	2422	2418
query89	488	398	401	398
query90	1912	200	199	199
query91	136	103	103	103
query92	65	53	62	53
query93	1660	517	518	517
query94	939	285	305	285
query95	420	327	333	327
query96	611	275	276	275
query97	3234	3037	3029	3029
query98	226	205	205	205
query99	1643	1324	1322	1322
Total cold run time: 288753 ms
Total hot run time: 175753 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.08	0.04	0.04
query3	0.22	0.04	0.05
query4	1.68	0.07	0.08
query5	0.50	0.49	0.50
query6	1.13	0.73	0.73
query7	0.02	0.02	0.01
query8	0.04	0.05	0.05
query9	0.55	0.49	0.50
query10	0.56	0.56	0.54
query11	0.16	0.12	0.11
query12	0.15	0.13	0.13
query13	0.58	0.60	0.59
query14	0.77	0.81	0.78
query15	0.88	0.82	0.84
query16	0.37	0.38	0.36
query17	0.97	0.94	0.96
query18	0.22	0.22	0.22
query19	1.81	1.69	1.75
query20	0.01	0.01	0.01
query21	15.42	0.76	0.67
query22	4.42	7.01	2.13
query23	18.26	1.35	1.42
query24	2.09	0.25	0.23
query25	0.16	0.09	0.08
query26	0.32	0.22	0.22
query27	0.46	0.24	0.24
query28	13.24	1.02	1.02
query29	12.61	3.32	3.33
query30	0.25	0.05	0.05
query31	2.87	0.39	0.40
query32	3.27	0.47	0.47
query33	2.84	2.94	2.90
query34	17.14	4.32	4.37
query35	4.47	4.41	4.42
query36	0.64	0.46	0.47
query37	0.20	0.18	0.17
query38	0.17	0.15	0.16
query39	0.05	0.04	0.03
query40	0.16	0.12	0.13
query41	0.10	0.05	0.05
query42	0.06	0.05	0.04
query43	0.04	0.04	0.04
Total cold run time: 109.98 s
Total hot run time: 31.01 s

Copy link
Contributor

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

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Jul 25, 2024
Copy link
Contributor

PR approved by anyone and no changes requested.

@Lchangliang
Copy link
Contributor Author

run cloud_p0

@Lchangliang
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17635	4389	4375	4375
q2	2020	197	205	197
q3	10408	1248	1071	1071
q4	10152	689	766	689
q5	7538	2726	2709	2709
q6	224	138	138	138
q7	959	613	596	596
q8	9207	1927	1928	1927
q9	8704	6622	6579	6579
q10	8875	3809	3846	3809
q11	454	240	234	234
q12	466	223	222	222
q13	18850	2970	2992	2970
q14	282	226	249	226
q15	514	487	476	476
q16	502	384	378	378
q17	971	716	793	716
q18	8154	7501	7327	7327
q19	6843	1065	1074	1065
q20	677	321	349	321
q21	4909	3155	3281	3155
q22	330	270	280	270
Total cold run time: 118674 ms
Total hot run time: 39450 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4548	4322	4296	4296
q2	378	265	267	265
q3	3090	2909	2940	2909
q4	2013	1678	1773	1678
q5	5636	5639	5448	5448
q6	225	133	132	132
q7	2233	1867	1849	1849
q8	3257	3415	3415	3415
q9	8741	8850	8856	8850
q10	4164	3772	3946	3772
q11	603	484	501	484
q12	860	638	644	638
q13	15948	3192	3204	3192
q14	308	292	299	292
q15	534	498	481	481
q16	512	439	425	425
q17	1817	1515	1496	1496
q18	8179	7964	7804	7804
q19	1729	1646	1623	1623
q20	2250	1861	1859	1859
q21	5044	4960	4804	4804
q22	589	500	494	494
Total cold run time: 72658 ms
Total hot run time: 56206 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 172636 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 55879eed9d57be7d3c2f74fa6c22910b5b8ce1e8, data reload: false

query1	919	373	364	364
query2	6445	1927	1787	1787
query3	6625	210	214	210
query4	28362	17408	17498	17408
query5	3793	495	468	468
query6	255	164	165	164
query7	4583	285	289	285
query8	247	188	190	188
query9	8442	2422	2406	2406
query10	430	301	287	287
query11	10712	10195	10081	10081
query12	121	91	89	89
query13	1666	379	367	367
query14	9635	6963	6990	6963
query15	218	168	170	168
query16	6800	505	456	456
query17	1126	570	529	529
query18	1815	279	290	279
query19	191	142	144	142
query20	93	84	82	82
query21	200	102	96	96
query22	4503	4017	3988	3988
query23	34060	34021	33761	33761
query24	11289	3075	2942	2942
query25	636	377	394	377
query26	965	154	157	154
query27	2306	277	280	277
query28	6049	2085	2059	2059
query29	819	415	437	415
query30	299	158	157	157
query31	977	780	753	753
query32	98	54	55	54
query33	786	330	319	319
query34	905	476	481	476
query35	867	771	805	771
query36	1170	995	958	958
query37	146	78	87	78
query38	3015	2929	2807	2807
query39	899	851	846	846
query40	193	115	110	110
query41	48	43	42	42
query42	120	95	96	95
query43	506	470	470	470
query44	1200	716	715	715
query45	210	173	175	173
query46	1187	740	726	726
query47	1884	1799	1767	1767
query48	365	302	296	296
query49	875	412	410	410
query50	798	408	396	396
query51	6809	6621	6676	6621
query52	99	88	82	82
query53	251	179	181	179
query54	875	435	433	433
query55	73	73	74	73
query56	289	274	277	274
query57	1133	1032	1048	1032
query58	253	270	265	265
query59	2780	2608	2604	2604
query60	303	277	284	277
query61	95	93	97	93
query62	839	653	659	653
query63	209	180	175	175
query64	9765	2318	1706	1706
query65	3139	3103	3100	3100
query66	788	337	333	333
query67	15669	15279	14925	14925
query68	4499	552	537	537
query69	510	358	313	313
query70	1175	1083	1072	1072
query71	396	267	279	267
query72	7119	5404	5780	5404
query73	751	329	322	322
query74	6137	5641	5620	5620
query75	3395	2680	2670	2670
query76	2167	885	929	885
query77	468	306	291	291
query78	9507	9113	9048	9048
query79	2592	526	519	519
query80	2067	537	484	484
query81	597	223	221	221
query82	745	129	134	129
query83	312	175	177	175
query84	257	85	83	83
query85	1771	314	302	302
query86	484	317	334	317
query87	3297	3107	3149	3107
query88	4079	2392	2441	2392
query89	392	290	284	284
query90	1743	190	189	189
query91	124	100	99	99
query92	65	47	49	47
query93	2121	532	531	531
query94	753	281	298	281
query95	355	255	251	251
query96	601	281	274	274
query97	3227	3031	3060	3031
query98	228	202	200	200
query99	1565	1289	1255	1255
Total cold run time: 276721 ms
Total hot run time: 172636 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.08	0.04	0.04
query3	0.22	0.05	0.06
query4	1.67	0.08	0.07
query5	0.48	0.48	0.48
query6	1.14	0.72	0.73
query7	0.01	0.01	0.01
query8	0.05	0.04	0.05
query9	0.55	0.50	0.48
query10	0.56	0.55	0.54
query11	0.15	0.12	0.11
query12	0.15	0.12	0.12
query13	0.60	0.59	0.58
query14	0.75	0.80	0.78
query15	0.86	0.80	0.81
query16	0.34	0.36	0.35
query17	0.98	1.02	0.99
query18	0.24	0.21	0.22
query19	1.80	1.72	1.80
query20	0.01	0.01	0.01
query21	15.42	0.76	0.67
query22	4.51	6.41	2.42
query23	18.30	1.36	1.24
query24	2.18	0.23	0.23
query25	0.15	0.09	0.09
query26	0.30	0.21	0.21
query27	0.46	0.23	0.23
query28	13.25	1.03	1.00
query29	12.63	3.26	3.29
query30	0.25	0.06	0.05
query31	2.87	0.40	0.41
query32	3.26	0.49	0.47
query33	2.89	2.95	2.88
query34	17.06	4.34	4.37
query35	4.37	4.40	4.43
query36	0.65	0.46	0.48
query37	0.20	0.15	0.16
query38	0.16	0.16	0.15
query39	0.05	0.03	0.04
query40	0.17	0.12	0.12
query41	0.10	0.05	0.05
query42	0.06	0.05	0.05
query43	0.04	0.04	0.05
Total cold run time: 110.01 s
Total hot run time: 31.08 s

@gavinchou gavinchou merged commit ab7d7a8 into apache:master Jul 29, 2024
26 of 30 checks passed
dataroaring pushed a commit that referenced this pull request Aug 2, 2024
)

1. Support to reset capacity online via BE HTTP requet
2. Support to analyze cache conf when only get path_name
`file_cache_path=[{"path":"xxxx"}]`, we can only specify the path for a
file cache instance from now on, if we don't care about the detailed
capacity limit

```
# clear file cache
curl ip:http_port/api/file_cache?op=clear
# reset capacity of a certain instance of file cache
curl ip:http_port/api/file_cache?op=reset&capacity=${capacity}&path=${cache_path} 

curl 127.0.0.1:8060/api/file_cache?op=clear
curl 127.0.0.1:8060/api/file_cache?op=reset&capacity=102400000&path=/user/file_cache
```
gavinchou pushed a commit that referenced this pull request Sep 23, 2024
…40831)

## Proposed changes

Add a http action which can calculate its hash value based on the path you input. It's useful when you debug.

### API
```http
GET /api/file_cache
```

### request parameter

|param|type  |desc                                                          |require|
|:--- |:---  |:---                                                          |:---   |
|op   |string|the value must be `hash`, other value you can refer to #37484 |yes    |
|value|string|the input you want to calc hash                               |yes    |

### response

if success
|param|type  |desc                        |
|:--- |:---  |:---                        |
|hash |string|the hash value of your input|

if fail
|param |type  |desc         |
|:---  |:---  |:---         |
|status|string|error status |
|msg   |string|error message|

### example

#### case 1

```bash
curl  '172.100.0.4:8040/api/file_cache?op=hash&value=0200000000000001bf42c14374fff491ffb7c89a1a65c5bb_0.dat'
```

return
```json
{"hash":"c6a599f453f67f0949f80ad9990fa3dd"}
```

#### case 2

```bash
curl  '172.100.0.4:8040/api/file_cache?op=hash'
```

return
```json
{
    "status": "INVALID_ARGUMENT",
    "msg": "missing parameter: value is required"
}
```
gavinchou pushed a commit that referenced this pull request Sep 23, 2024
…40831)

## Proposed changes

Add a http action which can calculate its hash value based on the path you input. It's useful when you debug.

### API
```http
GET /api/file_cache
```

### request parameter

|param|type  |desc                                                          |require|
|:--- |:---  |:---                                                          |:---   |
|op   |string|the value must be `hash`, other value you can refer to #37484 |yes    |
|value|string|the input you want to calc hash                               |yes    |

### response

if success
|param|type  |desc                        |
|:--- |:---  |:---                        |
|hash |string|the hash value of your input|

if fail
|param |type  |desc         |
|:---  |:---  |:---         |
|status|string|error status |
|msg   |string|error message|

### example

#### case 1

```bash
curl  '172.100.0.4:8040/api/file_cache?op=hash&value=0200000000000001bf42c14374fff491ffb7c89a1a65c5bb_0.dat'
```

return
```json
{"hash":"c6a599f453f67f0949f80ad9990fa3dd"}
```

#### case 2

```bash
curl  '172.100.0.4:8040/api/file_cache?op=hash'
```

return
```json
{
    "status": "INVALID_ARGUMENT",
    "msg": "missing parameter: value is required"
}
```
gavinchou pushed a commit that referenced this pull request Nov 7, 2024
…1037)

## Proposed changes

Add a http action which is useful when you debug.

### API
```http
GET /api/file_cache
```

### request parameter

#### request parameter1

|param|type|desc|require|
|:---|:---|:---|:---|
|op|string|the value must be `list_cache`, other value you can refer to
#40831 #37484 |yes|
|value|string|the segment file name |yes|

#### request parameter2

|param|type|desc|require|
|:---|:---|:---|:---|
|op|string|the value must be `clear`, other value you can refer to
#40831 #37484 |yes|
|value|string|the segment file name |yes|
|sync|bool|clean local cache in sync |no|

### response

#### response1

if success
|param|type|desc|
|:---|:---|:---|
||array|return the segment file cache in local path|

if fail
|param|type|desc|
|:---|:---|:---|
||array|empty array|

#### response2

if success
|param|type|desc|
|:---|:---|:---|
|status|string||
|msg|string||

### example

#### case 1

```bash
curl  '172.100.0.4:8040/api/file_cache?op=list_cache&value=0200000000000001bf42c14374fff491ffb7c89a1a65c5bb_0.dat'
```

return
```json
["/opt/doris/be/file_cache/c6a/c6a599f453f67f0949f80ad9990fa3dd/0"]
```

#### case 2

```bash
curl '127.0.0.1:8040/api/file_cache?op=clear&sync=true&value=0200000000000001284b68fea3dcfe8a83e65cd88426b081_0.dat'
```

return
```json
{
    "status": "OK",
    "msg": "OK"
}
```
yagagagaga added a commit to yagagagaga/doris that referenced this pull request Nov 7, 2024
…ache#41037)

## Proposed changes

Add a http action which is useful when you debug.

### API
```http
GET /api/file_cache
```

### request parameter

#### request parameter1

|param|type|desc|require|
|:---|:---|:---|:---|
|op|string|the value must be `list_cache`, other value you can refer to
apache#40831 apache#37484 |yes|
|value|string|the segment file name |yes|

#### request parameter2

|param|type|desc|require|
|:---|:---|:---|:---|
|op|string|the value must be `clear`, other value you can refer to
apache#40831 apache#37484 |yes|
|value|string|the segment file name |yes|
|sync|bool|clean local cache in sync |no|

### response

#### response1

if success
|param|type|desc|
|:---|:---|:---|
||array|return the segment file cache in local path|

if fail
|param|type|desc|
|:---|:---|:---|
||array|empty array|

#### response2

if success
|param|type|desc|
|:---|:---|:---|
|status|string||
|msg|string||

### example

#### case 1

```bash
curl  '172.100.0.4:8040/api/file_cache?op=list_cache&value=0200000000000001bf42c14374fff491ffb7c89a1a65c5bb_0.dat'
```

return
```json
["/opt/doris/be/file_cache/c6a/c6a599f453f67f0949f80ad9990fa3dd/0"]
```

#### case 2

```bash
curl '127.0.0.1:8040/api/file_cache?op=clear&sync=true&value=0200000000000001284b68fea3dcfe8a83e65cd88426b081_0.dat'
```

return
```json
{
    "status": "OK",
    "msg": "OK"
}
```

(cherry picked from commit 99d0748)
gavinchou pushed a commit that referenced this pull request Nov 14, 2024
…and clear (#41037) (#43412)

## Proposed changes

Add a http action which is useful when you debug.

### API
```http
GET /api/file_cache
```

### request parameter

#### request parameter1

|param|type|desc|require|
|:---|:---|:---|:---|
|op|string|the value must be `list_cache`, other value you can refer to
#40831 #37484 |yes|
|value|string|the segment file name |yes|

#### request parameter2

|param|type|desc|require|
|:---|:---|:---|:---|
|op|string|the value must be `clear`, other value you can refer to
#40831 #37484 |yes|
|value|string|the segment file name |yes|
|sync|bool|clean local cache in sync |no|

### response

#### response1

if success
|param|type|desc|
|:---|:---|:---|
||array|return the segment file cache in local path|

if fail
|param|type|desc|
|:---|:---|:---|
||array|empty array|

#### response2

if success
|param|type|desc|
|:---|:---|:---|
|status|string||
|msg|string||

### example

#### case 1

```bash
curl  '172.100.0.4:8040/api/file_cache?op=list_cache&value=0200000000000001bf42c14374fff491ffb7c89a1a65c5bb_0.dat'
```

return
```json
["/opt/doris/be/file_cache/c6a/c6a599f453f67f0949f80ad9990fa3dd/0"]
```

#### case 2

```bash
curl '127.0.0.1:8040/api/file_cache?op=clear&sync=true&value=0200000000000001284b68fea3dcfe8a83e65cd88426b081_0.dat'
```

return
```json
{
    "status": "OK",
    "msg": "OK"
}
```

(cherry picked from commit 99d0748)
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. dev/3.0.1-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants