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 8ECF0200D18 for ; Wed, 27 Sep 2017 08:23:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8D1B91609EA; Wed, 27 Sep 2017 06:23:35 +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 5BB1D1609D7 for ; Wed, 27 Sep 2017 08:23:34 +0200 (CEST) Received: (qmail 31616 invoked by uid 500); 27 Sep 2017 06:23:33 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 31602 invoked by uid 99); 27 Sep 2017 06:23:33 -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; Wed, 27 Sep 2017 06:23:32 +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 6C04F1A2D04 for ; Wed, 27 Sep 2017 06:23:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.479 X-Spam-Level: ** X-Spam-Status: No, score=2.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id VHXE5iTQDNZI for ; Wed, 27 Sep 2017 06:23:24 +0000 (UTC) Received: from mail-ua0-f177.google.com (mail-ua0-f177.google.com [209.85.217.177]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id BBA825FDBC for ; Wed, 27 Sep 2017 06:23:24 +0000 (UTC) Received: by mail-ua0-f177.google.com with SMTP id k23so7839840uaf.4 for ; Tue, 26 Sep 2017 23:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=mMagxVLpXZrWC54sUcpd08LBIwjrYfJQnC6x4EaWOXM=; b=PvhFYFrkXPfzl6RGLtHOWJGlbdovphC9XQV7CFoeJSG1OB/K5QHvFt5o0dIIPUei/1 5BL0QetNoKnJ+yvOyv11RnZUuY415wyJM5Vvwuq7hjJfK7PSZeLQwkOcDYbA5HuBc3Et CRWcR5rWEynvGe+pAY1kf+VtyRyMpxQ37ztkIFwrA7NjKR/7CwEu3bCmURgfvbAAZPNF wpzHi8hemiQ8AoAEQ2SPVYGXfQhAG0DSfMaL99NBdT1JzZfkvbSSI8tzBoYWm8N4np33 t9acPN+GEVIrGlAe5BT6EyjWr1nPlXu3ygZzJtM9SmWlzwJ7ETokkQAgrH3XpL3hKVuU 8SQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=mMagxVLpXZrWC54sUcpd08LBIwjrYfJQnC6x4EaWOXM=; b=ps/9evEcPY4n2RyF9A/Mtuv0lJfK/QLMtTkL44iz/VJ8pLgJwBVq4ILYynmfudIMV/ HynSf76NPxd3JH8xBEODNOvf93ymxwxIf7t48jsB1FSNzwJTO6CNbK2UVOoFaEI2drHT /epbdgvtHNiyOwpotGWFATycH1qjuy1afPMpjCQgY00Lnvfgw3hiiDZivjZmD8bnJXGH X0Wpi1ZN8BdIpC49slQmYADBcCh9ghLZY4lNeu8+9ocVpUPd03NuaivSSO781cMJDWZX SpHet56qNstCSR0At2qUxJopcOycCL7Wof3DZ1qCXnZkxPGJFsLMUPFNrUXrTWnU0ajL j1Uw== X-Gm-Message-State: AHPjjUhzkDUchlX79HBs3djNhybtOA5HkyoGNjMVIytV/CI+678tsbMY l1qNeTzogTnnNxKQBr2FXhUz6aUNME6/hP1i0RCxsw== X-Google-Smtp-Source: AOwi7QCf6nVeheurk4C9PnJU201mc5qWir8oq1JzPUx7J55svSdkrwJsmNRvqJsfgQAJs3OqVhoLhFVYRhhnFH4gU9E= X-Received: by 10.176.75.25 with SMTP id h25mr269660uaf.102.1506493397353; Tue, 26 Sep 2017 23:23:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.89.193 with HTTP; Tue, 26 Sep 2017 23:23:16 -0700 (PDT) In-Reply-To: References: <6b03926e-35c5-9229-d9d2-6f2f74b0e1a7@ya.ru> <2B2EE969-7B3C-4772-8F95-BDF9DCD46B39@apache.org> From: Vladimir Ozerov Date: Wed, 27 Sep 2017 09:23:16 +0300 Message-ID: Subject: Re: Persistence per memory policy configuration To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="f403045e4064ce5446055a25d352" archived-at: Wed, 27 Sep 2017 06:23:35 -0000 --f403045e4064ce5446055a25d352 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Folks, Let me summarize current naming ideas one more time: 1) [StorageConfiguration - StorageRegionConfiguration] 2) [DurableMemoryConfiguration - DataRegionConfiguration] 3) [DurableMemoryConfiguration - DurableMemoryRegionConfiguration] - out of question, as "durable memory region" is too misleading. My vote for p.1. Short, simple and intuitive. Vladimir. On Tue, Sep 26, 2017 at 10:16 PM, Dmitriy Setrakyan wrote: > On Tue, Sep 26, 2017 at 7:33 AM, Dmitry Pavlov > wrote: > > > Hi Dmitriy, thank you for reply. Do you agree Memory Policy already > became > > Ignite's term? We call this configuration now > MemoryPolicy(Configuration), > > can we call new configuration elments by their existings name? We can > avoid > > introduction of second Ignite's term in that case. > > > > The refactoring is about merging memory and persistence configuration und= er > the same umbrella. The term "MemoryPolicy" does not make sense anymore, > given that it now also includes persistent configuration as well. > > > > > > =D0=B2=D1=82, 26 =D1=81=D0=B5=D0=BD=D1=82. 2017 =D0=B3. =D0=B2 17:27, D= mitriy Setrakyan : > > > > > Dmitriy, we are not renaming classes, we are refactoring them. Prior = to > > > this design, it was impossible to set persistence configuration on > > > per-cache basis. With this new design, users will be able to configur= e > > some > > > caches to be in-memory only and others to be on disk. > > > > > > Given that we are already refactoring, it only makes sense to pick > > better, > > > more appropriate names. > > > > > > D. > > > > > > On Tue, Sep 26, 2017 at 7:20 AM, Dmitry Pavlov > > > wrote: > > > > > > > Vladimir, it is not clear for me, why we need to rename existing > > > > configuration classes. Could you explain? And if we can't get > consensus > > > > now, should we pospond solution? > > > > > > > > My idea is that user needs this feature more than elegant names in > > > > configuration. > > > > > > > > Moreover once MemoryPolicyConfiguration was introduced as Ignite te= rm > > it > > > is > > > > simpler to keep it as is, than create new terms. > > > > > > > > Sincerely, > > > > Dmitriy Pavlov > > > > > > > > =D0=B2=D1=82, 26 =D1=81=D0=B5=D0=BD=D1=82. 2017 =D0=B3. =D0=B2 16:5= 9, Vladimir Ozerov >: > > > > > > > > > I do not understand why we should delay with renames. Yes, it wil= l > > > cause > > > > > questions, so we will have to put additional efforts to docs and > > > > JavaDocs. > > > > > But the earlier we do that, the better. > > > > > > > > > > On Tue, Sep 26, 2017 at 4:50 PM, Dmitry Pavlov < > > dpavlov.spb@gmail.com> > > > > > wrote: > > > > > > > > > > > Hi Igniters, sorry for late response. I didn't catch idea of > > > renaming. > > > > > > PersistentStoreConfiguration is intuitive, and > > > > MemoryPolicyConfiguration > > > > > is > > > > > > intuitive also. > > > > > > > > > > > > If we rename these classes now, it will bring more questions to > > user > > > > > list. > > > > > > Users may be confused by old and new names and by trying to mat= ch > > it. > > > > > More > > > > > > issues can came from XML configs that users already have. > > > > > > > > > > > > Can we postpone the renaming? I suggest to finish 'persistence > per > > > > memory > > > > > > policy' task without renaming, and create separate JIRA issue f= or > > > > > creating > > > > > > future decision? > > > > > > > > > > > > =D0=B2=D1=82, 26 =D1=81=D0=B5=D0=BD=D1=82. 2017 =D0=B3. =D0=B2 = 15:25, Alexey Goncharuk < > > > > > alexey.goncharuk@gmail.com > > > > > > >: > > > > > > > > > > > > > I do not like DurableMemoryConfiguration, because it's quite > > > > confusing > > > > > - > > > > > > we > > > > > > > configure in-memory caches using DurableMemory class, which > > > > immediately > > > > > > > suggests that everything will be persisted. I am not sure if > this > > > is > > > > a > > > > > > > right wording choice for the documentation either. I would go > > with > > > > > > > DataStoreConfiguration and DataRegionConfiguration. > > > > > > > > > > > > > > --AG > > > > > > > > > > > > > > 2017-09-26 2:22 GMT+03:00 Dmitriy Setrakyan < > > dsetrakyan@apache.org > > > >: > > > > > > > > > > > > > > > Given that we already have a notion of CacheStore which com= es > > > from > > > > > > JCache > > > > > > > > spec, I think having other stores may get confusing. I like > > > > > > > > DurableMemoryConfiguration. > > > > > > > > > > > > > > > > Other opinions? > > > > > > > > > > > > > > > > D. > > > > > > > > > > > > > > > > On Mon, Sep 25, 2017 at 12:24 PM, Vladimir Ozerov < > > > > > > vozerov@gridgain.com> > > > > > > > > wrote: > > > > > > > > > > > > > > > > > Dima, let's finalize the design first. > > > > > > > > > > > > > > > > > > As I understand, we are happy with idea to merge > > > > > MemoryConfiguration > > > > > > > > > and PersistentStoreConfiguration > > > > > > > > > into something what I called DataConfiguration, and to > rename > > > > > > > > > MemoryPolicyConfiguration to DataRegionConfiguration. > > > > > > > > > > > > > > > > > > The only outstanding qurestion is whether DataConfigurati= on > > is > > > a > > > > > good > > > > > > > > name. > > > > > > > > > I am not very happy with it, so let's think of other > > > > alternatives. > > > > > > > Quick > > > > > > > > > ideas: > > > > > > > > > 1) StoreConfiguration - looks perfect to me - short and > > > > > > > self-describing, > > > > > > > > > but clashes a bit with existing CacheStore > > > > > > > > > 2) DataStoreConfiguration - same as p.1, but the word > "data" > > is > > > > not > > > > > > > > > necessary IMO > > > > > > > > > 3) PageStoreConfiguration? GIves a hint to our page-based > > > > > > architecture. > > > > > > > > > 4) DurableMemoryConfiguration - aligns well with our docs= , > > but > > > I > > > > do > > > > > > not > > > > > > > > > like it - too long and misleading > > > > > > > > > > > > > > > > > > Any other ideas? > > > > > > > > > > > > > > > > > > I would prefer to have either [StoreConfiguration + > > > > > > > > > StoreRegionConfiguration] or [PageStoreConfiguration and > > > > > > > > > PageStoreRegionConfiguration]. Looks clean and simple. > > > > > > > > > > > > > > > > > > Vladimir. > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Sep 25, 2017 at 3:49 PM, Dmitriy Setrakyan < > > > > > > > > dsetrakyan@apache.org> > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > Vladimir, > > > > > > > > > > > > > > > > > > > > Can you please add the configuration example in the > ticket? > > > > > > > > > > > > > > > > > > > > D. > > > > > > > > > > > > > > > > > > > > On Mon, Sep 25, 2017 at 12:20 AM, Alexey Goncharuk < > > > > > > > > > > alexey.goncharuk@gmail.com> wrote: > > > > > > > > > > > > > > > > > > > > > Guys, > > > > > > > > > > > > > > > > > > > > > > I suggest we finalize the configuration changes in th= e > > > > original > > > > > > > > ticket > > > > > > > > > > > then: https://issues.apache.org/ > jira/browse/IGNITE-6030 > > > and > > > > > > > proceed > > > > > > > > > with > > > > > > > > > > > the changes. > > > > > > > > > > > > > > > > > > > > > > 2017-09-23 17:08 GMT+03:00 Dmitriy Setrakyan < > > > > > > > dsetrakyan@apache.org > > > > > > > > >: > > > > > > > > > > > > > > > > > > > > > > > Can we specify what metrics will look like? I think > we > > > > should > > > > > > not > > > > > > > > > just > > > > > > > > > > > > blindly merge them. > > > > > > > > > > > > > > > > > > > > > > > > On Fri, Sep 22, 2017 at 11:01 PM, Vladimir Ozerov < > > > > > > > > > > vozerov@gridgain.com> > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > Denis, > > > > > > > > > > > > > > > > > > > > > > > > > > Makes sense. Thanks for catching it! > > > > > > > > > > > > > > > > > > > > > > > > > > On Sat, Sep 23, 2017 at 8:45 AM, Denis Magda < > > > > > > > dmagda@apache.org> > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > If we=E2=80=99re taking the consolidation path = for Memory > > and > > > > > > > > Persistence > > > > > > > > > > > > > > configurations then it makes sense to merge > > > > MemoryMetrics > > > > > > [1] > > > > > > > > and > > > > > > > > > > > > > > PersistenceMetrics [2] plus their JMX beans. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Agree? > > > > > > > > > > > > > > > > > > > > > > > > > > > > [1] > > > > > https://ignite.apache.org/releases/latest/javadoc/org/ > > > > > > > > > > > > > > apache/ignite/MemoryMetrics.html < > > > > > > https://ignite.apache.org/ > > > > > > > > > > > > > > releases/latest/javadoc/org/ > > > > apache/ignite/MemoryMetrics. > > > > > > html> > > > > > > > > > > > > > > [2] > > > > > https://ignite.apache.org/releases/latest/javadoc/org/ > > > > > > > > > > > > apache/ignite/ > > > > > > > > > > > > > > PersistenceMetrics.html > > > > > > > > > > > > > > > > > > > > > > > > > > > > =E2=80=94 > > > > > > > > > > > > > > Denis > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Sep 22, 2017, at 10:18 PM, Dmitriy > Setrakyan < > > > > > > > > > > > > dsetrakyan@apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I like it. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Alexey G, can you please chime in? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > D. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, Sep 22, 2017 at 11:33 AM, Vladimir > > Ozerov < > > > > > > > > > > > > > vozerov@gridgain.com> > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >> Guys, > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> Here is my proposal: > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> 1) MemoryPolicyConfiguration is renamed to > > > > > > > > > > > > *DataRegionConfiguration*. > > > > > > > > > > > > > > >> 2) PersistenceConfiguration is merged with > > > > > > > > MemoryConfiguration > > > > > > > > > > and > > > > > > > > > > > > > > renamed > > > > > > > > > > > > > > >> to ... *DataStorageConfiguration*! It has: > > common > > > > > memory > > > > > > > > > > settings > > > > > > > > > > > > > (e.g. > > > > > > > > > > > > > > >> default data region), persistence settings > (e.g. > > > > WAL) > > > > > > and > > > > > > > a > > > > > > > > > list > > > > > > > > > > > of > > > > > > > > > > > > > > >> DataRegionConfiguration beans. > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> What we have in the end: > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> /> > > > > > > > > > > > > > > >> > > > > > > value=3D"/my/path" > > > > > > > > > /> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > class=3D"o.a.i.DataRegionConfiguration"> > > > > > > > > > > > > > > >> > > > > > value=3D"VOLATILE" > > > > > > > /> > > > > > > > > > > > > > > >> > > > > > > > > > value=3D"1_000_000_000" > > > > > > > > > > > /> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > class=3D"o.a.i.DataRegionConfiguration"> > > > > > > > > > > > > > > >> > > > > > > value=3D"PERSISTENT" > > > > > > > > /> > > > > > > > > > > > > > > >> > > > > > > > > > value=3D"1_000_000_000" > > > > > > > > > > > /> > > > > > > > > > > > > > > >> > > > > > > value=3D"true" > > > > > > > > /> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> Makes sense? > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> Vladimir. > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> On Thu, Sep 21, 2017 at 7:04 AM, Dmitriy > > > Setrakyan < > > > > > > > > > > > > > > dsetrakyan@apache.org> > > > > > > > > > > > > > > >> wrote: > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >>> Firstly all, why not call it DataPolicy > instead > > > of > > > > > > > > > > MemoryPolicy? > > > > > > > > > > > > > > >> Secondly, > > > > > > > > > > > > > > >>> why not set data policies directly on > > > > > > > IgniteConfiguration. > > > > > > > > > And > > > > > > > > > > > > > lastly, > > > > > > > > > > > > > > >> how > > > > > > > > > > > > > > >>> about we combine memory and disk properties > in > > > one > > > > > bean > > > > > > > > with > > > > > > > > > > > clear > > > > > > > > > > > > > > naming > > > > > > > > > > > > > > >>> convention? > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>> Here is the example. Note that all properti= es > > > above > > > > > > must > > > > > > > > > start > > > > > > > > > > > with > > > > > > > > > > > > > > with > > > > > > > > > > > > > > >>> "Memory" or "Disk". > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>> *IgniteConfiguration cfg =3D new > > > > > IgniteConfiguration();* > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>>> > > > > > > > > > > > > > > >>>> > > > > > > > > > > > > > > >>>> > > > > > > > > > > > > > > >>>> > > > > > > > > > > > > > > >>>> *cfg.setDataPolicies( new > > > > > DataPolicyConfiguration() > > > > > > > > > > > > > > >>>> .setName("bla"), > > .setMemoryMaxSize(1024), > > > > // > > > > > > must > > > > > > > > be > > > > > > > > > > > > greater > > > > > > > > > > > > > > >> than > > > > > > > > > > > > > > >>> 0, > > > > > > > > > > > > > > >>>> since memory always needs to be enabled. > > > > > > > > > > > > .setDiskMaxSize(0), > > > > > > > > > > > > > // > > > > > > > > > > > > > > >> if > > > > > > > > > > > > > > >>>> greater than 0, then persistence is enable= d. > > > > );* > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>> I think this approach is much more concise > and > > > > > straight > > > > > > > > > > forward. > > > > > > > > > > > > What > > > > > > > > > > > > > > do > > > > > > > > > > > > > > >>> you think? > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>> D. > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>> On Wed, Sep 20, 2017 at 4:55 AM, Vladimir > > Ozerov > > > < > > > > > > > > > > > > > vozerov@gridgain.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >>> wrote: > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >>>> I prefer the second. Composition over > > > inheritance > > > > - > > > > > > this > > > > > > > > is > > > > > > > > > > how > > > > > > > > > > > > all > > > > > > > > > > > > > > our > > > > > > > > > > > > > > >>>> configuration is crafted. > > > > > > > > > > > > > > >>>> > > > > > > > > > > > > > > >>>> E.g. we do not have "CacheConfiguration" > and " > > > > > > > > > > > > > > >>>> StoreEnabledCacheConfiguration". > > > > > > > > > > > > > > >>>> Instead, we have "CacheConfiguration. > > > > > > > > setCacheStoreFactory". > > > > > > > > > > > > > > >>>> > > > > > > > > > > > > > > >>>> On Wed, Sep 20, 2017 at 2:46 PM, Alexey > > > Goncharuk > > > > < > > > > > > > > > > > > > > >>>> alexey.goncharuk@gmail.com> wrote: > > > > > > > > > > > > > > >>>> > > > > > > > > > > > > > > >>>>> Reiterating this based on some feedback > from > > > PDS > > > > > > users. > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>>> It might be confusing to configure > > persistence > > > > with > > > > > > > > > > > > "MemoryPolicy", > > > > > > > > > > > > > > >> so > > > > > > > > > > > > > > >>>>> another approach is to deprecate the old > > names > > > > and > > > > > > > > > introduce > > > > > > > > > > a > > > > > > > > > > > > new > > > > > > > > > > > > > > >> name > > > > > > > > > > > > > > >>>>> "DataRegion" because it reflects the actu= al > > > state > > > > > > when > > > > > > > > data > > > > > > > > > > is > > > > > > > > > > > > > stored > > > > > > > > > > > > > > >>> on > > > > > > > > > > > > > > >>>>> disk and partially in memory. I have two > > > options > > > > in > > > > > > > mind, > > > > > > > > > > each > > > > > > > > > > > of > > > > > > > > > > > > > > >> them > > > > > > > > > > > > > > >>>>> looks acceptable to me, so I would like t= o > > have > > > > > some > > > > > > > > > feedback > > > > > > > > > > > > from > > > > > > > > > > > > > > >> the > > > > > > > > > > > > > > >>>>> community. Old configuration names will b= e > > > > > deprecated > > > > > > > > (but > > > > > > > > > > > still > > > > > > > > > > > > be > > > > > > > > > > > > > > >>> taken > > > > > > > > > > > > > > >>>>> if used for backward compatibility). Note= , > > that > > > > old > > > > > > > names > > > > > > > > > > > > > deprecation > > > > > > > > > > > > > > >>>>> handles default configuration compatibili= ty > > > very > > > > > > > nicely - > > > > > > > > > > > current > > > > > > > > > > > > > PDS > > > > > > > > > > > > > > >>>> users > > > > > > > > > > > > > > >>>>> will not need to change anything to keep > > > > everything > > > > > > > > > working. > > > > > > > > > > > The > > > > > > > > > > > > > two > > > > > > > > > > > > > > >>>>> options I mentioned are below: > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>>> * we have two separate classes for > in-memory > > > and > > > > > > > > persisted > > > > > > > > > > data > > > > > > > > > > > > > > >>> regions, > > > > > > > > > > > > > > >>>>> so the configuration would look like so: > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>>> IgniteConfiguration cfg =3D new > > > > > IgniteConfiguration(); > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>>> cfg.setDataRegionsConfiguration(new > > > > > > > > > > DataRegionsConfiguration() > > > > > > > > > > > > > > >>>>> .setDataRegions( > > > > > > > > > > > > > > >>>>> new MemoryDataRegion() > > > > > > > > > > > > > > >>>>> .setName("volatileCaches") > > > > > > > > > > > > > > >>>>> .setMaxMemorySize(...), > > > > > > > > > > > > > > >>>>> new PersistentDataRegion() > > > > > > > > > > > > > > >>>>> .setName("persistentCaches") > > > > > > > > > > > > > > >>>>> .setMaxMemorySize(...) > > > > > > > > > > > > > > >>>>> .setMaxDiskSize())); > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>>> cfg.setPersistentStoreConfiguration(new > > > > > > > > > > > > > > >> PersistentStoreConfiguration() > > > > > > > > > > > > > > >>> ); > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>>> * we have one class for data region > > > > configuration, > > > > > > but > > > > > > > it > > > > > > > > > > will > > > > > > > > > > > > > have a > > > > > > > > > > > > > > >>>>> sub-bean for persistence configuration: > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>>> IgniteConfiguration cfg =3D new > > > > > IgniteConfiguration(); > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>>> cfg.setDataRegionsConfiguration(new > > > > > > > > > > DataRegionsConfiguration() > > > > > > > > > > > > > > >>>>> .setDataRegions( > > > > > > > > > > > > > > >>>>> new DataRegion() > > > > > > > > > > > > > > >>>>> .setName("volatileCaches") > > > > > > > > > > > > > > >>>>> .setMaxMemorySize(...), > > > > > > > > > > > > > > >>>>> new DataRegion() > > > > > > > > > > > > > > >>>>> .setName("persistentCaches") > > > > > > > > > > > > > > >>>>> .setMaxMemorySize(...), > > > > > > > > > > > > > > >>>>> .setPersistenceConfiguration( > > > > > > > > > > > > > > >>>>> new > > > DataRegionPersistenceConfigura > > > > > > tion() > > > > > > > > > > > > > > >>>>> .setMaxDiskSize(...)))= ); > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>>> cfg.setPersistentStoreConfiguration(new > > > > > > > > > > > > > > >> PersistentStoreConfiguration() > > > > > > > > > > > > > > >>> ); > > > > > > > > > > > > > > >>>>> > > > > > > > > > > > > > > >>>> > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --f403045e4064ce5446055a25d352--