airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject [5/6] airavata git commit: Add logstash.service
Date Wed, 07 Sep 2016 08:27:13 GMT
Add logstash.service


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/d3c1e993
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/d3c1e993
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/d3c1e993

Branch: refs/heads/lahiru/AIRAVATA-2065
Commit: d3c1e993d71cd8594d0dd7a089f17a76f58db746
Parents: 77eeecb
Author: CoreOS Admin <core@ip-10-7-156-74.ec2.internal>
Authored: Wed Aug 31 08:30:13 2016 +0000
Committer: Lahiru Ginnaliya Gamathige <lahiru@apache.org>
Committed: Fri Sep 2 09:04:25 2016 -0700

----------------------------------------------------------------------
 deploy/systemd/kafka.service    |  2 +-
 deploy/systemd/logstash.service | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/d3c1e993/deploy/systemd/kafka.service
----------------------------------------------------------------------
diff --git a/deploy/systemd/kafka.service b/deploy/systemd/kafka.service
index b74e3e0..cad29e5 100644
--- a/deploy/systemd/kafka.service
+++ b/deploy/systemd/kafka.service
@@ -7,7 +7,7 @@ TimeoutStartSec=60
 Restart=on-failure
 ExecStartPre=-/usr/bin/docker rm -f kafka
 ExecStartPre=-/usr/bin/docker pull scigap/kafka
-ExecStart=/usr/bin/docker run --net=host --name kafka -e ADVERTISED_HOST_NAME=${COREOS_PRIVATE_IPV4}
-v /var/lib/kafka:/var/lib/kafka scigap/kafka
+ExecStart=/usr/bin/docker run --net=host --name kafka -e ADVERTISED_HOST_NAME=54.163.192.179
-v /var/lib/kafka:/var/lib/kafka scigap/kafka
 ExecStop=/usr/bin/docker stop kafka
 [Install]
 WantedBy=multi-user.target

http://git-wip-us.apache.org/repos/asf/airavata/blob/d3c1e993/deploy/systemd/logstash.service
----------------------------------------------------------------------
diff --git a/deploy/systemd/logstash.service b/deploy/systemd/logstash.service
new file mode 100644
index 0000000..7ed4955
--- /dev/null
+++ b/deploy/systemd/logstash.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=logstash
+Requires=docker.service
+After=docker.service
+[Service]
+EnvironmentFile=/etc/os-release
+LimitNOFILE=infinity
+TimeoutStartSec=90
+Restart=on-failure
+ExecStartPre=-/usr/bin/docker rm -f logstash
+ExecStartPre=-/usr/bin/docker pull scigap/logstash
+ExecStart=/usr/bin/docker run --name logstash -e ENV_NAME=local -e OS_NAME=${NAME} -e OS_VERSION=${VERSION}
\
+    -e KAFKA_ZK="localhost:2181/kafka" -e ES_ENDPOINT="search-scigap-62tebdueebw5dfyn7bfyn63rru.us-east-1.es.amazonaws.com"
\
+    -v /etc/logstash:/config -v /var/log/journal:/var/log/journal -v /var/lib/logstash:/var/lib/logstash
\
+    scigap/logstash logstash -f /config/logstash.conf
+ExecStop=/usr/bin/docker stop logstash


Mime
View raw message