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

2016-09-19 Thread Robert Varga
On 09/19/2016 02:27 PM, Sela, Guy wrote: > So in order to get a snapshot of time > So could I theoretically do: > * DOMDataReadTransaction.read(YangInstanceIdentifier.EMPTY) > * Get the BI root. > * Extract the BI subtrees from the BI Root > * Convert the BI subtrees to BA subtrees using TPUtils-l

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

2016-09-19 Thread Sela, Guy
: controller-dev Subject: Re: [controller-dev] [documentation] Questions about ODL clustering On 09/19/2016 12:20 PM, Sela, Guy wrote: > Oh I missed the fact you are talking about the new API that returns > NormalizedNode (BI). > I was referring to th

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

2016-09-19 Thread Robert Varga
On 09/19/2016 12:20 PM, Sela, Guy wrote: > Oh I missed the fact you are talking about the new API that returns > NormalizedNode (BI). > I was referring to the old API: > org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction.read(..) Top-level root is not representable in BA because

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

2016-09-19 Thread Sela, Guy
: 'Robert Varga' ; Tom Pantelis Cc: controller-dev Subject: RE: [controller-dev] [documentation] Questions about ODL clustering If they don't have a joint root in BA world, what can I do with the value returned from issuing DOMDataReadTransaction.read(YangInstanceIdentifier.EMPTY)? It is

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

2016-09-19 Thread Sela, Guy
onday, September 19, 2016 12:24 PM To: Sela, Guy ; Tom Pantelis Cc: controller-dev Subject: Re: [controller-dev] [documentation] Questions about ODL clustering On 09/19/2016 11:13 AM, Sela, Guy wrote: > Do all of them have a joint root? (YangInstanceIdentifier.EMPTY)? In BI world they do. In BA wo

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

2016-09-19 Thread Robert Varga
On 09/19/2016 11:13 AM, Sela, Guy wrote: > Do all of them have a joint root? (YangInstanceIdentifier.EMPTY)? In BI world they do. In BA world they do not. > Will issuing DOMDataReadTransaction.read(YangInstanceIdentifier.EMPTY) > provide me a snapshot of all? > Sounds like it can't work in a Clu

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

2016-09-19 Thread Sela, Guy
ailto:controller-dev-boun...@lists.opendaylight.org] On Behalf Of Robert Varga Sent: Monday, September 19, 2016 11:26 AM To: Sela, Guy ; Tom Pantelis Cc: controller-dev Subject: Re: [controller-dev] [documentation] Questions about ODL clustering On 09/18/2016 02:28 PM, Sela, Guy wrote: > Wh

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

2016-09-19 Thread Robert Varga
On 09/18/2016 02:24 PM, Sela, Guy wrote: > Are there any plans to do something regarding snapshots that resembles > Snapshot Isolation in a DB? All current shard/data store implementations are based on InMemoryDataTree, which features MVCC-based full snapshot isolation.. Bye, Robert signature

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

2016-09-19 Thread Robert Varga
On 09/18/2016 02:28 PM, Sela, Guy wrote: > What I mean is to be able to create a snapshot of the entire state and not > only a specific data tree. Do you by 'specific data tree' mean 'specific subtree'? We do not guarantee consistency across shards, but you can read all shards by issuing a DOMDa

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

2016-09-19 Thread Sela, Guy
Tom Pantelis Cc: controller-dev Subject: RE: [controller-dev] [documentation] Questions about ODL clustering 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 the

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

2016-09-18 Thread Muthukumaran K
ylight.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 snaps

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

2016-09-18 Thread Sela, Guy
: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

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

2016-09-18 Thread Sela, Guy
...@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

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? > > Doe

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

2016-09-17 Thread Sela, Guy
? From: Sela, Guy Sent: Thursday, September 15, 2016 6:17 PM To: 'Tom Pantelis' Cc: Muthukumaran K ; Moiz Raja (moraja) ; Srini Seetharaman ; controller-dev Subject: RE: [controller-dev] [documentation] Questions about ODL clustering ReadOnlyTransaction tx = db.newReadOnlyT

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

