diff --git a/script/impl/perf_config/tuners/gucs/common.py b/script/impl/perf_config/tuners/gucs/common.py index b487885..c79ff95 100644 --- a/script/impl/perf_config/tuners/gucs/common.py +++ b/script/impl/perf_config/tuners/gucs/common.py @@ -245,6 +245,11 @@ class ThreadPoolGUC(GUCTuneGroup): ratio = 0.83 elif infos.business.scenario == BsScenario.TP_PRODUCE: ratio = 0.6 + else: + if infos.business.scenario == BsScenario.TP_PERFORMANCE: + ratio = 0.9 + elif infos.business.scenario == BsScenario.TP_PRODUCE: + ratio = 0.7 Project.log(f'ratio (thread count / parallel) is {ratio}.') thread_count = infos.business.parallel * ratio diff --git a/script/impl/perf_config/tuners/gucs/ha_cluster.py b/script/impl/perf_config/tuners/gucs/ha_cluster.py index c46fbc3..a4d4ead 100644 --- a/script/impl/perf_config/tuners/gucs/ha_cluster.py +++ b/script/impl/perf_config/tuners/gucs/ha_cluster.py @@ -118,6 +118,7 @@ class StandbyServerGUC(GUCTuneGroup): self.max_logical_replication_workers = self.bind('max_logical_replication_workers') self.max_sync_workers_per_subscription = self.bind('max_sync_workers_per_subscription') self.standby_shared_buffers_fraction = self.bind('standby_shared_buffers_fraction') + self.advance_xlog_file_num = self.bind('advance_xlog_file_num') def calculate(self): infos = Project.getGlobalPerfProbe() @@ -125,5 +126,6 @@ class StandbyServerGUC(GUCTuneGroup): self.hot_standby.turn_off() self.wal_receiver_buffer_size.set('256MB') self.standby_shared_buffers_fraction.set(0.9) + self.advance_xlog_file_num.set(100000) diff --git a/script/impl/perf_config/tuners/gucs/other.py b/script/impl/perf_config/tuners/gucs/other.py index 23293cc..5c187d8 100644 --- a/script/impl/perf_config/tuners/gucs/other.py +++ b/script/impl/perf_config/tuners/gucs/other.py @@ -158,7 +158,6 @@ class DevelopOptionGUC(GUCTuneGroup): self.show_acce_estimate_detail = self.bind('show_acce_estimate_detail') self.support_batch_bind = self.bind('support_batch_bind') self.log_pagewriter = self.bind('log_pagewriter') - self.advance_xlog_file_num = self.bind('advance_xlog_file_num') self.enable_csqual_pushdown = self.bind('enable_csqual_pushdown') self.string_hash_compatible = self.bind('string_hash_compatible') self.pldebugger_timeout = self.bind('pldebugger_timeout')