com.staros.util.Config Maven / Gradle / Ivy
// Copyright 2021-present StarRocks, Inc. All rights reserved.
//
// Licensed 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
//
// https://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.
package com.staros.util;
public class Config extends ConfigBase {
/**
* star manager ip address
*/
@ConfField
public static String STARMGR_IP = "127.0.0.1";
/**
* star manager rpc port
*/
@ConfField
public static int STARMGR_RPC_PORT = 6090;
/**
* S3 object storage bucket
*/
@ConfField
public static String S3_BUCKET = "";
/**
* S3 object storage endpoint
*/
@ConfField
public static String S3_ENDPOINT = "";
/**
* S3 object storage region
*/
@ConfField
public static String S3_REGION = "";
/**
* S3 object ak
*/
@ConfField
public static String S3_AK = "";
/**
* S3 object sk
*/
@ConfField
public static String S3_SK = "";
@ConfField
public static String HDFS_URL = "";
/* default file store type used */
@ConfField
public static String DEFAULT_FS_TYPE = "S3";
@ConfField
public static String LOG_DIR = "./log";
/**
* log level, it can be "DEBUG", "INFO", "WARN" or "ERROR"
*/
@ConfField
public static String LOG_LEVEL = "INFO";
/**
* worker heartbeat interval in second
*/
@ConfField
public static int WORKER_HEARTBEAT_INTERVAL_SEC = 10;
/**
* worker heartbeat retry count before set it to DOWN state
*/
@ConfField
public static int WORKER_HEARTBEAT_RETRY_COUNT = 3;
/**
* shard scheduler loop interval in second
*/
@ConfField
public static int SHARD_SCHEDULER_LOOP_INTERVAL_SEC = 1;
/**
* shard checker loop interval in second
*/
@ConfField
public static int SHARD_CHECKER_LOOP_INTERVAL_SEC = 10;
/**
* scheduler core thread pool size to do worker matching and selecting
*/
@ConfField
public static int SCHEDULER_CORE_THREAD_POOL_SIZE = 1;
/**
* scheduler thread pool size to dispatch the assignment to worker
*/
@ConfField
public static int SCHEDULER_DISPATCH_WORKER_THREAD_POOL_SIZE = 2;
/**
* Whether triggering a scheduling to default worker group when a new shard is created.
*/
@ConfField
public static boolean SCHEDULER_TRIGGER_SCHEDULE_WHEN_CREATE_SHARD = true;
/**
* Tolerance of max skewness of replicas in a shard group without triggering a balance.
*/
@ConfField
public static int SCHEDULER_BALANCE_MAX_SKEW = 1;
/**
* disable background shard schedule check
*/
@ConfField
public static boolean DISABLE_BACKGROUND_SHARD_SCHEDULE_CHECK = false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy