Skip to content

Commit 73c10a3

Browse files
committed
bump rewind buffers
1 parent 98accc1 commit 73c10a3

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

Dockerfile-orioledb-17

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,11 @@ RUN echo "default_table_access_method = 'orioledb'" >> "/etc/postgresql/postgres
195195

196196
# OrioleDB rewind configuration
197197
# Enables time-based rewind capability for up to 20 minutes (1200 seconds)
198+
# Buffer size: 1280 buffers * 8KB = 10MB for transaction retention
198199
RUN echo "orioledb.enable_rewind = true" >> "/etc/postgresql/postgresql.conf" && \
199200
echo "orioledb.rewind_max_time = 1200" >> "/etc/postgresql/postgresql.conf" && \
200201
echo "orioledb.rewind_max_transactions = 100000" >> "/etc/postgresql/postgresql.conf" && \
201-
echo "orioledb.rewind_buffers = 13" >> "/etc/postgresql/postgresql.conf"
202+
echo "orioledb.rewind_buffers = 1280" >> "/etc/postgresql/postgresql.conf"
202203

203204

204205

ansible/tasks/stage2-setup-postgres.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@
8282
when: is_psql_oriole and stage2_nix
8383
become: yes
8484

85-
- name: Set OrioleDB rewind buffers
85+
- name: Set OrioleDB rewind buffers (1280 buffers = 10MB)
8686
ansible.builtin.lineinfile:
8787
path: /etc/postgresql/postgresql.conf
88-
line: "orioledb.rewind_buffers = 13"
88+
line: "orioledb.rewind_buffers = 1280"
8989
state: present
9090
when: is_psql_oriole and stage2_nix
9191
become: yes

ansible/vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ postgres_major:
1010

1111
# Full version strings for each major version
1212
postgres_release:
13-
postgresorioledb-17: "17.5.1.051-orioledb-rewind"
13+
postgresorioledb-17: "17.5.1.053-orioledb-rewind"
1414
postgres17: "17.6.1.028"
1515
postgres15: "15.14.1.028"
1616

nix/tools/run-server.sh.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ orioledb_config_items() {
248248
sed -i 's/ timescaledb,//g; s/ plv8,//g; s/ pgjwt,//g;' "$DATDIR/supautils.conf"
249249
sed -i 's/\(shared_preload_libraries.*\)'\''\(.*\)$/\1, orioledb'\''\2/' "$DATDIR/postgresql.conf"
250250
echo "default_table_access_method = 'orioledb'" >> "$DATDIR/postgresql.conf"
251-
# OrioleDB rewind configuration (20 minute window)
251+
# OrioleDB rewind configuration (20 minute window, 10MB buffer)
252252
echo "orioledb.enable_rewind = true" >> "$DATDIR/postgresql.conf"
253253
echo "orioledb.rewind_max_time = 1200" >> "$DATDIR/postgresql.conf"
254254
echo "orioledb.rewind_max_transactions = 100000" >> "$DATDIR/postgresql.conf"
255-
echo "orioledb.rewind_buffers = 13" >> "$DATDIR/postgresql.conf"
255+
echo "orioledb.rewind_buffers = 1280" >> "$DATDIR/postgresql.conf"
256256
elif [[ "$1" = "orioledb-17" && "$CURRENT_SYSTEM" = "aarch64-darwin" ]]; then
257257
# macOS specific configuration
258258
echo "macOS detected, applying macOS specific configuration"
@@ -268,11 +268,11 @@ orioledb_config_items() {
268268
perl -pi -e 's/(shared_preload_libraries\s*=\s*'\''.*?)'\''/\1, orioledb'\''/' "$DATDIR/postgresql.conf"
269269

270270
echo "default_table_access_method = 'orioledb'" >> "$DATDIR/postgresql.conf"
271-
# OrioleDB rewind configuration (20 minute window)
271+
# OrioleDB rewind configuration (20 minute window, 10MB buffer)
272272
echo "orioledb.enable_rewind = true" >> "$DATDIR/postgresql.conf"
273273
echo "orioledb.rewind_max_time = 1200" >> "$DATDIR/postgresql.conf"
274274
echo "orioledb.rewind_max_transactions = 100000" >> "$DATDIR/postgresql.conf"
275-
echo "orioledb.rewind_buffers = 13" >> "$DATDIR/postgresql.conf"
275+
echo "orioledb.rewind_buffers = 1280" >> "$DATDIR/postgresql.conf"
276276
elif [[ "$VERSION" == "17" && "$CURRENT_SYSTEM" != "aarch64-darwin" ]]; then
277277
echo "non-macos pg 17 conf"
278278
sed -i 's/ timescaledb,//g;' "$DATDIR/postgresql.conf"

0 commit comments

Comments
 (0)