Skip to content

Commit

Permalink
Merge pull request #92 from redBorder/improvement/#15916_syncnet_inte…
Browse files Browse the repository at this point in the history
…rnal_services

add internal services for sync network
  • Loading branch information
manegron authored Dec 15, 2023
2 parents 4c33f48 + 33c6126 commit 1516518
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
port node["zookeeper"]["port"]
memory node["redborder"]["memory_services"]["zookeeper"]["memory"]
hosts node["redborder"]["managers_per_services"]["zookeeper"]
ipaddress node["ipaddress_sync"]
action (manager_services["zookeeper"] ? [:add, :register] : [:remove, :deregister])
end

Expand Down Expand Up @@ -101,43 +102,50 @@

druid_coordinator "Configure Druid Coordinator" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-coordinator"]["memory"]
action (manager_services["druid-coordinator"] ? [:add, :register] : [:remove, :deregister])
end

druid_overlord "Configure Druid Overlord" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-overlord"]["memory"]
action (manager_services["druid-overlord"] ? [:add, :register] : [:remove, :deregister])
end

druid_broker "Configure Druid Broker" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-broker"]["memory"]
action (manager_services["druid-broker"] ? [:add, :register] : [:remove, :deregister])
end

druid_middlemanager "Configure Druid MiddleManager" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-middlemanager"]["memory"]
action (manager_services["druid-middlemanager"] ? [:add, :register] : [:remove, :deregister])
end

druid_historical "Configure Druid Historical" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-historical"]["memory"]
tier node["redborder"]["druid"]["historical"]["tier"]
action (manager_services["druid-historical"] ? [:add, :register] : [:remove, :deregister])
end

druid_realtime "Configure Druid Realtime" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-realtime"]["memory"]
action (manager_services["druid-realtime"] ? [:add, :register] : [:remove, :deregister])
end

memcached_config "Configure Memcached" do
memory node["redborder"]["memory_services"]["memcached"]["memory"]
ipaddress node["ipaddress_sync"]
action (manager_services["memcached"] ? [:add, :register] : [:remove, :deregister])
end

Expand Down Expand Up @@ -331,6 +339,7 @@

postgresql_config "Configure postgresql" do
cdomain node["redborder"]["cdomain"]
ipaddress node["ipaddress_sync"]
action (manager_services["postgresql"] and external_services["postgresql"] == "onpremise" ? [:add, :register] : [:remove, :deregister])
end

Expand Down

0 comments on commit 1516518

Please sign in to comment.