|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Rails and JRubyHello friends.
I'm investigating building a Rails stack with JRuby as the interpreter. I'm a little confused by the choice of Tomcat and Glassfish. Which is being used most frequently for greenfield set ups? Also, for Glassfish, are people using Prelude, or version 2? I also wouldn't mind some hints with respect to how Capistrano or Vlad fit into the equation. Our current stack uses MRI/Phusion/Apache. Thank you for your time, James H |
|
|
Re: Rails and JRubyOn Fri, Jun 19, 2009 at 10:27 AM, James Herdman <james.herdman@...> wrote:
Hello friends. Either are decent choices. You should try both and see what fits your environment better. Tomcat is smaller, Glassfish is probably a little more performant, but you should test with your apps. In either case, you'll probably be using Warbler to create the war files to deploy to them, so you can create one war file and deploy the same file in both to play around. There's also JRuby/Mongrel which is acceptable, and the Glassfish gem as well.
http://stackoverflow.com/questions/147671/whats-the-best-way-to-deploy-a-jruby-on-rails-application-to-tomcat seems to have some good suggestions. Cheers, /Nick |
|
|
RE: Rails and JRubyI proxy to the glassfish gem out of apache. Capistrano is great, but not if you;re stuck with a Windows box Date: Fri, 19 Jun 2009 11:12:55 -0500 From: nicksieger@... To: user@... Subject: Re: [jruby-user] Rails and JRuby On Fri, Jun 19, 2009 at 10:27 AM, James Herdman <james.herdman@...> wrote: Hello friends. Either are decent choices. You should try both and see what fits your environment better. Tomcat is smaller, Glassfish is probably a little more performant, but you should test with your apps. In either case, you'll probably be using Warbler to create the war files to deploy to them, so you can create one war file and deploy the same file in both to play around. There's also JRuby/Mongrel which is acceptable, and the Glassfish gem as well.
http://stackoverflow.com/questions/147671/whats-the-best-way-to-deploy-a-jruby-on-rails-application-to-tomcat seems to have some good suggestions. Cheers, /Nick Insert movie times and more without leaving Hotmail®. See how. |
|
|
Re: Rails and JRubyWaring up the app is not a big issue. We use tomcat here, but for deployment only. Development mode we just run JRuby/mongrel.
I particularly didn't go with glass fish - or any other app server for that matter - because we don't need any of the extra services they provide. e.g.: EJB container. Leonardo Borges www.leonardoborges.com On Fri, Jun 19, 2009 at 7:13 PM, Mistress Janna Brossard <mistressjanna@...> wrote:
|
|
|
Re: Rails and JRubyMistress Janna Brossard said:
> I find the glassfish gem to be the most performant of all -- and I don't > need to war-up my app. > > I proxy to the glassfish gem out of apache. Ditto. I use glassfish3 I also have some mongrel cluster stuff, but glassfish is simpler and just works. -- Best, Marc "Change requires small steps." --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyHow does the proxying to Glassfish work? Doesn't Glassfish have Grizzly for handling incoming requests quickly?
James
On Fri, Jun 19, 2009 at 3:55 PM, marc <gmane@...> wrote:
|
|
|
RE: Rails and JRubyI simply put the following into my httpd.conf: (I am runninf Apache 1.3.33...I think you must have it set up to be able to do VirtualHosting as well -- which is set up if you have installed, say InstantRailis and their examples): <VirtualHost *> ServerName gg.dyndns.org DocumentRoot C:/jruby/rails_apps/gg/public/ ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000 </VirtualHost> Then fire up the LATEST Glassfish gem on, say, port 3000: C:\jruby\rails_apps\gg>jruby -S glassfish Voila...blazing speed, can handle lots of traffic. Note that I am also cominging into apache from a dyndns name. So, whatever IP I have, I can go straight to execution on the glassfish gem and NO warring up! What could be easier deployment, or a faster execution? -Janna B From: james.herdman@... Date: Thu, 25 Jun 2009 09:17:10 -0400 To: user@... Subject: Re: [jruby-user] Rails and JRuby How does the proxying to Glassfish work? Doesn't Glassfish have Grizzly for handling incoming requests quickly? James On Fri, Jun 19, 2009 at 3:55 PM, marc <gmane@...> wrote:
Windows Live™: Keep your life in sync. Check it out. |
|
|
Re: Rails and JRubyI second Janna B.
I set this up on Solaris monday. It's running fantasticly and performing like nothing I've seen before :) Completely stable memory, no wirings or anything bad for 5 days now.. (with several ab/htperf stresstests). In case you wonder how to integrate it with SMF, here's the short, no fluff version smidig@...:~/ $ cat /etc/apache2/2.2/sites/ocr.smidig.no <VirtualHost *:80> ServerName ocr.smidig2009.no DocumentRoot /var/apps/smidig2009/oc/smidig2009/public <Directory /var/apps/smidig2009/oc/smidig2009/public> Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> <Proxy balancer://smidig2009> BalancerMember http://10.214.206.200:3000 BalancerMember http://10.214.206.201:3000 </Proxy> ProxyPass / balancer://smidig2009/ CustomLog /var/log/apache2/smidig2009_oc_apache_access_log combined </VirtualHost> $ cat config/glassfish.yml environment: oc http: port: 3000 contextroot: / log: # Logging level. Log level 0 to 7. 0:OFF, 1:SEVERE, 2:WARNING, # 3:INFO (default), 4:FINE, 5:FINER, 6:FINEST, 7:ALL. log-level: 5 jruby-runtime-pool: initial: 1 min: 1 max: 1 daemon: enable: true pid: tmp/pids/glassfish-oc.pid jvm-options: -server -Xmx2500m -Xms64m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewRatio=2 -XX:+DisableExplicitGC -Dhk2.file.directory.changeIntervalTimer=6000 $ cat config/glassfish-gem.smf.xml <?xml version='1.0'?> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> <service_bundle type='manifest' name='glassfish-gem'> <service name='network/glassfish-gem' type='service' version='0'> <dependency name='fs' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/system/filesystem/local'/> </dependency> <dependency name='net' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/network/loopback'/> </dependency> <dependent name='glassfish-gem_multi-user' restart_on='none' grouping='optional_all'> <service_fmri value='svc:/milestone/multi-user'/> </dependent> <exec_method name='start' type='method' exec='/opt/jruby/bin/glassfish' timeout_seconds='60' /> <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60' /> <!-- INSTANCES --> <instance name='smidig2009_oc' enabled='false'> <method_context working_directory='/var/apps/smidig2009/oc/smidig2009'> <method_credential user='smidig_no' group='daemon' /> <method_environment> <envvar name="PATH" value="/opt/jruby/bin:/usr/bin:/bin" /> </method_environment> </method_context> </instance> <instance name='smidig2009_production' enabled='false'> <method_context working_directory='/var/apps/smidig2009/production/smidig2009'> <method_credential user='smidig_no' group='daemon' /> <method_environment> <envvar name="PATH" value="/opt/jruby/bin:/usr/bin:/bin" /> </method_environment> </method_context> </instance> </service> </service_bundle> $ pfexec svccfg validate config/glassfish-gem.smf.xml $ pfexec svccfg import config/glassfish-gem.smf.xml $ pfexec svcadm enable glassfish-gem:smidig2009_oc $ pfexec svcadm restart apache22 oc On Thu, Jun 25, 2009 at 4:47 PM, Mistress Janna Brossard<mistressjanna@...> wrote: > James, > > I simply put the following into my httpd.conf: (I am runninf Apache > 1.3.33...I think you must have it set up to be able to do VirtualHosting as > well -- which is set up if you have installed, say InstantRailis and their > examples): > > <VirtualHost *> > ServerName gg.dyndns.org > DocumentRoot C:/jruby/rails_apps/gg/public/ > ProxyPass / http://localhost:3000/ > ProxyPassReverse / http://localhost:3000 > </VirtualHost> > > Then fire up the LATEST Glassfish gem on, say, port 3000: > > C:\jruby\rails_apps\gg>jruby -S glassfish > > Voila...blazing speed, can handle lots of traffic. Note that I am also > cominging into apache from a dyndns name. So, whatever IP I have, I can go > straight to execution on the glassfish gem and NO warring up! What could be > easier deployment, or a faster execution? -Janna B > > > > > ________________________________ > From: james.herdman@... > Date: Thu, 25 Jun 2009 09:17:10 -0400 > To: user@... > Subject: Re: [jruby-user] Rails and JRuby > > How does the proxying to Glassfish work? Doesn't Glassfish have Grizzly for > handling incoming requests quickly? > James > > On Fri, Jun 19, 2009 at 3:55 PM, marc <gmane@...> wrote: > > Mistress Janna Brossard said: > >> I find the glassfish gem to be the most performant of all -- and I don't >> need to war-up my app. >> >> I proxy to the glassfish gem out of apache. > > Ditto. I use glassfish3 > > I also have some mongrel cluster stuff, but glassfish is simpler and just > works. > > -- > Best, > Marc > > "Change requires small steps." > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > > ________________________________ > Windows Live™: Keep your life in sync. Check it out. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyWow, this is a great writeup. Maybe you (Ole) and you (Janna) could
add a page to the wiki or write up a blog post? On Fri, Jun 26, 2009 at 7:04 AM, Ole Christian Rynning<oc@...> wrote: > I second Janna B. > > I set this up on Solaris monday. It's running fantasticly and > performing like nothing I've seen before :) Completely stable memory, > no wirings or anything bad for 5 days now.. (with several ab/htperf > stresstests). > > In case you wonder how to integrate it with SMF, here's the short, no > fluff version > > smidig@...:~/ $ cat /etc/apache2/2.2/sites/ocr.smidig.no > <VirtualHost *:80> > > ServerName ocr.smidig2009.no > DocumentRoot /var/apps/smidig2009/oc/smidig2009/public > > <Directory /var/apps/smidig2009/oc/smidig2009/public> > Options FollowSymLinks > AllowOverride All > Order allow,deny > Allow from all > </Directory> > > <Proxy balancer://smidig2009> > BalancerMember http://10.214.206.200:3000 > BalancerMember http://10.214.206.201:3000 > </Proxy> > > ProxyPass / balancer://smidig2009/ > CustomLog /var/log/apache2/smidig2009_oc_apache_access_log combined > > </VirtualHost> > > > $ cat config/glassfish.yml > environment: oc > http: > port: 3000 > contextroot: / > > log: > # Logging level. Log level 0 to 7. 0:OFF, 1:SEVERE, 2:WARNING, > # 3:INFO (default), 4:FINE, 5:FINER, 6:FINEST, 7:ALL. > log-level: 5 > > jruby-runtime-pool: > > initial: 1 > min: 1 > max: 1 > > daemon: > enable: true > pid: tmp/pids/glassfish-oc.pid > jvm-options: -server -Xmx2500m -Xms64m -XX:PermSize=256m > -XX:MaxPermSize=256m -XX:NewRatio=2 -XX:+DisableExplicitGC > -Dhk2.file.directory.changeIntervalTimer=6000 > > > $ cat config/glassfish-gem.smf.xml > <?xml version='1.0'?> > <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> > <service_bundle type='manifest' name='glassfish-gem'> > <service name='network/glassfish-gem' type='service' version='0'> > <dependency name='fs' grouping='require_all' restart_on='none' > type='service'> > <service_fmri value='svc:/system/filesystem/local'/> > </dependency> > <dependency name='net' grouping='require_all' restart_on='none' > type='service'> > <service_fmri value='svc:/network/loopback'/> > </dependency> > <dependent name='glassfish-gem_multi-user' restart_on='none' > grouping='optional_all'> > <service_fmri value='svc:/milestone/multi-user'/> > </dependent> > <exec_method name='start' type='method' > exec='/opt/jruby/bin/glassfish' timeout_seconds='60' /> > <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60' /> > <!-- INSTANCES --> > <instance name='smidig2009_oc' enabled='false'> > <method_context > working_directory='/var/apps/smidig2009/oc/smidig2009'> > <method_credential user='smidig_no' group='daemon' /> > <method_environment> > <envvar name="PATH" > value="/opt/jruby/bin:/usr/bin:/bin" /> > </method_environment> > </method_context> > </instance> > <instance name='smidig2009_production' enabled='false'> > <method_context > working_directory='/var/apps/smidig2009/production/smidig2009'> > <method_credential user='smidig_no' group='daemon' /> > <method_environment> > <envvar name="PATH" > value="/opt/jruby/bin:/usr/bin:/bin" /> > </method_environment> > </method_context> > </instance> > </service> > </service_bundle> > > $ pfexec svccfg validate config/glassfish-gem.smf.xml > $ pfexec svccfg import config/glassfish-gem.smf.xml > $ pfexec svcadm enable glassfish-gem:smidig2009_oc > $ pfexec svcadm restart apache22 > > oc > > On Thu, Jun 25, 2009 at 4:47 PM, Mistress Janna > Brossard<mistressjanna@...> wrote: >> James, >> >> I simply put the following into my httpd.conf: (I am runninf Apache >> 1.3.33...I think you must have it set up to be able to do VirtualHosting as >> well -- which is set up if you have installed, say InstantRailis and their >> examples): >> >> <VirtualHost *> >> ServerName gg.dyndns.org >> DocumentRoot C:/jruby/rails_apps/gg/public/ >> ProxyPass / http://localhost:3000/ >> ProxyPassReverse / http://localhost:3000 >> </VirtualHost> >> >> Then fire up the LATEST Glassfish gem on, say, port 3000: >> >> C:\jruby\rails_apps\gg>jruby -S glassfish >> >> Voila...blazing speed, can handle lots of traffic. Note that I am also >> cominging into apache from a dyndns name. So, whatever IP I have, I can go >> straight to execution on the glassfish gem and NO warring up! What could be >> easier deployment, or a faster execution? -Janna B >> >> >> >> >> ________________________________ >> From: james.herdman@... >> Date: Thu, 25 Jun 2009 09:17:10 -0400 >> To: user@... >> Subject: Re: [jruby-user] Rails and JRuby >> >> How does the proxying to Glassfish work? Doesn't Glassfish have Grizzly for >> handling incoming requests quickly? >> James >> >> On Fri, Jun 19, 2009 at 3:55 PM, marc <gmane@...> wrote: >> >> Mistress Janna Brossard said: >> >>> I find the glassfish gem to be the most performant of all -- and I don't >>> need to war-up my app. >>> >>> I proxy to the glassfish gem out of apache. >> >> Ditto. I use glassfish3 >> >> I also have some mongrel cluster stuff, but glassfish is simpler and just >> works. >> >> -- >> Best, >> Marc >> >> "Change requires small steps." >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> >> ________________________________ >> Windows Live™: Keep your life in sync. Check it out. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubySpecifically I'm talking about a writeup for getting GF gem + apache +
whatever else working well together. I'm not sure we have that article anywhere. On Wed, Jul 1, 2009 at 12:14 PM, Charles Oliver Nutter<headius@...> wrote: > Wow, this is a great writeup. Maybe you (Ole) and you (Janna) could > add a page to the wiki or write up a blog post? > > On Fri, Jun 26, 2009 at 7:04 AM, Ole Christian Rynning<oc@...> wrote: >> I second Janna B. >> >> I set this up on Solaris monday. It's running fantasticly and >> performing like nothing I've seen before :) Completely stable memory, >> no wirings or anything bad for 5 days now.. (with several ab/htperf >> stresstests). >> >> In case you wonder how to integrate it with SMF, here's the short, no >> fluff version >> >> smidig@...:~/ $ cat /etc/apache2/2.2/sites/ocr.smidig.no >> <VirtualHost *:80> >> >> ServerName ocr.smidig2009.no >> DocumentRoot /var/apps/smidig2009/oc/smidig2009/public >> >> <Directory /var/apps/smidig2009/oc/smidig2009/public> >> Options FollowSymLinks >> AllowOverride All >> Order allow,deny >> Allow from all >> </Directory> >> >> <Proxy balancer://smidig2009> >> BalancerMember http://10.214.206.200:3000 >> BalancerMember http://10.214.206.201:3000 >> </Proxy> >> >> ProxyPass / balancer://smidig2009/ >> CustomLog /var/log/apache2/smidig2009_oc_apache_access_log combined >> >> </VirtualHost> >> >> >> $ cat config/glassfish.yml >> environment: oc >> http: >> port: 3000 >> contextroot: / >> >> log: >> # Logging level. Log level 0 to 7. 0:OFF, 1:SEVERE, 2:WARNING, >> # 3:INFO (default), 4:FINE, 5:FINER, 6:FINEST, 7:ALL. >> log-level: 5 >> >> jruby-runtime-pool: >> >> initial: 1 >> min: 1 >> max: 1 >> >> daemon: >> enable: true >> pid: tmp/pids/glassfish-oc.pid >> jvm-options: -server -Xmx2500m -Xms64m -XX:PermSize=256m >> -XX:MaxPermSize=256m -XX:NewRatio=2 -XX:+DisableExplicitGC >> -Dhk2.file.directory.changeIntervalTimer=6000 >> >> >> $ cat config/glassfish-gem.smf.xml >> <?xml version='1.0'?> >> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> >> <service_bundle type='manifest' name='glassfish-gem'> >> <service name='network/glassfish-gem' type='service' version='0'> >> <dependency name='fs' grouping='require_all' restart_on='none' >> type='service'> >> <service_fmri value='svc:/system/filesystem/local'/> >> </dependency> >> <dependency name='net' grouping='require_all' restart_on='none' >> type='service'> >> <service_fmri value='svc:/network/loopback'/> >> </dependency> >> <dependent name='glassfish-gem_multi-user' restart_on='none' >> grouping='optional_all'> >> <service_fmri value='svc:/milestone/multi-user'/> >> </dependent> >> <exec_method name='start' type='method' >> exec='/opt/jruby/bin/glassfish' timeout_seconds='60' /> >> <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60' /> >> <!-- INSTANCES --> >> <instance name='smidig2009_oc' enabled='false'> >> <method_context >> working_directory='/var/apps/smidig2009/oc/smidig2009'> >> <method_credential user='smidig_no' group='daemon' /> >> <method_environment> >> <envvar name="PATH" >> value="/opt/jruby/bin:/usr/bin:/bin" /> >> </method_environment> >> </method_context> >> </instance> >> <instance name='smidig2009_production' enabled='false'> >> <method_context >> working_directory='/var/apps/smidig2009/production/smidig2009'> >> <method_credential user='smidig_no' group='daemon' /> >> <method_environment> >> <envvar name="PATH" >> value="/opt/jruby/bin:/usr/bin:/bin" /> >> </method_environment> >> </method_context> >> </instance> >> </service> >> </service_bundle> >> >> $ pfexec svccfg validate config/glassfish-gem.smf.xml >> $ pfexec svccfg import config/glassfish-gem.smf.xml >> $ pfexec svcadm enable glassfish-gem:smidig2009_oc >> $ pfexec svcadm restart apache22 >> >> oc >> >> On Thu, Jun 25, 2009 at 4:47 PM, Mistress Janna >> Brossard<mistressjanna@...> wrote: >>> James, >>> >>> I simply put the following into my httpd.conf: (I am runninf Apache >>> 1.3.33...I think you must have it set up to be able to do VirtualHosting as >>> well -- which is set up if you have installed, say InstantRailis and their >>> examples): >>> >>> <VirtualHost *> >>> ServerName gg.dyndns.org >>> DocumentRoot C:/jruby/rails_apps/gg/public/ >>> ProxyPass / http://localhost:3000/ >>> ProxyPassReverse / http://localhost:3000 >>> </VirtualHost> >>> >>> Then fire up the LATEST Glassfish gem on, say, port 3000: >>> >>> C:\jruby\rails_apps\gg>jruby -S glassfish >>> >>> Voila...blazing speed, can handle lots of traffic. Note that I am also >>> cominging into apache from a dyndns name. So, whatever IP I have, I can go >>> straight to execution on the glassfish gem and NO warring up! What could be >>> easier deployment, or a faster execution? -Janna B >>> >>> >>> >>> >>> ________________________________ >>> From: james.herdman@... >>> Date: Thu, 25 Jun 2009 09:17:10 -0400 >>> To: user@... >>> Subject: Re: [jruby-user] Rails and JRuby >>> >>> How does the proxying to Glassfish work? Doesn't Glassfish have Grizzly for >>> handling incoming requests quickly? >>> James >>> >>> On Fri, Jun 19, 2009 at 3:55 PM, marc <gmane@...> wrote: >>> >>> Mistress Janna Brossard said: >>> >>>> I find the glassfish gem to be the most performant of all -- and I don't >>>> need to war-up my app. >>>> >>>> I proxy to the glassfish gem out of apache. >>> >>> Ditto. I use glassfish3 >>> >>> I also have some mongrel cluster stuff, but glassfish is simpler and just >>> works. >>> >>> -- >>> Best, >>> Marc >>> >>> "Change requires small steps." >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >>> >>> ________________________________ >>> Windows Live™: Keep your life in sync. Check it out. >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyI'll try to find some time. I've created an initial wiki page:
http://kenai.com/projects/jruby/pages/JRubyOnRailsWithGlassfishGem TODO: Notes in regards of Linux information. I currently only have a bunch of Solaris servers, and no Linux servers. I'd also like to add a Nginx config. I currently don't use it as frontend is usually hardware based. However I used to, as I find it vastly superior to Apache httpd, but there were no decent OpenSolaris package available atm. oc On Wed, Jul 1, 2009 at 7:14 PM, Charles Oliver Nutter<headius@...> wrote: > Specifically I'm talking about a writeup for getting GF gem + apache + > whatever else working well together. I'm not sure we have that article > anywhere. > > On Wed, Jul 1, 2009 at 12:14 PM, Charles Oliver > Nutter<headius@...> wrote: >> Wow, this is a great writeup. Maybe you (Ole) and you (Janna) could >> add a page to the wiki or write up a blog post? >> >> On Fri, Jun 26, 2009 at 7:04 AM, Ole Christian Rynning<oc@...> wrote: >>> I second Janna B. >>> >>> I set this up on Solaris monday. It's running fantasticly and >>> performing like nothing I've seen before :) Completely stable memory, >>> no wirings or anything bad for 5 days now.. (with several ab/htperf >>> stresstests). >>> >>> In case you wonder how to integrate it with SMF, here's the short, no >>> fluff version >>> >>> smidig@...:~/ $ cat /etc/apache2/2.2/sites/ocr.smidig.no >>> <VirtualHost *:80> >>> >>> ServerName ocr.smidig2009.no >>> DocumentRoot /var/apps/smidig2009/oc/smidig2009/public >>> >>> <Directory /var/apps/smidig2009/oc/smidig2009/public> >>> Options FollowSymLinks >>> AllowOverride All >>> Order allow,deny >>> Allow from all >>> </Directory> >>> >>> <Proxy balancer://smidig2009> >>> BalancerMember http://10.214.206.200:3000 >>> BalancerMember http://10.214.206.201:3000 >>> </Proxy> >>> >>> ProxyPass / balancer://smidig2009/ >>> CustomLog /var/log/apache2/smidig2009_oc_apache_access_log combined >>> >>> </VirtualHost> >>> >>> >>> $ cat config/glassfish.yml >>> environment: oc >>> http: >>> port: 3000 >>> contextroot: / >>> >>> log: >>> # Logging level. Log level 0 to 7. 0:OFF, 1:SEVERE, 2:WARNING, >>> # 3:INFO (default), 4:FINE, 5:FINER, 6:FINEST, 7:ALL. >>> log-level: 5 >>> >>> jruby-runtime-pool: >>> >>> initial: 1 >>> min: 1 >>> max: 1 >>> >>> daemon: >>> enable: true >>> pid: tmp/pids/glassfish-oc.pid >>> jvm-options: -server -Xmx2500m -Xms64m -XX:PermSize=256m >>> -XX:MaxPermSize=256m -XX:NewRatio=2 -XX:+DisableExplicitGC >>> -Dhk2.file.directory.changeIntervalTimer=6000 >>> >>> >>> $ cat config/glassfish-gem.smf.xml >>> <?xml version='1.0'?> >>> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> >>> <service_bundle type='manifest' name='glassfish-gem'> >>> <service name='network/glassfish-gem' type='service' version='0'> >>> <dependency name='fs' grouping='require_all' restart_on='none' >>> type='service'> >>> <service_fmri value='svc:/system/filesystem/local'/> >>> </dependency> >>> <dependency name='net' grouping='require_all' restart_on='none' >>> type='service'> >>> <service_fmri value='svc:/network/loopback'/> >>> </dependency> >>> <dependent name='glassfish-gem_multi-user' restart_on='none' >>> grouping='optional_all'> >>> <service_fmri value='svc:/milestone/multi-user'/> >>> </dependent> >>> <exec_method name='start' type='method' >>> exec='/opt/jruby/bin/glassfish' timeout_seconds='60' /> >>> <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60' /> >>> <!-- INSTANCES --> >>> <instance name='smidig2009_oc' enabled='false'> >>> <method_context >>> working_directory='/var/apps/smidig2009/oc/smidig2009'> >>> <method_credential user='smidig_no' group='daemon' /> >>> <method_environment> >>> <envvar name="PATH" >>> value="/opt/jruby/bin:/usr/bin:/bin" /> >>> </method_environment> >>> </method_context> >>> </instance> >>> <instance name='smidig2009_production' enabled='false'> >>> <method_context >>> working_directory='/var/apps/smidig2009/production/smidig2009'> >>> <method_credential user='smidig_no' group='daemon' /> >>> <method_environment> >>> <envvar name="PATH" >>> value="/opt/jruby/bin:/usr/bin:/bin" /> >>> </method_environment> >>> </method_context> >>> </instance> >>> </service> >>> </service_bundle> >>> >>> $ pfexec svccfg validate config/glassfish-gem.smf.xml >>> $ pfexec svccfg import config/glassfish-gem.smf.xml >>> $ pfexec svcadm enable glassfish-gem:smidig2009_oc >>> $ pfexec svcadm restart apache22 >>> >>> oc >>> >>> On Thu, Jun 25, 2009 at 4:47 PM, Mistress Janna >>> Brossard<mistressjanna@...> wrote: >>>> James, >>>> >>>> I simply put the following into my httpd.conf: (I am runninf Apache >>>> 1.3.33...I think you must have it set up to be able to do VirtualHosting as >>>> well -- which is set up if you have installed, say InstantRailis and their >>>> examples): >>>> >>>> <VirtualHost *> >>>> ServerName gg.dyndns.org >>>> DocumentRoot C:/jruby/rails_apps/gg/public/ >>>> ProxyPass / http://localhost:3000/ >>>> ProxyPassReverse / http://localhost:3000 >>>> </VirtualHost> >>>> >>>> Then fire up the LATEST Glassfish gem on, say, port 3000: >>>> >>>> C:\jruby\rails_apps\gg>jruby -S glassfish >>>> >>>> Voila...blazing speed, can handle lots of traffic. Note that I am also >>>> cominging into apache from a dyndns name. So, whatever IP I have, I can go >>>> straight to execution on the glassfish gem and NO warring up! What could be >>>> easier deployment, or a faster execution? -Janna B >>>> >>>> >>>> >>>> >>>> ________________________________ >>>> From: james.herdman@... >>>> Date: Thu, 25 Jun 2009 09:17:10 -0400 >>>> To: user@... >>>> Subject: Re: [jruby-user] Rails and JRuby >>>> >>>> How does the proxying to Glassfish work? Doesn't Glassfish have Grizzly for >>>> handling incoming requests quickly? >>>> James >>>> >>>> On Fri, Jun 19, 2009 at 3:55 PM, marc <gmane@...> wrote: >>>> >>>> Mistress Janna Brossard said: >>>> >>>>> I find the glassfish gem to be the most performant of all -- and I don't >>>>> need to war-up my app. >>>>> >>>>> I proxy to the glassfish gem out of apache. >>>> >>>> Ditto. I use glassfish3 >>>> >>>> I also have some mongrel cluster stuff, but glassfish is simpler and just >>>> works. >>>> >>>> -- >>>> Best, >>>> Marc >>>> >>>> "Change requires small steps." >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>>> >>>> ________________________________ >>>> Windows Live™: Keep your life in sync. Check it out. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyI also added http://kenai.com/projects/jruby/pages/JRubyOnRails#Glassfish_v3_Deployment
oc On Wed, Jul 1, 2009 at 9:15 PM, Ole Christian Rynning<oc@...> wrote: > I'll try to find some time. I've created an initial wiki page: > http://kenai.com/projects/jruby/pages/JRubyOnRailsWithGlassfishGem > > TODO: > Notes in regards of Linux information. I currently only have a bunch > of Solaris servers, and no Linux servers. I'd also like to add a Nginx > config. I currently don't use it as frontend is usually hardware > based. However I used to, as I find it vastly superior to Apache > httpd, but there were no decent OpenSolaris package available atm. > > oc > > On Wed, Jul 1, 2009 at 7:14 PM, Charles Oliver > Nutter<headius@...> wrote: >> Specifically I'm talking about a writeup for getting GF gem + apache + >> whatever else working well together. I'm not sure we have that article >> anywhere. >> >> On Wed, Jul 1, 2009 at 12:14 PM, Charles Oliver >> Nutter<headius@...> wrote: >>> Wow, this is a great writeup. Maybe you (Ole) and you (Janna) could >>> add a page to the wiki or write up a blog post? >>> >>> On Fri, Jun 26, 2009 at 7:04 AM, Ole Christian Rynning<oc@...> wrote: >>>> I second Janna B. >>>> >>>> I set this up on Solaris monday. It's running fantasticly and >>>> performing like nothing I've seen before :) Completely stable memory, >>>> no wirings or anything bad for 5 days now.. (with several ab/htperf >>>> stresstests). >>>> >>>> In case you wonder how to integrate it with SMF, here's the short, no >>>> fluff version >>>> >>>> smidig@...:~/ $ cat /etc/apache2/2.2/sites/ocr.smidig.no >>>> <VirtualHost *:80> >>>> >>>> ServerName ocr.smidig2009.no >>>> DocumentRoot /var/apps/smidig2009/oc/smidig2009/public >>>> >>>> <Directory /var/apps/smidig2009/oc/smidig2009/public> >>>> Options FollowSymLinks >>>> AllowOverride All >>>> Order allow,deny >>>> Allow from all >>>> </Directory> >>>> >>>> <Proxy balancer://smidig2009> >>>> BalancerMember http://10.214.206.200:3000 >>>> BalancerMember http://10.214.206.201:3000 >>>> </Proxy> >>>> >>>> ProxyPass / balancer://smidig2009/ >>>> CustomLog /var/log/apache2/smidig2009_oc_apache_access_log combined >>>> >>>> </VirtualHost> >>>> >>>> >>>> $ cat config/glassfish.yml >>>> environment: oc >>>> http: >>>> port: 3000 >>>> contextroot: / >>>> >>>> log: >>>> # Logging level. Log level 0 to 7. 0:OFF, 1:SEVERE, 2:WARNING, >>>> # 3:INFO (default), 4:FINE, 5:FINER, 6:FINEST, 7:ALL. >>>> log-level: 5 >>>> >>>> jruby-runtime-pool: >>>> >>>> initial: 1 >>>> min: 1 >>>> max: 1 >>>> >>>> daemon: >>>> enable: true >>>> pid: tmp/pids/glassfish-oc.pid >>>> jvm-options: -server -Xmx2500m -Xms64m -XX:PermSize=256m >>>> -XX:MaxPermSize=256m -XX:NewRatio=2 -XX:+DisableExplicitGC >>>> -Dhk2.file.directory.changeIntervalTimer=6000 >>>> >>>> >>>> $ cat config/glassfish-gem.smf.xml >>>> <?xml version='1.0'?> >>>> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> >>>> <service_bundle type='manifest' name='glassfish-gem'> >>>> <service name='network/glassfish-gem' type='service' version='0'> >>>> <dependency name='fs' grouping='require_all' restart_on='none' >>>> type='service'> >>>> <service_fmri value='svc:/system/filesystem/local'/> >>>> </dependency> >>>> <dependency name='net' grouping='require_all' restart_on='none' >>>> type='service'> >>>> <service_fmri value='svc:/network/loopback'/> >>>> </dependency> >>>> <dependent name='glassfish-gem_multi-user' restart_on='none' >>>> grouping='optional_all'> >>>> <service_fmri value='svc:/milestone/multi-user'/> >>>> </dependent> >>>> <exec_method name='start' type='method' >>>> exec='/opt/jruby/bin/glassfish' timeout_seconds='60' /> >>>> <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60' /> >>>> <!-- INSTANCES --> >>>> <instance name='smidig2009_oc' enabled='false'> >>>> <method_context >>>> working_directory='/var/apps/smidig2009/oc/smidig2009'> >>>> <method_credential user='smidig_no' group='daemon' /> >>>> <method_environment> >>>> <envvar name="PATH" >>>> value="/opt/jruby/bin:/usr/bin:/bin" /> >>>> </method_environment> >>>> </method_context> >>>> </instance> >>>> <instance name='smidig2009_production' enabled='false'> >>>> <method_context >>>> working_directory='/var/apps/smidig2009/production/smidig2009'> >>>> <method_credential user='smidig_no' group='daemon' /> >>>> <method_environment> >>>> <envvar name="PATH" >>>> value="/opt/jruby/bin:/usr/bin:/bin" /> >>>> </method_environment> >>>> </method_context> >>>> </instance> >>>> </service> >>>> </service_bundle> >>>> >>>> $ pfexec svccfg validate config/glassfish-gem.smf.xml >>>> $ pfexec svccfg import config/glassfish-gem.smf.xml >>>> $ pfexec svcadm enable glassfish-gem:smidig2009_oc >>>> $ pfexec svcadm restart apache22 >>>> >>>> oc >>>> >>>> On Thu, Jun 25, 2009 at 4:47 PM, Mistress Janna >>>> Brossard<mistressjanna@...> wrote: >>>>> James, >>>>> >>>>> I simply put the following into my httpd.conf: (I am runninf Apache >>>>> 1.3.33...I think you must have it set up to be able to do VirtualHosting as >>>>> well -- which is set up if you have installed, say InstantRailis and their >>>>> examples): >>>>> >>>>> <VirtualHost *> >>>>> ServerName gg.dyndns.org >>>>> DocumentRoot C:/jruby/rails_apps/gg/public/ >>>>> ProxyPass / http://localhost:3000/ >>>>> ProxyPassReverse / http://localhost:3000 >>>>> </VirtualHost> >>>>> >>>>> Then fire up the LATEST Glassfish gem on, say, port 3000: >>>>> >>>>> C:\jruby\rails_apps\gg>jruby -S glassfish >>>>> >>>>> Voila...blazing speed, can handle lots of traffic. Note that I am also >>>>> cominging into apache from a dyndns name. So, whatever IP I have, I can go >>>>> straight to execution on the glassfish gem and NO warring up! What could be >>>>> easier deployment, or a faster execution? -Janna B >>>>> >>>>> >>>>> >>>>> >>>>> ________________________________ >>>>> From: james.herdman@... >>>>> Date: Thu, 25 Jun 2009 09:17:10 -0400 >>>>> To: user@... >>>>> Subject: Re: [jruby-user] Rails and JRuby >>>>> >>>>> How does the proxying to Glassfish work? Doesn't Glassfish have Grizzly for >>>>> handling incoming requests quickly? >>>>> James >>>>> >>>>> On Fri, Jun 19, 2009 at 3:55 PM, marc <gmane@...> wrote: >>>>> >>>>> Mistress Janna Brossard said: >>>>> >>>>>> I find the glassfish gem to be the most performant of all -- and I don't >>>>>> need to war-up my app. >>>>>> >>>>>> I proxy to the glassfish gem out of apache. >>>>> >>>>> Ditto. I use glassfish3 >>>>> >>>>> I also have some mongrel cluster stuff, but glassfish is simpler and just >>>>> works. >>>>> >>>>> -- >>>>> Best, >>>>> Marc >>>>> >>>>> "Change requires small steps." >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe from this list, please visit: >>>>> >>>>> http://xircles.codehaus.org/manage_email >>>>> >>>>> >>>>> >>>>> >>>>> ________________________________ >>>>> Windows Live™: Keep your life in sync. Check it out. >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyVery interesting stuff.
I have to admit that I'm still a little confused why you'd want to have Apache proxying requests versus just having Glassfish handle everything. Would any one be willing to enlighten me?
Thank you, James On Wed, Jul 1, 2009 at 3:18 PM, Ole Christian Rynning <oc@...> wrote: I also added http://kenai.com/projects/jruby/pages/JRubyOnRails#Glassfish_v3_Deployment |
|
|
Re: Rails and JRubyJames Herdman wrote:
> Very interesting stuff. > > I have to admit that I'm still a little confused why you'd want to have > Apache proxying requests versus just having Glassfish handle everything. > Would any one be willing to enlighten me? > I'm no expert (quite the opposite, in fact), but I think the general consensus is that Apache is really, really fast at serving up static data (like images, some html, etc.). So much faster that intercepting those and proxying everything else to Glassfish is faster overall. If I'm wrong though, someone please dispel me of my heretical ideas! =) Michael --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyOn Thu, Jul 2, 2009 at 5:58 AM, James Herdman<james.herdman@...> wrote:
> I have to admit that I'm still a little confused why you'd want to have > Apache proxying requests versus just having Glassfish handle everything. I'm getting close to deploying a legacy JRoR app on Glassfish gem using an Apache httpd as proxy because it will allow me to 1) run multiple gf instances to evaluate memory settings in a production environment 2) deploy new code to only 1 of N instances for live testing 3) add instances as necessary 4) potentially serve some static (image) content directly 5) display a friendly "down for maintenance" message when the cluster is getting an update (db migration, etc.) FWIW, -- Hassan Schroeder ------------------------ hassan.schroeder@... --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRuby> I'll try to find some time. I've created an initial wiki page:
> http://kenai.com/projects/jruby/pages/JRubyOnRailsWithGlassfishGem Thanks for adding this page, really useful and consolidates all the information. > TODO: > Notes in regards of Linux information. I currently only have a bunch > of Solaris servers, and no Linux servers. I'd also like to add a Nginx > config. I currently don't use it as frontend is usually hardware > based. However I used to, as I find it vastly superior to Apache > httpd, but there were no decent OpenSolaris package available atm. I blogged about using nginx front end at: http://blogs.sun.com/arungupta/entry/totd_81_how_to_use Feel free to use this information to add content to the wiki. Thanks, -Arun > > oc > > On Wed, Jul 1, 2009 at 7:14 PM, Charles Oliver > Nutter<headius@...> wrote: >> Specifically I'm talking about a writeup for getting GF gem + apache + >> whatever else working well together. I'm not sure we have that article >> anywhere. >> >> On Wed, Jul 1, 2009 at 12:14 PM, Charles Oliver >> Nutter<headius@...> wrote: >>> Wow, this is a great writeup. Maybe you (Ole) and you (Janna) could >>> add a page to the wiki or write up a blog post? >>> >>> On Fri, Jun 26, 2009 at 7:04 AM, Ole Christian Rynning<oc@...> wrote: >>>> I second Janna B. >>>> >>>> I set this up on Solaris monday. It's running fantasticly and >>>> performing like nothing I've seen before :) Completely stable memory, >>>> no wirings or anything bad for 5 days now.. (with several ab/htperf >>>> stresstests). >>>> >>>> In case you wonder how to integrate it with SMF, here's the short, no >>>> fluff version >>>> >>>> smidig@...:~/ $ cat /etc/apache2/2.2/sites/ocr.smidig.no >>>> <VirtualHost *:80> >>>> >>>> ServerName ocr.smidig2009.no >>>> DocumentRoot /var/apps/smidig2009/oc/smidig2009/public >>>> >>>> <Directory /var/apps/smidig2009/oc/smidig2009/public> >>>> Options FollowSymLinks >>>> AllowOverride All >>>> Order allow,deny >>>> Allow from all >>>> </Directory> >>>> >>>> <Proxy balancer://smidig2009> >>>> BalancerMember http://10.214.206.200:3000 >>>> BalancerMember http://10.214.206.201:3000 >>>> </Proxy> >>>> >>>> ProxyPass / balancer://smidig2009/ >>>> CustomLog /var/log/apache2/smidig2009_oc_apache_access_log combined >>>> >>>> </VirtualHost> >>>> >>>> >>>> $ cat config/glassfish.yml >>>> environment: oc >>>> http: >>>> port: 3000 >>>> contextroot: / >>>> >>>> log: >>>> # Logging level. Log level 0 to 7. 0:OFF, 1:SEVERE, 2:WARNING, >>>> # 3:INFO (default), 4:FINE, 5:FINER, 6:FINEST, 7:ALL. >>>> log-level: 5 >>>> >>>> jruby-runtime-pool: >>>> >>>> initial: 1 >>>> min: 1 >>>> max: 1 >>>> >>>> daemon: >>>> enable: true >>>> pid: tmp/pids/glassfish-oc.pid >>>> jvm-options: -server -Xmx2500m -Xms64m -XX:PermSize=256m >>>> -XX:MaxPermSize=256m -XX:NewRatio=2 -XX:+DisableExplicitGC >>>> -Dhk2.file.directory.changeIntervalTimer=6000 >>>> >>>> >>>> $ cat config/glassfish-gem.smf.xml >>>> <?xml version='1.0'?> >>>> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> >>>> <service_bundle type='manifest' name='glassfish-gem'> >>>> <service name='network/glassfish-gem' type='service' version='0'> >>>> <dependency name='fs' grouping='require_all' restart_on='none' >>>> type='service'> >>>> <service_fmri value='svc:/system/filesystem/local'/> >>>> </dependency> >>>> <dependency name='net' grouping='require_all' restart_on='none' >>>> type='service'> >>>> <service_fmri value='svc:/network/loopback'/> >>>> </dependency> >>>> <dependent name='glassfish-gem_multi-user' restart_on='none' >>>> grouping='optional_all'> >>>> <service_fmri value='svc:/milestone/multi-user'/> >>>> </dependent> >>>> <exec_method name='start' type='method' >>>> exec='/opt/jruby/bin/glassfish' timeout_seconds='60' /> >>>> <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60' /> >>>> <!-- INSTANCES --> >>>> <instance name='smidig2009_oc' enabled='false'> >>>> <method_context >>>> working_directory='/var/apps/smidig2009/oc/smidig2009'> >>>> <method_credential user='smidig_no' group='daemon' /> >>>> <method_environment> >>>> <envvar name="PATH" >>>> value="/opt/jruby/bin:/usr/bin:/bin" /> >>>> </method_environment> >>>> </method_context> >>>> </instance> >>>> <instance name='smidig2009_production' enabled='false'> >>>> <method_context >>>> working_directory='/var/apps/smidig2009/production/smidig2009'> >>>> <method_credential user='smidig_no' group='daemon' /> >>>> <method_environment> >>>> <envvar name="PATH" >>>> value="/opt/jruby/bin:/usr/bin:/bin" /> >>>> </method_environment> >>>> </method_context> >>>> </instance> >>>> </service> >>>> </service_bundle> >>>> >>>> $ pfexec svccfg validate config/glassfish-gem.smf.xml >>>> $ pfexec svccfg import config/glassfish-gem.smf.xml >>>> $ pfexec svcadm enable glassfish-gem:smidig2009_oc >>>> $ pfexec svcadm restart apache22 >>>> >>>> oc >>>> >>>> On Thu, Jun 25, 2009 at 4:47 PM, Mistress Janna >>>> Brossard<mistressjanna@...> wrote: >>>>> James, >>>>> >>>>> I simply put the following into my httpd.conf: (I am runninf Apache >>>>> 1.3.33...I think you must have it set up to be able to do VirtualHosting as >>>>> well -- which is set up if you have installed, say InstantRailis and their >>>>> examples): >>>>> >>>>> <VirtualHost *> >>>>> ServerName gg.dyndns.org >>>>> DocumentRoot C:/jruby/rails_apps/gg/public/ >>>>> ProxyPass / http://localhost:3000/ >>>>> ProxyPassReverse / http://localhost:3000 >>>>> </VirtualHost> >>>>> >>>>> Then fire up the LATEST Glassfish gem on, say, port 3000: >>>>> >>>>> C:\jruby\rails_apps\gg>jruby -S glassfish >>>>> >>>>> Voila...blazing speed, can handle lots of traffic. Note that I am also >>>>> cominging into apache from a dyndns name. So, whatever IP I have, I can go >>>>> straight to execution on the glassfish gem and NO warring up! What could be >>>>> easier deployment, or a faster execution? -Janna B >>>>> >>>>> >>>>> >>>>> >>>>> ________________________________ >>>>> From: james.herdman@... >>>>> Date: Thu, 25 Jun 2009 09:17:10 -0400 >>>>> To: user@... >>>>> Subject: Re: [jruby-user] Rails and JRuby >>>>> >>>>> How does the proxying to Glassfish work? Doesn't Glassfish have Grizzly for >>>>> handling incoming requests quickly? >>>>> James >>>>> >>>>> On Fri, Jun 19, 2009 at 3:55 PM, marc <gmane@...> wrote: >>>>> >>>>> Mistress Janna Brossard said: >>>>> >>>>>> I find the glassfish gem to be the most performant of all -- and I don't >>>>>> need to war-up my app. >>>>>> >>>>>> I proxy to the glassfish gem out of apache. >>>>> Ditto. I use glassfish3 >>>>> >>>>> I also have some mongrel cluster stuff, but glassfish is simpler and just >>>>> works. >>>>> >>>>> -- >>>>> Best, >>>>> Marc >>>>> >>>>> "Change requires small steps." >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe from this list, please visit: >>>>> >>>>> http://xircles.codehaus.org/manage_email >>>>> >>>>> >>>>> >>>>> >>>>> ________________________________ >>>>> Windows Live™: Keep your life in sync. Check it out. >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > -- Application Platform, Sun Microsystems, Inc. Blog: http://blogs.sun.com/arungupta --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyCharlie,
Apache + mod_proxy_balancer + Rails/GlassFish config is described at: http://blogs.sun.com/arungupta/entry/totd_84_using_apache_mod Other detailed articles are available at: http://blogs.sun.com/arungupta/tags/rubyonrails+clustering Thanks, -Arun Charles Oliver Nutter wrote: > Specifically I'm talking about a writeup for getting GF gem + apache + > whatever else working well together. I'm not sure we have that article > anywhere. > > On Wed, Jul 1, 2009 at 12:14 PM, Charles Oliver > Nutter<headius@...> wrote: >> Wow, this is a great writeup. Maybe you (Ole) and you (Janna) could >> add a page to the wiki or write up a blog post? >> >> On Fri, Jun 26, 2009 at 7:04 AM, Ole Christian Rynning<oc@...> wrote: >>> I second Janna B. >>> >>> I set this up on Solaris monday. It's running fantasticly and >>> performing like nothing I've seen before :) Completely stable memory, >>> no wirings or anything bad for 5 days now.. (with several ab/htperf >>> stresstests). >>> >>> In case you wonder how to integrate it with SMF, here's the short, no >>> fluff version >>> >>> smidig@...:~/ $ cat /etc/apache2/2.2/sites/ocr.smidig.no >>> <VirtualHost *:80> >>> >>> ServerName ocr.smidig2009.no >>> DocumentRoot /var/apps/smidig2009/oc/smidig2009/public >>> >>> <Directory /var/apps/smidig2009/oc/smidig2009/public> >>> Options FollowSymLinks >>> AllowOverride All >>> Order allow,deny >>> Allow from all >>> </Directory> >>> >>> <Proxy balancer://smidig2009> >>> BalancerMember http://10.214.206.200:3000 >>> BalancerMember http://10.214.206.201:3000 >>> </Proxy> >>> >>> ProxyPass / balancer://smidig2009/ >>> CustomLog /var/log/apache2/smidig2009_oc_apache_access_log combined >>> >>> </VirtualHost> >>> >>> >>> $ cat config/glassfish.yml >>> environment: oc >>> http: >>> port: 3000 >>> contextroot: / >>> >>> log: >>> # Logging level. Log level 0 to 7. 0:OFF, 1:SEVERE, 2:WARNING, >>> # 3:INFO (default), 4:FINE, 5:FINER, 6:FINEST, 7:ALL. >>> log-level: 5 >>> >>> jruby-runtime-pool: >>> >>> initial: 1 >>> min: 1 >>> max: 1 >>> >>> daemon: >>> enable: true >>> pid: tmp/pids/glassfish-oc.pid >>> jvm-options: -server -Xmx2500m -Xms64m -XX:PermSize=256m >>> -XX:MaxPermSize=256m -XX:NewRatio=2 -XX:+DisableExplicitGC >>> -Dhk2.file.directory.changeIntervalTimer=6000 >>> >>> >>> $ cat config/glassfish-gem.smf.xml >>> <?xml version='1.0'?> >>> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> >>> <service_bundle type='manifest' name='glassfish-gem'> >>> <service name='network/glassfish-gem' type='service' version='0'> >>> <dependency name='fs' grouping='require_all' restart_on='none' >>> type='service'> >>> <service_fmri value='svc:/system/filesystem/local'/> >>> </dependency> >>> <dependency name='net' grouping='require_all' restart_on='none' >>> type='service'> >>> <service_fmri value='svc:/network/loopback'/> >>> </dependency> >>> <dependent name='glassfish-gem_multi-user' restart_on='none' >>> grouping='optional_all'> >>> <service_fmri value='svc:/milestone/multi-user'/> >>> </dependent> >>> <exec_method name='start' type='method' >>> exec='/opt/jruby/bin/glassfish' timeout_seconds='60' /> >>> <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60' /> >>> <!-- INSTANCES --> >>> <instance name='smidig2009_oc' enabled='false'> >>> <method_context >>> working_directory='/var/apps/smidig2009/oc/smidig2009'> >>> <method_credential user='smidig_no' group='daemon' /> >>> <method_environment> >>> <envvar name="PATH" >>> value="/opt/jruby/bin:/usr/bin:/bin" /> >>> </method_environment> >>> </method_context> >>> </instance> >>> <instance name='smidig2009_production' enabled='false'> >>> <method_context >>> working_directory='/var/apps/smidig2009/production/smidig2009'> >>> <method_credential user='smidig_no' group='daemon' /> >>> <method_environment> >>> <envvar name="PATH" >>> value="/opt/jruby/bin:/usr/bin:/bin" /> >>> </method_environment> >>> </method_context> >>> </instance> >>> </service> >>> </service_bundle> >>> >>> $ pfexec svccfg validate config/glassfish-gem.smf.xml >>> $ pfexec svccfg import config/glassfish-gem.smf.xml >>> $ pfexec svcadm enable glassfish-gem:smidig2009_oc >>> $ pfexec svcadm restart apache22 >>> >>> oc >>> >>> On Thu, Jun 25, 2009 at 4:47 PM, Mistress Janna >>> Brossard<mistressjanna@...> wrote: >>>> James, >>>> >>>> I simply put the following into my httpd.conf: (I am runninf Apache >>>> 1.3.33...I think you must have it set up to be able to do VirtualHosting as >>>> well -- which is set up if you have installed, say InstantRailis and their >>>> examples): >>>> >>>> <VirtualHost *> >>>> ServerName gg.dyndns.org >>>> DocumentRoot C:/jruby/rails_apps/gg/public/ >>>> ProxyPass / http://localhost:3000/ >>>> ProxyPassReverse / http://localhost:3000 >>>> </VirtualHost> >>>> >>>> Then fire up the LATEST Glassfish gem on, say, port 3000: >>>> >>>> C:\jruby\rails_apps\gg>jruby -S glassfish >>>> >>>> Voila...blazing speed, can handle lots of traffic. Note that I am also >>>> cominging into apache from a dyndns name. So, whatever IP I have, I can go >>>> straight to execution on the glassfish gem and NO warring up! What could be >>>> easier deployment, or a faster execution? -Janna B >>>> >>>> >>>> >>>> >>>> ________________________________ >>>> From: james.herdman@... >>>> Date: Thu, 25 Jun 2009 09:17:10 -0400 >>>> To: user@... >>>> Subject: Re: [jruby-user] Rails and JRuby >>>> >>>> How does the proxying to Glassfish work? Doesn't Glassfish have Grizzly for >>>> handling incoming requests quickly? >>>> James >>>> >>>> On Fri, Jun 19, 2009 at 3:55 PM, marc <gmane@...> wrote: >>>> >>>> Mistress Janna Brossard said: >>>> >>>>> I find the glassfish gem to be the most performant of all -- and I don't >>>>> need to war-up my app. >>>>> >>>>> I proxy to the glassfish gem out of apache. >>>> Ditto. I use glassfish3 >>>> >>>> I also have some mongrel cluster stuff, but glassfish is simpler and just >>>> works. >>>> >>>> -- >>>> Best, >>>> Marc >>>> >>>> "Change requires small steps." >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>>> >>>> ________________________________ >>>> Windows Live™: Keep your life in sync. Check it out. >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > -- Application Platform, Sun Microsystems, Inc. Blog: http://blogs.sun.com/arungupta --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyThanks Hassan for listing the reasons, they are all valid.
I'll follow up separately with you on a story entry for using GlassFish Gem in production :) There are several of them already described at: http://blogs.sun.com/arungupta/tags/rubyonrails+stories Thanks, -Arun Hassan Schroeder wrote: > On Thu, Jul 2, 2009 at 5:58 AM, James Herdman<james.herdman@...> wrote: > >> I have to admit that I'm still a little confused why you'd want to have >> Apache proxying requests versus just having Glassfish handle everything. > > I'm getting close to deploying a legacy JRoR app on Glassfish gem > using an Apache httpd as proxy because it will allow me to > > 1) run multiple gf instances to evaluate memory settings in a > production environment > 2) deploy new code to only 1 of N instances for live testing > 3) add instances as necessary > 4) potentially serve some static (image) content directly > 5) display a friendly "down for maintenance" message when the > cluster is getting an update (db migration, etc.) > > FWIW, -- Application Platform, Sun Microsystems, Inc. Blog: http://blogs.sun.com/arungupta --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyOkay, so I'm working on this puppy a bit as of late and have decided to do the Apache/Glassfish gem combo for the time being.
I'm a little stuck. What I'm envisioning the Apache/Glassfish solution as a stop gap until I can deploy a full Glassfish-based stack. What I'm hoping to do is leverage the Apache instance I have running with mod_rails and have some requests proxy back to Glassfish.
Has any one else had any luck with such a solution? Right now, it seems like the requests that should be going back to my app are being ignored. Here's my VHOST file:
<VirtualHost *:80> DocumentRoot /var/apps/my_app/current/public ProxyPass /my_app http://localhost:9000 ProxyPassReverse /my_app http://localhost:9000
ProxyPass /my_app/images ! ProxyPass /my_app/javascripts ! ProxyPass /my_app/stylesheets ! <Directory /var/apps/my_app/current/public>
Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
Am I missing something? James On Thu, Jul 2, 2009 at 12:49 PM, Arun Gupta <Arun.Gupta@...> wrote: Thanks Hassan for listing the reasons, they are all valid. |
|
|
Re: Rails and JRubyI just published a post yesterday with this topic but using my tomcat gem instead of glassfish, perhaps it can help you:
http://thinkincode.net/2009/7/16/rails-load-balancing-with-apache-and-trinidad
On Fri, Jul 17, 2009 at 8:04 PM, James Herdman <james.herdman@...> wrote: Okay, so I'm working on this puppy a bit as of late and have decided to do the Apache/Glassfish gem combo for the time being. -- David Calavera http://www.thinkincode.net |
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |