forked from mesos/chronos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4d9ca6
commit 5bbe1db
Showing
3 changed files
with
77 additions
and
1 deletion.
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,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" |
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,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 |
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