|
@@ -14,10 +14,10 @@ if [[ "$CPU_COUNT" -gt 16 ]]; then
|
|
# In the physical hardware environment the number of threads used by the application is not
|
|
# 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
|
|
# 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.
|
|
# adjust the maximum number of database connections per thread accordingly.
|
|
- DB_CONN=1
|
|
|
|
|
|
+ DB_CONN=2
|
|
else
|
|
else
|
|
USE_PROCESSES=false
|
|
USE_PROCESSES=false
|
|
- DB_CONN=16
|
|
|
|
|
|
+ DB_CONN=8
|
|
fi
|
|
fi
|
|
|
|
|
|
build_h2o_app()
|
|
build_h2o_app()
|
|
@@ -80,4 +80,4 @@ else
|
|
run_h2o_app 0 "${H2O_APP_HOME}/bin" "${H2O_APP_HOME}/share/h2o_app"
|
|
run_h2o_app 0 "${H2O_APP_HOME}/bin" "${H2O_APP_HOME}/share/h2o_app"
|
|
fi
|
|
fi
|
|
|
|
|
|
-wait
|
|
|
|
|
|
+wait
|