diff --git a/fastdfs-client.properties b/fastdfs-client.properties index aa82076..129d46b 100644 --- a/fastdfs-client.properties +++ b/fastdfs-client.properties @@ -14,7 +14,7 @@ fastdfs.tracker_servers = 10.0.11.201:22122,10.0.11.202:22122,10.0.11.203:22122 ## Whether to open the connection pool, if not, create a new connection every time fastdfs.connection_pool.enabled = true -## max_count_per_entry: max connection count per host:port, 0 is not limit +## max_count_per_entry: max connection count per host:port , 0 is not limit fastdfs.connection_pool.max_count_per_entry = 500 ## connections whose the idle time exceeds this time will be closed, unit: second, default value is 3600 diff --git a/src/main/resources/fastdfs-client.properties.sample b/src/main/resources/fastdfs-client.properties.sample index ebb84f8..dd33b50 100644 --- a/src/main/resources/fastdfs-client.properties.sample +++ b/src/main/resources/fastdfs-client.properties.sample @@ -12,13 +12,13 @@ fastdfs.http_tracker_http_port = 80 fastdfs.tracker_servers = 185.245.40.70:22122 ## Whether to open the connection pool, if not, create a new connection every time -fastdfs.connection_pool.enabled = false +fastdfs.connection_pool.enabled = true ## max_count_per_entry: max connection count per host:port , 0 is not limit -fastdfs.connection_pool.max_count_per_entry = 100 +fastdfs.connection_pool.max_count_per_entry = 500 -## connections whose the idle time exceeds this time will be closed, unit: second,default value is 60 -fastdfs.connection_pool.max_idle_time = 60 +## connections whose the idle time exceeds this time will be closed, unit: second, default value is 3600 +fastdfs.connection_pool.max_idle_time = 3600 -## Maximum waiting time when the maximum number of connections is reached, unit: Millisecond, default value is 5000 -fastdfs.connection_pool.max_wait_time_in_ms = 5000 \ No newline at end of file +## Maximum waiting time when the maximum number of connections is reached, unit: millisecond, default value is 1000 +fastdfs.connection_pool.max_wait_time_in_ms = 1000 \ No newline at end of file diff --git a/src/main/resources/fdfs_client.conf.sample b/src/main/resources/fdfs_client.conf.sample index 00d6945..741218c 100644 --- a/src/main/resources/fdfs_client.conf.sample +++ b/src/main/resources/fdfs_client.conf.sample @@ -8,7 +8,7 @@ http.secret_key = FastDFS1234567890 tracker_server = 10.0.11.243:22122 tracker_server = 10.0.11.244:22122 -connection_pool.enabled = false -connection_pool.max_count_per_entry = 100 -connection_pool.max_idle_time = 60 -connection_pool.max_wait_time_in_ms = 5000 \ No newline at end of file +connection_pool.enabled = true +connection_pool.max_count_per_entry = 500 +connection_pool.max_idle_time = 3600 +connection_pool.max_wait_time_in_ms = 1000 \ No newline at end of file diff --git a/src/test/resources/fdfs_client.conf b/src/test/resources/fdfs_client.conf index 2f3b351..4f542c8 100644 --- a/src/test/resources/fdfs_client.conf +++ b/src/test/resources/fdfs_client.conf @@ -6,4 +6,4 @@ http.anti_steal_token = no http.secret_key = FastDFS1234567890 tracker_server = 10.0.11.245:22122 -tracker_server = 10.0.11.246:22122 +tracker_server = 10.0.11.246:22122 \ No newline at end of file