You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am new to Nebulex and I'm testing the Replicated adapter, but I notice that when a new node joins, it does not copy the cache from the other node. In production, DNSCluster is used to connect the nodes dynamically, but in local tests, I'm simply using Node.connect/1.
Ok, I did a local test but this time adding libcluster, and it seems to work well :)
I guess the problem was my rudimentary use of the cluster with Node.connect/1 (I'm also new to clustering).
I didn't see any of this in the documentation, so, pretty sure I'm doing something wrong with the cluster formation. Any insights? 😅 Anyways, seems like libcluster is a nice addon.
Hey! Yeah, the documentation doesn't mention it, but the distributed adapters rely on "Distributed Erlang/Elixir" and they need the cluster properly set up to work correctly. And yeah, libcluster is the way to go. I agree it would be good to have some documentation about it.
Hello, I am new to Nebulex and I'm testing the Replicated adapter, but I notice that when a new node joins, it does not copy the cache from the other node. In production, DNSCluster is used to connect the nodes dynamically, but in local tests, I'm simply using Node.connect/1.
This is my setup:
I'm starting one local node and creating a new cache record:
Then I join a second node, where it can't access the already created key:
But new writes works fine between the two:
So, my conclusion is that when a new node joins, it is not copying the cache.
Am I overlooking something, or am I doing something wrong?
Thanks!
Elixir 1.17.2 (compiled with Erlang/OTP 27)
The text was updated successfully, but these errors were encountered: