The default pool name is called "default"

ns_pools set default -minthreads 10 -maxthreads 100

The other flags are:

maxxonns = the number of connections a thread will server before dying
timeout = the time to remiain idle before dying.

You can create a thread pool by:

ns_pools set foo -maxthreads 100 -minthreads 10

Then assign a URL to the thread pool:

ns_pools register foo server1 GET /foo.adp

This will force all GET requests to /foo.adp to be executed by the the foo pool.

Hope that helps.

M


On Jul 26, 2007, at 11:09 AM, Shedi Shedi wrote:

Thanks Nathan for the info. I'm trying to configure a pool but ns_server threads procmsgmgr returns error on server log.

[26/Jul/2007:18:06:07][4968.3074280352][-conn:0-] Error: Tcl exception:
no such pool: procmsgmgr
    while executing
"ns_server threads procmsgmgr"

#
ns_section ns/server/${servername}/pools
ns_param  procmsgmgr "Message Manager Receiving Pool"

ns_section ns/server/${servername}/pool/procmsgmgr
ns_param map {POST /proc/msgmgr}
ns_param maxconnections   100
ns_param maxdropped       0
ns_param maxthreads       20
ns_param minthreads       10
ns_param threadtimeout    60

Can you tell if my configuration is correct?

regards,

On 7/26/07, Nathan Folkman <[EMAIL PROTECTED]> wrote:
Those parameters moved and are now controlled via the "ns_pools" Tcl command:

ns_pools:
        The "ns_pools" command enables configuration of one or more
        pools of connection processing threads. The pools allow
        certain requests to be handled by specific threads. This
        could, for example, ensure multiple long running requests
        don't block other short running requests.  Pools are selected
        based on method/url pairs similar to the mappings managed
        by the "ns_register_proc" command.  By default, all requests
        are handled by a single, unlimited, "default" pool.  There
        is also an "error" pool as described below.  Coupled with
the new "ns_limits" command, pools can provide for sophisticated
        resource management.

See also the new "ns_limits" command:

ns_limit:
        The "ns_limit" command enables setting various resource
        limits for specified method/url combinations. These limits
        include such items as max concurrent connections, max file
        upload size, and timeouts waiting for connection processing.
        When limits are exceeded, connections are immediately
        dispatched to a dedicated "error" connection processing
        pool to generate a quick error response. By default all
        requests share the same default limits.  Coupled with the
        new "ns_pools" command, URL-based limits can provide for
        sophisticated resource management.


On 7/26/07, Shedi Shedi < [EMAIL PROTECTED]> wrote:
Its 4.5.0



On 7/26/07, Nathan Folkman <[EMAIL PROTECTED] > wrote:
What version of AOLserver are you running?

On 7/26/07, Shedi Shedi < [EMAIL PROTECTED]> wrote:
Hi

Patform: suse 10.1 (2.6.16.21-0.25-default)

I have configured my nsd config.tcl as below:

ns_param maxconnections 100 ;# Max connections to put on queue ns_param maxdropped 0 ;# Shut down if dropping too many conns
ns_param   maxthreads      50        ;# Tune this to scale your server
ns_param minthreads 20 ;# Tune this to scale your server
ns_param   threadtimeout   30       ;# Idle threads die at this rate


ns_server threads command shows the min as zero, max as 10.

Server Threads
min    0
max    10
current    1
idle    0
stopping    0

I'm not sure what i'm missing here.

regards,
shedi

--
AOLserver - http://www.aolserver.com/


To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the




body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.





--
Nathan Folkman
[EMAIL PROTECTED]
--
AOLserver - http://www.aolserver.com/


To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the



body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.



--
AOLserver - http://www.aolserver.com/


To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the


body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.





--
Nathan Folkman
[EMAIL PROTECTED]
--
AOLserver - http://www.aolserver.com/


To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the

body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.




--
AOLserver - http://www.aolserver.com/


To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to