mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
Request queuing is critical to understand whether our app servers are able to cope with all the traffic or requests pile up in Nginx queues. I find the article https://www.speedshop.co/2015/07/29/scaling-ruby-apps-to-1000-rpm.html incredibly enlightening on this topic. Thanks @nateberkopec ❤️. This requires https://github.com/openfoodfoundation/ofn-install/pull/689.
12 lines
299 B
Ruby
12 lines
299 B
Ruby
if ENV['DATADOG_RAILS_APM']
|
|
Datadog.configure do |c|
|
|
c.use :rails, service_name: 'rails'
|
|
c.use :delayed_job, service_name: 'delayed_job'
|
|
c.use :dalli, service_name: 'memcached'
|
|
|
|
c.analytics_enabled = true
|
|
c.runtime_metrics_enabled = true
|
|
c.request_queuing = true
|
|
end
|
|
end
|