Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

1

A question about in-memory DataStore and hard-disk DataStore

asked 2016-12-13 18:17:23 -0800

vinllen gravatar image

updated 2016-12-13 18:21:33 -0800

After following documents in the wiki, I'm still confusing of the relationship between in-memory DataStore and hard-disk DataStore(Snapshot+journay, is it called DistributedDataStore?).

For example, a data store writing operation will write the given data into the in-memory DataStore, but I've no idea whether this transaction return immediately when successfully write into the in-memory DataStore or return until merge into the hard-disk DataStore.

As I know, in-memory is just a cache that contains nodes with type NormalizedNode. But the "hard-disk" DataStore use AKKA and RAFT to store serialization data into the hard disk which can persist data.

When I checking the source code of data writing transaction, I found the BI serializes data which means write data into the hard disk. In my point of view, it may cost some time to write data into hard-disk. Why not accept the mechanism of writing data into memory and using another process/thread to make data between memory and disk consistent?

And, Is data reading transaction read data from cache or hard-disk ?

Please point me out if I have any misunderstanding of DataStore in MD-SAL. Many thanks for any advice.

Best Regards,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-21 05:08:31 -0800

This was asked on the controller-dev mailing list too.

edit flag offensive delete publish link more

Comments

sorry, but no response

vinllen ( 2016-12-21 17:30:48 -0800 )edit

hello vinllen did you find solution ?

Qasmaoui ( 2017-09-26 13:46:06 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-12-13 18:17:23 -0800

Seen: 52 times

Last updated: Dec 21 '16