```ruby
require 'yaml'
require 'librato/metrics'
metrics_config_file = Rails.root.join('config', 'metrics.yml')

if !Rails.env.test? && File.exists?(metrics_config_file)
  metrics_config = YAML.load_file(metrics_config_file)[Rails.env]
  Librato::Metrics.authenticate(metrics_config['email'], metrics_config['api_key'])
  LIBRATO_QUEUE = Librato::Metrics::Queue.new(:autosubmit_count => 100, :autosubmit_interval => 10)
else
  LIBRATO_QUEUE = nil
end```

Increment queue length to reduce request times.
user
```ruby
require 'yaml'
require 'librato/metrics'
metrics_config_file = Rails.root.join('config', 'metrics.yml')

if !Rails.env.test? && File.exists?(metrics_config_file)
  metrics_config = YAML.load_file(metrics_config_file)[Rails.env]
  Librato::Metrics.authenticate(metrics_config['email'], metrics_config['api_key'])
  LIBRATO_QUEUE = Librato::Metrics::Queue.new(:autosubmit_count => 600, :autosubmit_interval => 60)
else
  LIBRATO_QUEUE = nil
end```
assistant