2016-09-15 Thread Sela, Guy
t data trees? From: Tom Pantelis [mailto:tompante...@gmail.com] Sent: Thursday, September 15, 2016 6:13 PM To: Sela, Guy Cc: Muthukumaran K ; Moiz Raja (moraja) ; Srini Seetharaman ; controller-dev Subject: Re: [controller-dev] [documentation] Questions about ODL clustering Not sure I follow your

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

2016-09-15 Thread Tom Pantelis
o: > controller-dev-boun...@lists.opendaylight.org] *On Behalf Of *Muthukumaran > K > *Sent:* Thursday, September 15, 2016 7:29 AM > *To:* Moiz Raja (moraja) ; Tom Pantelis < > tompante...@gmail.com>; Srini Seetharaman > *Cc:* controller-dev > > > *Subject:* R

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

2016-09-15 Thread Sela, Guy
, Guy Cc: Muthukumaran K ; Moiz Raja (moraja) ; Srini Seetharaman ; controller-dev Subject: Re: [controller-dev] [documentation] Questions about ODL clustering I assume DataTree X and Y are in different shards. The snapshot of the DataTree in a backend shard is actually taken at the time of the

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

2016-09-15 Thread Tom Pantelis
ndaylight.org [ > mailto:controller-dev-boun...@lists.opendaylight.org > ] *On Behalf Of *Moiz Raja > (moraja) > *Sent:* Thursday, September 15, 2016 3:06 AM > *To:* Tom Pantelis; Srini Seetharaman > *Cc:* controller-dev > *Subject:* Re: [controller-dev] [documentation] Questions ab

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

2016-09-15 Thread Sela, Guy
Raja (moraja) ; Tom Pantelis ; Srini Seetharaman Cc: controller-dev Subject: Re: [controller-dev] [documentation] Questions about ODL clustering Hi Srini, We have tried the approach what Moiz had mentioned – using CDTCN and caching data, and it was quite performant in one of our reference

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

2016-09-14 Thread Muthukumaran K
...@lists.opendaylight.org [mailto:controller-dev-boun...@lists.opendaylight.org] On Behalf Of Moiz Raja (moraja) Sent: Thursday, September 15, 2016 3:06 AM To: Tom Pantelis; Srini Seetharaman Cc: controller-dev Subject: Re: [controller-dev] [documentation] Questions about ODL clustering The single use

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

2016-09-14 Thread Moiz Raja (moraja)
PM To: Srini Seetharaman mailto:srini.seethara...@gmail.com>> Cc: Moiz Raja mailto:mor...@cisco.com>>, controller-dev mailto:controller-dev@lists.opendaylight.org>> Subject: Re: [controller-dev] [documentation] Questions about ODL clustering All reads still go to the le

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

2016-09-14 Thread Tom Pantelis
All reads still go to the leader. There has been an enhancement https://bugs.opendaylight.org/show_bug.cgi?id=2504 open for this but hasn't been implemented. There is an alternative way using a DataTreeChangeListener as Moiz mentioned in the bug. On Wed, Sep 14, 2016 at 4:57 PM, Srini Seetharaman

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

2016-09-14 Thread Srini Seetharaman
With Beryllium-SR3, I just verified using tcpdump on port 2550 that the data for the read operation at the follower came over the network from the shard leader. Is there any plan with Boron to make it a local read from the replica? On Wed, Sep 14, 2016 at 1:43 PM, Srini Seetharaman < srini.seetha

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

2016-09-14 Thread Srini Seetharaman
Hi Tom and Moiz Is it still the case with Beryllium and Boron that the read transactions from a follower are forwarded to the leader? Thanks Srini. On Sat, Feb 28, 2015 at 8:26 AM, Tom Pantelis wrote: > Colin, Tianzhu > > Reads are also forwarded to the leader so, yes, remote reads would take >