LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > limiting the number of rails process per vhostTemplate?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2007, 03:18 PM
newbie newbie is offline
New Member
 
Join Date: Jul 2007
Posts: 6
Default limiting the number of rails process per vhostTemplate?

Is there a way to limit the number of rails process that can come alive on a per templates basis, using the easy rails setup?
Let say I want to limit to 3 process on one template and 6 processes in the next template. How might I go about that?
Reply With Quote
  #2  
Old 07-31-2007, 03:22 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,586
You can only set the limit per template member, not possible for the whole template.
Reply With Quote
  #3  
Old 07-31-2007, 03:30 PM
newbie newbie is offline
New Member
 
Join Date: Jul 2007
Posts: 6
What field in the member of a vhostTemplate would allow this?
Reply With Quote
  #4  
Old 07-31-2007, 03:53 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,586
Under the Rails Context in the template, "Max Connection".
Reply With Quote
  #5  
Old 08-01-2007, 09:40 AM
newbie newbie is offline
New Member
 
Join Date: Jul 2007
Posts: 6
Yea, I thought that might be the text field you were referring to, but whats prompted this forum post was that I have "Max Conns" set to 3 on one of the templates. However, when I load test it, and throw 2k plus simultaneous users, I see litespeed fire up at least 6 processes for that one template. I when I did that same for the template that has a max of 6 connections, and load test it with 2k plus users,, Ive seen 10 rails process fire up.

Im must be missing something here.

I should add that, under low traffic the max conns acts as I expect it to, in that it only fires up 3 procs for the first template and 6 procs for the second template.
Thanks

Last edited by newbie; 08-01-2007 at 10:44 AM.. Reason: adding more detail again
Reply With Quote
  #6  
Old 08-01-2007, 12:16 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,586
Are you using a trial or standard?
Trial is a 2-CPU license, which start 2 worker process, each worker process will start its own ruby process, so if you use a trail, please make sure to bind the listener to only one process.
And ruby LSAPI process manager may start extra children processes when need, please set "LSAPI_EXTRA_CHILDREN" environment variable to "0".

http://www.litespeedtech.com/products/lsapi/ruby/
Reply With Quote
  #7  
Old 08-01-2007, 01:23 PM
newbie newbie is offline
New Member
 
Join Date: Jul 2007
Posts: 6
Thx I will try that, right now Im developing on the trial license. After development, we will be purchasing 2 licensees.
Reply With Quote
  #8  
Old 08-01-2007, 02:50 PM
newbie newbie is offline
New Member
 
Join Date: Jul 2007
Posts: 6
Ok I have LSAPI_EXTRA_CHILDREN=0, I have (for example) one template that has a max connection set to "1".

When I load test the vhost in that template, "2" ruby processes come alive. I think it does this because ,using trial license, there are 2 lshttpd processes running

How do I make it so that only 1 process total comes alive? Not 1 process per lshttpd
Reply With Quote
  #9  
Old 08-01-2007, 03:57 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,586
Just go to listener configuration tab. select the listener that serve the vhost, check only "Process 1" for the binding configuration.
http://www.litespeedtech.com/docs/we...istenerBinding
Reply With Quote
  #10  
Old 08-02-2007, 08:46 AM
newbie newbie is offline
New Member
 
Join Date: Jul 2007
Posts: 6
Thats exactly what I was looking for. Thank you for your patients.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:50 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.