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 33BEC200D21 for ; Mon, 2 Oct 2017 06:14:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B9371609D9; Mon, 2 Oct 2017 04:14:54 +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 7183A1609C8 for ; Mon, 2 Oct 2017 06:14:53 +0200 (CEST) Received: (qmail 50622 invoked by uid 500); 2 Oct 2017 04:14:52 -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 50611 invoked by uid 99); 2 Oct 2017 04:14:52 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2017 04:14:52 +0000 Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 894221A0040 for ; Mon, 2 Oct 2017 04:14:51 +0000 (UTC) Received: by mail-qk0-f182.google.com with SMTP id u67so4141095qkg.6 for ; Sun, 01 Oct 2017 21:14:50 -0700 (PDT) X-Gm-Message-State: AMCzsaX7y+VNOIsHPeAImJbZv4vT1GRJLHB9TjvZilL/sKnMt7PMHnSB 3Wu62EBX1opdVzX6V0IJkv/8NgDk3K0kXdnjC/r5ow== X-Google-Smtp-Source: AOwi7QCW2M15NZEOeLzNzNq/PIMUP7aHiouiERMoEh0G+YbhCwN5pvhQtQUeXP3L/ApHpinZJJMQqIpRAY25cEi44BQ= X-Received: by 10.55.148.3 with SMTP id w3mr13731596qkd.26.1506917689941; Sun, 01 Oct 2017 21:14:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.93.82 with HTTP; Sun, 1 Oct 2017 21:14:09 -0700 (PDT) In-Reply-To: <6ea0c1d3-23cb-fad8-caee-df457942fde4@gmail.com> References: <2140C776-05E0-4B92-9D4D-D9DAB55BDE57@apache.org> <78d72402-756c-2f0e-57ec-8a8a364b97e9@gmail.com> <19756338-9DF2-4860-819C-BC2CF463BDCF@apache.org> <6ea0c1d3-23cb-fad8-caee-df457942fde4@gmail.com> From: Dmitriy Setrakyan Date: Mon, 2 Oct 2017 07:14:09 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Persistence per memory policy configuration To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="94eb2c08515c9d7afb055a889df1" archived-at: Mon, 02 Oct 2017 04:14:54 -0000 --94eb2c08515c9d7afb055a889df1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am not sure I like the name "isDefaultDataRegionPersistenceEnabled" - too long. Can we just call it "isDefaultPersistenceEnabled"? D. On Sun, Oct 1, 2017 at 2:41 PM, Ivan Rakov wrote: > Denis, > > 1) You're right. I forgot to include the main flag in > DataRegionConfiguration - *isPersistenceEnabled*. Persistence will be > enabled globally if at least one memory region has this flag set. > Regarding default data region, I've added *isDefaultDataRegionPersistence= Enabled > *to the DataStorageConfiguration. Check the design draft again. > > 2) Of course, we have to maintain API compatibility. Deprecating old > classes and introducing new is just what I meant. > > 3) We can't do that - MemoryMetrics are calculated per memory policy and > PersistenceMetrics are calculated globally. It's a major change to > implement it another way. > > By the way, let's assure the namings for new metrics classes. > DataRegionMetrics instead of MemoryMetrics looks fine. > About PersistenceMetrics - name "*DataStorageMetrics*" is not fair enough > as it will contain only metrics of persistent storage. Probably > *DataStoragePersistenceMetrics*,*PersistentDataStorageMetrics *or even > keeping *PersistenceMetrics* are better. > > What do you think? > > Best Regards, > Ivan Rakov > > > On 29.09.2017 21:12, Denis Magda wrote: > >> Ivan, >> >> Several questions/concerns: >> >> 1. Looking at the new API I can=E2=80=99t grasp how to enable the persis= tence. >> First, how can I enable it globally if there is only one default data >> region defined. Second, how do I enable it per data region. Can=E2=80=99= t find any >> related switches in the draft. >> >> 2. We cannot renamed anything like you=E2=80=99re suggesting to do for >> MemoryMetrics and their beans. We have to deprecate old and introduce ne= w. >> >> 3. I think we should merge Memory and Persistence Metrics into >> DataStorageMetrics for clarity. >> >> =E2=80=94 >> Denis >> >> >> On Sep 29, 2017, at 6:29 AM, Ivan Rakov wrote: >>> >>> Guys, >>> >>> I've attached new configuration design draft to the ticket description: >>> https://issues.apache.org/jira/browse/IGNITE-6030 >>> Please, take a look. Right now is the best time to change name of any >>> property. >>> >>> And question about metrics: are we going to rename MemoryMetrics and >>> PersistenceMetrics respectively (along with their MBeans)? >>> It's not a problem to implement it at all. The only thing that concerns >>> me is that we have to keep deprecated old classes in the codebase. Perh= aps, >>> MemoryMetrics/PersistenceMetrics are intuitive enough. >>> >>> On 29.09.2017 3:16, Dmitriy Setrakyan wrote: >>> >>>> StorageRegion sounds like bad English to me. >>>> >>>> I would go with DataStorageConfiguration and DataRegionConfiguration. >>>> >>>> D. >>>> >>>> On Thu, Sep 28, 2017 at 7:24 AM, Vladimir Ozerov >>>> wrote: >>>> >>>> Guys, >>>>> >>>>> But what is exact desicion? :-) I saw two final options: >>>>> >>>>> 1) StorageConfiguration + StorageRegionConfiguration >>>>> 2) DataStorageConfiguration + DataRegionConfiguration >>>>> >>>>> Which one we choose? >>>>> >>>>> On Thu, Sep 28, 2017 at 5:10 PM, Yakov Zhdanov >>>>> wrote: >>>>> >>>>> I guess it is safe to assume that at this point we came to a consensu= s? >>>>>>> >>>>>> Alex, I think so. Let's carve it in stone (code). >>>>>> >>>>>> --Yakov >>>>>> >>>>>> > --94eb2c08515c9d7afb055a889df1--