xing / beetle

High Availability AMQP Messaging With Redundant Queues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent multiple configuration_client processes from being started

boosty opened this issue · comments

In

Daemons.run_proc("redis_configuration_client", :multiple => true, :log_output => true, :dir_mode => dir_mode, :dir => dir) do
we allow multiple instances of the configuration_client process to be started. I believe the only reason for this was to allow the cucumber features to test using multiple instances.

In production this can lead to unnecessary processes getting started, and unstable pid file locations (since they are numbered).

We could change that by setting :multiple => false, and/or making it configurable.

Closed via a515363.