Rails or sinatra dedicate cores for applications
up vote
0
down vote
favorite
I have a bunch of rails and sinatra applications running behind nginx and unicorn. I want each unicorn for each application uses 2 workers per core. I want to deploy these in a machine in a cluster which has 64 cores, but I want all of these applications use only 24 cores.
How can I limit or configure how many cores will be used, when running the unicorn applications?
> lscpu | grep -E '^Thread|^Core|^Socket|^CPU('
CPU(s): 64
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 4
ruby-on-rails nginx unicorn multicore worker
add a comment |
up vote
0
down vote
favorite
I have a bunch of rails and sinatra applications running behind nginx and unicorn. I want each unicorn for each application uses 2 workers per core. I want to deploy these in a machine in a cluster which has 64 cores, but I want all of these applications use only 24 cores.
How can I limit or configure how many cores will be used, when running the unicorn applications?
> lscpu | grep -E '^Thread|^Core|^Socket|^CPU('
CPU(s): 64
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 4
ruby-on-rails nginx unicorn multicore worker
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a bunch of rails and sinatra applications running behind nginx and unicorn. I want each unicorn for each application uses 2 workers per core. I want to deploy these in a machine in a cluster which has 64 cores, but I want all of these applications use only 24 cores.
How can I limit or configure how many cores will be used, when running the unicorn applications?
> lscpu | grep -E '^Thread|^Core|^Socket|^CPU('
CPU(s): 64
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 4
ruby-on-rails nginx unicorn multicore worker
I have a bunch of rails and sinatra applications running behind nginx and unicorn. I want each unicorn for each application uses 2 workers per core. I want to deploy these in a machine in a cluster which has 64 cores, but I want all of these applications use only 24 cores.
How can I limit or configure how many cores will be used, when running the unicorn applications?
> lscpu | grep -E '^Thread|^Core|^Socket|^CPU('
CPU(s): 64
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 4
ruby-on-rails nginx unicorn multicore worker
ruby-on-rails nginx unicorn multicore worker
edited Nov 9 at 15:55
asked Nov 9 at 15:09
iesiyok
134
134
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53228329%2frails-or-sinatra-dedicate-cores-for-applications%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password