application.conf 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. # The TechEmpower benchmark environment uses 4x 10-Core E7-4850 CPUs in the application server
  36. # That is 40 physical cores / 80 hyperthreaded cores
  37. # https://www.techempower.com/benchmarks/#section=environment
  38. parallelism-max = 40
  39. task-peeking-mode="LIFO" # based on https://www.playframework.com/documentation/2.6.x/Migration24#Thread-pool-configuration
  40. }
  41. # https://doc.akka.io/docs/akka/2.5.11/dispatchers.html#looking-up-a-dispatcher
  42. # Throughput defines the maximum number of messages to be
  43. # processed per actor before the thread jumps to the next actor.
  44. # Set to 1 for as fair as possible.
  45. throughput = 1
  46. }
  47. }
  48. }
  49. play.application.loader=AppLoader
  50. play.modules.enabled += "play.modules.reactivemongo.ReactiveMongoModule"
  51. mongodb {
  52. servers = ["tfb-database:27017"]
  53. db = "hello_world"
  54. uri = "mongodb://tfb-database:27017/hello_world"
  55. }