-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: shuming.li <[email protected]>
- Loading branch information
Showing
15 changed files
with
560 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
##################################################################### | ||
## The uppercase properties are read and exported by bin/start_fe.sh. | ||
## To see all Frontend configurations, | ||
## see fe/src/com/starrocks/common/Config.java | ||
|
||
# the output dir of stderr/stdout/gc | ||
LOG_DIR = ${STARROCKS_HOME}/log | ||
|
||
DATE = "$(date +%Y%m%d-%H%M%S)" | ||
#JAVA_OPTS="-Dlog4j2.formatMsgNoLookups=true -Xmx8192m -XX:+UseMembar -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=7 -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:SoftRefLRUPolicyMSPerMB=0 -Xloggc:${LOG_DIR}/fe.gc.log.$DATE" | ||
|
||
#JAVA_OPTS="-Dlog4j2.formatMsgNoLookups=true -Xmx8192m -XX:+UseG1GC -Xlog:gc*:${LOG_DIR}/fe.gc.log.$DATE:time -XX:ErrorFile=${LOG_DIR}/hs_err_pid%p.log -Djava.security.policy=${STARROCKS_HOME}/conf/udf_security.policy" | ||
JAVA_OPTS="-Dlog4j2.formatMsgNoLookups=true -Xmx8192m -XX:+UseG1GC -XX:ErrorFile=${LOG_DIR}/hs_err_pid%p.log -Djava.security.policy=${STARROCKS_HOME}/conf/udf_security.policy" | ||
# For jdk 9+, this JAVA_OPTS will be used as default JVM options | ||
JAVA_OPTS_FOR_JDK_9="-Dlog4j2.formatMsgNoLookups=true -Xmx8192m -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=7 -Xlog:gc*:${LOG_DIR}/fe.gc.log.$DATE:time" | ||
#JAVA_OPTS_FOR_JDK_9="-Dlog4j2.formatMsgNoLookups=true -Xmx8192m -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=7 -XX:-CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:SoftRefLRUPolicyMSPerMB=0 -Xlog:gc*:${LOG_DIR}/fe.gc.log.$DATE:time" | ||
|
||
## | ||
## the lowercase properties are read by main program. | ||
## | ||
|
||
# DEBUG, INFO, WARN, ERROR, FATAL | ||
#sys_log_level = DEBUG | ||
sys_log_level = INFO | ||
#sys_log_level = DEBUG | ||
|
||
# store metadata, create it if it is not exist. | ||
# Default value is ${STARROCKS_HOME}/meta | ||
#meta_dir = ${STARROCKS_HOME}/meta | ||
|
||
http_port = 8131 | ||
rpc_port = 9121 | ||
query_port = 9131 | ||
edit_log_port = 9112 | ||
mysql_service_nio_enabled = true | ||
|
||
# Enable jaeger tracing by setting jaeger_grpc_endpoint | ||
# jaeger_grpc_endpoint = http://localhost:14250 | ||
|
||
# Choose one if there are more than one ip except loopback address. | ||
# Note that there should at most one ip match this list. | ||
# If no ip match this rule, will choose one randomly. | ||
# use CIDR format, e.g. 10.10.10.0/24 | ||
# Default value is empty. | ||
# priority_networks = 10.10.10.0/24;192.168.0.0/16 | ||
|
||
# Advanced configurations | ||
# log_roll_size_mb = 1024 | ||
# sys_log_dir = ${STARROCKS_HOME}/log | ||
# sys_log_roll_num = 10 | ||
# sys_log_verbose_modules = * | ||
# audit_log_dir = ${STARROCKS_HOME}/log | ||
# audit_log_modules = slow_query, query | ||
# audit_log_roll_num = 10 | ||
# meta_delay_toleration_second = 10 | ||
# qe_max_connection = 1024 | ||
# max_conn_per_user = 100 | ||
# qe_query_timeout_second = 300 | ||
# qe_slow_log_ms = 5000 | ||
#metadata_failure_recovery = true | ||
#enable_strict_storage_medium_check=false | ||
|
||
#enable_replicas_on_the_same_host=true | ||
#enable_experimental_mv=true | ||
#enable_incremental_mv=true | ||
enable_statistic_collect=false | ||
#enable_optimizer_trace_log=true | ||
enable_incremental_mv=true | ||
default_replication_num = 1 | ||
max_routine_load_task_num_per_be = 20 | ||
|
||
priority_networks = 172.26.92.0/24 | ||
tablet_stat_update_interval_second=180 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited. | ||
|
||
export HADOOP_CLASSPATH=${STARROCKS_HOME}/lib/hadoop/common/*:${STARROCKS_HOME}/lib/hadoop/common/lib/*:${STARROCKS_HOME}/lib/hadoop/hdfs/*:${STARROCKS_HOME}/lib/hadoop/hdfs/lib/* | ||
export HADOOP_USER_NAME=${USER} | ||
|
||
# the purpose is to use local hadoop configuration first. | ||
# under HADOOP_CONF_DIR(eg. /etc/ecm/hadoop-conf), there are hadoop/hdfs/hbase conf files. | ||
# and by putting HADOOP_CONF_DIR at front of HADOOP_CLASSPATH, local hadoop conf file will be searched & used first. | ||
|
||
# local hadoop configuration is usually well-tailored and optimized, we'd better to leverage that. | ||
# for example, if local hdfs has enabled short-circuit read, then we can use short-circuit read and save io time | ||
|
||
if [ ${HADOOP_CONF_DIR}"X" != "X" ]; then | ||
export HADOOP_CLASSPATH=${HADOOP_CONF_DIR}:${HADOOP_CLASSPATH} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.