1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
Commit graph

26 commits

Author SHA1 Message Date
jc00ke
d46489bb48 Fat fingered in vim :( 2012-10-14 16:54:34 -07:00
jc00ke
619176f92d Refactor & add tests for determine_redis_provider 2012-10-14 16:12:17 -07:00
jc00ke
36bb71883a Allow generic Redis providers via env var
Instead of hardcoding every provider's environment variable, Sidekiq now
supports both REDIS_PROVIDER and REDIS_URL env vars.

Let's say you run on Heroku and you use openredis. You can now set
REDIS_PROVIDER=OPENREDIS_URL and Sidekiq will use the openredis uri.

If you switch to another provider, all you need to do is reset
REDIS_PROVIDER. An example of switching to RedisGreen:
REDIS_PROVIDER=REDISGREEN_URL. Easy peasy!

Sidekiq also supports using your own url with REDIS_URL. While you can
still pass in the URL to Sidekiq::RedisConnection.create, it's also now
possible to set it with just an env var.

Closes #443
2012-10-14 14:58:20 -07:00
Clemens Gruber
614dbfef77 Added option to specify the redis driver (hiredis, ..) 2012-07-19 18:04:15 +02:00
Mike Perham
84827eaa1c Fallback to connection pool size of 5 (same as ActiveRecord's default) on client-side. 2012-04-09 08:57:47 -07:00
Mike Perham
a587be0bd7 Default redis pool size to concurrency + 2, fixes #116 2012-04-06 09:43:02 -07:00
Mike Perham
92c61e7601 Cap fix, fixes #106 2012-04-03 20:00:20 -07:00
Mike Perham
b58d125659 Clean up requires 2012-03-31 12:45:24 -07:00
Mike Perham
74d0e5ec35 Upgrade to connection_pool 0.9.0
Remove all connection_pool usage of method_missing.
Change Sidekiq.redis API to require a block.
2012-03-14 09:56:13 -07:00
Mike Perham
66c275f42f typo 2012-03-13 21:44:04 -07:00
Mike Perham
2206ce7654 RedisConnection was only ever creating one Redis connection, even when pooled. Oops. 2012-03-13 21:19:46 -07:00
Mike Perham
a242600a08 Split configuration into configure_server and configure_client blocks. 2012-02-20 09:46:28 -08:00
Mike Perham
8ee8137caa Refactor options to be globally available for things like
connection pool sizing.
2012-02-19 13:05:19 -08:00
Mike Perham
0a9a12cee8 Redis should be auto-initialized without any configuration on the client-side 2012-02-17 13:52:24 -08:00
Mike Perham
f9af66edd7 Rework redis connections so that the manager and
the client use separate pools.

This is so the Rails app Sidekiq::Client and 
Sidekiq::Manager can use different configurations.

Also, fix issue where workers were not unregistered
in Redis upon shutdown.
2012-02-11 13:14:03 -08:00
Mike Perham
23651d5196 First pass at Resque-compatible processing stats 2012-02-10 23:16:12 -08:00
Ryan LeCompte
12d95dde6c fix merge conflicts 2012-02-09 22:04:22 -08:00
Ryan LeCompte
19527698c9 minor cleanup of RedisConnection 2012-02-09 22:03:05 -08:00
Ryan LeCompte
3fdb26b4db minor cleanup of RedisConnection 2012-02-09 22:00:40 -08:00
Mike Perham
f89eedf326 Add new sidekiq/testing feature.
This makes job processing synchronous when required.
2012-02-09 21:46:44 -08:00
Max Spransy
7fc2601421 replace redis connection temp var with accessor 2012-02-09 13:46:30 -06:00
Max Spransy
7813cc1cb6 remove unneeded namespace setter 2012-02-09 10:27:06 -06:00
Max Spransy
e1ce920b15 set redis namespace only in initializer 2012-02-09 10:27:00 -06:00
Max Spransy
7e6e4ef264 Add default redis url in redis_connection as fallback 2012-02-09 10:27:00 -06:00
Max Spransy
166d256b45 fix unnasigned instance variable warnings 2012-02-09 10:27:00 -06:00
Max Spransy
c34ec108a4 Move redis connection logic into class. Add support for namespaces via redis-namespace gem 2012-02-09 10:26:43 -06:00