如果我将 2 个节点聚集在一起,通过我的实验和在线阅读,我了解到节点 A 将类似于“主”节点,节点 B 将复制表(如果我愿意)。 (否则它只会远程访问它们。)
如果节点 B 出现故障会发生什么?它只是重新复制自上次以来更改过的数据吗?
如果节点 A 宕机也会发生什么。节点B还能用吗?如果是这样,如果节点 B 上的数据发生更改,节点 A 是否会将其复制到自身?到目前为止我的理解是节点 A 并不关心节点 B 说什么,但请有人告诉我我错了。
If I am clustering 2 nodes together, from my experimenting and reading up online I understand that Node A will be like a "master" node and Node B will copy the tables over if I want them to. (Otherwise it will just access them remotely.)
What happens though if Node B goes down? Does it just recopy the data that's been changed since it was last up?
Also what happens if Node A goes down. Is Node B still usable? If so, if data is changed on Node B, does Node A copy it over to itself? My understanding so far is that Node A doesn't care about what Node B says, but someone please tell me I'm wrong.
发布评论
评论(1)
由于接受的答案是仅链接的答案,我想我会为任何过来的人记录这一点:
mnesia:info()
来查看这一点。有一个remote
表列表,以及每个本地表的列表:< code>ram_copies、disc_copies
和disc_only_copies
。)Since the accepted answer is a link only answer, figured I would document this for anyone who comes along:
mnesia:info()
from the console. There is a list ofremote
tables, and a list for each of the local-tables:ram_copies
,disc_copies
anddisc_only_copies
.)