Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
aurora systemd config
# /etc/systemd/system/aurora-scheduler.service
[Unit]
Description=The Aurora mesos job scheduler
After=default.target
ConditionPathExists=/etc/sysconfig/aurora-scheduler
[Service]
EnvironmentFile=/etc/sysconfig/aurora-scheduler
ExecStart=/usr/bin/aurora-scheduler \
-logtostderr \
-http_port=${HTTP_PORT} \
-cluster_name=${CLUSTER_NAME} \
-backup_dir=${BACKUP_DIR} \
-zk_endpoints=${ZK_ENDPOINTS} \
-serverset_path=$SERVERSET_PATH \
-gc_executor_path=/usr/bin/gc_executor \
-mesos_master_address=${MESOS_MASTER_ADDRESS} \
-native_log_zk_group_path=${NATIVE_LOG_ZK_PATH} \
-native_log_quorum_size=${NATIVE_LOG_QUORUM} \
-thermos_executor_path=/usr/bin/thermos_executor \
-native_log_file_path=${REPLICATED_LOG} \
-allowed_container_types="MESOS,DOCKER" \
-thermos_executor_flags="--announcer-enable --announcer-ensemble=10.12.4.7:2181" \
-vlog="INFO"
[Install]
WantedBy=multi-user.target
# /etc/sysconfig/aurora-scheduler
#
# Env variables to control the behavior of the mesos scheduler driver (libmesos.so)
# See:
# https://github.com/apache/mesos/blob/master/src/slave/containerizer/containerizer.cpp
GLOG_v=1
LIBPROCESS_PORT=8083
# Aurora specific configuration
HTTP_PORT=8081
CLUSTER_NAME=atlas
ZK_ENDPOINTS=10.4.3.12:2181,10.4.3.13:2181,10.4.3.14:2181
MESOS_MASTER_ADDRESS=zk://10.4.3.12:2181,10.4.3.13:2181,10.4.3.14:2181/mesos
SERVERSET_PATH=/aurora/scheduler
REPLICATED_LOG=/var/db/aurora
BACKUP_DIR=/var/lib/aurora
NATIVE_LOG_ZK_PATH=/aurora/replicated-log
NATIVE_LOG_QUORUM=2
JAVA_OPTS="-mx2g -ms2g -Djava.library.path=/usr/share/aurora/lib"
MESOS_NATIVE_LIBRARY="/usr/lib64/libmesos.so.22"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.