-
Notifications
You must be signed in to change notification settings - Fork 2
planned:Distributed System
PtrMan edited this page Oct 30, 2020
·
2 revisions
This page is about some notes for a future distributed implementation
- memory is supposed to be stored on different nodes.
best strategy for duplication/replication so far:
- concepts are owned by one node, only owner can write to it
- write needs to transfer ownership to local node
- request to node which owns the concept that the local node has to be the new owner this needs to be syncronized for all nodes
- request special copy of concept : send as concept__copy_as_owned message to owning node
- flush all replicated copies of the concept
- move owner to local node (this has to be noted by all nodes)
- send message to old owner to remove concept from its local memory
- do actual modification
- request to node which owns the concept that the local node has to be the new owner this needs to be syncronized for all nodes
- read access can duplicate concepts from the node which owns the concept
- has the advantage that the concept of the concept is automatically replicated to the nodes which use the concept(s) a lot
notes
- number of concepts and number of beliefs must be below maximum for node, node has to transfer concepts to nodes which have free storage