June 2023 Summaries
2 posts from Dragonfly
Filter
Month:
Year:
Post Summaries
Back to Blog
Monitoring in-memory datastores like Dragonfly requires tracking memory consumption as well as other metrics such as CPU usage and client-side metrics. In this blog post, we discussed how to monitor Dragonfly using Prometheus and add Grafana for visualization. We covered setting up a simple environment with Docker and Docker Compose, exposing metrics in Prometheus format, and creating a dashboard in Grafana to display the metrics. The key focus areas of monitoring include memory usage, connected clients, expired keys, evicted keys, and server-side metrics like CPU usage.
Jun 21, 2023
1,290 words in the original blog post.
Redis developers often use Lua scripting for rate-limiting, custom data types, and intricate transactional logic. However, challenges arise due to long-running scripts blocking the data store, constraints on non-atomic script execution, single-threaded architecture, and horizontal scaling issues. Dragonfly is a drop-in replacement for Redis that addresses these limitations with its vertically scalable, multi-threaded, asynchronous architecture. It provides better performance for long-running or computationally heavy scripts, special optimizations for write-heavy scripts, the ability to scale Lua scripts vertically, and offers a way to run Lua scripts non-atomically. Additionally, Dragonfly can be configured so that certain keys are not evictable, providing more control over data storage compared to Redis.
Jun 12, 2023
1,713 words in the original blog post.