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

[opt](log) refactor the log dir config #32933

Merged
merged 4 commits into from
Mar 29, 2024
Merged

Conversation

morningman
Copy link
Contributor

@morningman morningman commented Mar 27, 2024

Proposed changes

Refactor the config for log dir of FE and BE

TLDR:

  • Use env variable LOG_DIR to set root log dir
  • Remove sys_log_dir for FE and BE

Details:

  1. FE

    1. The root log dir is set by env variable LOG_DIR in fe.conf
    2. The default value of audit_log_dir is same as ${LOG_DIR}/
    3. The default value of spark_launcher_log_dir is ${LOG_DIR}/spark_launcher_log
    4. The default value of nereids_trace_log_dir is ${LOG_DIR}/nereids_trace_log
    5. The origin sys_log_dir is deprecated, and default value is "".
      But for compatibility, if user already set sys_log_dir before, Doris will still use it as root log dir.
  2. BE

    1. The root log dir is set by env variable LOG_DIR in be.conf
    2. Remove pipeline_tracing_log_dir, use ${LOG_DIR} directly.
    3. The origin sys_log_dir is deprecated, and default value is "".
      But for compatibility, if user already set sys_log_dir before, Doris will still use it as root log dir.

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

@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.

Copy link
Contributor

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

Copy link
Contributor

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

@morningman
Copy link
Contributor Author

run buildall

Copy link
Contributor

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

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.25% (8740/24796)
Line Coverage: 27.02% (71553/264788)
Region Coverage: 26.27% (37132/141327)
Branch Coverage: 23.17% (18984/81936)
Coverage Report: http://coverage.selectdb-in.cc/coverage/2e8b2a046578a3d2246ceda6105b3d7651bc1339_2e8b2a046578a3d2246ceda6105b3d7651bc1339/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17602	4333	4165	4165
q2	2120	161	157	157
q3	10572	1113	1192	1113
q4	10243	802	798	798
q5	7460	3053	3039	3039
q6	202	123	124	123
q7	1049	606	582	582
q8	9349	2031	2004	2004
q9	7368	6647	6588	6588
q10	8462	3476	3580	3476
q11	430	237	233	233
q12	420	204	207	204
q13	17783	2858	2872	2858
q14	232	215	213	213
q15	508	481	462	462
q16	510	386	380	380
q17	968	635	585	585
q18	7179	6499	6482	6482
q19	2572	1379	1493	1379
q20	565	253	282	253
q21	3522	2923	2855	2855
q22	343	312	304	304
Total cold run time: 109459 ms
Total hot run time: 38253 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4183	4098	4112	4098
q2	337	237	229	229
q3	2979	2856	2845	2845
q4	1843	1553	1501	1501
q5	5321	5351	5363	5351
q6	200	121	119	119
q7	2227	1927	1869	1869
q8	3200	3326	3310	3310
q9	8740	8709	8728	8709
q10	3851	3766	3810	3766
q11	546	444	448	444
q12	717	534	551	534
q13	16919	2875	2875	2875
q14	279	248	267	248
q15	504	471	461	461
q16	488	420	437	420
q17	1752	1501	1496	1496
q18	7566	7155	7046	7046
q19	1610	1553	1526	1526
q20	1909	1734	1717	1717
q21	4785	4651	4628	4628
q22	527	462	458	458
Total cold run time: 70483 ms
Total hot run time: 53650 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 182118 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 2e8b2a046578a3d2246ceda6105b3d7651bc1339, data reload: false

