Skip to content

Instantly share code, notes, and snippets.

@yujikiriki
Created September 11, 2015 20:58
Show Gist options
  • Select an option

  • Save yujikiriki/2813cc7dc1496a35b5da to your computer and use it in GitHub Desktop.

Select an option

Save yujikiriki/2813cc7dc1496a35b5da to your computer and use it in GitHub Desktop.

Revisions

  1. Yuji Kiriki created this gist Sep 11, 2015.
    32 changes: 32 additions & 0 deletions scheduler.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    #!/usr/bin/env bash
    # Location where aurora-scheduler.zip was unpacked.
    AURORA_SCHEDULER_HOME=/home/yuji/git/aurora/dist/distributions/aurora-scheduler-0.9.0

    # Flags that control the behavior of the JVM.
    JAVA_OPTS=(
    -server
    -Xmx2g
    -Xms2g
    -Djava.library.path=/home/yuji/git/mesos/build/src/.libs/
    )

    AURORA_FLAGS=(
    -thermos_executor_ram=512MB
    -cluster_name=us-east
    -http_port=8081
    -native_log_quorum_size=1
    -zk_endpoints=127.0.0.1:2181
    -mesos_master_address=zk://127.0.0.1:2181/mesos/master
    -serverset_path=/aurora/scheduler
    -native_log_zk_group_path=/aurora/replicated-log
    -native_log_file_path="$AURORA_SCHEDULER_HOME/db"
    -backup_dir="$AURORA_SCHEDULER_HOME/backups"
    -thermos_executor_path=/dev/null
    -vlog=INFO
    -logtostderr
    )

    export GLOG_v=0
    export LIBPROCESS_PORT=8083

    JAVA_OPTS="${JAVA_OPTS[*]}" exec "$AURORA_SCHEDULER_HOME/bin/aurora-scheduler" "${AURORA_FLAGS[@]}"