# This is the main configuration file for the application. # ~~~~~ # Secret key # ~~~~~ # The secret key is used to secure cryptographics functions. play.http.secret.key = "RItx1I:80?W@]8GAtPDuF8Ydd3mXM85p/<7og]Q;uBOdijQAauRDgu73B6`wQP59" # The application languages # ~~~~~ play.i18n.langs = [ "en" ] # Disable default filters play.filters.enabled = [ ] play.server.server-header = "Play2" play.server { netty { transport = "native" # Whether the Netty wire should be logged log.wire = false option { SO_BACKLOG = 8192 SO_REUSEADDR = true "io.netty.channel.epoll.EpollChannelOption#SO_REUSEPORT" = true "io.netty.channel.epoll.EpollChannelOption#TCP_FASTOPEN" = 1 child { SO_KEEPALIVE = true TCP_NODELAY = true SO_REUSEADDR = true # The default is 1 since Linux Kernel 3.13 # You can check via "cat /proc/sys/net/ipv4/tcp_fastopen" # However 3 would be better, but we can't change it to that value because we don't have root permission when running the benchmarks "io.netty.channel.epoll.EpollChannelOption#TCP_FASTOPEN" = 1 } } } } akka { actor { default-dispatcher { fork-join-executor { # one thread per core is enough # https://github.com/playframework/playframework/issues/7242#issuecomment-295215448 parallelism-factor = 1.5 # 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 = ${?thread_count} parallelism-max = 64 task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration } # https://doc.akka.io/docs/akka/2.5.11/dispatchers.html#looking-up-a-dispatcher # Throughput defines the maximum number of messages to be # processed per actor before the thread jumps to the next actor. # Set to 1 for as fair as possible. throughput = 64 } } } play.application.loader=AppLoader mongodb { servers = ["tfb-database:27017"] db = "hello_world" uri = "mongodb://tfb-database:27017/hello_world" }