limiting the number of rails process per vhostTemplate?

#1
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?
 
#5
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:

mistwang

LiteSpeed Staff
#6
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/
 
#8
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
 
Top