Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DDBB318587 for ; Tue, 27 Oct 2015 01:54:30 +0000 (UTC) Received: (qmail 79083 invoked by uid 500); 27 Oct 2015 01:54:30 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 79035 invoked by uid 500); 27 Oct 2015 01:54:30 -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 79024 invoked by uid 99); 27 Oct 2015 01:54:30 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2015 01:54:30 +0000 Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 608721A0094 for ; Tue, 27 Oct 2015 01:54:30 +0000 (UTC) Received: by obcqt19 with SMTP id qt19so158432263obc.3 for ; Mon, 26 Oct 2015 18:54:29 -0700 (PDT) X-Gm-Message-State: ALoCoQkJ3w9YC/YaDk7YDpO9nk3RyC8vGd6GpqlFSfajSgldXLWhpSAF/TOachKv8fIGoiteZQDp X-Received: by 10.182.91.80 with SMTP id cc16mr26659417obb.19.1445910869765; Mon, 26 Oct 2015 18:54:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.108.205 with HTTP; Mon, 26 Oct 2015 18:53:50 -0700 (PDT) In-Reply-To: References: From: Dmitriy Setrakyan Date: Mon, 26 Oct 2015 18:53:50 -0700 Message-ID: Subject: Re: Data Snapshots in Ignite To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=e89a8fb200b4c540d105230c5b05 --e89a8fb200b4c540d105230c5b05 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Oct 26, 2015 at 5:31 AM, Raul Kripalani wrote: > Hi, > > Thanks all for chiming in. It seems like this feature could be of interes= t > to the user community, so I've opened a ticket to continue maturing the > idea there: > > https://issues.apache.org/jira/browse/IGNITE-1789 > > We may need to create a Wiki page later to collaborate around specifics a= nd > design. > Thanks Raul. I agree that Wiki page may be in order. I have responded in the ticket. Take a look and see if you agree with my thinking. > Regards, > > *Ra=C3=BAl Kripalani* > PMC & Committer @ Apache Ignite, Apache Camel | Integration, Big Data and > Messaging Engineer > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani > http://blog.raulkr.net | twitter: @raulvk > > On Wed, Oct 21, 2015 at 10:06 AM, Raul Kripalani wrote= : > > > Hey guys, > > > > LevelDb has a functionality called Snapshots which provides a consisten= t > > read-only view of the DB at a given point in time, against which querie= s > > can be executed. > > > > To my knowledge, this functionality doesn't exist in the world of open > > source In-Memory Computing. Ignite could be an innovator here. > > > > Ignite Snapshots would allow queries, distributed closures, map-reduce > > jobs, etc. It could be useful for Spark RDDs to avoid data shift while > the > > computation is taking place (not sure if there's already some form of > > snapshotting, though). Same for IGFS. > > > > Example usage: > > > > IgniteCacheSnapshot snapshot =3D > > ignite.cache("mycache").snapshots().create(); > > > > // all three queries are executed against a view of the cache at th= e > > point in time where it was snapshotted > > snapshot.query("select ..."); > > snapshot.query("select ..."); > > snapshot.query("select ..."); > > > > In fact, it would be awesome to be able to logically save this snapshot > > with a name so that later jobs, queries, etc. can run on top of it, e.g= .: > > > > IgniteCacheSnapshot snapshot =3D > > ignite.cache("mycache").snapshots().create("abc"); > > > > // ... > > // in another module of a distributed system, or in another thread = in > > parallel, use the saved snapshot > > IgniteCacheSnapshot snapshot =3D > > ignite.cache("mycache").snapshots().get("abc"); > > .... > > > > Named snapshotting can be dangerous due to data retention, e.g. imagine > > keeping a snapshot for 2 weeks! So we should force the user to specify = a > > TTL: > > > > IgniteCacheSnapshot snapshot =3D > > ignite.cache("mycache").snapshots().create("abc", 2, TimeUnit.HOURS); > > > > Such functionality would allow for "reporting checkpoints" and "time > > travel", for example, where you want users to be able to query the data > as > > it stood 1 hour ago, 2 hours ago, etc. > > > > What do you think? > > > > P.S.: We do have some form of snapshotting in the Compute checkpointing > > functionality =E2=80=93 but my proposal is to generalise the notion. > > > > Regards, > > > > *Ra=C3=BAl Kripalani* > > PMC & Committer @ Apache Ignite, Apache Camel | Integration, Big Data a= nd > > Messaging Engineer > > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalan= i > > http://blog.raulkr.net | twitter: @raulvk > > > --e89a8fb200b4c540d105230c5b05--