Skip to content

Commit b9cd04d

Browse files
ntk148vactions-user
authored andcommitted
Prettified Code!
1 parent f6999e0 commit b9cd04d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

prometheus/tips.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ What fsync means in Prometheus:
175175
I found a link: <https://groups.google.com/g/prometheus-users/c/Oy1qI3Og9ww> but the logic seems to be changed in the current source code (v3.8.0).
176176

177177
I use [deepwiki](https://deepwiki.com/search/when-fsync-is-performed_cbf97034-616c-403a-8ff3-de92da849479) to check how fsync is performed in Prometheus.
178+
178179
- The WAL implementation performs fsync in several scenarios:
179180
- During segment rotation: When creating a new segment, the previous segment is fsynced asynchronously via `w.fsync(prev)`.
180181
- During close operation: The active segment is fsynced before closing.

victoriametrics/notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
I use [deepwiki](https://deepwiki.com/search/when-fsync-is-performed_093b7c38-943b-4285-bd4e-641a4279f5c8).
66

77
In Victoriametrics, fsync is commonly used during:
8+
89
- Persistent queue operations when finalizing chunks.
910
- Backup operations when copying parts between filesystems.
1011
- Storage partitions.

0 commit comments

Comments
 (0)