Eiji
Hey, following @jmerriweather Elixir + Phoenix + Amnesia + Multi-node everything works awesome. However I just got one idea and I do not see any way to solve it. I would like to firstly setup amnesia only for n1@127.0.0.1 node (following naming in example code) and later decide to add n2@127.0.0.1 node and sync it with n1@127.0.0.1.
Note: When syncing I expect n2@127.0.0.1 to not have any database even created, so there would be no data conflict. I just want to know how to run synced database copy on newly created node.
I would like to do so for example when I’m working on private project on one device and later decide to buy another one and connect it to first device in order to do more things at same time and sync results of all devices, so I can finally connect my PC, create database, sync it and fetch all results from all devices at once.
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 2- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
cohawk
Maybe what you are looking for.
Mnesia dynamic node membership
https://github.com/jpiepkow/syncm
Eiji
@cohawk: Thank you very much!
Looks like
amnesiadoes not implements or simply delegates:mnesia.change_config/2function, so I did not found it inamnesiadocumentation. There is coming one small problem which I have already resolved. When doing that only:schematable is saved and it’s saved in memory only! In order to create amnesiadirectory we need to:Amnesia.Table.copying(:schema, node(), :disk)which changes:schematable type and saves it on disc:schema) we need to callAmnesia.Table.add_copy(table, node(), :disk)