![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
This is a tiny gem that allows starting sidekiq using multiple processes. It is originally based on the wonderful Honebadger Cluster Script.
Features:
It does not depend on any particular version of sidekiq, as long as the CLI class of Sidekiq remains named the same.
It does not attempt to replicate Sidekiq's command line options. Script itself can be controlled with its own CLI options preceeding the double dash --
. Options to Sidekiq are expected after the double dash.
You can specify max number of processes and max total RAM used by this cluster (expressed as a percentage of total). If one of the Sidekiq processes exceeeds it, it is automatically restarted.
The easiest way to use Sidekiq Cluster is to add it to your Gemfile:
gem 'sidekiq-cluster', require: false
Run bundle
, and then start Sidekiq cluster like so (this starts exactly two Sidekiq Processes):
# this starts sidekiq with default options
$ bundle exec sidekiq-cluster -N 2
# this starts sidekiq with custom options
$ bundle exec sidekiq-cluster -N 2 -- -r $(pwd) -q default,10 -q high,100
Then try running it with --help
:
sidekiq-cluster -h
USAGE
sidekiq-cluster [options] -- [sidekiq-options]
EXAMPLES
$ cd rails_app
$ bundle exec sidekiq-cluster -N 2 -- -c 10 -q default,12 -L log/sidekiq.log
SIDEKIQ CLUSTER OPTIONS
-n, --name=NAME the name of this cluster, used when
when running multiple clusters
-P, --pidfile=FILE Pidfile prefix,
eg "/var/www/shared/config/sidekiq.pid"
-L, --logfile=FILE Logfile for the cluster script
-M, --max-memory=PERCENT Maximum percent RAM that this
cluster should not exceed. Defaults to 80%.
-N, --num-processes=NUM Number of processes to start,
defaults to number of cores - 1
-q, --quiet Do not log to STDOUT
-d, --debug Print debugging info before starting sidekiqs
-h, --help this help
$ cd rails-app
$ echo "gem 'sidekiq-cluster'" >> Gemfile
$ bundle install
$ bundle exec sidekiq-cluster \ # these arguments are for sidekiq-cluster:
--pidfile /var/pids/sidekiq.pid \
--name default \
--max-memory 90 \
--logfile /var/log/sidekiq-cluster.log \
--num-processes 2 \
-- \ # these arguments are for sidekiq:
-L /var/log/sidekiq.log -c 10 -e production -q default,10 -q critical,20
Copyright © 2018 Konstantin Gredeskoul. See LICENSE.txt for further details.
FAQs
Unknown package
We found that sidekiq-cluster demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.