Quantcast
Channel: TimescaleDB and PostgreSQL - Timescale Community Forum
Viewing all articles
Browse latest Browse all 291

What is recommended wal_segment_size parameter for TimescaleDB?

$
0
0

I use PG v15.4 with TimescaleDB v2.16.0 self-hosted on prem.

I am looking at pg_wal directory and I see individual WAL file is 16 MB in size. I am reading (free to download) book “PostgreSQL 14 Internals” where it is written: “On disk, the WAL is stored in the PGDATA/pg_wal directory as separate files, or segments. Their size is shown by the read-only 16MB “wal_segment_size” parameter. For high-load systems, it makes sense to increase the segment size since it may reduce the overhead.”

Like I understand when 16MB WAL file is filled new WAL file must be created. Regularly requesting operating system to create new file takes some time. In high-load this may not be negligible, so increasing WAL size may benefit of writing transaction faster.

TimescaleDB systems are by definition high-load systems.

QUESTIONS:

  1. What is recommended wal_segment_size parameter for TimescaleDB?
  2. Does someone has some experience, does increasing parameter to 32MB (or more) increase performance?
  3. What are disadvantages of having larger WAL log segments?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 291

Trending Articles