Return-Path: X-Original-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7B126EF7 for ; Fri, 22 Jul 2011 01:08:40 +0000 (UTC) Received: (qmail 58137 invoked by uid 500); 22 Jul 2011 01:08:40 -0000 Delivered-To: apmail-incubator-kafka-dev-archive@incubator.apache.org Received: (qmail 58097 invoked by uid 500); 22 Jul 2011 01:08:40 -0000 Mailing-List: contact kafka-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kafka-dev@incubator.apache.org Delivered-To: mailing list kafka-dev@incubator.apache.org Received: (qmail 58089 invoked by uid 99); 22 Jul 2011 01:08:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 01:08:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jeffreydamick@gmail.com designates 209.85.212.47 as permitted sender) Received: from [209.85.212.47] (HELO mail-vw0-f47.google.com) (209.85.212.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 01:08:32 +0000 Received: by vws2 with SMTP id 2so1463144vws.6 for ; Thu, 21 Jul 2011 18:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=i3ADrYP1XXmNpPPuJLjFfiPlJIj5QLUd8QC2EJWxnUA=; b=cZZr5ebcMV5xXvo9CXjiqKxW3D6jlB26IDhz8uXOchyMBICYesvwdmn5xY9hg4T/MR rbZJKFY4XoxBcs2bkZqP2lanO2du7Z0Y3wyzMIV4q/nVjrjNhOqhf/OTK6noxscJOH3h BLg2Gbh1cdzEu5CnS3FKttBOtRU98aP1M4PLM= Received: by 10.220.192.76 with SMTP id dp12mr243863vcb.212.1311296891358; Thu, 21 Jul 2011 18:08:11 -0700 (PDT) Received: from [192.168.1.2] (pool-96-255-229-171.washdc.fios.verizon.net [96.255.229.171]) by mx.google.com with ESMTPS id z9sm641134vco.38.2011.07.21.18.08.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jul 2011 18:08:10 -0700 (PDT) References: In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8C148) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <68B1D633-3BE4-46D2-9158-55DF2D1991EF@gmail.com> Cc: "kafka-dev@incubator.apache.org" X-Mailer: iPhone Mail (8C148) From: Jeffrey Damick Subject: Re: kafka-49 Date: Thu, 21 Jul 2011 21:08:03 -0400 To: "kafka-dev@incubator.apache.org" That would seem sub-optimal.. Perhaps you could have a separate vip for prod= ucing that was configured by some process watching zk to determine which is l= eader or some custom health check maybe via restful api..just a thought. Sent from my iPhone On Jul 21, 2011, at 6:33 PM, Jun Rao wrote: > If we have ACK, the producer can catch any exception and resend. >=20 > Jun >=20 > On Thu, Jul 21, 2011 at 12:47 PM, Jay Kreps wrote: >=20 >> Yeah, that makes sense. How are we going to handle production through a v= ip >> in that case? >>=20 >> -Jay >>=20 >> On Thu, Jul 21, 2011 at 7:44 AM, Jun Rao wrote: >>=20 >>> Without replication, we can make ACK optional. With replication, a >> producer >>> can only write to the leader replica. Without ACK, there is no way that >> the >>> broker can inform the producer that it's trying to write to the wrong >>> broker. >>>=20 >>> Jun >>>=20 >>> On Wed, Jul 20, 2011 at 8:58 PM, Jay Kreps wrote: >>>=20 >>>> It might be nice to consider making the ack optional and part of the >>>> request. The current behavior is good for many uses, the request is >>>> instantaneously written to the socket buffer but sent asynchronously. I= >>>> think that is a valuable use case where you care about throughput. I >>> guess >>>> the question is whether the asynchronous api already covers that well >>>> enough >>>> and how much complexity exposing that causes. >>>>=20 >>>> -Jay >>>>=20 >>>> On Wed, Jul 20, 2011 at 5:51 PM, Jun Rao wrote: >>>>=20 >>>>> Jeff, >>>>>=20 >>>>> I was thinking of making the ACK mandatory for the producer. The ACK >>> can >>>> be >>>>> sent when the message either hits 1 replicas or multiple replicas, >>>>> depending >>>>> on the setting. >>>>>=20 >>>>> Having the ACK include the starting offset of the message seems >>>> reasonable. >>>>> It will be a bit complicated for multisend since multiple offsets >> have >>> to >>>>> be >>>>> returned. What do you need the offset for? >>>>>=20 >>>>> Thanks, >>>>>=20 >>>>> Jun >>>>>=20 >>>>> On Wed, Jul 20, 2011 at 12:47 PM, Jeffrey Damick < >>>> jeffreydamick@gmail.com >>>>>> wrote: >>>>>=20 >>>>>> Is there any current thought around KAFKA-49, for acknowledgement >> of >>>>>> producers? >>>>>> Will this be optional, a new message type(s)? >>>>>> Will the ack be synchronous or asynchronous or depending on request >>>> type? >>>>>>=20 >>>>>> It would be fantastic if the ack contained the starting offset of >> the >>>>>> message published, and not just the ending. >>>>>>=20 >>>>>> This is quickly becoming an issue for us, so we may be able to >>> provide >>>>> some >>>>>> help in this area.. >>>>>>=20 >>>>>>=20 >>>>>> thanks >>>>>> -jeff >>>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>=20