This commit is contained in:
Max 2017-08-22 13:40:19 +02:00
parent 27ed0c7ec5
commit 9c601cf643
No known key found for this signature in database
GPG Key ID: 742A58B4F8658423

View File

@ -120,6 +120,10 @@ after_fork do |server, worker|
# the following is *required* for Rails + "preload_app true",
defined?(ActiveRecord::Base) and
ActiveRecord::Base.establish_connection
# reset prometheus client, this will cause any opened metrics files to be closed
defined?(::Prometheus::Client.reinitialize_on_pid_change) &&
Prometheus::Client.reinitialize_on_pid_change
# if preload_app is true, then you may also want to check and
# restart any other shared sockets/descriptors such as Memcached,