0.6.1
- Adds inspection helpers to list key groups without reading values, apply
page limits after filtering, and read the final page in a key range.
slap_inspectuses these helpers for partition, log and document listings and backward message paging.
0.6.0
- Uses
slap_slatedb0.4.0, which upgrades SlateDB from 0.17 to 0.18. Rollback to SlateDB 0.17 is not guaranteed; see the upgrade precautions.
0.5.1
- Improves shard-layout mismatch messages, including singular shard counts.
When
_cluster/layoutis absent,:layout_mismatchreasons retainstored: :unrecordedand addfound: {:shard_exists, name} | {:shard_missing, last, first}. In:shard_missing,lastis the configured last shard path;firstis the shard-0 database path found under one of the checked name widths.
0.5.0
- Refuses to start when
:shardsdiffers from the store's recorded shard count, preventing records from being routed to the wrong shard and reading as missing. On the first start with this release, stores created byslap_cluster0.4.0 or earlier are checked before the shard count is recorded; see Choosing the shard count. Withprobe: :background, a mismatch stops the cluster. - Fixes database closure being interrupted when a shard is killed or exceeds its shutdown timeout. Closure now finishes independently, and a replacement shard on the same node waits for it before opening the database.
- Uses
slap_slatedb0.3.0. If using local storage ({:local, directory}), writes now share one exclusive OS lock per store root. Before starting this version, stop all processes running older Slap versions that access the same store; older versions do not take this lock. Writes to local object storage now sync to disk; see the upgrade precautions. Slap.Cluster.Strategy.ObjectLeaseworks with a local store ({:local, directory}) shared by processes on one host. Network filesystem mounts remain unsupported.- Adds read-only inspection of raw stored rows for Slap Inspect. Reads use the shard owner's open database handle, return only durable data and limit reply sizes. Each node admits one inspection request at a time.
- Adds
Slap.Cluster.clusters/0to list a node's clusters, shard counts, local shards and services. Shard children modules report services through the new optionalSlap.Cluster.ShardChildren.services/0callback.
0.4.0
- Adds
Slap.Cluster.status/2for startup probe results, shard lifecycle state and recorded failures, andSlap.Cluster.await_ready/2to wait for every shard to finish starting. Cluster modules exposestatus/1andawait_ready/1. - Readiness checks remote owners and direct shard children, including restarts. It does not check storage reachability or write durability.
- The timeouts of
status/2andawait_ready/2cover the whole call.await_ready/2rediscovers owners after placement changes, including when its timeout is:infinity.
0.3.0
- Distributed routing ignores placements from a killed strategy while the cluster retries its background store probe or awaits a new placement round.
:settingsmaps from cluster defaults, the application environment andstart_link/1are merged by key. Later sources override matching keys.probe: :backgroundstarts the cluster before the store passes its probe. It retries after 1 s, backs off to at most 30 s, and opens shards only after a successful probe.- A strategy start failure is now reported under
Slap.Cluster.Probechild id instead of:strategy; the reason is unchanged.
0.2.0
- Uses
slap_slatedb0.2.0, which upgrades SlateDB from 0.16 to 0.17. Databases written by 0.1.0 open unchanged.
0.1.0
Initial release of slap_cluster.