Guys, I think I got the point now.

Let's check the final design:

*DataStorageConfiguration* will have *isDefaultPersistenceEnabled* property (default = false), which will be used for enabling persistence in default data region. *DataRegionConfiguration* will have *isPersistenceEnabled* property, which will be used for enabling persistence in corresponding data region. If value is not set, value of *DataStorageConfiguration::isDefaultPersistenceEnabled* will be used by default.

Best Regards,
Ivan Rakov


On 02.10.2017 7:49, Dmitriy Setrakyan wrote:
On Mon, Oct 2, 2017 at 7:46 AM, Denis Magda <dma...@apache.org> wrote:

On Oct 1, 2017, at 4:41 AM, Ivan Rakov <ivan.glu...@gmail.com> wrote:

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.

I’m confused. Why the persistence should be enabled *globally* if the
purpose is to have it set for a specific region? If it’s enabled for region
A only, I don’t want to have it activated for region B.

Yes, you are right. By default the persistence will be disabled globally.
But we should also give users a way to switch the default behavior from
in-memory only (no-persistence) to persistence.


Reply via email to