# SMKV documentation

SMKV is a Rust database and persistent distributed cache for read-heavy applications. Run it on your own Linux hosts, keep the key index in memory, and store records on local disk. Use byte values or schemaless tables with typed columns.

## Start with a working node

1. [Install SMKV](installation.html): install only the components each host needs.
2. [Write your first records](quickstart.html): try reads, writes, expiration, and restart recovery.
3. [Configure a node](configuration.html): choose explicit storage and memory headroom.
4. [Create a cluster](cluster.html): distribute partitions across primary and replica owners.
5. [Connect your application](sdk-clients.html): choose from eight SDKs and handle errors deliberately.

## Query your data

Start with [Query with SMQL](smql.html) for CLI and web-console examples, typed
results, and pagination. The [language reference](smql-reference.html) lists all
supported syntax and limits. SMQL is a development feature for read-only queries
over one table, with no joins.

## Choose the right release

**Public APT baseline: 0.1.0-2.** The signed repository provides server, tools, and dashboard packages for Ubuntu 24.04 amd64. It does not include all features described in these guides.

**Development server baseline: 0.1.1 source at a019cc5.** Capacity protection, authority failover, replicated acknowledgments, resizing, optional transport security, scans, and manual backup belong to the newer development line. Obtain a matching build and SDK through [early-access support](mailto:info@simplemagic.com) before following those sections. A package with the same application version is not necessarily built from this revision.

**SDK source updates:** the [SDK guides](sdk-clients.html) cover the subsequent additions of Rust, Python, Node.js, C, Java, .NET, and PHP clients. These source packages are not part of the public APT baseline or public language registries.

**Experimental build:** S3 cross-cluster sync and scheduled sync checkpoints require an explicitly enabled build feature and use a separate compatibility contract. They are not enabled by ordinary installation.

Guides distinguish these tracks. Check installed package versions and each binary's `--help`; do not assume a source-tree feature is available in APT. Release availability was reviewed on October 11, 2026.

## Understand the operating model

- A node owns persistent local files. Keep its complete data directory across restart.
- A partition has one primary and, in RF2 clusters, one replica on a different node.
- Default writes are asynchronous. A successful response does not guarantee survival of primary or machine failure.
- Local sync, replica confirmation, and durable replica confirmation provide different guarantees. Select them explicitly.
- Replica reads may be stale. Scans are best-effort and yield to foreground reads and writes.
- Partition count is chosen before ingestion; adding nodes moves ownership without changing that count.

SMKV is early access. Validate your record sizes, load, failure behavior, and recovery time before production use. Development tools include [SMQL](smql.html), a bounded read-only SQL-like interface for one table. There are no joins, cross-record transactions, secondary indexes, or automatic capacity eviction.

## Operate and recover

Use [monitoring](monitoring.html) to inspect the cluster, [backup and restore](backup.html) to create portable recovery archives, and [operations](operations.html) for maintenance and resizing. The [troubleshooting guide](troubleshooting.html) starts with symptoms and concrete checks.

For sizing, release access, or support, contact [info@simplemagic.com](mailto:info@simplemagic.com). No public source repository is required to install the signed packages.

## Database scope

Database-aware development builds support logical databases; published APT
0.1.0-2 does not. See [logical databases](databases.html) for client selection,
permissions, shared resource limits, backup/sync behavior and upgrade constraints.

## Evaluate an Aerospike migration

The development-only [Aerospike migration guide](aerospike-migration.html) explains
how to convert supported full exports into local or S3 SMKV backups, map keys and
tables, and verify a restore. Stored user keys are required. This initial tool
supports scalar bins and offline cutover; it is not included in public APT packages.
