Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfc678b8

Browse files
committed
Change criteria of starting new dynamic worker
1 parentc0794c0 commitfc678b8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎contrib/mmts/bgwpool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void BgwPoolExecute(BgwPool* pool, void* work, size_t size)
205205
SpinLockAcquire(&pool->lock);
206206
}else {
207207
pool->pending+=1;
208-
if (pool->active==pool->nWorkers) {
208+
if (pool->active+pool->pending>pool->nWorkers) {
209209
BgwStartExtraWorker(pool);
210210
}
211211
if (pool->lastPeakTime==0&&pool->active==pool->nWorkers&&pool->pending!=0) {

‎contrib/mmts/tests2/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ if [ "$1" = 'postgres' ]; then
5858
default_transaction_isolation = 'repeatable read'
5959
log_line_prefix = '%t: '
6060
61-
multimaster.workers = 16
61+
multimaster.workers = 4
62+
multimaster.max_workers = 16
6263
multimaster.max_nodes = 3
6364
multimaster.volkswagen_mode = 1
6465
multimaster.queue_size=52857600

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp