# Targetting individual rails server processes?

**URL:** <https://www.ruby-forum.com/t/targetting-individual-rails-server-processes/168429>\
**Category:** Rails\
**Created:** [May 20, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/targetting-individual-rails-server-processes/168429 "2009-05-20T19:39:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [May 20, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/targetting-individual-rails-server-processes/168429/1 "2009-05-20T19:39:01Z")

</div>

Is it generally possible to send requests to specific, individual rails  
server processes? From within the walls, that is, not externally.

My concrete purpose is to clear caches of data loaded from the database  
without having to restart the server process.

With the common Mongrel (et al.) + load balancer setup, each server  
process has its own port and presumably the relevant information is  
accessible from the deployment specification. I have no idea how things  
are with passenger.

Michael

–  
Michael S.  
[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://www.schuerig.de/michael/](http://www.schuerig.de/michael/)

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [May 20, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/targetting-individual-rails-server-processes/168429/2 "2009-05-20T20:03:17Z")

</div>

I’m not sure if this is what you are looking for, but if I need to  
send a request directly to a specific Mongrel/Thin instance (bypassing  
the load balancer), I just call it like: [http://mongrel/thin-server:8000](http://mongrel/thin-server:8000)  
(or whatever port you need)

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [May 20, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/targetting-individual-rails-server-processes/168429/3 "2009-05-20T20:17:29Z")

</div>

On Wednesday 20 May 2009, E. Litwin wrote:

> I’m not sure if this is what you are looking for, but if I need to  
> send a request directly to a specific Mongrel/Thin instance  
> (bypassing the load balancer), I just call it like:  
> [http://mongrel/thin-server:8000](http://mongrel/thin-server:8000) (or whatever port you need)

Yes, with Mongrel and similarly load-balanced servers this works. But  
how about Passenger?

Michael

–  
Michael S.  
[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://www.schuerig.de/michael/](http://www.schuerig.de/michael/)
