|
@@ -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()
|