Only the jar and sample config in the deb
Remove control scripts from deb Update sample config file to be more current Change-Id: If2b11dd1cab807f58b4b23a0a1933fb179032964
This commit is contained in:
parent
6bdef9f492
commit
8f28398d07
@ -332,16 +332,6 @@
|
|||||||
</src>
|
</src>
|
||||||
<dst>/opt/monasca/monasca-thresh.jar</dst>
|
<dst>/opt/monasca/monasca-thresh.jar</dst>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
|
||||||
<type>file</type>
|
|
||||||
<src>${project.basedir}/src/deb/init/monasca-thresh</src>
|
|
||||||
<dst>/etc/init.d/monasca-thresh</dst>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<type>file</type>
|
|
||||||
<src>${project.basedir}/src/main/resources/logback.xml</src>
|
|
||||||
<dst>/etc/monasca/logback.xml</dst>
|
|
||||||
</data>
|
|
||||||
<data>
|
<data>
|
||||||
<type>file</type>
|
<type>file</type>
|
||||||
<src>
|
<src>
|
||||||
|
@ -25,13 +25,5 @@
|
|||||||
<source>${project.basedir}/src/deb/etc/thresh-config.yml-sample</source>
|
<source>${project.basedir}/src/deb/etc/thresh-config.yml-sample</source>
|
||||||
<outputDirectory>examples</outputDirectory>
|
<outputDirectory>examples</outputDirectory>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
|
||||||
<source>${project.basedir}/src/main/resources/logback.xml</source>
|
|
||||||
<outputDirectory>examples</outputDirectory>
|
|
||||||
</file>
|
|
||||||
<file>
|
|
||||||
<source>${project.basedir}/src/deb/init/monasca-thresh</source>
|
|
||||||
<outputDirectory>examples</outputDirectory>
|
|
||||||
</file>
|
|
||||||
</files>
|
</files>
|
||||||
</assembly>
|
</assembly>
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
configure)
|
|
||||||
chmod +x /etc/init.d/monasca-thresh
|
|
||||||
if ! [ `getent passwd thresh` ]; then
|
|
||||||
adduser --system --group thresh
|
|
||||||
fi
|
|
||||||
|
|
||||||
#Restart does not pick up upstart job config changes stop/start is needed
|
|
||||||
service monasca-thresh stop
|
|
||||||
service monasca-thresh start
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
remove|purge)
|
|
||||||
userdel thresh
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
@ -1,14 +1,21 @@
|
|||||||
metricSpoutThreads: 1
|
metricSpoutThreads: 2
|
||||||
metricSpoutTasks: 1
|
metricSpoutTasks: 2
|
||||||
|
|
||||||
|
statsdConfig:
|
||||||
|
host: localhost
|
||||||
|
port: 8125
|
||||||
|
prefix: monasca.storm.
|
||||||
|
dimensions: !!map
|
||||||
|
service : monitoring
|
||||||
|
component : storm
|
||||||
|
|
||||||
|
|
||||||
metricSpoutConfig:
|
metricSpoutConfig:
|
||||||
|
|
||||||
#Kafka settings.
|
|
||||||
kafkaConsumerConfiguration:
|
kafkaConsumerConfiguration:
|
||||||
# See http://kafka.apache.org/documentation.html#api for semantics and defaults.
|
# See http://kafka.apache.org/documentation.html#api for semantics and defaults.
|
||||||
topic: test
|
topic: metrics
|
||||||
numThreads: 1
|
numThreads: 1
|
||||||
groupId: 1
|
groupId: thresh-metric
|
||||||
zookeeperConnect: localhost:2181
|
zookeeperConnect: localhost:2181
|
||||||
consumerId: 1
|
consumerId: 1
|
||||||
socketTimeoutMs: 30000
|
socketTimeoutMs: 30000
|
||||||
@ -25,18 +32,17 @@ metricSpoutConfig:
|
|||||||
autoOffsetReset: largest
|
autoOffsetReset: largest
|
||||||
consumerTimeoutMs: -1
|
consumerTimeoutMs: -1
|
||||||
clientId : 1
|
clientId : 1
|
||||||
zookeeperSessionTimeoutMs : 6000
|
zookeeperSessionTimeoutMs : 60000
|
||||||
zookeeperConnectionTimeoutMs : 6000
|
zookeeperConnectionTimeoutMs : 60000
|
||||||
zookeeperSyncTimeMs: 2000
|
zookeeperSyncTimeMs: 2000
|
||||||
|
|
||||||
|
|
||||||
eventSpoutConfig:
|
eventSpoutConfig:
|
||||||
#Kafka settings.
|
|
||||||
kafkaConsumerConfiguration:
|
kafkaConsumerConfiguration:
|
||||||
# See http://kafka.apache.org/documentation.html#api for semantics and defaults.
|
# See http://kafka.apache.org/documentation.html#api for semantics and defaults.
|
||||||
topic: test
|
topic: events
|
||||||
numThreads: 1
|
numThreads: 1
|
||||||
groupId: 1
|
groupId: thresh-event
|
||||||
zookeeperConnect: localhost:2181
|
zookeeperConnect: localhost:2181
|
||||||
consumerId: 1
|
consumerId: 1
|
||||||
socketTimeoutMs: 30000
|
socketTimeoutMs: 30000
|
||||||
@ -53,17 +59,40 @@ eventSpoutConfig:
|
|||||||
autoOffsetReset: largest
|
autoOffsetReset: largest
|
||||||
consumerTimeoutMs: -1
|
consumerTimeoutMs: -1
|
||||||
clientId : 1
|
clientId : 1
|
||||||
zookeeperSessionTimeoutMs : 6000
|
zookeeperSessionTimeoutMs : 60000
|
||||||
zookeeperConnectionTimeoutMs : 6000
|
zookeeperConnectionTimeoutMs : 60000
|
||||||
zookeeperSyncTimeMs: 2000
|
zookeeperSyncTimeMs: 2000
|
||||||
|
|
||||||
|
|
||||||
|
kafkaProducerConfig:
|
||||||
|
# See http://kafka.apache.org/documentation.html#api for semantics and defaults.
|
||||||
|
topic: alarm-state-transitions
|
||||||
|
metadataBrokerList: localhost:9092
|
||||||
|
serializerClass: kafka.serializer.StringEncoder
|
||||||
|
partitionerClass:
|
||||||
|
requestRequiredAcks: 1
|
||||||
|
requestTimeoutMs: 10000
|
||||||
|
producerType: sync
|
||||||
|
keySerializerClass:
|
||||||
|
compressionCodec: none
|
||||||
|
compressedTopics:
|
||||||
|
messageSendMaxRetries: 3
|
||||||
|
retryBackoffMs: 100
|
||||||
|
topicMetadataRefreshIntervalMs: 600000
|
||||||
|
queueBufferingMaxMs: 5000
|
||||||
|
queueBufferingMaxMessages: 10000
|
||||||
|
queueEnqueueTimeoutMs: -1
|
||||||
|
batchNumMessages: 200
|
||||||
|
sendBufferBytes: 102400
|
||||||
|
clientId : Threshold_Engine
|
||||||
|
|
||||||
|
|
||||||
sporadicMetricNamespaces:
|
sporadicMetricNamespaces:
|
||||||
- foo
|
- foo
|
||||||
|
|
||||||
database:
|
database:
|
||||||
driverClass: com.vertica.jdbc.Driver
|
driverClass: com.mysql.jdbc.Driver
|
||||||
url: jdbc:vertica://mini-mon:5433/monasca
|
url: jdbc:mysql://localhost/mon?useSSL=true
|
||||||
user: thresh
|
user: thresh
|
||||||
password: password
|
password: password
|
||||||
properties:
|
properties:
|
||||||
|
@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# Provides: monasca-thresh
|
|
||||||
# Required-Start: $nimbus
|
|
||||||
# Required-Stop:
|
|
||||||
# Default-Start: 2 3 4 5
|
|
||||||
# Default-Stop:
|
|
||||||
# Short-Description: Monitoring threshold engine running under storm
|
|
||||||
# Description:
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
$0 status
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
sudo -Hu thresh /opt/storm/current/bin/storm jar /opt/monasca/monasca-thresh.jar monasca.thresh.ThresholdingEngine /etc/monasca/thresh-config.yml thresh-cluster
|
|
||||||
exit $?
|
|
||||||
else
|
|
||||||
echo "monasca-thresh is already running"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
# On system shutdown storm is being shutdown also and this will hang so skip shutting down thresh in that case
|
|
||||||
if [ -e '/sbin/runlevel' ]; then # upstart/sysV case
|
|
||||||
if [ $(runlevel | cut -d\ -f 2) == 0 ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
else # systemd case
|
|
||||||
systemctl list-units --type=target |grep shutdown.target
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
sudo -Hu thresh /opt/storm/current/bin/storm kill thresh-cluster
|
|
||||||
# The above command returns but actually takes awhile loop watching status
|
|
||||||
while true; do
|
|
||||||
sudo -Hu thresh /opt/storm/current/bin/storm list |grep thresh-cluster
|
|
||||||
if [ $? -ne 0 ]; then break; fi
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
sudo -Hu thresh /opt/storm/current/bin/storm list |grep thresh-cluster
|
|
||||||
;;
|
|
||||||
restart)
|
|
||||||
$0 stop
|
|
||||||
$0 start
|
|
||||||
;;
|
|
||||||
esac
|
|
Loading…
x
Reference in New Issue
Block a user