Skip to content

Commit 8b1509d

Browse files
author
Tadej Borovšak
committed
Update DMon agent package
Older DMon agent was not able to cope with Apache Storm 1.0.x logs. Newly released 0.2.6x version fixed this issue. New version of DMon agent needs to be explicitly informed about the version of Apache Storm that is running on the node, since if the STORM_VERSION environment variable is not set, agent will resort to fetching logs for Apache Storm 0.9.x. Change-Id: If8141381b05fc5ab8f63eae46a56e3932126c59d
1 parent 3ac9948 commit 8b1509d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

cookbooks/dmon_agent/attributes/default.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# General attributes
22
default['dmon_agent']['install_dir'] = '/opt/dmon-agent'
33
default['dmon_agent']['tarball'] =
4-
'https://github.com/dice-project/DICE-Monitoring/archive/v0.2.3.tar.gz'
4+
'https://github.com/xlab-si/DICE-Monitoring/releases/download/v0.2.6x/'\
5+
'dice-monitoring-0.2.6x.tar.gz'
56
default['dmon_agent']['checksum'] =
6-
'1d7b6ced81dd19259a69d1620f0eb0c17992102623d8ea7c731391912cfeb43e'
7+
'84a5cedb689f778d146ff044295d00522cf7ed88196814058b4d309a906e8396'
78

89
# Apache Spark related attributes
910
default['dmon_agent']['spark']['graphite']['period'] = 5

cookbooks/dmon_agent/recipes/storm.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
template '/etc/default/dmon-agent.d/storm' do
66
source 'service-vars.erb'
77
variables env_vars: {
8+
'STORM_VERSION' => '1.0',
89
'STORM_LOG' => node['storm']['log_dir']
910
}
1011
end

cookbooks/dmon_agent/test/integration/storm/serverspec/storm_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,6 @@
6868
describe file('/etc/default/dmon-agent.d/storm') do
6969
it { should exist }
7070
it { should be_file }
71+
it { should contain('STORM_VERSION=1.0') }
7172
it { should contain('STORM_LOG=/usr/share/storm/logs') }
7273
end

0 commit comments

Comments
 (0)