| Directive | Default | Description | |-----------|---------|-------------| | server-threads | 2 | Number of threads for handling client requests. | | server-thread-affinity | (none) | CPU core binding for server threads (e.g., 0-3 ). | | io-threads | 1 | Threads for I/O operations (reads/writes). | | io-threads-do-reads | no | Whether I/O threads also handle read commands. | | async-flush | no | Perform flush operations asynchronously. | | async-flush-threads | 4 | Threads for async flush. |
Use active-replica cautiously — it enables optimistic write conflicts. | Directive | Default | Description | |-----------|---------|-------------| | maxclients | 10000 | Max simultaneous client connections. | | client-output-buffer-limit normal | 0 0 0 | Normal clients: hard, soft, seconds. | | client-output-buffer-limit replica | 256mb 64mb 60 | Replica clients. | | client-output-buffer-limit pubsub | 32mb 8mb 60 | Pub/sub clients. | 12. Lazy Freeing (Non-Blocking Deletion) KeyDB supports non-blocking deletes for large keys.
For production, bind to specific internal IPs, enable keepalive, and set a reasonable timeout. 4. Threading Model (KeyDB-Specific) This is the core differentiator from Redis.
| Directive | Default | Description | |-----------|---------|-------------| | server-threads | 2 | Number of threads for handling client requests. | | server-thread-affinity | (none) | CPU core binding for server threads (e.g., 0-3 ). | | io-threads | 1 | Threads for I/O operations (reads/writes). | | io-threads-do-reads | no | Whether I/O threads also handle read commands. | | async-flush | no | Perform flush operations asynchronously. | | async-flush-threads | 4 | Threads for async flush. |
Use active-replica cautiously — it enables optimistic write conflicts. | Directive | Default | Description | |-----------|---------|-------------| | maxclients | 10000 | Max simultaneous client connections. | | client-output-buffer-limit normal | 0 0 0 | Normal clients: hard, soft, seconds. | | client-output-buffer-limit replica | 256mb 64mb 60 | Replica clients. | | client-output-buffer-limit pubsub | 32mb 8mb 60 | Pub/sub clients. | 12. Lazy Freeing (Non-Blocking Deletion) KeyDB supports non-blocking deletes for large keys. keydb.cfg
For production, bind to specific internal IPs, enable keepalive, and set a reasonable timeout. 4. Threading Model (KeyDB-Specific) This is the core differentiator from Redis. | | io-threads-do-reads | no | Whether I/O