Commit Graph

3 Commits (c6328bd174996377c5ace033415cdeb0bbe2ab95)

Author SHA1 Message Date
absc 60989b17cd Revert "Remove table replica functions."
This reverts commit 529f15c301.

We want to be able to move things around in the end.
2024-07-28 19:26:44 +02:00
absc 529f15c301 Remove table replica functions.
Those were there when this application didn't use fragmented
tables.

Now, all the buckets are fragmented by default and we provide
the grow/1 and shrink/1 functions to expand the tables along
with the fragment properties.
2024-07-28 17:50:04 +02:00
absc 14e6c3cc94 Import the storage application.
This is a small abstraction layer on top of mnesia. It simplifies
table management and addition of replicas and nodes.

Some things to add in the near future:

	* Removing nodes from a mnesia cluster is not supported.
	* Observability and event handling is missing.

While it's possible to perform the aformentioned functions with
the mnesia own APIs, adding some simplifications for day to day
management may be a good idea.

However, the library is already used in another project and it's
good enough for an initial use. It will be extended if and when
required.
2024-07-23 22:09:08 +02:00