Browse Source

H2O: Final reduction of the number of database connections (#3751)

Anton Kirilov 7 years ago
parent
commit
a7e9fb7472
1 changed files with 2 additions and 5 deletions
  1. 2 5
      frameworks/C/h2o/start-servers.sh

+ 2 - 5
frameworks/C/h2o/start-servers.sh

@@ -14,14 +14,11 @@ TROOT=/
 if [[ "$CPU_COUNT" -gt 16 ]]; then
 	echo "Running h2o_app in the physical hardware environment."
 	USE_PROCESSES=false
-	# In the physical hardware environment the number of threads used by the application is not
-	# the same as the number of logical CPU cores that the database server has, so we need to
-	# adjust the maximum number of database connections per thread accordingly.
-	DB_CONN=5
+	DB_CONN=3
 else
 	echo "Running h2o_app in the cloud environment."
 	USE_PROCESSES=false
-	DB_CONN=8
+	DB_CONN=4
 fi
 
 build_h2o_app()