Skip to content

Commit

Permalink
Move restart of druid service after common to this cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
manegron committed Oct 17, 2023
1 parent a958807 commit fe37a7b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
manager_services["druid-historical"] or
manager_services["druid-realtime"]

["druid-broker", "druid-coordinator", "druid-historical",
"druid-middlemanager", "druid-overlord"].each do |druid_service|
service druid_service do
supports :status => true, :start => true, :restart => true, :reload => true
action :nothing
end
end

druid_common "Configure druid common resources" do
name node["hostname"]
zookeeper_hosts node["redborder"]["zookeeper"]["zk_hosts"]
Expand All @@ -67,14 +75,18 @@
s3_port node["minio"]["port"]
cdomain node["redborder"]["cdomain"]
action :add
notifies :restart, 'service[druid-broker]', :delayed
notifies :restart, 'service[druid-coordinator]', :delayed
notifies :restart, 'service[druid-historical]', :delayed
notifies :restart, 'service[druid-middlemanager]', :delayed
notifies :restart, 'service[druid-overlord]', :delayed
end
else
druid_common "Delete druid common resources" do
action :remove
end
end


druid_coordinator "Configure Druid Coordinator" do
name node["hostname"]
memory_kb node["redborder"]["memory_services"]["druid-coordinator"]["memory"]
Expand Down

0 comments on commit fe37a7b

Please sign in to comment.