feature: add socket connection pool
This commit is contained in:
17
src/main/resources/fastdfs-client.properties
Normal file
17
src/main/resources/fastdfs-client.properties
Normal file
@@ -0,0 +1,17 @@
|
||||
## fastdfs-client.properties
|
||||
|
||||
fastdfs.connect_timeout_in_seconds = 5
|
||||
fastdfs.network_timeout_in_seconds = 30
|
||||
|
||||
fastdfs.charset = UTF-8
|
||||
|
||||
fastdfs.http_anti_steal_token = false
|
||||
fastdfs.http_secret_key = FastDFS1234567890
|
||||
fastdfs.http_tracker_http_port = 80
|
||||
|
||||
fastdfs.tracker_servers = 10.0.11.201:22122,10.0.11.202:22122,10.0.11.203:22122
|
||||
|
||||
fastdfs.connection_pool.enabled = false
|
||||
fastdfs.connection_pool.max_count_per_entry = 50
|
||||
fastdfs.connection_pool.max_idle_time = 60
|
||||
fastdfs.connection_pool.max_wait_time = 5
|
@@ -9,5 +9,13 @@ fastdfs.http_anti_steal_token = false
|
||||
fastdfs.http_secret_key = FastDFS1234567890
|
||||
fastdfs.http_tracker_http_port = 80
|
||||
|
||||
fastdfs.tracker_servers = 10.0.11.201:22122,10.0.11.202:22122,10.0.11.203:22122
|
||||
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
|
||||
|
||||
## max_count_per_entry: max connection count per host:port , 0 is not limit
|
||||
fastdfs.connection_pool.max_count_per_entry = 2
|
||||
|
||||
fastdfs.connection_pool.max_idle_time = 60
|
||||
fastdfs.connection_pool.max_wait_time = 5
|
@@ -7,3 +7,8 @@ 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 = 5
|
Reference in New Issue
Block a user