```ruby
module Relax
  class Base
    def self.redis
      if uri = ENV['REDISTOGO_URL']
        redis_uri = URI.parse(uri)
      elsif uri = ENV['REDIS_URL']
        redis_uri = URI.parse(uri)
      else
        redis_uri = URI.parse("redis://localhost:6379")
      end

      @@conn ||= ConnectionPool.new(timeout: 1, size: 5) do
        Redis.new(url: redis_uri, db: 0)
      end
    end
  end
end
```

Reduce connection pool size to 2
user
```ruby
module Relax
  class Base
    def self.redis
      if uri = ENV['REDISTOGO_URL']
        redis_uri = URI.parse(uri)
      elsif uri = ENV['REDIS_URL']
        redis_uri = URI.parse(uri)
      else
        redis_uri = URI.parse("redis://localhost:6379")
      end

      @@conn ||= ConnectionPool.new(timeout: 1, size: 2) do
        Redis.new(url: redis_uri, db: 0)
      end
    end
  end
end
```
assistant