forked from arturictus/sidekiq_alive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidekiq_alive.gemspec
40 lines (32 loc) · 1.6 KB
/
sidekiq_alive.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'sidekiq_alive/version'
Gem::Specification.new do |spec|
spec.name = 'sidekiq_alive'
spec.version = SidekiqAlive::VERSION
spec.authors = ['Artur Pañach']
spec.email = ['[email protected]']
spec.summary = 'Liveness probe for sidekiq on Kubernetes deployments.'
spec.description = 'SidekiqAlive offers a solution to add liveness probe of a Sidekiq instance.
How?
A http server is started and on each requests validates that a liveness key is stored in Redis. If it is there means is working.
A Sidekiq job is the responsable to storing this key. If Sidekiq stops processing jobs
this key gets expired by Redis an consequently the http server will return a 500 error.
This Job is responsible to requeue itself for the next liveness probe.'
spec.homepage = 'https://github.com/arturictus/sidekiq_alive'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.add_development_dependency 'bundler', '> 1.16'
spec.add_development_dependency 'mock_redis'
spec.add_development_dependency 'rack-test'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rspec-sidekiq', '~> 3.0'
spec.add_dependency 'sidekiq'
spec.add_dependency 'webrick'
end