Open maheshreddyks opened 2 months ago
@maheshreddyks any luck with this? Also, did you look at https://github.com/beardedeagle/mnesiac/tree/master to help with auth clustering?
@maheshreddyks Are you able to verify that at the time setup()
is called, all nodes are connected?
Because if they are, it should just work. If you're having issues debugging, can you share an minimal, reproducible example? I'll be in better position to help you figure out what's going on.
@sheharyarn @maheshreddyks's code works for me, but from the README I conclude I don't need to call Memento.Schema.create
unless I want to use disc_copies
, right? In that case, what's the minimum code I need to run if I only want ram_copies
? Memento.Table.create!
doesn't seem enough, as the sync isn't working b/w nodes.
If I don't call Memento.Schema.create
, Memento.info
always returns only one node in running db nodes
.
UPD: I found my answer here.
@maheshreddyks Maybe your problem is this line:
id: MODULE,
Should it be id: __MODULE__
?
I have few issues rolling out Memento on my application.
Implementation
application.ex
children are listed as follows a.{Cluster.Supervisor, [get_topologies(), [name: MyApp.ClusterSupervisor]]}
b.MyApp.Mnesia.MigrateTask.child_spec()
Table Schema
Mememto.info
. I see all pods are onrunning db nodes
.Issue
But I queryall for the Table.
Error
I'm trying to debug it, but its not succesful.