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 EE184200BD0 for ; Wed, 30 Nov 2016 15:07:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id ECAD6160B19; Wed, 30 Nov 2016 14:07:44 +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 42B51160B08 for ; Wed, 30 Nov 2016 15:07:44 +0100 (CET) Received: (qmail 79435 invoked by uid 500); 30 Nov 2016 14:07:43 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 79395 invoked by uid 99); 30 Nov 2016 14:07:43 -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, 30 Nov 2016 14:07:43 +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 92131180058 for ; Wed, 30 Nov 2016 14:07:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.458 X-Spam-Level: **** X-Spam-Status: No, score=4.458 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.065] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id wncpuyfwF9Lw for ; Wed, 30 Nov 2016 14:07:40 +0000 (UTC) Received: from mail-yw0-f172.google.com (mail-yw0-f172.google.com [209.85.161.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D1DB85F47D for ; Wed, 30 Nov 2016 14:07:39 +0000 (UTC) Received: by mail-yw0-f172.google.com with SMTP id a10so157581641ywa.3 for ; Wed, 30 Nov 2016 06:07:39 -0800 (PST) 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=3GbuPsFp/InxaT1w1NNtqgH+Pt+MypFyma5fHC88BKg=; b=ZhK0hOuBDft81wHIsDnkPA80/8oDeJeIiuvXGabRJ1q8VKNUDOb85KURgZ81Q7fnxp bGr0E3w1Gm6ZTGfd+SeBsmjBe9KZXCf1b0bdyk3d1wcsBjE58FkaBGe2GudOFjba6agh MqI+UPOxwAIE1iDqwpv2oYgV8TcqjXfSMZsCuC/Bn42wgrybXkHoqRuCxg2nI19QxOxW i4X9jsmN3FL5ddRlksfFHSBskDj/k1Yym5cpS8Pa9jiOojwHH9IGLHu7bPcmWnJskn7/ oMdQmupC0JC3MCBctJFxO2AR0oO7TlYJk925YpiClReXs6BsSqZ/doi7R+DAbpiCiBNM pK1w== 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=3GbuPsFp/InxaT1w1NNtqgH+Pt+MypFyma5fHC88BKg=; b=hTL06obOUaySc8wdWr6X4BKlEvl17N/aPPALehP6Nj6FWw6sH/ec6wkV8wvNq/UnmQ hcKvNRjoeV61NgtuAbmp6LvJj33lY7mcjBtzbvadykX0QId5G/sd+RxHnYtIqCZ8gR1a VBrQ8E18mqS2kWMbrrd2eojviYgwjRArz5JPnf/JGudr1nsNmrn7ML9U4RxKhuic/YUX vyc6Xl2mPGAIz3hoPlQMu15f5mNYqUXAW85y6/RPiaEMwnowCA3z7vjOfPJtClzP3FkI zbdvs2ktpE3fDnFPLCNKmABNFmn7IUO9PwRHrjy8QyojXjrMGw0u6lEV6dTkzs8R5TiP ydDQ== X-Gm-Message-State: AKaTC02swRhCdIzzBOzVSlAuNf0TlIK8Cg+ZXwfaH5oWBySG8WTGPqGdyXNs92d/wMWBIh353DLXTELaiC8aGw== X-Received: by 10.13.205.4 with SMTP id p4mr33878881ywd.337.1480514840568; Wed, 30 Nov 2016 06:07:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.207.77 with HTTP; Wed, 30 Nov 2016 06:06:49 -0800 (PST) In-Reply-To: <1480501859713-4719603.post@n4.nabble.com> References: <1480501859713-4719603.post@n4.nabble.com> From: Christopher Shannon Date: Wed, 30 Nov 2016 09:06:49 -0500 Message-ID: Subject: Re: JournalDiskSyncStrategy in KahaDBStore To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=94eb2c08b380282ac005428539f2 archived-at: Wed, 30 Nov 2016 14:07:45 -0000 --94eb2c08b380282ac005428539f2 Content-Type: text/plain; charset=UTF-8 I can update the documentation for this feature. There is a new property on KahaDB called "journalDiskSyncStrategy" that can be set either in XML config or with Java on the persistence adapter. For example, if using XML: Setting to periodic will trigger disk flushes at set intervals instead of after every message which will reduce the load on the disk and should improve throughput. The default strategy is still set to "always" as it is the safest option. If necessary you can also tune the frequency of the periodic sync using the property "journalDiskSyncInterval". The default is set to sync once a second and that seems to give a good combination of performance vs reliability if you can tolerate up to one second of potential message loss. On Wed, Nov 30, 2016 at 5:30 AM, yogu13 wrote: > As part of https://issues.apache.org/jira/browse/AMQ-6377 there is a new > option introduced of periodic Sync for journal data. I do not see any > documentation of how to go about using it. > > Does anyone know how to use it ? > > Regards, > -Yogesh > > > > > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/ > JournalDiskSyncStrategy-in-KahaDBStore-tp4719603.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --94eb2c08b380282ac005428539f2--