shardmap 0.3.0

Sharded embedded in-memory map with optional cache, protocol, and server internals
Documentation
bind_addr = "127.0.0.1:6380"
max_connections = 4096
shard_count = 4
ttl_sweep_interval_ms = 1000
stats_interval_ms = 5000
transaction_mode = "shard_local"
# "fanout" exposes one public listener. Use "direct_shard" to also expose
# shard-owned direct ports starting at bind_addr + 1, or at
# SHARDCACHE_DIRECT_SHARD_BASE_PORT when that environment variable is set.
server_endpoint_mode = "fanout"

[tiers]
hot_capacity = 2048
warm_capacity = 8192
cold_capacity = 65536
promotion_batch = 256

[cuda]
enabled = false
device_ordinal = 0
hot_tier_bytes = 10737418240
pinned_host_bytes = 536870912
transfer_stream_count = 4
layer_streaming = true
prefer_direct_host_dma = true
pinned_staging_threshold_bytes = 2097152
allow_cpu_fallback = true

[persistence]
enabled = true
data_dir = "./var/shardcache"
segment_size_bytes = 67108864
fsync_interval_ms = 100
snapshot_every_seconds = 300
snapshot_min_writes = 1000
compress_snapshots = true
wal_channel_capacity = 16384