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 4C6B120049E for ; Thu, 10 Aug 2017 10:59:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4ADC416AE9C; Thu, 10 Aug 2017 08:59:43 +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 68CC016AE9B for ; Thu, 10 Aug 2017 10:59:42 +0200 (CEST) Received: (qmail 88850 invoked by uid 500); 10 Aug 2017 08:59:41 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 88840 invoked by uid 99); 10 Aug 2017 08:59:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2017 08:59:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C260A1A0AB7 for ; Thu, 10 Aug 2017 08:59:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.474 X-Spam-Level: *** X-Spam-Status: No, score=3.474 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_MUA_MOZILLA=1.596, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fmf3mS_DgaD2 for ; Thu, 10 Aug 2017 08:59:38 +0000 (UTC) Received: from sonic308-12.consmr.mail.ne1.yahoo.com (sonic308-12.consmr.mail.ne1.yahoo.com [66.163.187.35]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D531E5F245 for ; Thu, 10 Aug 2017 08:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1502355576; bh=uLUqPZq7vMeo5M4kR2oxxw8pB0averslPUDxo1pAt8Q=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=M4iRK5tnHflUyupJ+BOYiH0b3ba8UgXILXWfFI53ZKb9cQgbXgkbB/AASeXf5C39b+66do6lUiVMyMX3RnpIA3eQ4n8e4NEockYjiYM6qKCi0V94BAcceJiusH1Ooj9ERLRe0D7+zQJpzBontHxE3eCn8jWFa1XJypRR00b9YBifz0JgvOe1oXh0eMg32Q3N1jGpTAeB+8luMVmtDRNGL809TWfZnouSZFpciHF+uuzv+dADiffbjX/nuAejmx3QTQE2BaM4x5CcEjTlpyl56R5MlziZ3K8XDDHryUMHUooWUB9QUht4I07Moxv7SHNOwLLZT0i4Qhpg5JoOk5Kd8w== X-YMail-OSG: 1pY.kpQVM1lTor25zpCZcbmOCKRLo9sI9zUyOnhmhsfuusntphHFQqx.uVGS4pR lcPy12cGpNoycbv3Y2Jxp4jhFH.Eo3NTg4228UQ.5x2SqO6isHWV2z3FudKxiAZkH0ZrwapeSLzY 2I3.zERMLn3mJg6aqzR7PIyPLgJ6uJ3_mOIw6NrAP0Rhap5QO9H9KPPCSc3W1SH1LcjQ7_Z5wzhR Vnr17sxLSMkYHpghM5m4oGDDxR8m9bRAK3_Tm2QtmoYAwk_yVFrh5JvTMLye3xbh5GTVpekAYS7C xee9wTmdSgSmKNDcr.01TF6sr5jY.Ks5t0T12xzOL71Ke.fv5zKiIV.FNN_BMcuGEFv0b105uTEv cZBOyDOziNai.xQoznn2tb6COR7gyrzg5JkFuP3pnWzaY9zryWcFLeNafGb3dqUsuiu0VDI6CFHb o9CVMsvIDuOn.TfooCEUl2ZvGfzT_zaCTzJJP0ONDmyugq2AULFRxwRgTpg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Thu, 10 Aug 2017 08:59:36 +0000 Date: Thu, 10 Aug 2017 08:59:32 +0000 (UTC) From: Alexey Kukushkin Reply-To: Alexey Kukushkin To: Message-ID: <1534133721.986140.1502355572149@mail.yahoo.com> In-Reply-To: <1502332715718-16092.post@n6.nabble.com> References: <1502332715718-16092.post@n6.nabble.com> Subject: Re: Persistent store and eviction policy. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_986139_899364119.1502355572147" X-Mailer: WebService/1.1.10318 YMailNorrin Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 archived-at: Thu, 10 Aug 2017 08:59:43 -0000 ------=_Part_986139_899364119.1502355572147 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, 1. Persistence and Data Eviction are alternative options to handle out-of-m= emory scenarios.Persistence makes Ignite fill all available RAM and move th= e oldest page to the =E2=80=9Cdisk=E2=80=9D part of the cache when there is= not enough memory. Data eviction policy makes Ignite to completely remove some entries or memo= ry pages from the cache depending on the policy.Persistence comes at cost o= f performance but gives us virtually unlimited reliable cache.Use the one o= r the other. 2. No, if you have no backups configured and a node goes down the data beco= mes unavailable. Persistence will not help - only partitions that a nodes o= wns are persisted on the node. Configure backups to address the issue. Best regards,=C2=A0Alexey On Thursday, August 10, 2017, 5:38:50 AM GMT+3, userx = wrote: Hi team, I was going through the documentation of durable memory at https://apacheignite.readme.io/docs/durable-memory As per the documentation, durable memory comes into picture when PersistentStore configuration is enabled. Now durable memory uses both RAM(hot data) and disk (superset). When the RAM part reaches a threshold (80% by default as per the documentation), the durable data retains only ho= t data in RAM and rest on the disk. QUESTION 1 So does that mean that there is a default eviction policy which comes into existence ? Or does the user explicitly has to mention the same in configuration ? What happens if he does not mention the eviction policy in configuration ? Suppose there are 2 nodes N1 (different physical box) and N2 (different physical box) and the data is distributed in PARTITIONED mode and persisten= t store is enabled.=20 Here is the example of entries N1-> "1","X" N2-> "2","Y" QUESTION 2 Suppose N1 crashes and goes down and does not come up at all for say 5 hours. Is "1" retrievable at all during that time if N1 went down after an entry to its WAL file or we loose N1 ? If say the entry was not able to be made in WAL file and should we have configured a back up as N3 (different physical box), would it have saved "1" ? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.co= m/Persistent-store-and-eviction-policy-tp16092.html Sent from the Apache Ignite Users mailing list archive at Nabble.com. ------=_Part_986139_899364119.1502355572147 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

1. Persistence and Data Eviction are alternative options to handle out-o= f-memory scenarios.
Persistence makes Ignite fill all available RAM an= d move the oldest page to the =E2=80=9Cdisk=E2=80=9D part of the cache when= there is not enough memory.
Data eviction policy makes Ignite to comple= tely remove some entries or memory pages from the cache depending on the po= licy.
Persistence comes at cost of performance but gives us virtu= ally unlimited reliable cache.
Use the one or the other.
=
2. No, if you have no backups configured and a node goes dow= n the data becomes unavailable. Persistence will not help - only partitions= that a nodes owns are persisted on the node. Configure backups to address = the issue.

Best reg= ards, 
Alexey


=
On Thursday, August 10, 2017, 5:38:50 AM GMT+3,= userx <gagansab@gmail.com> wrote:


Hi team,

I was going through the documentation of durable memory at



made in WAL file and should we have configured a back up as = N3 (different





=


--
Sent from the Apache Ignite Users mailing list archive at Nabble.c= om.
------=_Part_986139_899364119.1502355572147--