Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 510252004CA for ; Wed, 11 May 2016 16:12:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4F83D160A14; Wed, 11 May 2016 14:12:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 70EFA160A09 for ; Wed, 11 May 2016 16:12:40 +0200 (CEST) Received: (qmail 24413 invoked by uid 500); 11 May 2016 14:12:39 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 24403 invoked by uid 99); 11 May 2016 14:12:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2016 14:12:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7DCB7C0187 for ; Wed, 11 May 2016 14:12:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.281 X-Spam-Level: ** X-Spam-Status: No, score=2.281 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, TRACKER_ID=1.102] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id c5BzMK-7lnbZ for ; Wed, 11 May 2016 14:12:36 +0000 (UTC) Received: from mail-vk0-f42.google.com (mail-vk0-f42.google.com [209.85.213.42]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C78CF5F2C5 for ; Wed, 11 May 2016 14:12:35 +0000 (UTC) Received: by mail-vk0-f42.google.com with SMTP id o133so58456055vka.0 for ; Wed, 11 May 2016 07:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Ghidi9D+X0q33ipxxOwfHa17YfEXZlCnY0/gYoGOEOc=; b=uTmo/hZfYnCKHayZWm+Kq+x4RFKdtVkiQu2LXPskJ1MHuha2wt+iqgAdnlM7MBof8I /3Mckj+YxKZa5cRmZ9Y2Mr+QuqtrF/4cNOTgkFzH2Pz71rQDOR2LHSWspANzyLdItBPo 74jC0sVW5Lvmj8O+j1oPk55NfZ+04snv0UQZlmhQX9pbZhKm7vDpGAk4rGJ84tcPYrTG PxDTEWhBinlWgiJ+gQMIdyEoXfVE6DOk1yLp5qyf1f8VC1e9GwkeKX6QKwXdCo1U5doY Rxl3Xrowi7AGlISXufMkPg9/iOoY2PrRzfp0W57TZ3TL/L0j8qTEPkXN96XCrE04CxFB Go6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Ghidi9D+X0q33ipxxOwfHa17YfEXZlCnY0/gYoGOEOc=; b=Lsid7jswIFcOz/XcItBfU3Kfz3uFONGFdSiayPOLMLxhBvJLjqckltw0I0LHrRoQP6 uE7GlOYCiNOsPe5hGrYNMYMVHPIbIAgIXkMqEQnPLUD+p1+QBuEI43YOyi5N1NpqSjCG FBZra2AMmDkOwY9QG+QMe9ffcB4wDQXMxZl3ArXnnArJN36puKGSVpK5dSi6QTlOQMXX UVcgcgAb4td+SVeiuZcoZjV8ZxaaOETvyPJQnRuQ8oxTrWXTMCqey349Qs19oNQWSMK6 BrdF/h0+ccIE656EKRLElF/AjN/t8UvW5ERR2bO8V3oHI3gBGEmbGDaNbfr699eysIeW MdBA== X-Gm-Message-State: AOPr4FW3mLNH5Ps8Eq0ssVikGtEpq+JqX+yFr8OMy/Kz6MgusLSwy5lMTrFrXKEUh4K6kXzC8iHytVsTzciOKA== X-Received: by 10.31.188.73 with SMTP id m70mr1841260vkf.70.1462975954826; Wed, 11 May 2016 07:12:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.35.167 with HTTP; Wed, 11 May 2016 07:12:15 -0700 (PDT) In-Reply-To: References: From: Alain RODRIGUEZ Date: Wed, 11 May 2016 16:12:15 +0200 Message-ID: Subject: Re: Re : Optimum value for native_transport_max_concurrent_connections and native_transport_max_concurrent_connections_per_ip To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a1142f7d81a759f053291a22c archived-at: Wed, 11 May 2016 14:12:41 -0000 --001a1142f7d81a759f053291a22c Content-Type: text/plain; charset=UTF-8 Hi, tl;dr: Would you like to give Cassandra 2.1 a try? Longer answer: With the good versions of both the driver and Cassandra, you could be using the V3 protocol, which dramatically improved way connections work. http://www.datastax.com/dev/blog/java-driver-2-1-2-native-protocol-v3 Also, in C*2.1, nodetool tpstats outputs the number of blocked native requests, allowing to better tune the native_transport_max_concurrent_connections. If you don't want to upgrade to 2.1, just try tuning the number of connection on the client side and monitor. About native_transport_max_concurrent_connections, as for other parameters, starting from defaults and monitoring the changes, working as much as possible on a canary node is often the best way to go. Hope this helps, C*heers, ----------------------- Alain Rodriguez - alain@thelastpickle.com France The Last Pickle - Apache Cassandra Consulting http://www.thelastpickle.com 2016-04-29 16:39 GMT+02:00 sai krishnam raju potturi : > hi; > we are upgrading our cluster from apache-cassandra 2.0.14 to 2.0.17. We > have been facing SYN flooding issue (port 9042) in our current version of > Cassandra at times. We are hoping to tackle the SYN flooding issues with > the following attributes in the YAML file for 2.0.17 > > native_transport_max_concurrent_connections > > native_transport_max_concurrent_connections_per_ip > > > Are there any observed limitations for the above mentioned attributes. > During the peak hours each node serves around 1500 connections. Please > suggest optimal values for the mentioned attributes. > > > thanks > --001a1142f7d81a759f053291a22c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

tl;dr: Would you like to give Cassa= ndra 2.1 a try?

Longer answer:

With the good versions of both the driver and Cassandra, you could be= using the V3 protocol, which dramatically improved way connections work.


Also, in =C2=A0C= *2.1, nodetool tpstats outputs the number of blocked native requests, allow= ing to better tune the native_transport_max_concurrent_connections.

If you don't want to upgrade to 2.1, just try tuning = the number of connection on the client side and monitor. About native_trans= port_max_concurrent_connections, as for other parameters, starting from def= aults and monitoring the changes, working as much as possible on a canary n= ode is often the best way to go.

Hope this helps,<= /div>

C*heers,
-----------------------
Alain Rodriguez - alain@= thelastpickle.com
France

The Last Pi= ckle - Apache Cassandra Consulting

2016-04-29 16:39 GMT+02:00 sai = krishnam raju potturi <pskraju88@gmail.com>:
hi;<= /span>
=C2=A0 we are upgrading our cluster f= rom=C2=A0apache-cassandra 2= .0.14=C2=A0to=C2=A02= .0.17. We have been facing=C2=A0SYN flooding issue=C2=A0(port 9042) in our current versi= on of Cassandra at times. We are hoping to tackle the SYN flooding issues w= ith the following attributes in the YAML file for 2.0.17=C2=A0

native_transport_max_concurrent_con= nections

nat= ive_transport_max_concurrent_connections_per_ip


<= div style=3D"font-size:12.8px">Are there any=C2=A0observed limitations=C2=A0for the above menti= oned attributes. During the=C2=A0peak hours=C2=A0each node serves around=C2=A01500 connections. Please suggest opti= mal values for the mentioned attributes.=C2=A0


thanks

--001a1142f7d81a759f053291a22c--