query1	938	369	345	345
query2	6570	2034	1955	1955
query3	6701	210	223	210
query4	31524	21413	21402	21402
query5	4295	400	388	388
query6	268	184	179	179
query7	4633	300	289	289
query8	234	177	195	177
query9	9403	2360	2341	2341
query10	564	244	248	244
query11	15353	14214	14376	14214
query12	130	94	84	84
query13	1647	406	412	406
query14	10300	7970	7471	7471
query15	244	222	196	196
query16	8237	269	272	269
query17	1993	569	562	562
query18	2101	300	282	282
query19	346	162	161	161
query20	96	87	88	87
query21	200	126	126	126
query22	5026	4847	4773	4773
query23	33622	32994	32843	32843
query24	10816	2882	2906	2882
query25	627	391	391	391
query26	1172	162	157	157
query27	2603	350	351	350
query28	7466	1938	1928	1928
query29	884	668	632	632
query30	307	149	151	149
query31	973	733	731	731
query32	96	56	58	56
query33	778	253	252	252
query34	1044	494	496	494
query35	836	625	627	625
query36	1025	879	882	879
query37	131	69	67	67
query38	3497	3455	3467	3455
query39	1486	1444	1434	1434
query40	211	120	113	113
query41	50	48	52	48
query42	100	96	98	96
query43	482	452	463	452
query44	1155	738	738	738
query45	271	255	271	255
query46	1118	720	704	704
query47	1926	1839	1876	1839
query48	444	359	377	359
query49	1110	346	339	339
query50	753	380	381	380
query51	6600	6572	6568	6568
query52	108	87	95	87
query53	346	272	274	272
query54	308	238	248	238
query55	87	73	82	73
query56	243	229	236	229
query57	1207	1130	1151	1130
query58	237	207	206	206
query59	2809	2585	2685	2585
query60	255	237	275	237
query61	99	110	89	89
query62	684	452	478	452
query63	296	272	275	272
query64	5696	3901	3920	3901
query65	3129	3042	3011	3011
query66	1041	366	350	350
query67	15411	15331	14917	14917
query68	7092	525	539	525
query69	623	379	396	379
query70	1205	1165	1198	1165
query71	494	264	263	263
query72	6389	2719	2563	2563
query73	727	325	327	325
query74	7926	6464	6466	6464
query75	3881	2196	2246	2196
query76	4848	901	898	898
query77	646	259	256	256
query78	10715	10185	10091	10091
query79	7192	514	535	514
query80	1410	372	370	370
query81	506	221	219	219
query82	242	89	91	89
query83	219	182	156	156
query84	293	82	88	82
query85	1152	374	367	367
query86	366	284	292	284
query87	3807	3567	3525	3525
query88	5022	2384	2394	2384
query89	477	369	366	366
query90	2129	181	183	181
query91	185	145	148	145
query92	61	50	52	50
query93	5986	509	494	494
query94	1246	199	176	176
query95	433	344	328	328
query96	591	280	271	271
query97	2632	2468	2478	2468
query98	232	212	205	205
query99	1089	948	893	893
Total cold run time: 304158 ms
Total hot run time: 182118 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 2e8b2a046578a3d2246ceda6105b3d7651bc1339 with default session variables
Stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       13.8 seconds inserted 10000000 Rows, about 724K ops/s

@morningman morningman marked this pull request as ready for review March 28, 2024 04:08
@morningman
Copy link
Contributor Author

run buildall

Copy link
Contributor

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

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17614	4352	4156	4156
q2	2121	164	157	157
q3	10643	1135	1223	1135
q4	10747	769	792	769
q5	7467	3094	3033	3033
q6	206	125	124	124
q7	1044	594	593	593
q8	9342	2061	2039	2039
q9	7264	6668	6617	6617
q10	8424	3486	3586	3486
q11	436	221	220	220
q12	394	210	210	210
q13	17801	2858	2859	2858
q14	248	202	206	202
q15	519	462	464	462
q16	471	381	380	380
q17	964	527	630	527
q18	7295	6579	6522	6522
q19	1549	1482	1405	1405
q20	572	257	265	257
q21	3700	2942	2968	2942
q22	363	320	305	305
Total cold run time: 109184 ms
Total hot run time: 38399 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4082	4125	4100	4100
q2	325	224	226	224
q3	2966	2839	2891	2839
q4	1856	1573	1606	1573
q5	5335	5355	5360	5355
q6	199	114	117	114
q7	2261	1856	1866	1856
q8	3171	3286	3291	3286
q9	8724	8712	8734	8712
q10	3822	3827	3822	3822
q11	547	455	444	444
q12	713	542	551	542
q13	16942	2870	2815	2815
q14	290	274	253	253
q15	499	484	464	464
q16	479	418	430	418
q17	1746	1533	1477	1477
q18	7412	7269	7259	7259
q19	2951	1506	1515	1506
q20	1898	1748	1704	1704
q21	4872	4781	4674	4674
q22	554	471	469	469
Total cold run time: 71644 ms
Total hot run time: 53906 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 182219 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 2b4bdeea332c0d6fd710203765b6d5f827a83b64, data reload: false

