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 07A1D200B36 for ; Wed, 6 Jul 2016 23:22:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 06541160A64; Wed, 6 Jul 2016 21:22:15 +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 26338160A55 for ; Wed, 6 Jul 2016 23:22:14 +0200 (CEST) Received: (qmail 13964 invoked by uid 500); 6 Jul 2016 21:22:13 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 13952 invoked by uid 99); 6 Jul 2016 21:22:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2016 21:22:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5CDE9180484 for ; Wed, 6 Jul 2016 21:22:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.721 X-Spam-Level: X-Spam-Status: No, score=-0.721 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=confluent-io.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id QiyciwJqAf2P for ; Wed, 6 Jul 2016 21:22:09 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 80D785F2C2 for ; Wed, 6 Jul 2016 21:22:09 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id z126so126247915wme.0 for ; Wed, 06 Jul 2016 14:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=confluent-io.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=PFc2XNSRZNzH03IyRG2z+xCymL0AS+niHmTJJLft06o=; b=WfbqfaAP/g6HCePqY1AB08SyAz+T8pCR2GRb/Ky79DW/dUlYBvjlzdgMn41b1NykFL IUr4NrzNgxoZEbTIyaWmqVtATgNZuXc7954qTP+MZLL09xSUfhhHsaEaiFjeFt7OXYlz 8Q5ictulIejqrvVM3Bv81QJrta9+tO15lOcF78ECDwfg9eOE9g0z00QAULsHT5hLdrPI PLhDTSpcGMpij6HJXVP+98v+0JNlyAZZz15DWPAZGUILrSEXjUu4MGgImo0+0bLS71OF vkYLqOQe/GV9O7L9OVqayVJ57w4ieqsSliP9HUruC+DYiD7mrey8CNVvb0fogkdkznPP A9Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=PFc2XNSRZNzH03IyRG2z+xCymL0AS+niHmTJJLft06o=; b=mJJToXdDIOI1IvoyOJxlMvXfUqsuy/VnxONuSq28sZ3XsJVZRBF8E4F/I6ISXTWQ/n C2Pmq6DQotIQLOOprfd17g6r2I3BBADmmQMb2TJwrDqSgy85Qa5oareEWj41ueugV2Hk ebi3f94IMkwwvUmSIjN7/BHZoAVQ8Drs8sYYptJEbBjgfS2+Eaj7Id72Xn3jOKTR9jvJ 53MKTqWEuK2/twGP8xswyERaYP7GbRuvOPqpmtBC7ZuEYErnJsW55JO3H5//lRVC3vIC C8CZiOsli/a5SfHGYc338HZ/+ePDziPUQaRJD+Y689qJ0wfR4NnhWlujJfCrN8xYxfHE 7YxQ== X-Gm-Message-State: ALyK8tImezeqYJ4qLrhbgsu6Ey7810KBIuP2zsIGCwUn2nJ166icyMZwWZ9MlKw0wVlHGg== X-Received: by 10.28.31.204 with SMTP id f195mr21873142wmf.45.1467840127833; Wed, 06 Jul 2016 14:22:07 -0700 (PDT) Received: from ?IPv6:2a02:8109:8380:3930:c048:d8f9:920c:edfb? ([2a02:8109:8380:3930:c048:d8f9:920c:edfb]) by smtp.gmail.com with ESMTPSA id x83sm10976683wmx.9.2016.07.06.14.22.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jul 2016 14:22:06 -0700 (PDT) Subject: Re: Parallelisation factor in kafka streams To: dev@kafka.apache.org References: From: "Matthias J. Sax" Message-ID: <1cce0ffe-b26a-06a6-7ae3-2f5bfd4deb52@confluent.io> Date: Wed, 6 Jul 2016 23:19:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uVkuSe4dREdu25cs0cFO9RVOf7gDrqBa4" archived-at: Wed, 06 Jul 2016 21:22:15 -0000 --uVkuSe4dREdu25cs0cFO9RVOf7gDrqBa4 Content-Type: multipart/mixed; boundary="4hC8Ek52eIbgDSlVmnQqSJrDRDsrtBRtC" From: "Matthias J. Sax" To: dev@kafka.apache.org Message-ID: <1cce0ffe-b26a-06a6-7ae3-2f5bfd4deb52@confluent.io> Subject: Re: Parallelisation factor in kafka streams References: In-Reply-To: --4hC8Ek52eIbgDSlVmnQqSJrDRDsrtBRtC Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jeyhun, you cannot change the number of threads within an application instance, but you can start new application instances. Internal Kafka Consumer re-balance with re-assign the partitions over all running application instances. Not sure what you mean by "restart the cluster"? For sure, you do not need to restart the Kafka Brokers. And for a Streams application, there is no cluster. Streams applications are regular Java applications and can run anywhere (not necessarily on the same machines as Kafka Brokers).= -Matthias On 07/06/2016 10:33 PM, Jeyhun Karimov wrote: > Thank you for your answer Matthias. > Is it possible to change the parallelism in runtime? Or do we have to > restart the cluster? >=20 >=20 > On Wed, 6 Jul 2016 at 19:08, Matthias J. Sax wr= ote: >=20 >> Hi Jeyhun, >> >> the number of partitions determine the number of tasks within a Kafka >> Streams application and thus, the maximum number of parallelism for yo= ur >> application. >> >> For more details see >> http://docs.confluent.io/3.0.0/streams/architecture.html#parallelism-m= odel >> >> You can set the number of threads for a single application instance, v= ia >> parameter "num.stream.threads" (default value is 1). >> >> See >> >> http://docs.confluent.io/3.0.0/streams/developer-guide.html#optional-c= onfiguration-parameters >> >> >> -Matthias >> >> On 07/06/2016 06:11 PM, Jeyhun Karimov wrote: >>> Hi community, >>> >>> How can I set parallelisation factor in kafka streams? Is it related = with >>> the number of partitions within topics? >>> >>> >>> Cheers >>> Jeyhun >>> >> >> -- > -Cheers >=20 > Jeyhun >=20 --4hC8Ek52eIbgDSlVmnQqSJrDRDsrtBRtC-- --uVkuSe4dREdu25cs0cFO9RVOf7gDrqBa4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXfXXeAAoJECnhiMLycopPKoMP/17txcjweuWuKawwMK3Hezj8 fIEre2yLDbiP9BCvgUcJOTDvbbYUUilRwBff1drRa8jK+L5t9Z0lJtqv+N+C4m2J HV5gvwem6ihgXEA8XmJDrDUBWCOqRR18575YLjV46EBUs+Tv9y9rrT1A5SnDS4oc 5Dd27k7imprCXHJLrTTdVh8lvzFJFGPDPn6/82izxv5ln8qUw/ssFfIE8N3LJ11Y TuNZO16vIeZpNbHkHjFJ7I6HXHi7i2lnzgF9YtTjdDO5W2lTv6fqeYZHTloAamMv TzU5h/neZLXrTpN4zHuOQ8Qkl6a/WwvgFXb+5apFszMRfaJqoII9VHlHyrTVoG+s cNeWJMQ6ZoOaYDO1U9J8scMZ7wITpKe1Ei+8HoX5Y6POEvnAgqYqLyDspoat0FqQ vb8f0sH8zpvHg6Ig+mtMG00Eq0BC58cBRLslUMwsJQxN+IJWtdXBy+InSPFXGWNl DWtHoQpEfGKvByCKqeZyJUeV3rMJ5kOVYCdSJQHVDClAjRMFIA/u6QCo59oZe8nI P2PtWOy+pF/EyFtXUDMTGMabS2aUoEM5z2gPeVzLM+rRbB0+DzUtKQgACypGOK85 PBsufaD/+VioQ3xh9zvFDzSF9xztl4oDShrTEXqLA8lpHdbH+6rKKu+h18G1f/9v 9vVyT0RTFYDMIpKkp6mK =214R -----END PGP SIGNATURE----- --uVkuSe4dREdu25cs0cFO9RVOf7gDrqBa4--