# Nginx worker processes

**URL:** <https://www.ruby-forum.com/t/nginx-worker-processes/206970>\
**Category:** NGINX\
**Created:** [May 14, 2011, 5:29pm UTC](https://www.ruby-forum.com/t/nginx-worker-processes/206970 "2011-05-14T17:29:11Z")\
**Posts on this page:** 3\
**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:** [May 14, 2011, 5:29pm UTC](https://www.ruby-forum.com/t/nginx-worker-processes/206970/1 "2011-05-14T17:29:11Z")

</div>

Is it true to say that every worker process in nginx has its own  
round-robin  
counters and that they are not aware of the other workers counters?

Thanks!

Jonathan

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [May 14, 2011, 5:46pm UTC](https://www.ruby-forum.com/t/nginx-worker-processes/206970/2 "2011-05-14T17:46:28Z")

</div>

## Jonathan L. Wrote:

> Is it true to say that every worker process in  
> nginx has its own round-robin  
> counters and that they are not aware of the other  
> workers counters?

Yes, take a look at ngx\_http\_upstream\_round\_robin.c.

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,198006,198008#msg-198008](http://forum.nginx.org/read.php?2,198006,198008#msg-198008)

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [May 14, 2011, 7:29pm UTC](https://www.ruby-forum.com/t/nginx-worker-processes/206970/3 "2011-05-14T19:29:32Z")

</div>

Thanks, it’s been a while since I last developed in c, so I wanted  
someone else’s opinion.  
I saw that there is a fair round-robin module and I also saw that it  
uses shared memory to store something. Does it mean that using that  
module counters and servers state (either it is up or down) are  
shared?