query1	930	372	354	354
query2	6543	1989	1866	1866
query3	6705	206	208	206
query4	31981	21450	21459	21450
query5	4339	395	399	395
query6	269	177	183	177
query7	4630	293	288	288
query8	234	176	175	175
query9	9167	2318	2293	2293
query10	585	256	262	256
query11	17234	14293	14242	14242
query12	137	91	87	87
query13	1633	433	425	425
query14	10022	7569	7549	7549
query15	243	192	200	192
query16	8125	258	259	258
query17	1967	577	552	552
query18	2100	312	288	288
query19	253	157	153	153
query20	92	89	86	86
query21	201	134	127	127
query22	4997	4843	4785	4785
query23	33674	32914	33024	32914
query24	11531	2841	2904	2841
query25	635	377	385	377
query26	1695	156	157	156
query27	3026	351	353	351
query28	7546	1930	1902	1902
query29	1004	638	620	620
query30	302	149	150	149
query31	965	751	752	751
query32	95	58	57	57
query33	782	254	249	249
query34	1063	503	484	484
query35	831	600	602	600
query36	989	903	890	890
query37	128	65	69	65
query38	3507	3437	3398	3398
query39	1462	1456	1404	1404
query40	296	115	114	114
query41	51	53	51	51
query42	120	99	97	97
query43	477	431	428	428
query44	1173	712	721	712
query45	306	265	264	264
query46	1115	684	717	684
query47	1962	1848	1875	1848
query48	454	356	369	356
query49	1188	337	331	331
query50	755	368	380	368
query51	6737	6603	6622	6603
query52	112	97	100	97
query53	348	278	276	276
query54	339	249	248	248
query55	91	79	80	79
query56	251	234	237	234
query57	1250	1143	1153	1143
query58	236	206	212	206
query59	2733	2495	2580	2495
query60	277	242	248	242
query61	116	117	115	115
query62	669	444	455	444
query63	304	275	273	273
query64	6899	4101	4063	4063
query65	3132	3050	3033	3033
query66	1435	363	360	360
query67	15391	15361	15043	15043
query68	8374	538	553	538
query69	627	391	389	389
query70	1209	1183	1196	1183
query71	508	263	268	263
query72	6368	2748	2574	2574
query73	736	312	312	312
query74	6882	6454	6538	6454
query75	4043	2227	2240	2227
query76	5056	856	862	856
query77	645	258	250	250
query78	11006	10217	10155	10155
query79	12692	525	528	525
query80	1806	369	367	367
query81	509	217	210	210
query82	709	86	88	86
query83	224	143	162	143
query84	286	88	76	76
query85	1173	323	312	312
query86	379	307	300	300
query87	3717	3503	3506	3503
query88	5332	2302	2288	2288
query89	514	368	367	367
query90	2082	173	181	173
query91	169	136	158	136
query92	62	47	46	46
query93	7261	518	510	510
query94	1335	176	174	174
query95	429	336	333	333
query96	622	268	266	266
query97	2633	2462	2472	2462
query98	229	214	211	211
query99	1176	911	925	911
Total cold run time: 318632 ms
Total hot run time: 182219 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 2b4bdeea332c0d6fd710203765b6d5f827a83b64 with default session variables
Stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      33 seconds loaded 861443392 Bytes, about 24 MB/s
Insert into select:       13.8 seconds inserted 10000000 Rows, about 724K ops/s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.63% (8835/24797)
Line Coverage: 27.34% (72407/264812)
Region Coverage: 26.57% (37561/141349)
Branch Coverage: 23.38% (19160/81946)
Coverage Report: http://coverage.selectdb-in.cc/coverage/2b4bdeea332c0d6fd710203765b6d5f827a83b64_2b4bdeea332c0d6fd710203765b6d5f827a83b64/report/index.html

@morningman
Copy link
Contributor Author

run buildall

