We have a few servers which currently house apache2 and run other
applications off of port 80. Hence, we couldn't open port 80 with the
HAppS server if we wanted to.
What I was thinking about doing, and was hoping others had some
experience/thoughts on, is setting up apache2 to do NameVirtualHosts
for our new service, and using mod_proxy_balancer to forward these
requests to a pool of HAppS servers running on an open port.
Has anybody done this? Also, is there any way to start up the service
automatically without having to use screen? Is there a way to disable
the requirement of STDIN for the 'e' key somehow (we don't have a
dependency on the state checkpointing, so really there's no reason for
clean exiting, I think)?
Thanks,
Ian
--
Ian Sefferman | 248.819.7586
http://www.openomy.com | http://www.iseff.com
You might want to turn on, I think it's called PreserveHost. It's not
on by default. Other than that yes, I think the rails community has
demonstrated that reverse proxy can work in production.
--
Darrin
-Alex-
But, I'm not convinced that this is what we want. Perhaps I'm just
misunderstanding what exactly it is? Maybe a more thorough explanation
of what we're launching will help.
The HAppS service we're building is a REST-based API service to
Openomy, our project. So, the API service which we are going to deploy
is basically a filter. It transforms external requests (from any
application and developer), ensures access control/validity/etc and
then makes the appropriate call to our internal service. It's just a
bridge since it doesn't need state on its own.
So, we don't really want to use EC2 because we'd like to be close to
our internal services. And as just a bridge, we don't really need any
of the state that HAppS provides, nor the multimaster replication of
such state.
We just need to be able to run this from our boxes as easily as
possible. :) Our current plan was to use capistrano (since we use it
for other deployments) to build and deploy the code and startup the
HAppS server (if possible, getting rid of the need for STDIN and
daemonizing it somehow, but if not, through the use of screen), and
then start up an apache2 with mod_proxy_balancer to forward requests
to these servers...
Does that make more sense? Is there a more preferred way of doing this?
Thanks for all your help, folks!
Ian
-Alex-
Best regards,
Michael
The bug is that you can't derive Data for phantom types. If 6.8.2
contains the bug fix then we will be happy. If not, we will probably do
a release with a workaround which will cause HAppS code to be mildly
uglier until the bug is fixed in 6.8.3.
-Alex-