# Upstream module question

**URL:** <https://www.ruby-forum.com/t/upstream-module-question/169401>\
**Category:** NGINX\
**Created:** [June 3, 2009, 10:20am UTC](https://www.ruby-forum.com/t/upstream-module-question/169401 "2009-06-03T10:20:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Post date:** [June 3, 2009, 10:20am UTC](https://www.ruby-forum.com/t/upstream-module-question/169401/1 "2009-06-03T10:20:48Z")

</div>

Hi all,

with the upstream module, in default mode (WRR), what is the best way  
to disable a server from the pool ?

1- simply remove the line  
2- add the “down” keyword to the server  
3- set server weight to 0 to disable it

Thx for the answers.

++ jerome

---

<div class="post-metadata">

**Author:** ![JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Post date:** [June 3, 2009, 10:45am UTC](https://www.ruby-forum.com/t/upstream-module-question/169401/2 "2009-06-03T10:45:38Z")

</div>

On Wed, Jun 03, 2009 at 10:05:21AM +0200, J?r?me Loyet wrote:

> Hi all,
> 
> with the upstream module, in default mode (WRR), what is the best way  
> to disable a server from the pool ?
> 
> 1- simply remove the line

This is.

---

<div class="post-metadata">

**Author:** ![JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Post date:** [June 3, 2009, 10:49am UTC](https://www.ruby-forum.com/t/upstream-module-question/169401/3 "2009-06-03T10:49:12Z")

</div>

2009/6/3 Igor S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> On Wed, Jun 03, 2009 at 10:05:21AM +0200, J?r?me Loyet wrote:
> 
> > Hi all,
> > 
> > with the upstream module, in default mode (WRR), what is the best way  
> > to disable a server from the pool ?
> > 
> > 1- simply remove the line
> 
> This is.

So the others just don’t work ?

---

<div class="post-metadata">

**Author:** ![JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Post date:** [June 3, 2009, 11:00am UTC](https://www.ruby-forum.com/t/upstream-module-question/169401/4 "2009-06-03T11:00:28Z")

</div>

On Jun 3, 2009, at 9:42, JÃ©rÃ´me Loyet [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > This is.
> 
> So the others just don’t work ?

I expect they do, but nginx still has to parse the line, maintain the  
entry in memory, etc.

I just comment out the line when I take a server out, and put a  
comment in the file as to why I did it 🙂

---

<div class="post-metadata">

**Author:** ![JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Post date:** [June 3, 2009, 11:11am UTC](https://www.ruby-forum.com/t/upstream-module-question/169401/5 "2009-06-03T11:11:03Z")

</div>

2009/6/3 Igor S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > > > 1- simply remove the line
> > > 
> > > This is.
> > 
> > So the others just don’t work ?
> 
> They may work but I need to ensure this.  
> I’ll try some times, don’t waste time with that If you don’t really  
> want to figure out 🙂

---

<div class="post-metadata">

**Author:** ![JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Post date:** [June 3, 2009, 11:05am UTC](https://www.ruby-forum.com/t/upstream-module-question/169401/6 "2009-06-03T11:05:11Z")

</div>

On Wed, Jun 03, 2009 at 10:42:45AM +0200, J?r?me Loyet wrote:

> > This is.
> 
> So the others just don’t work ?

They may work but I need to ensure this.