//TODO: when dump, now could append records but can't add new query. try use better grained locks.
std::unique_lock<std::mutex> l(_data_lock); // can't rehash
if (_dump_type == RecordType::PerQuery) {
auto path = _dir / fmt::format("query{}", to_string(query_id));
auto path = log_dir / fmt::format("query{}", to_string(query_id));
Copy link
Contributor

Choose a reason for hiding this comment

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

Lost tracing dir

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

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17754	6288	4256	4256
q2	3107	164	156	156
q3	11455	1159	1211	1159
q4	11111	807	763	763
q5	7545	3046	3042	3042
q6	208	130	133	130
q7	1093	617	601	601
q8	9599	2052	2047	2047
q9	7388	6661	6638	6638
q10	8427	3469	3593	3469
q11	440	228	218	218
q12	381	202	199	199
q13	17797	2895	2866	2866
q14	237	201	199	199
q15	513	459	465	459
q16	489	379	373	373
q17	938	629	563	563
q18	7235	6564	6377	6377
q19	1558	1434	1465	1434
q20	553	264	249	249
q21	3637	2892	2975	2892
q22	363	304	321	304
Total cold run time: 111828 ms
Total hot run time: 38394 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4134	4106	4070	4070
q2	325	228	234	228
q3	3006	2860	2860	2860
q4	1832	1568	1572	1568
q5	5319	5313	5321	5313
q6	196	119	119	119
q7	2277	1883	1884	1883
q8	3160	3281	3284	3281
q9	8726	8700	8726	8700
q10	3809	3748	3730	3730
q11	534	447	441	441
q12	716	563	533	533
q13	16160	2882	2824	2824
q14	284	253	271	253
q15	493	461	468	461
q16	473	422	436	422
q17	1718	1516	1471	1471
q18	7610	7045	7006	7006
q19	1599	1533	1553	1533
q20	1894	1707	1730	1707
q21	4837	4754	4686	4686
q22	563	467	450	450
Total cold run time: 69665 ms
Total hot run time: 53539 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.63% (8834/24797)
Line Coverage: 27.34% (72399/264827)
Region Coverage: 26.57% (37556/141354)
Branch Coverage: 23.37% (19153/81950)
Coverage Report: http://coverage.selectdb-in.cc/coverage/2b4bdeea332c0d6fd710203765b6d5f827a83b64_2b4bdeea332c0d6fd710203765b6d5f827a83b64/report/index.html

@doris-robot
Copy link

TPC-DS: Total hot run time: 181654 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 2b4bdeea332c0d6fd710203765b6d5f827a83b64, data reload: false

query1	926	367	368	367
query2	6525	1992	1882	1882
query3	6702	206	213	206
query4	31933	21360	21284	21284
query5	4312	394	387	387
query6	263	176	177	176
query7	4618	289	295	289
query8	225	173	170	170
query9	9328	2379	2361	2361
query10	559	249	264	249
query11	15231	14216	14372	14216
query12	136	98	82	82
query13	1632	420	420	420
query14	10063	7599	7367	7367
query15	241	195	209	195
query16	8227	278	267	267
query17	1967	560	550	550
query18	2097	279	272	272
query19	365	146	148	146
query20	95	88	83	83
query21	203	129	128	128
query22	4986	4806	4772	4772
query23	33644	32880	33090	32880
query24	11750	2842	2861	2842
query25	643	363	365	363
query26	1797	163	154	154
query27	3085	353	356	353
query28	8010	1939	1917	1917
query29	1027	637	629	629
query30	304	150	148	148
query31	980	754	755	754
query32	93	58	57	57
query33	771	254	256	254
query34	1118	491	499	491
query35	825	618	617	617
query36	1051	895	867	867
query37	270	66	66	66
query38	3687	3461	3467	3461
query39	1521	1446	1428	1428
query40	290	115	114	114
query41	52	49	47	47
query42	111	99	94	94
query43	497	460	466	460
query44	1222	728	722	722
query45	291	267	269	267
query46	1123	716	720	716
query47	1903	1846	1856	1846
query48	462	359	362	359
query49	1235	344	340	340
query50	764	383	382	382
query51	6697	6574	6672	6574
query52	102	95	91	91
query53	349	273	281	273
query54	328	236	247	236
query55	84	81	86	81
query56	255	229	228	228
query57	1238	1164	1163	1163
query58	238	214	224	214
query59	2806	2816	2673	2673
query60	280	244	259	244
query61	118	127	112	112
query62	662	445	445	445
query63	300	275	275	275
query64	6867	4075	4004	4004
query65	3101	3019	3044	3019
query66	1421	376	373	373
query67	15565	14964	14777	14777
query68	8663	531	553	531
query69	631	379	389	379
query70	1177	1062	1170	1062
query71	513	273	265	265
query72	6400	2715	2561	2561
query73	756	319	325	319
query74	6797	6484	6349	6349
query75	4021	2230	2251	2230
query76	5300	880	937	880
query77	642	263	257	257
query78	11082	10099	10129	10099
query79	9784	524	527	524
query80	1592	379	375	375
query81	504	219	214	214
query82	627	92	85	85
query83	208	157	151	151
query84	289	84	79	79
query85	1316	320	306	306
query86	400	270	276	270
query87	3723	3561	3494	3494
query88	4594	2389	2380	2380
query89	512	369	371	369
query90	2071	176	179	176
query91	180	138	137	137
query92	62	48	46	46
query93	6923	512	506	506
query94	1210	172	178	172
query95	422	337	336	336
query96	631	269	272	269
query97	2667	2466	2464	2464
query98	228	218	205	205
query99	1246	885	891	885
Total cold run time: 314742 ms
Total hot run time: 181654 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 2b4bdeea332c0d6fd710203765b6d5f827a83b64 with default session variables
Stream load json:         20 seconds loaded 2358488459 Bytes, about 112 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       14.2 seconds inserted 10000000 Rows, about 704K ops/s

@morningman
Copy link
Contributor Author

run buildall

Copy link
Contributor

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

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18021	4497	4211	4211
q2	2371	169	165	165
q3	11073	1190	1241	1190
q4	10594	801	846	801
q5	7621	2989	2982	2982
q6	213	129	125	125
q7	1075	629	586	586
q8	9675	2091	2066	2066
q9	7111	6497	6373	6373
q10	8438	3495	3623	3495
q11	435	223	213	213
q12	371	199	188	188
q13	17821	2862	2831	2831
q14	246	198	196	196
q15	514	473	455	455
q16	504	376	368	368
q17	968	554	567	554
q18	7181	6456	6496	6456
q19	1837	1458	1497	1458
q20	546	256	253	253
q21	3613	2883	2874	2874
q22	336	299	292	292
Total cold run time: 110564 ms
Total hot run time: 38132 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4097	4098	4054	4054
q2	336	238	241	238
q3	2988	2873	2891	2873
q4	1848	1579	1570	1570
q5	5285	5222	5278	5222
q6	192	116	115	115
q7	2216	1791	1808	1791
q8	3185	3381	3353	3353
q9	8437	8412	8466	8412
q10	3828	3815	3776	3776
q11	538	440	437	437
q12	726	584	570	570
q13	16931	2863	2871	2863
q14	297	253	262	253
q15	490	459	457	457
q16	469	424	407	407
q17	1735	1516	1480	1480
q18	7380	7148	7093	7093
q19	1618	1503	1570	1503
q20	1918	1738	1715	1715
q21	4820	4644	4558	4558
q22	531	432	467	432
Total cold run time: 69865 ms
Total hot run time: 53172 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.63% (8835/24797)
Line Coverage: 27.34% (72394/264824)
Region Coverage: 26.56% (37542/141354)
Branch Coverage: 23.36% (19147/81950)
Coverage Report: http://coverage.selectdb-in.cc/coverage/5634ad85a1c39754979ee813d036979181c453d4_5634ad85a1c39754979ee813d036979181c453d4/report/index.html

@doris-robot
Copy link

TPC-DS: Total hot run time: 180961 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 5634ad85a1c39754979ee813d036979181c453d4, data reload: false

query1	948	353	346	346
query2	6542	2041	1961	1961
query3	6704	213	212	212
query4	32012	21368	21249	21249
query5	4289	395	391	391
query6	263	180	164	164
query7	4631	285	289	285
query8	232	169	176	169
query9	9557	2383	2358	2358
query10	569	254	255	254
query11	17256	14169	14198	14169
query12	141	89	88	88
query13	1620	414	420	414
query14	11895	7841	7035	7035
query15	267	183	183	183
query16	8047	267	250	250
query17	2009	566	549	549
query18	1386	287	285	285
query19	343	146	146	146
query20	90	86	88	86
query21	199	123	126	123
query22	5021	4900	4879	4879
query23	33588	32832	32663	32663
query24	10747	2834	2835	2834
query25	613	363	380	363
query26	1422	157	155	155
query27	2930	353	352	352
query28	7470	1947	1924	1924
query29	891	635	626	626
query30	299	151	146	146
query31	1004	728	768	728
query32	97	58	57	57
query33	772	253	256	253
query34	1054	479	500	479
query35	827	620	624	620
query36	1006	880	879	879
query37	124	64	65	64
query38	3500	3401	3432	3401
query39	1488	1434	1439	1434
query40	210	114	118	114
query41	51	47	48	47
query42	104	96	94	94
query43	492	438	447	438
query44	1136	730	705	705
query45	283	268	267	267
query46	1112	689	699	689
query47	1968	1887	1838	1838
query48	453	345	360	345
query49	1116	342	330	330
query50	759	368	375	368
query51	6794	6776	6767	6767
query52	102	97	90	90
query53	346	273	275	273
query54	301	247	236	236
query55	88	79	87	79
query56	252	218	224	218
query57	1221	1152	1153	1152
query58	244	213	215	213
query59	2813	2732	2548	2548
query60	277	242	259	242
query61	113	128	115	115
query62	643	423	408	408
query63	300	269	275	269
query64	5910	4026	4121	4026
query65	3068	3021	3033	3021
query66	1084	382	381	381
query67	15380	15087	14820	14820
query68	7051	529	526	526
query69	632	412	385	385
query70	1224	1144	1162	1144
query71	496	270	264	264
query72	6442	2514	2331	2331
query73	722	330	313	313
query74	6855	6475	6495	6475
query75	3368	2213	2169	2169
query76	4551	892	885	885
query77	724	251	260	251
query78	10882	10254	10121	10121
query79	8138	543	527	527
query80	1441	382	363	363
query81	529	215	221	215
query82	877	84	86	84
query83	206	145	147	145
query84	284	82	78	78
query85	1556	327	305	305
query86	464	308	324	308
query87	3757	3560	3593	3560
query88	4944	2384	2365	2365
query89	521	371	375	371
query90	2083	177	182	177
query91	175	152	135	135
query92	62	47	47	47
query93	6859	506	493	493
query94	1250	181	173	173
query95	434	331	333	331
query96	607	279	267	267
query97	2633	2477	2465	2465
query98	232	215	201	201
query99	1203	820	856	820
Total cold run time: 309675 ms
Total hot run time: 180961 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 5634ad85a1c39754979ee813d036979181c453d4 with default session variables
Stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       13.8 seconds inserted 10000000 Rows, about 724K ops/s

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Mar 28, 2024
Copy link
Contributor

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

Copy link
Contributor

PR approved by anyone and no changes requested.

@@ -52,6 +52,7 @@ struct ScheduleRecord {
using OneQueryTraces = moodycamel::ConcurrentQueue<ScheduleRecord>;

// belongs to exec_env, for all query, if enable
// curl http://{host}:{web_server_port}/api/running_pipeline_tasks
Copy link
Contributor

Choose a reason for hiding this comment

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

PipelineTracerContext has nothing to do with running_pipeline_tasks. It's a experimental function WIP

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, I will remove it in next PR

@morningman morningman merged commit 4edb6cf into apache:master Mar 29, 2024
28 of 36 checks passed
morningman added a commit that referenced this pull request Apr 12, 2024
Refactor the config for log dir of FE and BE

TLDR:
- Use env variable `LOG_DIR` to set root log dir
- Remove `sys_log_dir` for FE and BE

Details:

1. FE

    1. The root log dir is set by env variable `LOG_DIR` in `fe.conf`
    2. The default value of `audit_log_dir` is same as `${LOG_DIR}/`
    3. The default value of `spark_launcher_log_dir` is `${LOG_DIR}/spark_launcher_log`
    4. The default value of `nereids_trace_log_dir` is `${LOG_DIR}/nereids_trace_log`
    5. The origin `sys_log_dir` is deprecated, and default value is `""`.
        But for compatibility, if user already set `sys_log_dir` before, Doris will still use it as root log dir.

2. BE

     1. The root log dir is set by env variable `LOG_DIR` in `be.conf`
     2. Remove `pipeline_tracing_log_dir`, use `${LOG_DIR}` directly.
     3. The origin `sys_log_dir` is deprecated, and default value is `""`.
         But for compatibility, if user already set `sys_log_dir` before, Doris will still use it as root log dir.
yiguolei pushed a commit that referenced this pull request Apr 13, 2024
Refactor the config for log dir of FE and BE

TLDR:
- Use env variable `LOG_DIR` to set root log dir
- Remove `sys_log_dir` for FE and BE

Details:

1. FE

    1. The root log dir is set by env variable `LOG_DIR` in `fe.conf`
    2. The default value of `audit_log_dir` is same as `${LOG_DIR}/`
    3. The default value of `spark_launcher_log_dir` is `${LOG_DIR}/spark_launcher_log`
    4. The default value of `nereids_trace_log_dir` is `${LOG_DIR}/nereids_trace_log`
    5. The origin `sys_log_dir` is deprecated, and default value is `""`.
        But for compatibility, if user already set `sys_log_dir` before, Doris will still use it as root log dir.

2. BE

     1. The root log dir is set by env variable `LOG_DIR` in `be.conf`
     2. Remove `pipeline_tracing_log_dir`, use `${LOG_DIR}` directly.
     3. The origin `sys_log_dir` is deprecated, and default value is `""`.
         But for compatibility, if user already set `sys_log_dir` before, Doris will still use it as root log dir.
yiguolei pushed a commit that referenced this pull request Apr 13, 2024
Refactor the config for log dir of FE and BE

TLDR:
- Use env variable `LOG_DIR` to set root log dir
- Remove `sys_log_dir` for FE and BE

Details:

1. FE

    1. The root log dir is set by env variable `LOG_DIR` in `fe.conf`
    2. The default value of `audit_log_dir` is same as `${LOG_DIR}/`
    3. The default value of `spark_launcher_log_dir` is `${LOG_DIR}/spark_launcher_log`
    4. The default value of `nereids_trace_log_dir` is `${LOG_DIR}/nereids_trace_log`
    5. The origin `sys_log_dir` is deprecated, and default value is `""`.
        But for compatibility, if user already set `sys_log_dir` before, Doris will still use it as root log dir.

2. BE

     1. The root log dir is set by env variable `LOG_DIR` in `be.conf`
     2. Remove `pipeline_tracing_log_dir`, use `${LOG_DIR}` directly.
     3. The origin `sys_log_dir` is deprecated, and default value is `""`.
         But for compatibility, if user already set `sys_log_dir` before, Doris will still use it as root log dir.
yiguolei pushed a commit that referenced this pull request Apr 17, 2024
Refactor the config for log dir of FE and BE

TLDR:
- Use env variable `LOG_DIR` to set root log dir
- Remove `sys_log_dir` for FE and BE

Details:

1. FE

    1. The root log dir is set by env variable `LOG_DIR` in `fe.conf`
    2. The default value of `audit_log_dir` is same as `${LOG_DIR}/`
    3. The default value of `spark_launcher_log_dir` is `${LOG_DIR}/spark_launcher_log`
    4. The default value of `nereids_trace_log_dir` is `${LOG_DIR}/nereids_trace_log`
    5. The origin `sys_log_dir` is deprecated, and default value is `""`.
        But for compatibility, if user already set `sys_log_dir` before, Doris will still use it as root log dir.

2. BE

     1. The root log dir is set by env variable `LOG_DIR` in `be.conf`
     2. Remove `pipeline_tracing_log_dir`, use `${LOG_DIR}` directly.
     3. The origin `sys_log_dir` is deprecated, and default value is `""`.
         But for compatibility, if user already set `sys_log_dir` before, Doris will still use it as root log dir.
@morningman morningman mentioned this pull request May 16, 2024
1 task
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/2.1.3-merged kind/behavior-changed reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants