application.conf 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # This is the main configuration file for the application.
  2. # ~~~~~
  3. # The max size of the queue for running db operations
  4. max-db-ops = 1024
  5. # Secret key
  6. # ~~~~~
  7. # The secret key is used to secure cryptographics functions.
  8. # If you deploy your application to several instances be sure to use the same key!
  9. application.secret="RItx1I:80?W@]8GAtPDuF8Ydd3mXM85p/<7og]Q;uBOdijQAauRDgu73B6`wQP59"
  10. # The application languages
  11. # ~~~~~
  12. application.langs="en"
  13. # Global object class
  14. # ~~~~~
  15. # Define the Global object class for this application.
  16. # Default to Global in the root package.
  17. # global=Global
  18. # Database configuration
  19. # ~~~~~
  20. # You can declare as many datasources as you want.
  21. # By convention, the default datasource is named `default`
  22. #
  23. #db.default.driver=org.h2.Driver
  24. #db.default.url="jdbc:h2:mem:play"
  25. #db.default.user=sa
  26. # db.default.password=
  27. #
  28. # You can expose this datasource via JNDI if needed (Useful for JPA)
  29. # db.default.jndiName=DefaultDS
  30. db.default.driver= com.mysql.jdbc.Driver
  31. db.default.url="jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true"
  32. db.default.user=benchmarkdbuser
  33. db.default.password=benchmarkdbpass
  34. db.default.jndiName=DefaultDS
  35. db.default.partitionCount=4
  36. # The number of connections to create per partition. Setting this to
  37. # 5 with 3 partitions means you will have 15 unique connections to the
  38. # database. Note that BoneCP will not create all these connections in
  39. # one go but rather start off with minConnectionsPerPartition and
  40. # gradually increase connections as required.
  41. db.default.maxConnectionsPerPartition=64
  42. # The number of initial connections, per partition.
  43. db.default.minConnectionsPerPartition=64
  44. slick.default="models.*"
  45. # Evolutions
  46. # ~~~~~
  47. # You can disable evolutions if needed
  48. evolutionplugin=disabled
  49. # Logger
  50. # ~~~~~
  51. # You can also configure logback (http://logback.qos.ch/), by providing a logger.xml file in the conf directory .
  52. # Root logger:
  53. logger.root=ERROR
  54. # Logger used by the framework:
  55. logger.play=ERROR
  56. # Logger provided to your application:
  57. logger.application=ERROR
  58. play {
  59. akka {
  60. event-handlers = ["akka.event.slf4j.Slf4jEventHandler"]
  61. loglevel = WARNING
  62. actor {
  63. default-dispatcher = {
  64. fork-join-executor {
  65. parallelism-factor = 1.0
  66. parallelism-max = 50
  67. }
  68. }
  69. application = {
  70. fork-join-executor {
  71. parallelism-max = 300
  72. }
  73. }
  74. }
  75. }
  76. }