|
@@ -13,6 +13,10 @@ play.i18n.langs = [ "en" ]
|
|
|
# Disable default filters
|
|
|
play.filters.enabled = [ ]
|
|
|
|
|
|
+play.modules {
|
|
|
+ enabled += "startup.StartupModule"
|
|
|
+}
|
|
|
+
|
|
|
play.server.server-header = "Play2"
|
|
|
|
|
|
play.server {
|
|
@@ -42,10 +46,10 @@ akka {
|
|
|
actor {
|
|
|
default-dispatcher {
|
|
|
fork-join-executor {
|
|
|
- # The TechEmpower benchmark environment uses 4x 10-Core E7-4850 CPUs in the application server
|
|
|
- # That is 40 physical cores / 80 hyperthreaded cores
|
|
|
- # https://www.techempower.com/benchmarks/#section=environment
|
|
|
- parallelism-max = 40
|
|
|
+ # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
|
|
|
+ # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
|
|
|
+ parallelism-max = 14
|
|
|
+ parallelism-max = ${?physical_cpu_count}
|
|
|
|
|
|
task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
|
|
|
}
|
|
@@ -62,10 +66,9 @@ akka {
|
|
|
# Number of database connections
|
|
|
# https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
|
|
|
# db connections = ((physical_core_count * 2) + effective_spindle_count)
|
|
|
-# The TechEmpower benchmark environment uses 2 x 4-Core E5520 CPUs in the database server
|
|
|
-# That is 8 physical cores
|
|
|
# https://www.techempower.com/benchmarks/#section=environment
|
|
|
fixedConnectionPool = 17
|
|
|
+fixedConnectionPool = ${?db_pool_size}
|
|
|
|
|
|
database.dispatcher {
|
|
|
executor = "thread-pool-executor"
|