application.conf 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # This is the main configuration file for the application.
  2. # ~~~~~
  3. # Secret key
  4. # ~~~~~
  5. # The secret key is used to secure cryptographics functions.
  6. play.http.secret.key = "RItx1I:80?W@]8GAtPDuF8Ydd3mXM85p/<7og]Q;uBOdijQAauRDgu73B6`wQP59"
  7. # The application languages
  8. # ~~~~~
  9. play.i18n.langs = [ "en" ]
  10. # Disable default filters
  11. play.filters.enabled = [ ]
  12. play.server.server-header = "Play2"
  13. play.server {
  14. netty {
  15. transport = "native"
  16. # Whether the Netty wire should be logged
  17. log.wire = false
  18. option {
  19. SO_BACKLOG = 256
  20. child {
  21. SO_KEEPALIVE = true
  22. TCP_NODELAY = true
  23. # The default is 1 since Linux Kernel 3.13
  24. # You can check via "cat /proc/sys/net/ipv4/tcp_fastopen"
  25. # 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
  26. TCP_FASTOPEN = 1
  27. }
  28. }
  29. }
  30. }
  31. akka {
  32. actor {
  33. default-dispatcher {
  34. fork-join-executor {
  35. # one thread per core is enough
  36. # https://github.com/playframework/playframework/issues/7242#issuecomment-295215448
  37. parallelism-factor = 1.0
  38. # Information about the TechEmpower benchmark environment: https://www.techempower.com/benchmarks/#section=environment
  39. # The environment variable physical_cpu_count does NOT include the hyperthreaded cores!
  40. parallelism-max = 14
  41. parallelism-max = ${?thread_count}
  42. task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.7.x/Migration24#Thread-pool-configuration
  43. }
  44. # https://doc.akka.io/docs/akka/2.5.11/dispatchers.html#looking-up-a-dispatcher
  45. # Throughput defines the maximum number of messages to be
  46. # processed per actor before the thread jumps to the next actor.
  47. # Set to 1 for as fair as possible.
  48. throughput = 64
  49. }
  50. }
  51. }
  52. play.application.loader=AppLoader
  53. mongodb {
  54. servers = ["tfb-database:27017"]
  55. db = "hello_world"
  56. uri = "mongodb://tfb-database:27017/hello_world"
  57. }