优化一些参数调整
This commit is contained in:
parent
8a4fd42f13
commit
ddb0049126
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user