Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Thin v0.5.2 Cheezburger released
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marc-André Cournoyer  
View profile  
 More options Jan 12 2008, 5:14 pm
From: Marc-André Cournoyer <macourno...@gmail.com>
Date: Sat, 12 Jan 2008 17:14:30 -0500
Local: Sat, Jan 12 2008 5:14 pm
Subject: [ANN] Thin v0.5.2 Cheezburger released
Hey all,

Version 0.5.2 (codename Cheezburger) of the fastest Ruby server is out!

Thin is a Ruby web server that glues together 3 of the best Ruby  
libraries in web history:
  * the Mongrel parser: the root of Mongrel speed and security
  * Event Machine: a network I/O library with extremely high  
scalability, performance and stability
  * Rack: a minimal interface between webservers and Ruby frameworks
Which makes it, with all humility, the most secure, stable, fast and  
extensible Ruby web server
bundled in an easy to use gem for your own pleasure.

http://code.macournoyer.com/thin/

== What's new?

* Add cluster support through the -s option in the thin script, start  
3 thins like this:
    thin start -s3 -p3000
   3 thin servers will be started on port 3000, 3001, 3002, also the  
port number will be
   injected in the pid and log filenames.
* Fix IOError when writing to logger when starting server as a daemon.
* Really change directory when the -c option is specified.
* Add restart command to thin script.
* Fix typos in thin script usage message and expand chdir path.
* Rename thin script options to be the same as mongrel_rails script  
[thronedrk]:
     -o --host  => -a --address
     --log-file => --log
     --pid-file => --pid
     --env      => --environment

win32 support is coming soon!

== Get it!

  sudo gem install thin

Might take some time for the gem mirrors to be updated, try adding
--source http://code.macournoyer.com to the command if it doesn't work

If you installed a previous alpha version (if you have 0.5.2 already  
installed)
uninstall it before: sudo gem uninstall thin

WARNING: Thin is still alpha software, if you use it on your server  
you understand the risks that are involved.

== Contribute

If you're using Thin, let me know and I'll put your site on http://code.macournoyer.com/thin/users/

Thin is driven by an active community of passionate coders and  
benchmarkers. Please join us, contribute
or share some ideas in Thin Google Group: http://groups.google.com/group/thin-ruby/topics

Also on IRC: #thin on freenode

Thanks to all the people who contributed to Thin, EventMachine, Rack  
and Mongrel.

Marc-Andre Cournoyer
http://macournoyer.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dinooz  
View profile  
 More options Jan 13 2008, 11:03 pm
From: Dinooz <bernardino.lo...@gmail.com>
Date: Sun, 13 Jan 2008 20:03:06 -0800 (PST)
Local: Sun, Jan 13 2008 11:03 pm
Subject: Re: Thin v0.5.2 Cheezburger released
First attemt to use Thin 0.5.2.....

Previously using Thin 0.5.0 the rake tasks look like this:
[dinooz@fedora gm]$ rake -T |grep thin
rake thin:cluster:start              # Start thin cluster
rake thin:cluster:stop               # Stop all thin clusters
[dinooz@fedora gm]$

Using a little shell script can start the Cluster very easy....
[dinooz@fedora gm]$ cat my_thin.sh
rake thin:cluster:start RAILS_ENV=development SIZE=1 PORT=6011
[dinooz@fedora gm]$

rake db:cluster:start Works Ok
rake db:cluster:stop  Works Ok

After update to Thin 0.5.2

cp /usr/local/lib/ruby/gems/1.8/gems/thin-0.5.2/bin/thin /home
/dinooz/rails/nca/lib/tasks/thin.rake

Now the rake task looks like this:

[dinooz@fedora nca]$ rake -T |grep thin
Usage: thin [options] start|stop|restart
                                     (default: log/thin.log)
                                     (default: tmp/pids/thin.pid)

I'm not sure if is required to copy into the lib/tasks/thin.rake or
just leave it in the default path of the original install....

Detected problem with the Path when starting Thin with the command:
rake thin:cluster:start ENV=development PORT=6003 NUM=1

This might be due to the fact that I copy the files locally instead of
leave it in a standart installation path.

Edit Line 4 of the thin.rake file:
#require File.dirname(__FILE__) + '/../lib/thin'
require File.dirname(__FILE__) + '/thin'

Now Thin start properly but does not stop !!!

[dinooz@fedora nca]$ rake thin:stop
(in /home/dinooz/rails/nca)
Invalid command : thin:stop
[dinooz@fedora nca]$ rake thin:cluster:stop
(in /home/dinooz/rails/nca)
Invalid command : thin:cluster:stop
[dinooz@fedora nca]$

Of course I know I can find out the processes and kill it if I like
to... but that is not the point at this time I'm really interested
into benchmark the memory usage and the performance...

[dinooz@fedora nca]$ pstree -p |grep thin
        |-thin(24519)
        |-thin(26183)
        |-thin(26254)
        |-thin(28289)

[dinooz@fedora nca]$ free -m
             total       used       free     shared    buffers
