From jnicoll at gnexp.com Thu Oct 4 09:21:36 2007 From: jnicoll at gnexp.com (Jeremy Nicoll) Date: Thu, 04 Oct 2007 07:21:36 -0600 Subject: [Swiftiply-users] nginx->swifty->eventmachine->mongrel->rails question In-Reply-To: <396d7d2d0709301851u36858ea1ue29fe8a776db121@mail.gmail.com> References: <396d7d2d0709301851u36858ea1ue29fe8a776db121@mail.gmail.com> Message-ID: <4704E8E0.3040708@gnexp.com> Steven, To restart, I have employed a simple little script that is to be run from your rails root: ------------------------------------------------------------------------ #!/bin/bash for pidfile in "log"/dog*.pid; do kill -9 `cat $pidfile` rm $pidfile done swiftiply_mongrel_rails -n2 -d ------------------------------------------------------------------------ You may want to take the -9 out of the line that starts with kill, but I'm a bit paranoid about having hung services on my cheap-o VPS. :) You will also want to change the last line to match what you currently use to start up the Swiftiplied Mongrel rails. -- Jeremy Nicoll Steven A Bristol wrote: > I just posted this to http://swiftiply.swiftcore.org/faq.html, but I > got an error so I thought I ask here (sorry if this is considered > spam): > > > I am having trouble figuring out how to get > nginx->swifty->eventmachine->mongrel->rails working. > > I have ngix passing to swifty just fine, and if I start mongrel from > RAILS_ROOT using swiftiply_mongrel_rails everything does work fine, > but I can't seem to get the mongrels started from a script. Let alone > how to stop or restart them. > > Also, I had three mongrels running, I killed one and it did not > restart. Which is what I thought was supposed to happen with the > redeployable: true switch set. > > Thanks in advance for your help. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/swiftiply-users/attachments/20071004/a104ab2c/attachment.html From jnicoll at gnexp.com Sat Oct 6 01:05:19 2007 From: jnicoll at gnexp.com (Jeremy Nicoll) Date: Fri, 05 Oct 2007 23:05:19 -0600 Subject: [Swiftiply-users] pidfile option for Swiftiply? Message-ID: <4707178F.6050806@gnexp.com> Is there a way to set the file location where Swiftiply will specify the PID of the Swiftiply server? -- Jeremy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/swiftiply-users/attachments/20071005/3a2ed400/attachment.html From jc at firewheeldesign.com Mon Oct 8 15:02:46 2007 From: jc at firewheeldesign.com (John Critz) Date: Mon, 8 Oct 2007 14:02:46 -0500 Subject: [Swiftiply-users] Mongrel Problem Message-ID: <21999898-D961-4A71-B05C-C50864BC7B22@firewheeldesign.com> I'm having some trouble getting swiftiplied setup correctly. Here's what I've got running: Two app servers running a Rails app, which are each running 10 mongrels. I currently use nginx to forward to these mongrels. I'm not serving any static or HTTPS pages, so I'd like to start using swiftiplied as my web/proxy server instead of nginx. I also need the ability to start a new app server with n mongrels and plug it into my proxy config. I've gotten swiftiplied configured and running, but I can't get multiple mongrels to start that read from my mongrel config file. I can, however, get 1 mongrel to start when passing command line arguments. Please let me know the best way to configure swiftiplied for my architecture. Thanks, John ----------------------------------------------------------------- http://www.blinksale.com : The easiest way to send invoices online http://www.iconbuffet.com : The premier source for royalty-free icons http://www.firewheeldesign.com : Interface design for Web 2.0 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/swiftiply-users/attachments/20071008/8c02d919/attachment.html From jc at firewheeldesign.com Tue Oct 9 12:43:23 2007 From: jc at firewheeldesign.com (John Critz) Date: Tue, 9 Oct 2007 11:43:23 -0500 Subject: [Swiftiply-users] Mongrel Problem In-Reply-To: <6b93ca880710081811t3919e6b0j4cf34a8aec09bd98@mail.gmail.com> References: <21999898-D961-4A71-B05C-C50864BC7B22@firewheeldesign.com> <6b93ca880710081811t3919e6b0j4cf34a8aec09bd98@mail.gmail.com> Message-ID: <65A5BA31-C803-4EC0-ABCF-FBFE8B5D5152@firewheeldesign.com> Thanks for the reply, Greg! Here's what I've got: = Mongrel Config ============= --- cwd: /Users/critzjm/work/foo log_file: log/mongrel.log port: "8000" environment: development address: 127.0.0.1 pid_file: log/mongrel.pid servers: 4 = Swiftiply Config ============= cluster_address: 0.0.0.0 cluster_port: 80 daemonize: true epoll: true epoll_descriptors: 20000 map: - incoming: - 127.0.0.1 outgoing: 127.0.0.1:8000 default: true docroot: /Users/critzjm/work/foo/public redeployable: true cache_directory: swiftiply_cache cache_extensions: - htm - html - txt When I run "swiftiply_mongrel_rails -C config/mongrel.yml -d" I get 4 processes running the production environment on port 4000, so it isn't reading my config file at all. When I run "env SWIFT=1 mongrel_rails cluster::start -C config/ mongrel.yml" I get my 4 mongrels using my config settings, but they are all running on different ports. When I run "env EVENT=1 mongrel_rails cluster::start -C config/ mongrel.yml" I get the same thing as running with the SWIFT env variable. So I'm just confused as to what the correct setup is. Thanks for the help! John On Oct 8, 2007, at 8:11 PM, Greg Benedict wrote: > John, > > Can you show us your mongrel config? > > Greg > > On 10/8/07, John Critz wrote: >> >> >> I'm having some trouble getting swiftiplied setup correctly. >> Here's what >> I've got running: >> >> Two app servers running a Rails app, which are each running 10 >> mongrels. I >> currently use nginx to forward to these mongrels. >> >> I'm not serving any static or HTTPS pages, so I'd like to start using >> swiftiplied as my web/proxy server instead of nginx. >> >> I also need the ability to start a new app server with n mongrels >> and plug >> it into my proxy config. >> >> I've gotten swiftiplied configured and running, but I can't get >> multiple >> mongrels to start that read from my mongrel config file. I can, >> however, >> get 1 mongrel to start when passing command line arguments. >> >> Please let me know the best way to configure swiftiplied for my >> architecture. >> >> Thanks, >> >> John >> >> >> ----------------------------------------------------------------- >> http://www.blinksale.com : The easiest way to send invoices online >> http://www.iconbuffet.com : The premier source for royalty-free icons >> http://www.firewheeldesign.com : Interface design for Web 2.0 >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> Swiftiply-users mailing list >> Swiftiply-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/swiftiply-users >> >> > > > -- > Thanks, > > Greg Benedict -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/swiftiply-users/attachments/20071009/7e03332b/attachment-0001.html From B.Candler at pobox.com Tue Oct 23 03:23:15 2007 From: B.Candler at pobox.com (Brian Candler) Date: Tue, 23 Oct 2007 08:23:15 +0100 Subject: [Swiftiply-users] What happened to swiftiply.swiftcore.org ? Message-ID: <20071023072315.GA21088@uk.tiscali.com> The main site http://swiftiply.swiftcore.org/ has been down for the last day or so: $ telnet swiftiply.swiftcore.org 80 Trying 85.10.203.120... telnet: Unable to connect to remote host: Connection refused Anybody know what's happened to it? Thanks, Brian.