From 137472db9182611fecd3add55a95b62ff91a5800 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Fri, 24 Sep 2021 15:15:54 +0300 Subject: [PATCH] Save page received from page server in local file cache --- control_plane/src/compute.rs | 1 + test_runner/batch_others/test_pgbench.py | 4 ++-- vendor/postgres | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/control_plane/src/compute.rs b/control_plane/src/compute.rs index 200dcd02e6..f520642175 100644 --- a/control_plane/src/compute.rs +++ b/control_plane/src/compute.rs @@ -324,6 +324,7 @@ impl PostgresNode { max_connections = 100\n\ wal_sender_timeout = 0\n\ wal_level = replica\n\ + zenith.file_cache_size = 4096\n\ listen_addresses = '{address}'\n\ port = {port}\n", address = self.address.ip(), diff --git a/test_runner/batch_others/test_pgbench.py b/test_runner/batch_others/test_pgbench.py index a5423cf3d7..567b124b60 100644 --- a/test_runner/batch_others/test_pgbench.py +++ b/test_runner/batch_others/test_pgbench.py @@ -12,5 +12,5 @@ def test_pgbench(postgres: PostgresFactory, pg_bin, zenith_cli): connstr = pg.connstr() - pg_bin.run_capture(['pgbench', '-i', connstr]) - pg_bin.run_capture(['pgbench'] + '-c 10 -T 5 -P 1 -M prepared'.split() + [connstr]) + pg_bin.run_capture(['pgbench', '-i', '-s', '100', connstr]) + pg_bin.run_capture(['pgbench'] + '-c 10 -T 100 -N -P 1 -M prepared'.split() + [connstr]) diff --git a/vendor/postgres b/vendor/postgres index ef039e4222..cc967022e8 160000 --- a/vendor/postgres +++ b/vendor/postgres @@ -1 +1 @@ -Subproject commit ef039e422200f84064621b04eaab692ae940c6ca +Subproject commit cc967022e85649d4b763ba77de15ff1d15809669