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

Merge branch 'master' into queue-api

This commit is contained in:
Brandon Hilkert 2015-11-25 06:53:38 -05:00
commit 2748b62ba0
4 changed files with 23 additions and 9 deletions

View file

@ -3,7 +3,13 @@ Sidekiq Enterprise Changelog
Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy. Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy.
1.0.0.pre1 1.0.1
----------
- Fix crash in periodic subsystem when a follower shuts down, thanks
to @justinko for reporting.
1.0.0
---------- ----------
- Enterprise 1.x targets Sidekiq 4.x. - Enterprise 1.x targets Sidekiq 4.x.

View file

@ -18,21 +18,26 @@ message format as Resque so it can integrate into an existing Resque processing
You can have Sidekiq and Resque run side-by-side at the same time and You can have Sidekiq and Resque run side-by-side at the same time and
use the Resque client to enqueue jobs in Redis to be processed by Sidekiq. use the Resque client to enqueue jobs in Redis to be processed by Sidekiq.
At the same time, Sidekiq uses multithreading so it is much more memory efficient than Sidekiq is fast.
Resque (which forks a new process for every job). You'll find that you might need
10 200MB resque processes to peg your CPU whereas one 300MB Sidekiq process will peg Version | Latency | Garbage created for 10,000 jobs | Time to process 100,000 jobs | Throughput
the same CPU and perform the same amount of work. -----------------|------|---------|---------|------------------------
Sidekiq 4.0.0 | 10ms | 151 MB | 22 sec | **4500 jobs/sec**
Sidekiq 3.5.1 | 22ms | 1257 MB | 125 sec | 800 jobs/sec
Resque 1.25.2 | - | - | 420 sec | 240 jobs/sec
DelayedJob 4.1.1 | - | - | 465 sec | 215 jobs/sec
Requirements Requirements
----------------- -----------------
I test with the latest MRI (2.2, 2.1 and 2.0) and JRuby versions (1.7). Other versions/VMs I test with the latest CRuby (2.2, 2.1 and 2.0) and JRuby versions (9k). Other versions/VMs
are untested but might work fine. MRI 1.9 is no longer supported. are untested but might work fine. CRuby 1.9 is not supported.
All Rails releases starting from 3.2 are officially supported. All Rails releases from 3.2 are officially supported.
Redis 2.8 or greater is required. Redis 2.8 or greater is required. 3.0.3+ is recommended for large
installations with thousands of worker threads.
Installation Installation

View file

@ -2,6 +2,7 @@ source 'https://rubygems.org'
platforms :ruby do platforms :ruby do
gem 'sqlite3' gem 'sqlite3'
gem 'redis-namespace'
end end
platforms :jruby do platforms :jruby do

View file

@ -8,5 +8,7 @@ Sidekiq.configure_client do |config|
config.redis = { url: 'redis://localhost:6379/0', size: 1, namespace: 'foo' } config.redis = { url: 'redis://localhost:6379/0', size: 1, namespace: 'foo' }
end end
Sidekiq::Client.push('class' => "HardWorker", 'args' => [])
require 'sidekiq/web' require 'sidekiq/web'
run Sidekiq::Web run Sidekiq::Web