akka {
  loggers = ["akka.event.slf4j.Slf4jLogger"]
  logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
  loglevel = "ERROR"
  stdout-loglevel = "ERROR"

  actor {
    default-dispatcher {
      fork-join-executor {
        parallelism-min = 1    # don't constrain parallelism statically
        parallelism-max = 64   # --
        parallelism-factor = 1 # one thread per core is enough
      }
      throughput = 64
    }
  }

  http {
    server {
      backlog = 1024
    }
  }
}

akka-http-slick-postgres {
  # Settings for the REST api server.
  api {
    # Listening address
    address = 0.0.0.0
    # Listening port
    port = 9000
    # The dispatcher that will be used for the routing operations.
    # See the official documentation at http://doc.akka.io/docs/akka/current/scala/dispatchers.html for details.
  }

  database {
    profile = "slick.jdbc.PostgresProfile$"
    db {
      url = "jdbc:postgresql://tfb-database:5432/hello_world?user=benchmarkdbuser&password=benchmarkdbpass"
    }
    numThreads = 512
    queueSize = 10000
    maxConnections = 512
  }
}
