Recent Posts

Redis RDB internals

5 minute read

This post aims to covering how Redis dumps in-memory data into a disk file. The version of Redis used is 6.0.5.

Prometheus TSDB internals

8 minute read

Prometheus has local and remote storage. At the beginning, it creates a local storage, a remote storage, and a fanout storage. A fanout storage is like a wra...

Prometheus scrape internals

3 minute read

Scrape is an action that Prometheus server fetches metrics data from a list of configured targets. The targets are also called exporters.

Prometheus bootstrap internals

less than 1 minute read

Prometheus is a system and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays th...

Add or remove Java annotation at runtime

3 minute read

Java is a language whose source files are compiled to bytecode. Unlike C/C++, we cannot use preprocessing directive such as #ifdef syntactically. Suppose the...

WSL tricks

6 minute read

This post shares some WSL (Windows Subsystem for Linux) tricks. The Windows Subsystem for Linux lets developers run a GNU/Linux environment – including most ...