-
Notifications
You must be signed in to change notification settings - Fork 579
Enhanced FLASH Support (PRO)
KeyDB Pro includes a new enhanced FLASH storage feature based upon RocksDB. This new FLASH feature offsers substantially higher performance than was possible with our previous FLASH implementation. In addition FLASH offers persistent storage without requiring periodic RDB backups.
To enable FLASH support add the following lines to your configuration file:
# Enable the use of KeyDB Pro
enable-pro
# Enable FLASH
storage-provider flash /path/to/db
For best performance ensure your database file is on a fast drive, preferably NVMe.
When using FLASH you can limit RAM use with the max-memory configuration option. When you combine max-memory and FLASH KeyDB will keep the most commonly accessed data in RAM up to the memory limit you specify. By default when you enable FLASH KeyDB will set a maxmemory limit of half the system memory, and an LRU eviction policy.
The FLASH storage provider is always persistent. There is no requirement to save or load RDB files if FLASH is used. You may disable periodic RDB saving by adding: save ""
to your configuration file.
On boot KeyDB will load any existing data in your FLASH database.
KeyDB Pro's FLASH support offers near DRAM performance. For benchmarks and latency measurements see our blog post on this subject: https://docs.keydb.dev/blog/2020/01/05/blog-post/
For more information on KeyDB Pro see the Pro wiki page