Skip to content

Commit fc678b8

Browse files
committed
Change criteria of starting new dynamic worker
1 parent c0794c0 commit fc678b8

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy