Akka has landed
[aquarium] / logic / 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-RC1"   # Akka version, checked against the runtime version of Akka.
10
11   enabled-modules = ["remote", "http"]       # 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"] # 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     mailbox {
72         mongodb {
73             # Any specified collection name will be used as a prefix for collections that use durable mongo mailboxes
74             uri = "mongodb://localhost/akka.mailbox"   # Follow Mongo URI Spec - http://www.mongodb.org/display/DOCS/Connections
75             # Configurable timeouts for certain ops
76             timeout {
77                 read = 3000 # number of milliseconds to wait for a read to succeed before timing out the future
78                 write = 3000 # number of milliseconds to wait for a write to succeed before timing out the future
79             }
80         }
81       }
82     }
83
84   stm {
85     fair             = on     # Should global transactions be fair or non-fair (non fair yield better performance)
86     max-retries      = 1000
87     timeout          = 5      # Default timeout for blocking transactions and transaction set (in unit defined by
88                               #     the time-unit property)
89     write-skew       = true
90     blocking-allowed = false
91     interruptible    = false
92     speculative      = true
93     quick-release    = true
94     propagation      = "requires"
95     trace-level      = "none"
96   }
97
98   http {
99     hostname = "localhost"
100     port = 9998
101
102     #If you are using akka.http.AkkaRestServlet
103     filters = ["akka.security.AkkaSecurityFilterFactory"] # List with all jersey filters to use
104     # resource-packages = ["sample.rest.scala",
105     #                      "sample.rest.java",
106     #                      "sample.security"] # List with all resource packages for your Jersey services
107     resource-packages = []
108
109     # The authentication service to use. Need to be overridden (sample now)
110     # authenticator = "sample.security.BasicAuthenticationService"
111     authenticator = "N/A"
112
113     # Uncomment if you are using the KerberosAuthenticationActor
114     # kerberos {
115     #   servicePrincipal = "HTTP/localhost@EXAMPLE.COM"
116     #   keyTabLocation   = "URL to keytab"
117     #   kerberosDebug    = "true"
118     #   realm            = "EXAMPLE.COM"
119     # }
120     kerberos {
121       servicePrincipal = "N/A"
122       keyTabLocation   = "N/A"
123       kerberosDebug    = "N/A"
124       realm            = ""
125     }
126
127     #If you are using akka.http.AkkaMistServlet
128     mist-dispatcher {
129       #type = "GlobalExecutorBasedEventDriven" # Uncomment if you want to use a different dispatcher than the default one for Comet
130     }
131     connection-close = true                 # toggles the addition of the "Connection" response header with a "close" value
132     root-actor-id = "_httproot"             # the id of the actor to use as the root endpoint
133     root-actor-builtin = true               # toggles the use of the built-in root endpoint base class
134     timeout = 1000                          # the default timeout for all async requests (in ms)
135     expired-header-name = "Async-Timeout"   # the name of the response header to use when an async request expires
136     expired-header-value = "expired"        # the value of the response header to use when an async request expires
137   }
138
139   remote {
140
141     # secure-cookie = "050E0A0D0D06010A00000900040D060F0C09060B" # generate your own with '$AKKA_HOME/scripts/generate_config_with_secure_cookie.sh' or using 'Crypt.generateSecureCookie'
142     secure-cookie = ""
143
144     layer = "akka.remote.netty.NettyRemoteSupport"
145
146     server {
147       hostname = "localhost"       # The hostname or IP that clients should connect to
148       port = 2552                  # The port clients should connect to. Default is 2552 (AKKA)
149       message-frame-size = 1048576 # Increase this if you want to be able to send messages with large payloads
150       connection-timeout = 100     # Number in time-unit
151       require-cookie = off         # Should the remote server require that it peers share the same secure-cookie (defined in the 'remote' section)?
152       untrusted-mode = off         # Enable untrusted mode for full security of server managed actors, allows untrusted clients to connect.
153       backlog = 4096               # Sets the size of the connection backlog
154       execution-pool-keepalive = 60# Length in akka.time-unit how long core threads will be kept alive if idling
155       execution-pool-size      = 16# Size of the core pool of the remote execution unit
156       max-channel-memory-size  = 0 # Maximum channel size, 0 for off
157       max-total-memory-size    = 0 # Maximum total size of all channels, 0 for off
158     }
159
160     client {
161       buffering {
162         retry-message-send-on-failure = off # Buffer outbound messages when send failed, if off you'll get an exception instead
163         capacity = -1                      # If negative (or zero) then an unbounded mailbox is used (default)
164                                            # If positive then a bounded mailbox is used and the capacity is set using the property
165       }
166       reconnect-delay = 5                  # Number in time-unit
167       read-timeout = 120                   # Number in time-unit
168       message-frame-size = 1048576         # Size in bytes
169       reap-futures-delay = 5               # Number in time-unit
170       reconnection-time-window = 600 # Maximum time window that a client should try to reconnect for
171     }
172   }
173
174   test {
175     timefactor = "1.0"    # factor by which to scale timeouts during tests, e.g. to account for shared build system load
176   }
177 }