- Valkey, the open source (BSD-licensed) fork of Redis maintained under the Linux Foundation. The default FalkorDB 6.2 images use Valkey 9.2.
- Redis 8.0.0 or later for FalkorDB 6.2. The Redis-based FalkorDB 6.2 images bundle Redis 8.10.2.
GRAPH.* commands, Cypher support, client libraries, and FalkorDB
configuration parameters are the same on both servers. Clients connect on port
6379 either way, so application code does not change when you switch servers.
Choosing a server
Both servers run FalkorDB with the same feature set. Things that differ:- Licensing. Valkey is BSD-licensed. Check the Redis license that applies to the Redis version you deploy.
- Server options. Each server has options the other does not. A server refuses to start on an option it does not recognize.
- Persistence files. Valkey cannot load RDB save files written by Redis 7.4 and later without migration. See Moving a data volume from Redis to Valkey.
Docker images
Each FalkorDB image ships one server, Valkey or Redis. Bothfalkordb/falkordb and falkordb/falkordb-server offer these tags:
This guide assumes the 6.2 tags are published on both image repositories before
the docs are deployed. The image-label procedure below confirms only the server
name and server version, not the FalkorDB release. Confirm the FalkorDB 6.2
release using its release notes or an explicit 6.2 image tag.
Check which server an image runs
Replace<tag> with the image tag, then pull and inspect it:
valkey <version> or redis <version>. Images built before the
labels existed print <no value>; check the release documentation or the
running server instead.
On a running server, check server_name and valkey_version in INFO server
to identify Valkey; Redis reports redis_version. MODULE LIST shows the
loaded FalkorDB module.
Running a Valkey or Redis image
Server arguments: VALKEY_ARGS and REDIS_ARGS
Pass server options with VALKEY_ARGS on a Valkey image and REDIS_ARGS on a
Redis image. If the variable for the image’s own server is unset, empty, or only
whitespace, the image uses the other one, so an existing REDIS_ARGS setting
keeps working on a Valkey image. The two variables are never combined.
Options that only one server understands make the other refuse to start.
Remove Redis-only options from
REDIS_ARGS before running it on a Valkey
image, or set VALKEY_ARGS explicitly.FALKORDB_ARGS configures the FalkorDB module and works the same on both
servers. See Configuration.
The redis-cli command is available in both images, so health checks such as
redis-cli ping work unchanged. Valkey images also include valkey-cli.
Self-hosting without Docker
Load the FalkorDB module into either server with--loadmodule or the
loadmodule configuration directive. Use a FalkorDB 6.2 module for Valkey;
the 6.0.4 release requires Redis.
--loadmodule /path/to/falkordb.so THREAD_COUNT 4. For
production, use the server version bundled with the official image of the same
FalkorDB build, reported by the com.falkordb.server.version image label.
Moving a data volume from Redis to Valkey
Valkey cannot normally load RDB files (version 12 and later) written by Redis 7.4 and later. Earlier FalkorDB images ran Redis 8, so their volumes may contain these files. A command-based AOF can be replayed without converting its format, but it may contain data Valkey cannot read, and a Redis RDB file left alongside it can still prevent startup. Check the migration guide before switching servers. A Valkey image checks the data directory before Valkey starts. If it finds Redis RDB files of version 12 or later, including AOF base RDB files, the container stops, prints the file names, and leaves the volume untouched. You then have two options:- Keep the data on Redis. Continue using the original Redis image, or
verify upgrade compatibility before using
latest-redis. - Migrate to Valkey. In summary:
- Back up the volume and stop application writes until migration is complete.
- On the Redis image, disable query-statistics collection with
GRAPH.CONFIG SET CMD_INFO no, then delete FalkorDB’stelemetry{<graph>}query-statistics streams. If you keep other data, delete or convert data Valkey cannot read, including other streams and hashes with field expiry. Delete a telemetry key only if itsTYPEisstream; leave keys of other types untouched. RunSAVE. If AOF is enabled, first wait for any existing rewrite to finish by checking thataof_rewrite_in_progressandaof_rewrite_scheduledare both0inINFO persistence. Then runBGREWRITEAOFon Redis and wait until both fields are again0andaof_last_bgrewrite_statusisokbefore stopping Redis. - Stop and remove the Redis container without deleting the volume. Start the
Valkey image on that volume with
-e FALKORDB_REDIS_MIGRATION=1, keeping the existing persistence settings, such as--appendonly yeswhen AOF is enabled. - Verify your graphs with
GRAPH.LISTand a query, then runSAVE. If AOF is enabled, runBGREWRITEAOFand confirm Valkey accepted the command. Wait untilaof_rewrite_in_progressandaof_rewrite_scheduledinINFO persistenceare both0, then confirmaof_last_bgrewrite_statusisok. If the rewrite fails, keep the migration container running and writes paused while you retry. Do not remove migration mode or restart without it until the rewrite succeeds. If the volume cannot be recovered in place, stop the Valkey container, restore the step 1 backup to a clean volume, and verify it using the original Redis image before resuming writes. - Stop and remove the migration container, then start the Valkey image again
without
FALKORDB_REDIS_MIGRATION, retaining the persistence settings. While application writes are still paused, wait for the container to accept connections and verifyGRAPH.LISTand a graph query before resuming writes.
Frequently Asked Questions
Does FalkorDB support Valkey?
Does FalkorDB support Valkey?
Yes. FalkorDB 6.2 runs as a module on both Valkey and Redis 8.0.0 or later, with the same commands, Cypher support, and configuration parameters.
Which server does the latest Docker image use?
Which server does the latest Docker image use?
FalkorDB 6.2’s
latest image uses Valkey 9.2. Use latest-redis to run Redis 8.10.2. Older images, including 6.0.4 and 4.x releases, run Redis.Do I need to change my application or client library to use Valkey?
Do I need to change my application or client library to use Valkey?
No. Valkey speaks the same RESP protocol, so FalkorDB client libraries work without changes. Redis and Valkey clients can also send FalkorDB commands if they support custom commands.
Can I keep using REDIS_ARGS on a Valkey image?
Can I keep using REDIS_ARGS on a Valkey image?
Yes, if
VALKEY_ARGS is unset, empty, or only whitespace. The image falls back to REDIS_ARGS. Options that Valkey does not recognize prevent it from starting, so remove Redis-only options or set VALKEY_ARGS instead.Why does my Valkey container refuse to start on an existing volume?
Why does my Valkey container refuse to start on an existing volume?
Check the container logs: the volume may hold RDB files written by Redis 7.4 or later. Run a Redis image on that volume, or follow Moving a data volume from Redis to Valkey.