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 9FB95200D09 for ; Tue, 12 Sep 2017 11:40:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9E9321609C7; Tue, 12 Sep 2017 09:40:46 +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 E413B1609C6 for ; Tue, 12 Sep 2017 11:40:45 +0200 (CEST) Received: (qmail 29258 invoked by uid 500); 12 Sep 2017 09:40:44 -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 29239 invoked by uid 99); 12 Sep 2017 09:40:44 -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; Tue, 12 Sep 2017 09:40:44 +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 A7188183A5D for ; Tue, 12 Sep 2017 09:40:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id F-X7LcuGT3-k for ; Tue, 12 Sep 2017 09:40:42 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0760D61269 for ; Tue, 12 Sep 2017 09:40:42 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id f199so56514186wme.0 for ; Tue, 12 Sep 2017 02:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=we6fWXDFsC6Lvr/f2Tf0XqkWn+f3AgLxJqixDcAKCRE=; b=ZfqdGvwSvzRPg1Q9zbZI4f3aw/RqgkedvyiIiSw//ME3ulAOavFGJTCRJsq/hyncHv GTF8ip4igo/W0sVmaReB5WDzmVTVCw7XyL3t+GyqrQ2pM34KdOVylEYzkPnPOg2cs0FA lEg+M87uqtRMFdXUdcsZ2eb+UrwwflNv/xycP3ZgZzkrrnx5KWazmogZ32jPHMZ18k20 G5nTlwQFL5Tcibs1XM7SwMYfL/Y7xDUmkGhfYNjBOiZPcL4fnjIOgPbfpxXr6NQBSvK2 RBy3U5Afl9btdOP5fATxZsdSrw2eiE+ICsBepW459+lSb57WbnICut9jDkIZ50KRh2pa 8RBw== 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=we6fWXDFsC6Lvr/f2Tf0XqkWn+f3AgLxJqixDcAKCRE=; b=J2B6FTK9ojcLxtEsKKDfb/AYb2Di7FeamtDEO1hvZcLGAN+w0U81G6xlLNkULptIit SYf/PqPlHlDH7w6fQYT6PcqdBcjwasIBJlvC0/OHSJ/ilpk7gP9XaUhKYhe9w/sV/Rih l8IHCsy+D21cbP4wmRjmSoFu6aNXi0plbh2+syRa4/lTCkUQxmvJWx4phfm0rMouVQ0E zWGvA6taYiKLtzMyQAuONchculi3gd04QAvUoVVZPlWVm8leWuiprp02wIOWlmdXW2Ux WwBRSJJTfm7DjuuBJubmUu34nxL0+XGCoXu/267Gi4PFMfnhvS75p1PweYHRRvzYDGX/ FG7A== X-Gm-Message-State: AHPjjUg1JJ7HkiO5Mg+yMNgnGVk8sGOBtBxScAAef1fPP6mxqSrL4gws FG8bRiDPPlC6lJH8JNJPiSMVI9R+Tw== X-Google-Smtp-Source: ADKCNb41ZZao7k8SOJyOv97Kjz5hUw5XzAnxcRALdVR9LlmmRf/utXezwwBYPMCHEIM8JxF3Tx9vPNoyOsKo6D/8duk= X-Received: by 10.80.143.130 with SMTP id y2mr12405993edy.113.1505209240854; Tue, 12 Sep 2017 02:40:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.154.66 with HTTP; Tue, 12 Sep 2017 02:40:40 -0700 (PDT) In-Reply-To: References: From: Alexey Goncharuk Date: Tue, 12 Sep 2017 12:40:40 +0300 Message-ID: Subject: Re: Persistence per memory policy configuration To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="f403045c82c61d24700558fad647" archived-at: Tue, 12 Sep 2017 09:40:46 -0000 --f403045c82c61d24700558fad647 Content-Type: text/plain; charset="UTF-8" This is possible, but then if two caches belong to the same memory policy, they must be both either persistence-enabled or persistence-disabled. We can add this validation, but I think this will lead to a greater confusion for a user. 2017-09-12 12:34 GMT+03:00 Pavel Tupitsyn : > Agree with Vladimir. > > Currently we enable persistence cluster-wide by setting > IgniteConfiguration.persistentStoreConfiguration. > Ideally CacheConfiguration.persistenceEnabled should be the only setting I > need to set. > > Thanks, > Pavel > > On Tue, Sep 12, 2017 at 12:28 PM, Vladimir Ozerov > wrote: > > > As a user I would definitely prefer to control persistence through flag > on > > cache configuration. I do not even want to know what "memory policy" is. > > E.g. CacheConfiguration.persistenceEnabled. > > > > On Tue, Sep 12, 2017 at 12:24 PM, Alexey Goncharuk < > > alexey.goncharuk@gmail.com> wrote: > > > > > Igniters, > > > > > > I am currently reviewing a change allowing to enable persistence on a > > > per-memory-policy basis (thanks to K. Dudkov!) and have a question > > > regarding the changes in configuration. > > > > > > The suggested change is to add a flag "persistenceEnabled" (defaults to > > > true) to the memory policy configuration. To keep configuration > > > compatibility, the logic is as follows: > > > > > > If PersistentStoreConfiguration is set, then only memory policies with > > > persistenceEnabled=true flag will be persisted, which is consistent > with > > > the current behavior. To disable persistence, persistenceEnabled flag > > > should be explicitly set to false. > > > > > > If PersistentStoreConfiguration is not set, then all caches are stored > > > in-memory and persistenceEnabled is ignored. > > > > > > While personally, I like this change, I would like to check if there > are > > > any thoughts or objections to this approach. > > > > > > -- > > > Thanks, > > > AG > > > > > > --f403045c82c61d24700558fad647--