Flat project hierarchy
[aquarium] / src / test / resources / akka.conf
1 ####################
2 # Akka Config File #
3 ####################
4
5 # This file has all the default settings, so all these could be removed with no visible effect.
6 # Modify as needed.
7
8 akka {
9   version = "1.3-RC4"   # Akka version, checked against the runtime version of Akka.
10
11   enabled-modules = ["remote", "http", "amqp"]       # Comma separated list of the enabled modules. Options: ["remote", "camel", "http"]
12
13   time-unit = "seconds"      # Time unit for all timeout properties throughout the config
14
15   event-handlers = ["akka.event.EventHandler$DefaultListener", "akka.event.slf4j.Slf4jEventHandler"] # event handlers to register at boot time (EventHandler$DefaultListener logs to STDOUT)
16   event-handler-level = "DEBUG" # Options: ERROR, WARNING, INFO, DEBUG
17
18   # These boot classes are loaded (and created) automatically when the Akka Microkernel boots up
19   #     Can be used to bootstrap your application(s)
20   #     Should be the FQN (Fully Qualified Name) of the boot class which needs to have a default constructor
21   # boot = ["sample.camel.Boot",
22   #         "sample.rest.java.Boot",
23   #         "sample.rest.scala.Boot",
24   #         "sample.security.Boot"]
25   boot = []
26
27   actor {
28     timeout = 5                        # Default timeout for Future based invocations
29                                        #    - Actor:        ? and ask
30                                        #    - UntypedActor: ask
31                                        #    - TypedActor:   methods with non-void return type
32     serialize-messages = off           # Does a deep clone of (non-primitive) messages to ensure immutability
33     throughput = 5                     # Default throughput for all ExecutorBasedEventDrivenDispatcher, set to 1 for complete fairness
34     throughput-deadline-time = -1      # Default throughput deadline for all ExecutorBasedEventDrivenDispatcher, set to 0 or negative for no deadline
35     dispatcher-shutdown-timeout = 1    # Using the akka.time-unit, how long dispatchers by default will wait for new actors until they shut down
36
37     default-dispatcher {
38       type = "GlobalExecutorBasedEventDriven" # Must be one of the following, all "Global*" are non-configurable
39                                               #   - ExecutorBasedEventDriven
40                                               #   - ExecutorBasedEventDrivenWorkStealing
41                                               #   - GlobalExecutorBasedEventDriven
42       keep-alive-time = 60             # Keep alive time for threads
43       core-pool-size-factor = 1.0      # No of core threads ... ceil(available processors * factor)
44       max-pool-size-factor  = 4.0      # Max no of threads ... ceil(available processors * factor)
45       executor-bounds = -1             # Makes the Executor bounded, -1 is unbounded
46       task-queue-size = -1             # Specifies the bounded capacity of the task queue (< 1 == unbounded)
47       task-queue-type = "linked"       # Specifies which type of task queue will be used, can be "array" or "linked" (default)
48       allow-core-timeout = on          # Allow core threads to time out
49       rejection-policy = "sane"        # sane, abort, caller-runs, discard-oldest, discard
50       throughput = 5                   # Throughput for ExecutorBasedEventDrivenDispatcher, set to 1 for complete fairness
51       throughput-deadline-time = -1    # Throughput deadline for ExecutorBasedEventDrivenDispatcher, set to 0 or negative for no deadline
52       mailbox-capacity = -1            # If negative (or zero) then an unbounded mailbox is used (default)
53                                        # If positive then a bounded mailbox is used and the capacity is set using the property
54                                        # NOTE: setting a mailbox to 'blocking' can be a bit dangerous,
55                                        #       could lead to deadlock, use with care
56                                        #
57                                        # The following are only used for ExecutorBasedEventDriven
58                                        # and only if mailbox-capacity > 0
59       mailbox-push-timeout-time = 10   # Specifies the timeout to add a new message to a mailbox that is full - negative number means infinite timeout
60                                        #       (in unit defined by the time-unit property)
61     }
62
63     debug {
64       receive = "false"       # enable function of Actor.loggable(), which is
65                               # to log any received message at DEBUG level
66       autoreceive = "false"   # enable DEBUG logging of all AutoReceiveMessages
67                               # (Kill, PoisonPill and the like)
68       lifecycle = "false"     # enable DEBUG logging of actor lifecycle changes
69     }
70
71   http {
72     hostname = "localhost"
73     port = 9998
74
75     #If you are using akka.http.AkkaRestServlet
76     filters = ["akka.security.AkkaSecurityFilterFactory"] # List with all jersey filters to use
77     # resource-packages = ["sample.rest.scala",
78     #                      "sample.rest.java",
79     #                      "sample.security"] # List with all resource packages for your Jersey services
80     resource-packages = ["gr.grnet.aquarium.rest", "gr.grnet.aquarium.rest.service"]
81
82     # The authentication service to use. Need to be overridden (sample now)
83     # authenticator = "sample.security.BasicAuthenticationService"
84     authenticator = "N/A"
85
86     # Uncomment if you are using the KerberosAuthenticationActor
87     # kerberos {
88     #   servicePrincipal = "HTTP/localhost@EXAMPLE.COM"
89     #   keyTabLocation   = "URL to keytab"
90     #   kerberosDebug    = "true"
91     #   realm            = "EXAMPLE.COM"
92     # }
93     kerberos {
94       servicePrincipal = "N/A"
95       keyTabLocation   = "N/A"
96       kerberosDebug    = "N/A"
97       realm            = ""
98     }
99
100     #If you are using akka.http.AkkaMistServlet
101     mist-dispatcher {
102       #type = "GlobalExecutorBasedEventDriven" # Uncomment if you want to use a different dispatcher than the default one for Comet
103     }
104     connection-close = true                 # toggles the addition of the "Connection" response header with a "close" value
105     root-actor-id = "_httproot"             # the id of the actor to use as the root endpoint
106     root-actor-builtin = true               # toggles the use of the built-in root endpoint base class
107     timeout = 1000                          # the default timeout for all async requests (in ms)
108     expired-header-name = "Async-Timeout"   # the name of the response header to use when an async request expires
109     expired-header-value = "expired"        # the value of the response header to use when an async request expires
110   }
111
112   remote {
113
114     # secure-cookie = "050E0A0D0D06010A00000900040D060F0C09060B" # generate your own with '$AKKA_HOME/scripts/generate_config_with_secure_cookie.sh' or using 'Crypt.generateSecureCookie'
115     secure-cookie = ""
116
117     layer = "akka.remote.netty.NettyRemoteSupport"
118
119     server {
120       hostname = "localhost"       # The hostname or IP that clients should connect to
121       port = 2552                  # The port clients should connect to. Default is 2552 (AKKA)
122       message-frame-size = 1048576 # Increase this if you want to be able to send messages with large payloads
123       connection-timeout = 100     # Number in time-unit
124       require-cookie = off         # Should the remote server require that it peers share the same secure-cookie (defined in the 'remote' section)?
125       untrusted-mode = off         # Enable untrusted mode for full security of server managed actors, allows untrusted clients to connect.
126       backlog = 4096               # Sets the size of the connection backlog
127       execution-pool-keepalive = 60# Length in akka.time-unit how long core threads will be kept alive if idling
128       execution-pool-size      = 16# Size of the core pool of the remote execution unit
129       max-channel-memory-size  = 0 # Maximum channel size, 0 for off
130       max-total-memory-size    = 0 # Maximum total size of all channels, 0 for off
131     }
132
133     client {
134       buffering {
135         retry-message-send-on-failure = off # Buffer outbound messages when send failed, if off you'll get an exception instead
136         capacity = -1                      # If negative (or zero) then an unbounded mailbox is used (default)
137                                            # If positive then a bounded mailbox is used and the capacity is set using the property
138       }
139       reconnect-delay = 5                  # Number in time-unit
140       read-timeout = 120                   # Number in time-unit
141       message-frame-size = 1048576         # Size in bytes
142       reap-futures-delay = 5               # Number in time-unit
143       reconnection-time-window = 600 # Maximum time window that a client should try to reconnect for
144     }
145   }
146
147   test {
148     timefactor = "1.0"    # factor by which to scale timeouts during tests, e.g. to account for shared build system load
149   }
150 }
151
152 # spray-can config
153 spray-can {
154   server {
155     port = 8080
156     service-actor-id = "spray-root-service"
157     timeout-actor-id = "spray-root-service" # we want to handle timeouts with the same service actor
158     request-timeout = 2000 # require all requests to be completed within 2 seconds
159   }
160 }