# Anyway to assign # of workers per server {}?

**URL:** <https://www.ruby-forum.com/t/anyway-to-assign-of-workers-per-server/218476>\
**Category:** NGINX\
**Created:** [April 2, 2012, 6:09am UTC](https://www.ruby-forum.com/t/anyway-to-assign-of-workers-per-server/218476 "2012-04-02T06:09:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 2, 2012, 6:09am UTC](https://www.ruby-forum.com/t/anyway-to-assign-of-workers-per-server/218476/1 "2012-04-02T06:09:46Z")

</div>

Hello,

Id like to isolate the resources each one of my server {} consumes… in  
case any of my sites gets DoSed … id like to try to contain possible  
effects related to used worker processes within its respective site. Is  
there anyway to achieve this?

Regards,  
Mike

---

<div class="post-metadata">

**Author:** ![Micheal\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@Micheal\_W](https://www.ruby-forum.com/u/Micheal_W)\
**Post date:** [April 2, 2012, 8:16am UTC](https://www.ruby-forum.com/t/anyway-to-assign-of-workers-per-server/218476/2 "2012-04-02T08:16:40Z")

</div>

On Mon, Apr 02, 2012 at 04:09:14AM +0000, Micheal W. wrote:

> Id like to isolate the resources each one of my server {} consumes… in  
> case any of my sites gets DoSed .. id like to try to contain possible  
> effects related to used worker processes within its respective site. Is  
> there anyway to achieve this?

If your servers use different address/port pairs, an obvious  
solution would be to run several instances of nginx, one per  
address/port.
