From 50db453dace3487814c8811eab76f88504bf412c Mon Sep 17 00:00:00 2001 From: Yang Yu Date: Sun, 16 Apr 2023 01:04:53 +0800 Subject: [PATCH] perf: reduce the max connection number to 1024 to improve the COS Server's pressure. --- src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java b/src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java index 6889d80a..942698a0 100644 --- a/src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java +++ b/src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java @@ -138,7 +138,7 @@ public class CosNConfigKeys extends CommonConfigurationKeys { public static final String COSN_COMPLETE_MPU_CHECK = "fs.cosn.complete.mpu.check"; public static final boolean DEFAULT_COSN_COMPLETE_MPU_CHECK_ENABLE = true; public static final String MAX_CONNECTION_NUM = "fs.cosn.max.connection.num"; - public static final int DEFAULT_MAX_CONNECTION_NUM = 2048; + public static final int DEFAULT_MAX_CONNECTION_NUM = 1024; public static final String CUSTOMER_DOMAIN = "fs.cosn.customer.domain"; public static final String COSN_SERVER_SIDE_ENCRYPTION_ALGORITHM = "fs.cosn.server-side-encryption.algorithm";