From aaronchi at gmail.com Tue Aug 12 16:16:05 2008 From: aaronchi at gmail.com (Aaron Eisenberger) Date: Tue, 12 Aug 2008 16:16:05 -0400 Subject: [Swiftiply-users] Monitoring swiftified thins/mongrels using monit Message-ID: How does one verify that a swiftified thin instance is running with monit? Before moving to swiftiply I was able to check id the process was alive by checking the port foa response: if failed port 8001 protocol http with timeout 10 seconds then restart Is there any way to do a similar type of check with swiftiplied? -Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From wbr at mac.com Mon Aug 18 18:02:17 2008 From: wbr at mac.com (wbr at mac.com) Date: Mon, 18 Aug 2008 15:02:17 -0700 Subject: [Swiftiply-users] Apache + Swiftiply + Mongrel + multiple Rails apps Message-ID: <20080818150217174001.cc729d4f@mac.com> I have the same needs as DA (january post), and I can't figure out how to do this with Swiftiply. I can get swiftiply working fine with a single rails app, and several mongrel instances. But we have many rails apps on our server, sometimes several in the same domain. I'd like to filter incoming requests based on port, not on domain. This is what we're currently doing with apache and pound, and it works beautifully. Since apache is already parsing the url, pound/swiftiply/etc doesn't need to do that again. Just listen on a specific port and hand over all requests to the connected mongrels. I'd like to see more documentation for swiftiply. There are some huge gaps currently: - more information about how to use the swiftiply.conf file, including examples of complex setups - more information about how to use swiftiply_mongrel_rails Thanks, Bill > My question is if Swiftiply can be used to handle multiple back end > apps based on url? We currently use Apache 2 to reverse proxy to > multiple Rails applications based on the url. For example: > /sub will proxy to pen listening on localhost:3000 > /admin will proxy to pen listen on localhost:3050 > > The Pen proxies then connect to each application's Mongrel Cluster. > It looks like Swiftiply can handle multiple application only by > hostname. I have not seen anything written about using it the way I > need it. > > Let me know if you need any more information. > > Thanks, > DA From info at mwmediasolutions.de Tue Aug 19 02:49:38 2008 From: info at mwmediasolutions.de (Marc Willwacher) Date: Tue, 19 Aug 2008 08:49:38 +0200 Subject: [Swiftiply-users] Sometimes all mongrels die Message-ID: <48AA6D02.5010409@mwmediasolutions.de> Hi, I got a problem running a rails app on swiftiply (0.6.1.1)/mongrel (1.1.4). It's running on a Debian 4.0 Etch, rails 1.2.6, ruby 1.8. Mostly its running fine, but sometimes ALL mongrels die with the following messages in mongrel.log /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:54:in `escape': can't convert nil into String (TypeError) from /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:303:in `join' from /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:303:in `join' from /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:303:in `each' from /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:303:in `join' from /var/lib/gems/1.8/gems/swiftiply-0.6.1.1/bin/mongrel_rails:145:in `run' from /var/lib/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run' from /var/lib/gems/1.8/gems/swiftiply-0.6.1.1/bin/mongrel_rails:252 from /var/lib/gems/1.8/bin/mongrel_rails:18:in `load' from /var/lib/gems/1.8/bin/mongrel_rails:18 I can not reproduce this error. Would be fine if some knows how to fix this. Many thanks, marc