Explore the architecture of Valkey, one block at a time.

Pace
16 CPU cores

Reach the summit by building MySQL, one block at a time. Point at any block, or tap it, to see what it is.

Real-world time so far 0:00:00
Engineer view & settingsServer version (9.7 or 8.4), CMake options and presets, every build target, CPU cores and the full make log. The tour above uses these settings.

Configure

Your commands


      
Speed
idle
Progress0%
Objects compiled0
Real build clock0:00:00
Estimated real time—

CPU cores

Source tree, bottom to top

compiling linking built disabled by an option Percona addition

$ make -j16


        

make install


          

What's inside Valkey

Valkey 9.2 is built from 2,060 files in the valkey-io/valkey repository. In the Percona build, modules included, 547 source files are compiled; the server itself is one valkey-server binary. These are its layers, from the bottom of the mountain to the top.

  1. Source code git clone. One repository: Valkey keeps its dependencies inside it.
  2. Build options make variables such as BUILD_TLS=yes USE_SYSTEMD=yes. jemalloc checks the machine with its own ./configure.
  3. Bundled dependencies deps/. jemalloc, Lua 5.1, the libvalkey C client library, and small helpers: linenoise, hdr_histogram, fpconv, and lz4.
  4. Foundation src/. Data structures (sds strings, the hashtable, radix trees, listpacks), utilities, and the ae event loop with I/O threads.
  5. Commands and the server core. Strings, hashes, lists, sets, sorted sets, and streams; the keyspace and memory, the module API, scripting with the Lua engine, and ACLs.
  6. Persistence, replication, and cluster. RDB snapshots and the AOF log, replication, Cluster mode with 16,384 hash slots, and Sentinel.
  7. valkey-server and tools. The link with link-time optimization, then valkey-cli, valkey-benchmark, and the unit tests.
  8. Modules and companion tools. From their own repositories: LDAP authentication, the audit module, JSON, Bloom filters, Valkey Search, valkey-proxy, and Valkey Admin.
  9. Tests and packages. The test suite, then packages for 10 Linux platforms on x86_64 and ARM64: 20 builds, each checked after install.
  10. Run and scale. One server as a cache, a primary with two replicas and Sentinel, then the Valkey Helm chart and the Valkey Operator on Kubernetes.

Percona's part: valkey-proxy and the audit module, LDAP authentication in its packages, contributions to Valkey Search, the Helm chart, and the Operator, a seat on the Technical Steering Committee, and the Valkey release pipeline.

Walk through it in the quick tour (about five minutes) or the engineer tour with make options, tips, and typical errors.

Percona Build Lab is a simulator: nothing is compiled in your browser. Component names, sizes and file names come from the real source code; build times are an estimate.

How the simulator works

Questions, ideas or found a mistake? Write to the Percona Community team: community-team@percona.com