调整连接数

This commit is contained in:
三丙
2024-10-16 14:27:10 +08:00
parent f707705bbb
commit 586c338f36
2 changed files with 3 additions and 3 deletions

View File

@@ -145,8 +145,8 @@ redis:
db: "${REDIS_DB:0}"
password: "${REDIS_PASSWORD:sanbing}"
pool_config:
maxTotal: "${REDIS_POOL_CONFIG_MAX_TOTAL:256}"
maxIdle: "${REDIS_POOL_CONFIG_MAX_IDLE:128}"
maxTotal: "${REDIS_POOL_CONFIG_MAX_TOTAL:128}"
maxIdle: "${REDIS_POOL_CONFIG_MAX_IDLE:64}"
minIdle: "${REDIS_POOL_CONFIG_MIN_IDLE:16}"
testOnBorrow: "${REDIS_POOL_CONFIG_TEST_ON_BORROW:false}"
testOnReturn: "${REDIS_POOL_CONFIG_TEST_ON_RETURN:false}"

View File

@@ -39,7 +39,7 @@ public final class DefaultInMemoryStorage implements InMemoryStorage {
@Override
public boolean put(String topic, QueueMsg msg) {
return storage.computeIfAbsent(topic, t -> new LinkedBlockingQueue<>(100000)).add(msg);
return storage.computeIfAbsent(topic, t -> new LinkedBlockingQueue<>(10000)).add(msg);
}
@Override