Install
This page gets the RasterizedDB server onto a machine: from a release archive, a container image, the Arch Linux package, or a source build. Once it is installed, go to Running the server.
System requirements
| Platform | CPU | Other |
|---|---|---|
| Linux x86-64 | x86-64-v3: AVX2, BMI1/2, FMA, LZCNT, MOVBE (Intel Haswell, AMD Excavator or later) | glibc 2.39 or newer (Ubuntu 24.04, Debian 13, RHEL 10), or the static musl build on any Linux |
| Linux ARM64 | any ARMv8-A | as above |
| Windows x86-64 | x86-64-v3 (AVX2) | |
| Windows ARM64 | any ARMv8-A |
On an x86-64 CPU without AVX2 the server stops at once with a message naming the missing instructions, rather than crashing:
this build of RasterizedDB requires an x86-64-v3 CPU (AVX2, BMI1/2, FMA, LZCNT, MOVBE); this CPU (...) lacks: ...macOS is not a release target.
Release archives
Each release on GitHub (tags v<version>) carries:
| Platform | Archive |
|---|---|
| Linux x86-64 | rasterizeddb-server-<version>-linux-x86_64.tar.gz |
| Linux ARM64 | rasterizeddb-server-<version>-linux-arm64.tar.gz |
| Linux x86-64, static (musl) | rasterizeddb-server-<version>-linux-x86_64-musl.tar.gz |
| Linux ARM64, static (musl) | rasterizeddb-server-<version>-linux-arm64-musl.tar.gz |
| Windows x86-64 | rasterizeddb-server-<version>-windows-x86_64.zip |
| Windows ARM64 | rasterizeddb-server-<version>-windows-arm64.zip |
| Arch Linux / CachyOS (x86-64) | rasterizeddb-bin-<version>-1-x86_64.pkg.tar.zst |
| Checksums | SHA256SUMS |
The glibc Linux builds and the Windows builds are compiled with profile-guided optimisation, and the glibc Linux builds are further optimised with BOLT. Use the musl build on a Linux older than glibc 2.39, or on Alpine. The same release also carries the desktop console, rdb-studio-<version>-<platform> (see Studio), the sharding gateway, rasterizeddb-gateway-<version>-<platform> (see Install and run a cluster), and the enterprise edition, rasterizeddb-enterprise-<version>-<platform> (see Installing the enterprise edition). The gateway and enterprise archives come for the same six platforms as the server; Studio comes for four, without the musl builds.
Each archive holds one folder with the server executable, rasterizeddb (rasterizeddb.exe on Windows), plus README.md and LICENSE-GPL.
Linux
VERSION=1.1.0
curl -LO https://github.com/milen-denev/rasterizeddb/releases/download/v$VERSION/rasterizeddb-server-$VERSION-linux-x86_64.tar.gz
curl -LO https://github.com/milen-denev/rasterizeddb/releases/download/v$VERSION/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS
tar xzf rasterizeddb-server-$VERSION-linux-x86_64.tar.gz
sudo install -m 755 rasterizeddb-server-$VERSION-linux-x86_64/rasterizeddb /usr/local/bin/rasterizeddb
rasterizeddb --versionReplace linux-x86_64 with linux-arm64, linux-x86_64-musl or linux-arm64-musl for the other builds.
Windows
$Version = "1.1.0"
Invoke-WebRequest -Uri "https://github.com/milen-denev/rasterizeddb/releases/download/v$Version/rasterizeddb-server-$Version-windows-x86_64.zip" -OutFile rasterizeddb.zip
Expand-Archive rasterizeddb.zip -DestinationPath C:\rasterizeddb
C:\rasterizeddb\rasterizeddb-server-$Version-windows-x86_64\rasterizeddb.exe --versionUse windows-arm64 on an ARM64 machine. Unix sockets and peer authentication are Linux-only; on Windows every client connects over TCP.
Docker
Images for linux/amd64 and linux/arm64 are on Docker Hub as milendenev/rasterizeddb and on GitHub's registry as ghcr.io/milen-denev/rasterizeddb:
docker run -d --name rasterizeddb \
-e RASTERIZEDDB_PG_PASSWORD=change-me \
-p 5432:5432 -p 61170:61170 \
-v rasterizeddb:/var/lib/rasterizeddb \
milendenev/rasterizeddb:latestTags, volumes, Compose and the image with built-in S3 storage are on Docker.
Arch Linux and CachyOS
The release's rasterizeddb-bin package installs the server as /usr/bin/rasterizeddb with a systemd service, a rasterizeddb system user, and the data directory /var/lib/rasterizeddb:
sudo pacman -U rasterizeddb-bin-1.1.0-1-x86_64.pkg.tar.zst
sudoedit /etc/rasterizeddb/rasterizeddb.env # set RASTERIZEDDB_PG_PASSWORD=...
sudo systemctl enable --now rasterizeddbThe service refuses to start while RASTERIZEDDB_PG_PASSWORD is empty. It serves both the PostgreSQL protocol (5432) and the native protocol (61170) on localhost only; add server flags with RASTERIZEDDB_ARGS in the same file. See Running as a systemd service. The release also carries rasterizeddb-bin-aur-<version>.tar.gz, the same PKGBUILD for the AUR.
Building from source
You need stable Rust 1.89 or newer and a C compiler (several dependencies compile C code; on Windows ARM64 that is clang).
From crates.io
RUSTFLAGS="-C target-cpu=x86-64-v3" cargo install rasterizeddb_core
rasterizeddb_core --versionBuilt this way the executable is named rasterizeddb_core, not rasterizeddb; it is otherwise the same program. Leave out RUSTFLAGS on ARM64.
From a clone
git clone https://github.com/milen-denev/rasterizeddb.git
cd rasterizeddb
git checkout v1.1.0
cargo build --release -p rasterizeddb_core --bin rasterizeddb_core
./target/release/rasterizeddb_core --versionA clone builds with the repository's own Cargo settings, which set the x86-64-v3 target and the 32 MiB main-thread stack the server is tested with. The main branch holds the latest release; dev holds work that is in no release yet.
Cargo features
The larger subsystems are Cargo features, so a build that does not need one does not carry its code or dependencies. A feature that is off also removes its flags from --help.
Features in the default set of the 1.1.0 server:
| Feature | What it adds |
|---|---|
memory_pool_reuse | Thread-local free lists in the server's buffer pool. |
replication_compression | zstd compression on replication links. A node without it still talks to one with it, uncompressed. |
s3_backup | Snapshot and point-in-time backup to S3-compatible storage, the BACKUP and SHOW BACKUP… statements, and the --s3-* and --restore-* flags. Turns on storage_pools. |
pg_import | One-shot import of a live PostgreSQL database (--pg-import-* flags, IMPORT DATABASE FROM POSTGRES). |
storage_pools | Several storage directories for one database, placement policies and mirrored backup locations (--storage-* flags, STORAGE statements). |
kv_storage | Tables kept in a key/value object store instead of files. Turns on storage_pools. |
kv_storage_s3 | The S3 backing store for kv_storage. Turns on kv_storage and s3_backup. |
query_stats | SHOW QUERIES, SHOW QUERY STATS, pg_stat_statements and --query-stats. |
kv_cache | The Redis-compatible key/value store: KV … statements and the --kv-* flags. |
persistent_indexes | Index snapshots loaded at open instead of rebuilt (--index-storage snapshot). |
mysql_wire | The MySQL / MariaDB client protocol (--mysql-* flags). |
mssql_wire | The SQL Server (TDS) client protocol (--mssql-* flags). |
db_branching | Database branches: CREATE BRANCH, RESET/PROMOTE/DROP BRANCH, MERGE BRANCH, SHOW BRANCH DIFF. Turns on s3_backup. |
storage_compression | zstd compression of column values declared COMPRESSION zstd. See Compression. |
sharding | Running as one shard of a sharded cluster (--role shard and its flags). Dormant until started that way. |
broker | The message broker and its native protocol (--broker-* flags, BROKER … statements). |
broker_kafka | The Kafka protocol (--kafka-*). Turns on broker. |
broker_amqp | AMQP 0-9-1 (--amqp-*). Turns on broker. |
broker_mqtt | MQTT 3.1.1 and 5.0 (--mqtt-*). Turns on broker. |
Two more are off in a plain cargo build but on in the release archives and images:
| Feature | What it adds |
|---|---|
sharding_raft | Raft replication within a shard. Turns on sharding. |
sharding_2pc | Two-phase commit across shards: PREPARE TRANSACTION, COMMIT PREPARED, ROLLBACK PREPARED. Turns on sharding. |
To build what the release ships, add --features sharding_raft,sharding_2pc.
Features that are never on by default:
| Feature | What it does |
|---|---|
enable_long_row | Allows rows above the standard width limit. |
enable_data_verification | Extra checks on the read path. |
fips | A FIPS 140-3 mode built on the AWS-LC FIPS module: TLS through rustls's FIPS provider, every security hash, MAC and KDF through the module, and md5 logins refused. The server refuses to start unless the module reports FIPS mode. Building it needs CMake, Go and Perl. Not in the release archives or images. |
test_tokens, index_store_failpoints | For the test suites only. A server built with either refuses to start. |
Replication needs no feature: it is always compiled in and switched on with --replication.
To build a smaller server, turn the defaults off and name what you want:
cargo build --release -p rasterizeddb_core --bin rasterizeddb_core \
--no-default-features --features memory_pool_reuse,replication_compression,query_statsFeature changes and existing data
Some features leave a mark in a data directory once used, and a build without the feature then refuses that directory rather than open files it cannot keep correct:
- A directory that has used index snapshots needs a build with
persistent_indexes. - A directory with compressed column values needs a build with
storage_compression.
Keep the same features when you rebuild a server for an existing data directory.
Limits
- The x86-64 release builds and images need an AVX2 (x86-64-v3) CPU. For an older CPU you would have to build from source with a lower
-C target-cpu; such builds are not released or tested. - The glibc Linux builds need glibc 2.39 or newer; use the musl build on older distributions.
- There are no macOS builds.