From users-return-38637-apmail-kafka-users-archive=kafka.apache.org@kafka.apache.org Mon Nov 4 20:27:09 2019 Return-Path: X-Original-To: apmail-kafka-users-archive@www.apache.org Delivered-To: apmail-kafka-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 49E2219254 for ; Mon, 4 Nov 2019 20:27:09 +0000 (UTC) Received: (qmail 75218 invoked by uid 500); 4 Nov 2019 20:26:59 -0000 Delivered-To: apmail-kafka-users-archive@kafka.apache.org Received: (qmail 75132 invoked by uid 500); 4 Nov 2019 20:26:59 -0000 Mailing-List: contact users-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@kafka.apache.org Delivered-To: mailing list users@kafka.apache.org Received: (qmail 75118 invoked by uid 99); 4 Nov 2019 20:26:59 -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; Mon, 04 Nov 2019 20:26:59 +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 57CB7180F3F for ; Mon, 4 Nov 2019 20:26:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id N8OvAjtMMSYm for ; Mon, 4 Nov 2019 20:26:54 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::d43; helo=mail-io1-xd43.google.com; envelope-from=vishal.santoshi@gmail.com; receiver= Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 9ACE77DDAC for ; Mon, 4 Nov 2019 20:26:53 +0000 (UTC) Received: by mail-io1-xd43.google.com with SMTP id j13so3577832ioe.0 for ; Mon, 04 Nov 2019 12:26:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=I3fNHnL5oZEBBFzUXvyuBkFazs3q4svSvA0eHZ+WTiY=; b=dl16vSspr9AdEUACJyIpvh8IhwIZSpZaXT7vK9ZwRGwHduTJezVecyAPC7pczDi3YC UblLgeD3Hl5188PAjVoF3EvQ+G0LYzDdPcE+lIqKbz+NWC8yWpswYrZ0y3AbbDmRxzPx K3kU9wxi4mLdUrJKHDxeRnJQAV8cLAopk3ZeOmN+j/jKYh8zbZgLoXuCc0v1BJRyn9qm v43ZMuui2EStG2bFqftbZ2Whu6Rf6p3pvZtDnJj3sk50VwQqlcZe7s3yx1mD08hWvZ/2 Kflb3Bl3xM1idQLQz1sNHe8u3zUZlkG8CNOYLgqnalyV1onegOy4Tb/hwPLKEPZSFMP2 Scdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=I3fNHnL5oZEBBFzUXvyuBkFazs3q4svSvA0eHZ+WTiY=; b=QTT2u6VC8AtgneGm9ifwdSEe9fylts+LQCA1Cp/uhOaUzDGlFIXV70kqZsBtX0KMWp RaTT/ufhFQCqQ+AFouUwdNiMf10o4v/r5ECMBEjr6mFP3wxJIXNqLt8ErN8gHZIC7g92 gUSq3AynFPMuyuZsgrguWXn6u/U33NAPq5PnkEbvbDNx/zrWr9TNs0TaQbHGwtFClwJC 1Lu2NdK4NOn7F+jFRK7wggzSjcRqeu5P5ezY3Y6W2oiZUENeBvGGcr0gzV9kNbpOHrPw a/BQlqkqszxyFYFBAhQGWC4dIVhsFjsbJUkiQ+f3RLeB8uYyzwXLkRUqgdqbmP7c/YAA ByMg== X-Gm-Message-State: APjAAAXyhfTr5ethCNbr07FmqHPT/woWHn3IoPhhE/PNNH8ivdlBqqU/ WoQUh8mMkeKAtOA6SZ5UqH/MF7GmYuwBDiWKPwVTA1VG X-Google-Smtp-Source: APXvYqzQ+ObRJK6GXykCfAcXffljmvYSSS0Zv/G4HtY8It0BF9TjSjwISzZPOHk5bFe8rQplNFTyDeO7rYXWY05zUI8= X-Received: by 2002:a05:6638:73a:: with SMTP id j26mr1123499jad.116.1572899212145; Mon, 04 Nov 2019 12:26:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Vishal Santoshi Date: Mon, 4 Nov 2019 15:26:41 -0500 Message-ID: Subject: Re: MirrorMaker 2.0 ( working off origin/2.4 ) To: users@kafka.apache.org Content-Type: multipart/alternative; boundary="000000000000ceb97605968b2257" --000000000000ceb97605968b2257 Content-Type: text/plain; charset="UTF-8" I can verify that the above did take. ( kicking myself ) . It should be the same for, these too ? b.producer.batch.size = 1048576 b.producer.linger.ms = 30 b.producer.acks = 1 etc etc... I also see that the properties can be overridden, so this routine * kill 1 MM2 * change the mm2.properites * restart mm2 should work provided we do not change the client_id Thanks. On Mon, Nov 4, 2019 at 3:08 PM Ryanne Dolan wrote: > > BTW any ideas when 2.4 is being released > > Looks like there are a few blockers still. > > On Mon, Nov 4, 2019 at 2:06 PM Vishal Santoshi > wrote: > > > I bet I have tested the "b.producer.acks' route. I will test again and > let > > you know. Note that I resorted to hardcoding that value in the Sender and > > that alleviated the throttle I was seeing on consumption. BTW any ideas > > when 2.4 is being released ( I thought it was Oct 30th 2019 )... > > > > On Mon, Nov 4, 2019 at 1:49 PM Ryanne Dolan > wrote: > > > > > Vishal, b.producer.acks should work, as can be seen in the following > unit > > > test with similar producer property "client.id": > > > > > > > > > > > > https://github.com/apache/kafka/blob/6b905ade0cdc7a5f6f746727ecfe4e7a7463a200/connect/mirror/src/test/java/org/apache/kafka/connect/mirror/MirrorMakerConfigTest.java#L182 > > > > > > Keep in mind this should be configured for the target cluster, and it > > might > > > not take effect until the workers finish rebalancing. > > > > > > Ryanne > > > > > > On Sun, Nov 3, 2019, 9:40 AM Vishal Santoshi < > vishal.santoshi@gmail.com> > > > wrote: > > > > > > > Hello folks, > > > > Was doing stress tests and realized that the > > > replication > > > > to the target cluster and thus the configuration of the KafkaProducer > > > has a > > > > default acks of -1 ( all ) and that was prohibitively expensive. It > > > should > > > > have been a simple a->b.producer.acks = 1 ( or b.producer.acks = 1 > or > > > acks > > > > = 1, have tried all ) override in the mm2.properties, but it does not > > > take. > > > > I verified by turning on TRACE and a little instrumenting the code > to > > > > print out the acks . > > > > > > > > > > > > > > https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java#L806 > > > > . > > > > Am I missing something? > > > > > > > > Regards > > > > > > > > > > --000000000000ceb97605968b2257--