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

Revision history [back]

click to hide/show revision 1
initial version

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

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 synchronous data between memory and disk.

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,

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

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 synchronous make data between memory and disk.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,

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

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,

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

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,