librelist archives

« back to archive

Running Tir and mongrel2 on separate servers

Running Tir and mongrel2 on separate servers

From:
Matt Towers
Date:
2011-01-27 @ 01:02
Is it possible (or advisable) to run Tir and mongrel2 on separate servers?
I had assumed this was the case; that seems sorta the point of having 
zeromq in there.  However, from looking at the Getting Started doc for 
Tir, there seems to be an assumption that Tir has access to the same 
config.sqlite database that is used to start mongrel2:

"[Tir] opens up the conf/config.sqlite Mongrel2 configuration and finds 
the Handler you've configured for you. You don't need to tell Tir 
information it can get out of the config database already."

Doesn't having access to the same config.sqlite file for both Tir and 
mongrel2 imply that they are deployed on the same box?  Or would you 
deploy the same config.sqlite file to both?

✈ Matt


Re: [mongrel2] Running Tir and mongrel2 on separate servers

From:
Zed A. Shaw
Date:
2011-01-27 @ 04:20
On Wed, Jan 26, 2011 at 05:02:05PM -0800, Matt Towers wrote:
> Is it possible (or advisable) to run Tir and mongrel2 on separate
> servers?  I had assumed this was the case; that seems sorta the point
> of having zeromq in there.  However, from looking at the Getting
> Started doc for Tir, there seems to be an assumption that Tir has
> access to the same config.sqlite database that is used to start
> mongrel2:

> Doesn't having access to the same config.sqlite file for both Tir and
> mongrel2 imply that they are deployed on the same box?  Or would you
> deploy the same config.sqlite file to both?

I run it on the same machine but my stuff is small.  But, my plan was
to just copy the .sqlite file over.  You'd have to configure Tir anyway,
so might as use the same config for everything and avoid problems.


-- 
Zed A. Shaw
http://zedshaw.com/