require 'travis/config'
require 'travis/support'

module Travis
  module Logs
    class Config < Travis::Config
      define amqp:          { username: 'guest', password: 'guest', host: 'localhost', prefetch: 1 },
             logs_database: { adapter: 'postgresql', database: "travis_logs_#{Travis.env}", encoding: 'unicode', min_messages: 'warning' },
             s3:            { hostname: 'archive.travis-ci.org', access_key_id: '', secret_access_key: '', acl: :public_read },
             pusher:        { app_id: 'app-id', key: 'key', secret: 'secret', secure: false },
             sidekiq:       { namespace: 'sidekiq', pool_size: 3 },
             logs:          { aggregate_async: false, archive: true, purge: false, threads: 10, per_aggregate_limit: 500, intervals: { vacuum: 10, regular: 180, force: 3 * 60 * 60, purge: 6 } },
             redis:         { url: 'redis://localhost:6379' },
             metrics:       { reporter: 'librato' },
             ssl:           {},
             sentry:        {},
             investigation: { enabled: false, investigators: {} }

      default _access: [:key]

      def env
        Travis.env
      end
    end
  end
end

require 'travis/config'
require 'travis/support'

module Travis
  module Logs
    class Config < Travis::Config
      define amqp:          { username: 'guest', password: 'guest', host: 'localhost', prefetch: 1 },
             logs_database: { adapter: 'postgresql', database: "travis_logs_#{Travis.env}", encoding: 'unicode', min_messages: 'warning' },
             s3:            { hostname: 'archive.travis-ci.org', access_key_id: '', secret_access_key: '', acl: :public_read },
             pusher:        { app_id: 'app-id', key: 'key', secret: 'secret', secure: false },
             sidekiq:       { namespace: 'sidekiq', pool_size: 7 },
             logs:          { aggregate_async: false, archive: true, purge: false, threads: 10, per_aggregate_limit: 500, intervals: { vacuum: 10, regular: 180, force: 3 * 60 * 60, purge: 6 } },
             redis:         { url: 'redis://localhost:6379' },
             metrics:       { reporter: 'librato' },
             ssl:           {},
             sentry:        {},
             investigation: { enabled: false, investigators: {} }

      default _access: [:key]

      def env
        Travis.env
      end
    end
  end
end

Increase default sidekiq pool_size to 7
Increase default sidekiq pool_size to 7

The sidekiq gem is requesting a larger pool size and is crashing the dyno when that condition is not satisfied.