-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #785 from IATI/rollback-es-upgrade
Deploy work
- Loading branch information
Showing
14 changed files
with
154 additions
and
68 deletions.
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
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
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
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
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 @@ | ||
#! /bin/sh | ||
### BEGIN INIT INFO | ||
# Provides: elasticsearch | ||
# Required-Start: $all | ||
# Required-Stop: $all | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: Starts elasticsearch | ||
# Description: Starts elasticsearch using start-stop-daemon | ||
### END INIT INFO | ||
|
||
ES_HOME=/usr/share/elasticsearch | ||
JAVA_HOME=/usr/lib/jvm/default-jvm/ | ||
ES_MIN_MEM=256m | ||
ES_MAX_MEM=1g | ||
ES_JAVA_OPTS="-Xms256m -Xmx1g" | ||
DAEMON=$ES_HOME/bin/elasticsearch | ||
NAME=elasticsearch | ||
DESC=elasticsearch | ||
PID_FILE=$ES_HOME/$NAME.pid | ||
DAEMON_OPTS="--pidfile $PID_FILE" | ||
|
||
test -x $DAEMON || exit 0 | ||
|
||
set -e | ||
|
||
case "$1" in | ||
start) | ||
echo -n "Starting $DESC: " | ||
if start-stop-daemon --start --background --user elasticsearch --pidfile $PID_FILE --exec $DAEMON -- $DAEMON_OPTS | ||
then | ||
echo "started." | ||
else | ||
echo "failed." | ||
fi | ||
;; | ||
stop) | ||
echo -n "Stopping $DESC: " | ||
if start-stop-daemon --stop --user elasticsearch --pidfile $PID_FILE | ||
then | ||
echo "stopped." | ||
else | ||
echo "failed." | ||
fi | ||
;; | ||
restart|force-reload) | ||
${0} stop | ||
sleep 0.5 | ||
${0} start | ||
;; | ||
*) | ||
N=/etc/init.d/$NAME | ||
echo "Usage: $N {start|stop|restart|force-reload}" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
exit 0 |
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,3 @@ | ||
cluster.name: "docker-cluster" | ||
network.host: 0.0.0.0 | ||
discovery.type: single-node |
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,9 @@ | ||
status = error | ||
|
||
appender.console.type = Console | ||
appender.console.name = console | ||
appender.console.layout.type = PatternLayout | ||
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n | ||
|
||
rootLogger.level = info | ||
rootLogger.appenderRef.console.ref = console |
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,15 @@ | ||
/var/log/elasticsearch/*.log { | ||
daily | ||
rotate 50 | ||
size 50M | ||
copytruncate | ||
compress | ||
delaycompress | ||
missingok | ||
notifempty | ||
create 644 elasticsearch elasticsearch | ||
} | ||
/var/log/gunicorn/*.log { | ||
size 10M | ||
copytruncate | ||
} |
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
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
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
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
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
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