!688 优化perfconfig的一些参数调整

Merge pull request !688 from 胡正超/perfcfg
This commit is contained in:
opengauss_bot 2024-01-26 07:54:34 +00:00 committed by Gitee
commit 22dceb2e8c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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)

View File

@ -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')