Re: [controller-dev] [documentation] Questions about ODL clustering

2016-09-18 Thread Muthukumaran K
Hi Guy, 

There is a jmx operation (can be invoked via JConsole) to dump the snapshot on 
demand on per shard basis for config DS shards. 

Transactions do take snapshots but they are inmemory. As you surmise, 
transaction-level snapshotting is "Isolation" part of ACID.  
A good explanation was given by Robert in following mail threads  

https://lists.opendaylight.org/pipermail/controller-dev/2016-July/012298.html 
https://lists.opendaylight.org/pipermail/controller-dev/2016-July/012331.html

Regards
Muthu


-Original Message-
From: controller-dev-boun...@lists.opendaylight.org 
[mailto:controller-dev-boun...@lists.opendaylight.org] On Behalf Of Sela, Guy
Sent: Sunday, September 18, 2016 5:59 PM
To: Robert Varga; Tom Pantelis
Cc: controller-dev
Subject: Re: [controller-dev] [documentation] Questions about ODL clustering

What I mean is to be able to create a snapshot of the entire state and not only 
a specific data tree.


-Original Message-
From: controller-dev-boun...@lists.opendaylight.org 
[mailto:controller-dev-boun...@lists.opendaylight.org] On Behalf Of Sela, Guy
Sent: Sunday, September 18, 2016 3:25 PM
To: Robert Varga ; Tom Pantelis 
Cc: controller-dev 
Subject: Re: [controller-dev] [documentation] Questions about ODL clustering

Thanks.
Are there any plans to do something regarding snapshots that resembles Snapshot 
Isolation in a DB?

For example:
https://msdn.microsoft.com/en-us/library/tcbchxcb(v=vs.110).aspx

-Original Message-
From: controller-dev-boun...@lists.opendaylight.org 
[mailto:controller-dev-boun...@lists.opendaylight.org] On Behalf Of Robert Varga
Sent: Sunday, September 18, 2016 1:28 PM
To: Sela, Guy ; Tom Pantelis 
Cc: controller-dev 
Subject: Re: [controller-dev] [documentation] Questions about ODL clustering

On 09/15/2016 05:17 PM, Sela, Guy wrote:
> ReadOnlyTransaction tx = db.newReadOnlyTransaction();
> 
> CheckedFuture, ReadFailedException> read1 = 
> tx.read(X, Y)
> 
> CheckedFuture, ReadFailedException> read2 = 
> tx.read(Z, H)
> 
>  
> 
> read1 and read2 were read from different snapshots?
> 
> Does the answer change if they were invoked on the same/different data 
> trees?
> 

If both reads target the same shard, they will be executed from the same 
snapshot.

Bye,
Robert

___
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev
___
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev
___
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev


Re: [controller-dev] [documentation] Questions about ODL clustering

2016-09-18 Thread Sela, Guy
What I mean is to be able to create a snapshot of the entire state and not only 
a specific data tree.


-Original Message-
From: controller-dev-boun...@lists.opendaylight.org 
[mailto:controller-dev-boun...@lists.opendaylight.org] On Behalf Of Sela, Guy
Sent: Sunday, September 18, 2016 3:25 PM
To: Robert Varga ; Tom Pantelis 
Cc: controller-dev 
Subject: Re: [controller-dev] [documentation] Questions about ODL clustering

Thanks.
Are there any plans to do something regarding snapshots that resembles Snapshot 
Isolation in a DB?

For example:
https://msdn.microsoft.com/en-us/library/tcbchxcb(v=vs.110).aspx

-Original Message-
From: controller-dev-boun...@lists.opendaylight.org 
[mailto:controller-dev-boun...@lists.opendaylight.org] On Behalf Of Robert Varga
Sent: Sunday, September 18, 2016 1:28 PM
To: Sela, Guy ; Tom Pantelis 
Cc: controller-dev 
Subject: Re: [controller-dev] [documentation] Questions about ODL clustering

On 09/15/2016 05:17 PM, Sela, Guy wrote:
> ReadOnlyTransaction tx = db.newReadOnlyTransaction();
> 
> CheckedFuture, ReadFailedException> read1 = 
> tx.read(X, Y)
> 
> CheckedFuture, ReadFailedException> read2 = 
> tx.read(Z, H)
> 
>  
> 
> read1 and read2 were read from different snapshots?
> 
> Does the answer change if they were invoked on the same/different data 
> trees?
> 

If both reads target the same shard, they will be executed from the same 
snapshot.

Bye,
Robert

___
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev
___
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev


Re: [controller-dev] [documentation] Questions about ODL clustering

2016-09-18 Thread Sela, Guy
Thanks.
Are there any plans to do something regarding snapshots that resembles Snapshot 
Isolation in a DB?

For example:
https://msdn.microsoft.com/en-us/library/tcbchxcb(v=vs.110).aspx

-Original Message-
From: controller-dev-boun...@lists.opendaylight.org 
[mailto:controller-dev-boun...@lists.opendaylight.org] On Behalf Of Robert Varga
Sent: Sunday, September 18, 2016 1:28 PM
To: Sela, Guy ; Tom Pantelis 
Cc: controller-dev 
Subject: Re: [controller-dev] [documentation] Questions about ODL clustering

On 09/15/2016 05:17 PM, Sela, Guy wrote:
> ReadOnlyTransaction tx = db.newReadOnlyTransaction();
> 
> CheckedFuture, ReadFailedException> read1 = 
> tx.read(X, Y)
> 
> CheckedFuture, ReadFailedException> read2 = 
> tx.read(Z, H)
> 
>  
> 
> read1 and read2 were read from different snapshots?
> 
> Does the answer change if they were invoked on the same/different data 
> trees?
> 

If both reads target the same shard, they will be executed from the same 
snapshot.

Bye,
Robert

___
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev


Re: [controller-dev] [documentation] Questions about ODL clustering

2016-09-18 Thread Robert Varga
On 09/15/2016 05:17 PM, Sela, Guy wrote:
> ReadOnlyTransaction tx = db.newReadOnlyTransaction();
> 
> CheckedFuture, ReadFailedException> read1 =
> tx.read(X, Y)
> 
> CheckedFuture, ReadFailedException> read2 =
> tx.read(Z, H)
> 
>  
> 
> read1 and read2 were read from different snapshots?
> 
> Does the answer change if they were invoked on the same/different data
> trees?
> 

If both reads target the same shard, they will be executed from the same
snapshot.

Bye,
Robert



signature.asc
Description: OpenPGP digital signature
___
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev


[controller-dev] Data Change Notification question

2016-09-18 Thread Sela, Guy
Hi,
Looking at this wiki: 
https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Architecture:Clustering
I found this section:
Data Change 
Notifications[edit]
Registration[edit]

Data change notifications can be thought of as continuous queries where the 
query is specified once and instead of returning the matching data immediately, 
the system sends notifications when matching data appear in the data tree. As 
such, data change subscriptions can be customized just like the data queries.

The following types of subscriptions will be supported:
*Query based on instance identifier
*Query based on object class (Extend YANG with the notion of an Object 
Class?)
*Query based on attribute filters
*Scoped query based on Object Class
*Scoped query on attribute filters

Question: Do we need to support the notion of a custom filter where a piece of 
Java code can be supplied by the consumer which will be invoked for every 
matching node during notification and only those nodes which pass the filter 
will be returned.



Which of the mentioned types are already supported? Are there any plans for 
other types?


Thanks,
Guy Sela

___
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev