Skip to content

Commit

Permalink
Adding marathon integration
Browse files Browse the repository at this point in the history
  • Loading branch information
florianleibert committed Oct 4, 2013
1 parent c4d9ca6 commit 5bbe1db
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 1 deletion.
18 changes: 18 additions & 0 deletions bin/chronos-marathon
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

export JAVA_LIBRARY_PATH="/usr/local/lib:/lib:/usr/lib"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JAVA_LIBRARY_PATH"
config="$1"
jar_file="$2"
mesos_master="$( < /etc/mesos/zk)"
tmp="${mesos_master//zk:\/\/}"
zk_host="${tmp/\/*}"
heap=384m

java -Xmx"$heap" -Xms"$heap" -cp "$jar_file" \
-Ddw.http.port="$PORT0" \
-Ddw.http.adminPort="$PORT1" \
-Ddw.zookeeperServers="$zk_host" \
-Ddw.master="$mesos_master" \
com.airbnb.scheduler.Main \
server "$config"
58 changes: 58 additions & 0 deletions config/nomail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
scheduleHorizonSeconds: 30
zookeeperTimeoutMs: 50000
master: "localhost"
zookeeperServers: "localhost"
zookeeperStateZnode: "/airbnb/service/chronos/state"
zookeeperLeaderZnode: "/airbnb/service/chronos/leader"
zookeeperCandidateZnode: "/airbnb/service/chronos/candidate"

failureRetryDelay: 60000

# Amount of memory, in MiB, per Mesos task
mesosTaskMem: 1024
# Number of CPUs per Mesos task
mesosTaskCpu: 1.0
# Amount of disk space, in MiB, required per Mesos task
mesosTaskDisk: 1024

# This is the Mesos role, used by resource reservations
mesosRole: "*"

# This can be used to enable checkpointing for this framework
mesosCheckpoint: false

http:
rootPath: /scheduler/*
adminPort: 4401
port: 4400

logging:

# The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
level: WARN

loggers:

"com.airbnb.scheduler": TRACE

file:

# If true, write log statements to a file.
enabled: true

# Do not write log statements below this threshold to the file.
threshold: ALL

# The file to which current statements will be logged.
currentLogFilename: /tmp/chronos-1.log

# When the log file rotates, the archived log will be renamed to this and gzipped. The
# %d is replaced with the previous day (yyyy-MM-dd). Custom rolling windows can be created
# by passing a SimpleDateFormat-compatible format as an argument: "%d{yyyy-MM-dd-hh}".
archivedLogFilenamePattern: ./logs/example-%d.log.gz

# The number of archived files to keep.
archivedFileCount: 5

# The timezone used to format dates. HINT: USE THE DEFAULT, UTC.
timeZone: UTC
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ define([
],
function(_) {
var namespace = "_pollable",
defaultInterval = 200000;
defaultInterval = 8000;

function get(t, k) {
if (!(t[namespace] && t[namespace][k])) { return null; }
Expand Down

0 comments on commit 5bbe1db

Please sign in to comment.