cached
Mem:           256        209         46          0
0          0
-/+ buffers/cache:        209         46
Swap:            0          0          0
[dinooz@fedora nca]$

Just want to give the heads up, in case somebody like to try it...
will keep posting .... =)

Best Regards Dinooz.

PS -> I think another task for the rake task called status will be
great, to check the existence of the current instances... Also noticed
a restriction to create at least 2 instances in the Cluster, I like
the fact to be able to activate only 1.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
macournoyer  
View profile  
 More options Jan 13 2008, 11:19 pm
From: macournoyer <macourno...@gmail.com>
Date: Sun, 13 Jan 2008 20:19:21 -0800 (PST)
Local: Sun, Jan 13 2008 11:19 pm
Subject: Re: Thin v0.5.2 Cheezburger released
Dinooz, this is not a rake task or a rake file.
Don't move or rename the file, it's a command line script.
Cluster support is not builtin the commandline "thin" script.

Start a cluster of 3 servers like this:

 $ thin start --servers 3

Stop them like this:

 $ thin stop --servers 3

Check the other options like this:

 $ thin -h

Command line script is a lot more flexible then a set of rake tasks,
but you could still wrap it on your rake tasks if you'd like.

On Jan 13, 11:03 pm, Dinooz <bernardino.lo...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
macournoyer  
View profile  
 More options Jan 14 2008, 12:45 pm
From: macournoyer <macourno...@gmail.com>
Date: Mon, 14 Jan 2008 09:45:57 -0800 (PST)
Local: Mon, Jan 14 2008 12:45 pm
Subject: Re: Thin v0.5.2 Cheezburger released
oops small typo Cluster _IS_ builtin the command line "thin" script.

Let me know if you're still having trouble launching your cluster

On Jan 13, 11:19 pm, macournoyer <macourno...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dinooz  
View profile  
 More options Jan 15 2008, 10:25 am
From: Dinooz <bernardino.lo...@gmail.com>
Date: Tue, 15 Jan 2008 07:25:59 -0800 (PST)
Local: Tues, Jan 15 2008 10:25 am
Subject: Re: Thin v0.5.2 Cheezburger released
It worked....

[dinooz@fedora blog]$ free -m
             total       used       free     shared    buffers
cached
Mem:           250        205         44          0         11
113
-/+ buffers/cache:         80        169
Swap:         1000        213        786
[dinooz@fedora blog]$ thin -e development -s 2 -p 3000 start
Starting 0.0.0.0:3000 ...
Starting 0.0.0.0:3001 ...
[dinooz@fedora blog]$ free -m
             total       used       free     shared    buffers
cached
Mem:           250        227         22          0         11
113
-/+ buffers/cache:        101        148
Swap:         1000        213        786
[dinooz@fedora blog]$ thin -e development -s 2 -p 3000 stop
Stopping 0.0.0.0:3000 ...
Sending INT signal to process 12890 ... stopped!
Stopping 0.0.0.0:3001 ...
Sending INT signal to process 12893 ... stopped!
[dinooz@fedora blog]$ free -m
             total       used       free     shared    buffers
cached
Mem:           250        202         47          0         10
111
-/+ buffers/cache:         80        169
Swap:         1000        213        786
[dinooz@fedora blog]$

With 3 Instances:

[dinooz@fedora blog]$ free -m
             total       used       free     shared    buffers
cached
Mem:           250        202         47          0         10
111
-/+ buffers/cache:         80        169
Swap:         1000        213        786
[dinooz@fedora blog]$ thin -e development -s 3 -p 3000 start
Starting 0.0.0.0:3000 ...
Starting 0.0.0.0:3001 ...
Starting 0.0.0.0:3002 ...
[dinooz@fedora blog]$ free -m
             total       used       free     shared    buffers
cached
Mem:           250        232         17          0         10
111
-/+ buffers/cache:        110        139
Swap:         1000        213        786
[dinooz@fedora blog]$ thin -e development -s 3 -p 3000 stop
Stopping 0.0.0.0:3000 ...
Sending INT signal to process 12904 ... stopped!
Stopping 0.0.0.0:3001 ...
Sending INT signal to process 12907 ... stopped!
Stopping 0.0.0.0:3002 ...
Sending INT signal to process 12910 ... stopped!
[dinooz@fedora blog]$
[dinooz@fedora blog]$ free -m
             total       used       free     shared    buffers
cached
Mem:           250        184         66          0          8
100
-/+ buffers/cache:         75        174
Swap:         1000        212        787
[dinooz@fedora blog]$

=> I like on this version each instance takes about 11 Mb. pretty
cool !!!, I wonder if would be possible to create a thin configuration
file so we can start the cluster only with:

> thin start

Assuming that you are on the path of the rails project. The reason I
said this is because will be really cool to create the /etc/init.d/
thin_cluster file to start all the instances...

This will make it really easy to have multiple instances for different
ports and for different projects !!!.

Keep doing the great job.

ourevoir Monsieur Marc!!!.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google