Configuration - Version 2.4.20

Configuration

  1. #####################################
  2. # Akka Stream Reference Config File #
  3. #####################################
  4.  
  5. akka {
  6. stream {
  7.  
  8. # Default flow materializer settings
  9. materializer {
  10.  
  11. # Initial size of buffers used in stream elements
  12. initial-input-buffer-size = 4
  13. # Maximum size of buffers used in stream elements
  14. max-input-buffer-size = 16
  15.  
  16. # Fully qualified config path which holds the dispatcher configuration
  17. # to be used by FlowMaterialiser when creating Actors.
  18. # When this value is left empty, the default-dispatcher will be used.
  19. dispatcher = ""
  20.  
  21. # Cleanup leaked publishers and subscribers when they are not used within a given
  22. # deadline
  23. subscription-timeout {
  24. # when the subscription timeout is reached one of the following strategies on
  25. # the "stale" publisher:
  26. # cancel - cancel it (via `onError` or subscribing to the publisher and
  27. # `cancel()`ing the subscription right away
  28. # warn - log a warning statement about the stale element (then drop the
  29. # reference to it)
  30. # noop - do nothing (not recommended)
  31. mode = cancel
  32.  
  33. # time after which a subscriber / publisher is considered stale and eligible
  34. # for cancelation (see `akka.stream.subscription-timeout.mode`)
  35. timeout = 5s
  36. }
  37. # Enable additional troubleshooting logging at DEBUG log level
  38. debug-logging = off
  39.  
  40. # Maximum number of elements emitted in batch if downstream signals large demand
  41. output-burst-limit = 1000
  42. # Enable automatic fusing of all graphs that are run. For short-lived streams
  43. # this may cause an initial runtime overhead, but most of the time fusing is
  44. # desirable since it reduces the number of Actors that are created.
  45. auto-fusing = on
  46.  
  47. # Those stream elements which have explicit buffers (like mapAsync, mapAsyncUnordered,
  48. # buffer, flatMapMerge, Source.actorRef, Source.queue, etc.) will preallocate a fixed
  49. # buffer upon stream materialization if the requested buffer size is less than this
  50. # configuration parameter. The default is very high because failing early is better
  51. # than failing under load.
  52. #
  53. # Buffers sized larger than this will dynamically grow/shrink and consume more memory
  54. # per element than the fixed size buffers.
  55. max-fixed-buffer-size = 1000000000
  56.  
  57. # Maximum number of sync messages that actor can process for stream to substream communication.
  58. # Parameter allows to interrupt synchronous processing to get upsteam/downstream messages.
  59. # Allows to accelerate message processing that happening withing same actor but keep system responsive.
  60. sync-processing-limit = 1000
  61.  
  62. debug {
  63. # Enables the fuzzing mode which increases the chance of race conditions
  64. # by aggressively reordering events and making certain operations more
  65. # concurrent than usual.
  66. # This setting is for testing purposes, NEVER enable this in a production
  67. # environment!
  68. # To get the best results, try combining this setting with a throughput
  69. # of 1 on the corresponding dispatchers.
  70. fuzzing-mode = off
  71. }
  72. }
  73.  
  74. # Fully qualified config path which holds the dispatcher configuration
  75. # to be used by FlowMaterialiser when creating Actors for IO operations,
  76. # such as FileSource, FileSink and others.
  77. blocking-io-dispatcher = "akka.stream.default-blocking-io-dispatcher"
  78.  
  79. default-blocking-io-dispatcher {
  80. type = "Dispatcher"
  81. executor = "thread-pool-executor"
  82. throughput = 1
  83.  
  84. thread-pool-executor {
  85. core-pool-size-min = 2
  86. core-pool-size-factor = 2.0
  87. core-pool-size-max = 16
  88. }
  89. }
  90. }
  91.  
  92. # configure overrides to ssl-configuration here (to be used by akka-streams, and akka-http – i.e. when serving https connections)
  93. ssl-config {
  94. protocol = "TLSv1.2"
  95. }
  96. }
  97.  
  98. # ssl configuration
  99. # folded in from former ssl-config-akka module
  100. ssl-config {
  101. logger = "com.typesafe.sslconfig.akka.util.AkkaLoggerBridge"
  102. }