You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@knox.apache.org by Rajesh Chandramohan <ra...@yahoo.com> on 2016/05/04 12:09:10 UTC

Re: 回复: How many concurrent connection knox supports

Hi ,
 as per the Code here org/eclipse/jetty/jetty-util/8.1.14.v20131031/jetty-util-8.1.14.v20131031-sources.jar!/org/eclipse/jetty/util/thread/QueuedThreadPool.javaThe Min thread is 8 But Max is 254, So that means we can do 254 HDFS get/put concurrently right ?
private String _name;
private int _maxIdleTimeMs=60000;
private int _maxThreads=254;
private int _minThreads=8;
private int _maxQueued=-1;
private int _priority=Thread.NORM_PRIORITY;
private boolean _daemon=false;
private int _maxStopTime=100; An here the no. of acceptor is mentioned as 1  , so only one thread of incoming connection?  Could somebody explain me how the concurrent connections and sessions are managed here. I am Using knox-0.6/jetty-server-8.1.14.v20131031-sources.jar!/org/eclipse/jetty/server/AbstractConnector.java
public abstract class AbstractConnector extends AggregateLifeCycle implements HttpBuffers, Connector, Dumpable
{
    private static final Logger LOG = Log.getLogger(AbstractConnector.class);

    private String _name;

    private Server _server;
    private ThreadPool _threadPool;
    private String _host;
    private int _port = 0;
    private String _integralScheme = HttpSchemes.HTTPS;
    private int _integralPort = 0;
    private String _confidentialScheme = HttpSchemes.HTTPS;
    private int _confidentialPort = 0;
    private int _acceptQueueSize = 0;
    private int _acceptors = 1;
    private int _acceptorPriorityOffset = 0;Thanks\Rajesh 

    On Monday, 2 May 2016 8:48 PM, "neoaqua@126.com" <ne...@126.com> wrote:
 

 That depends on version.0.6 and before can support no more that 8. 0.7 and later support defaultly 254.

来自我的华为手机

-------- 原始邮件 --------
主题:Re: How many concurrent connection knox supports
发件人:larry mccay 
收件人:user@knox.apache.org,Rajesh Chandramohan 
抄送:



Hi Rajesh -
Sorry for the delayed response.Please see the gateway.threadpool.max configuration parameter in [1].
The Jetty QueuedThreadPool creates the number of threads indicated in that parameter upon startup.Required connections beyond that number - default 254 - will be queued.
Hope that is helpful.
[1]. http://knox.apache.org/books/knox-0-9-0/user-guide.html#Gateway+Server+Configuration --larry

On Mon, May 2, 2016 at 2:28 AM, Rajesh Chandramohan <ra...@yahoo.com> wrote:

Any inputs on this regard for load testing knox  \Rajesh 

    On Thursday, 28 April 2016 2:20 PM, Rajesh Chandramohan <ra...@yahoo.com> wrote:
 

 Hi ,
 We like to know or test Knox proxy no. of concurrent connection available and how we can tune that.  It must be managed by  jetty threads and default is 254 as per the code. Can anybody elaborate how does it manage the connections . 
How exactly we should be doing load testing for knox. \Rajesh