2011-11-15 11:34:39 +01:00
|
|
|
#####################################
|
|
|
|
|
# Akka Remote Reference Config File #
|
|
|
|
|
#####################################
|
|
|
|
|
|
2012-02-21 14:39:08 -06:00
|
|
|
# This is the reference config file that contains all the default settings.
|
2011-12-14 15:12:40 +01:00
|
|
|
# Make your edits/overrides in your application.conf.
|
2011-11-15 11:34:39 +01:00
|
|
|
|
2012-02-21 14:51:43 -06:00
|
|
|
# comments about akka.actor settings left out where they are already in akka-
|
2012-02-07 15:51:41 +01:00
|
|
|
# actor.jar, because otherwise they would be repeated in config rendering.
|
|
|
|
|
|
2011-11-15 11:34:39 +01:00
|
|
|
akka {
|
|
|
|
|
|
2011-12-12 23:31:15 +01:00
|
|
|
actor {
|
|
|
|
|
|
2012-02-06 21:12:26 +01:00
|
|
|
serializers {
|
2012-09-17 12:54:08 +02:00
|
|
|
proto = "akka.remote.serialization.ProtobufSerializer"
|
|
|
|
|
daemon-create = "akka.remote.serialization.DaemonMsgCreateSerializer"
|
2012-02-06 21:12:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
serialization-bindings {
|
2012-09-26 10:56:25 +02:00
|
|
|
# Since com.google.protobuf.Message does not extend Serializable but
|
|
|
|
|
# GeneratedMessage does, need to use the more specific one here in order
|
|
|
|
|
# to avoid ambiguity
|
2012-02-07 15:11:16 +01:00
|
|
|
"com.google.protobuf.GeneratedMessage" = proto
|
2012-05-15 09:40:13 +02:00
|
|
|
"akka.remote.DaemonMsgCreate" = daemon-create
|
2012-02-06 21:12:26 +01:00
|
|
|
}
|
|
|
|
|
|
2011-12-12 23:31:15 +01:00
|
|
|
deployment {
|
|
|
|
|
|
|
|
|
|
default {
|
|
|
|
|
|
2012-09-26 10:56:25 +02:00
|
|
|
# if this is set to a valid remote address, the named actor will be
|
|
|
|
|
# deployed at that node e.g. "akka://sys@host:port"
|
2011-12-14 15:12:40 +01:00
|
|
|
remote = ""
|
2011-12-12 23:31:15 +01:00
|
|
|
|
2012-01-17 08:44:46 +01:00
|
|
|
target {
|
2011-12-14 15:12:40 +01:00
|
|
|
|
2011-12-15 14:26:17 +01:00
|
|
|
# A list of hostnames and ports for instantiating the children of a
|
|
|
|
|
# non-direct router
|
2011-12-14 15:12:40 +01:00
|
|
|
# The format should be on "akka://sys@host:port", where:
|
|
|
|
|
# - sys is the remote actor system name
|
2011-12-15 14:26:17 +01:00
|
|
|
# - hostname can be either hostname or IP address the remote actor
|
|
|
|
|
# should connect to
|
2011-12-14 15:12:40 +01:00
|
|
|
# - port should be the port for the remote server on the other node
|
2011-12-15 14:26:17 +01:00
|
|
|
# The number of actor instances to be spawned is still taken from the
|
|
|
|
|
# nr-of-instances setting as for local routers; the instances will be
|
|
|
|
|
# distributed round-robin among the given nodes.
|
2011-12-14 15:12:40 +01:00
|
|
|
nodes = []
|
|
|
|
|
|
2011-12-12 23:31:15 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
remote {
|
2012-09-12 11:18:42 +02:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
### General settings
|
2012-09-12 11:18:42 +02:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Timeout after which the startup of the remoting subsystem is considered to be failed.
|
|
|
|
|
# Increase this value if your transport drivers (see the enabled-transports section)
|
|
|
|
|
# need longer time to be loaded.
|
|
|
|
|
startup-timeout = 5 s
|
|
|
|
|
|
|
|
|
|
# Timout after which the graceful shutdown of the remoting subsystem is considered to be failed.
|
|
|
|
|
# After the timeout the remoting system is forcefully shut down.
|
|
|
|
|
# Increase this value if your transport drivers (see the enabled-transports section)
|
|
|
|
|
# need longer time to stop properly.
|
|
|
|
|
shutdown-timeout = 5 s
|
|
|
|
|
|
|
|
|
|
# Before shutting down the drivers, the remoting subsystem attempts to flush all pending
|
|
|
|
|
# writes. This setting controls the maximum time the remoting is willing to wait before
|
|
|
|
|
# moving on to shut down the drivers.
|
|
|
|
|
flush-wait-on-shutdown = 2 s
|
|
|
|
|
|
|
|
|
|
# Reuse inbound connections for outbound messages
|
|
|
|
|
use-passive-connections = on
|
|
|
|
|
|
|
|
|
|
# Dispatcher that the actors responsible to write to a connection will use.
|
|
|
|
|
# The mailbox type must be always a DequeBasedMailbox.
|
2012-09-12 11:18:42 +02:00
|
|
|
writer-dispatcher {
|
|
|
|
|
mailbox-type = "akka.dispatch.UnboundedDequeBasedMailbox"
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# If enabled, an inbound connection is only considered to be live after the remote
|
|
|
|
|
# system sent an explicit acknowledgement.
|
|
|
|
|
# It is recommended to leave this setting on when connectionless transports (e.g. UDP)
|
|
|
|
|
# are used.
|
2012-09-12 11:18:42 +02:00
|
|
|
wait-activity-enabled = on
|
|
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Controls the backoff interval after a refused write is reattempted. (Transports may
|
|
|
|
|
# refuse writes if their internal buffer is full)
|
2012-11-23 10:15:19 +01:00
|
|
|
backoff-interval = 0.01 s
|
2012-09-12 11:18:42 +02:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Acknowledgment timeout of management commands sent to the transport stack.
|
|
|
|
|
command-ack-timeout = 30 s
|
2012-09-12 11:18:42 +02:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
### Security settings
|
2012-09-12 11:18:42 +02:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Enable untrusted mode for full security of server managed actors, prevents
|
|
|
|
|
# system messages to be send by clients, e.g. messages like 'Create',
|
|
|
|
|
# 'Suspend', 'Resume', 'Terminate', 'Supervise', 'Link' etc.
|
|
|
|
|
untrusted-mode = off
|
2012-09-12 11:18:42 +02:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Should the remote server require that its peers share the same
|
|
|
|
|
# secure-cookie (defined in the 'remote' section)? Secure cookies are passed
|
|
|
|
|
# between during the initial handshake. Connections are refused if the initial
|
|
|
|
|
# message contains a mismatching cookie or the cookie is missing.
|
|
|
|
|
require-cookie = off
|
2012-09-12 11:18:42 +02:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Generate your own with the script availbale in
|
|
|
|
|
# '$AKKA_HOME/scripts/generate_config_with_secure_cookie.sh' or using
|
|
|
|
|
# 'akka.util.Crypt.generateSecureCookie'
|
|
|
|
|
secure-cookie = ""
|
2012-09-12 11:18:42 +02:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
### Logging
|
2012-11-23 10:15:19 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# If this is "on", Akka will log all inbound messages at DEBUG level,
|
|
|
|
|
# if off then they are not logged
|
|
|
|
|
log-received-messages = off
|
2013-01-09 12:21:31 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# If this is "on", Akka will log all outbound messages at DEBUG level,
|
|
|
|
|
# if off then they are not logged
|
|
|
|
|
log-sent-messages = off
|
2012-11-23 10:15:19 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# If this is "on", Akka will log all RemoteLifeCycleEvents at the level
|
|
|
|
|
# defined for each, if off then they are not logged. Failures to deserialize
|
|
|
|
|
# received messages also fall under this flag.
|
|
|
|
|
log-remote-lifecycle-events = off
|
2012-11-23 10:15:19 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
### Failure detection and recovery
|
2012-11-23 10:15:19 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# how often should keep-alive heartbeat messages sent to connections.
|
|
|
|
|
heartbeat-interval = 1 s
|
2012-11-23 10:15:19 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Settings for the Phi accrual failure detector (http://ddg.jaist.ac.jp/pub/HDY+04.pdf
|
|
|
|
|
# [Hayashibara et al]) used by the remoting subsystem to detect failed connections.
|
|
|
|
|
failure-detector {
|
|
|
|
|
# defines the failure detector threshold
|
|
|
|
|
# A low threshold is prone to generate many wrong suspicions but ensures
|
|
|
|
|
# a quick detection in the event of a real crash. Conversely, a high
|
|
|
|
|
# threshold generates fewer mistakes but needs more time to detect
|
|
|
|
|
# actual crashes
|
|
|
|
|
threshold = 7.0
|
2012-11-23 10:15:19 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Number of the samples of inter-heartbeat arrival times to adaptively
|
|
|
|
|
# calculate the failure timeout for connections.
|
|
|
|
|
max-sample-size = 100
|
2012-11-23 10:15:19 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Minimum standard deviation to use for the normal distribution in
|
|
|
|
|
# AccrualFailureDetector. Too low standard deviation might result in
|
|
|
|
|
# too much sensitivity for sudden, but normal, deviations in heartbeat
|
|
|
|
|
# inter arrival times.
|
|
|
|
|
min-std-deviation = 100 ms
|
2012-11-23 10:15:19 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Number of potentially lost/delayed heartbeats that will be
|
|
|
|
|
# accepted before considering it to be an anomaly.
|
|
|
|
|
# It is a factor of heartbeat-interval.
|
|
|
|
|
# This margin is important to be able to survive sudden, occasional,
|
|
|
|
|
# pauses in heartbeat arrivals, due to for example garbage collect or
|
|
|
|
|
# network drop.
|
|
|
|
|
acceptable-heartbeat-pause = 3 s
|
2012-11-23 10:15:19 +01:00
|
|
|
}
|
|
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# After failed to establish an outbound connection, the remoting will mark the
|
|
|
|
|
# address as failed. This configuration option controls how much time should
|
|
|
|
|
# be elapsed before reattempting a new connection. While the address is
|
|
|
|
|
# gated, all messages sent to the address are delivered to dead-letters.
|
|
|
|
|
# If this setting is 0, the remoting will always immediately reattempt
|
|
|
|
|
# to establish a failed outbound connection and will buffer writes until
|
|
|
|
|
# it succeeds.
|
|
|
|
|
retry-gate-closed-for = 0 s
|
2011-11-25 12:02:25 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# If the retry gate function is disabled (see retry-gate-closed-for) the
|
|
|
|
|
# remoting subsystem will always attempt to reestablish failed outbound
|
|
|
|
|
# connections. The settings below together control the maximum number of
|
|
|
|
|
# reattempts in a given time window. The number of reattempts during
|
|
|
|
|
# a window of "retry-window" will be maximum "maximum-retries-in-window".
|
|
|
|
|
retry-window = 3 s
|
|
|
|
|
maximum-retries-in-window = 5
|
2011-11-15 11:34:39 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
### Transports and adapters
|
|
|
|
|
|
|
|
|
|
# List of the transport drivers that will be loaded by the remoting.
|
|
|
|
|
# A list of fully qualified config paths must be provided where
|
|
|
|
|
# the given configuration path contains a transport-class key
|
|
|
|
|
# pointing to an implementation class of the Transport interface.
|
|
|
|
|
# If multiple transports are provided, the address of the first
|
|
|
|
|
# one will be used as a default address.
|
|
|
|
|
enabled-transports = ["akka.remote.netty.tcp"]
|
|
|
|
|
|
|
|
|
|
# Transport drivers can be augmented with adapters by adding their
|
|
|
|
|
# name to the applied-adapters setting in the configuration of a
|
|
|
|
|
# transport. The available adapters should be configured in this
|
|
|
|
|
# section by providing a name, and the fully qualified name of
|
|
|
|
|
# their corresponding implementation
|
|
|
|
|
adapters {
|
|
|
|
|
gremlin = "akka.remote.transport.FailureInjectorProvider"
|
|
|
|
|
trttl = "akka.remote.transport.ThrottlerProvider"
|
|
|
|
|
}
|
2011-11-15 11:34:39 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
### Default configuration for the Netty based transport drivers
|
2012-01-21 00:32:37 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
netty.tcp {
|
|
|
|
|
transport-class = "akka.remote.transport.netty.NettyTransport"
|
2012-01-21 00:32:37 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Transport drivers can be augmented with adapters by adding their
|
|
|
|
|
# name to the applied-adapters list. The adapters will be applied
|
|
|
|
|
# in the order they are provided.
|
|
|
|
|
applied-adapters = []
|
2012-04-25 10:41:16 +02:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
transport-protocol = tcp
|
2012-01-20 14:29:50 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# The default remote server port clients should connect to.
|
2012-01-20 14:29:50 +01:00
|
|
|
# Default is 2552 (AKKA), use 0 if you want a random available port
|
2012-08-16 17:00:06 +02:00
|
|
|
# This port needs to be unique for each actor system on the same machine.
|
2012-01-20 14:29:50 +01:00
|
|
|
port = 2552
|
|
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# The hostname or ip to bind the remoting to,
|
|
|
|
|
# InetAddress.getLocalHost.getHostAddress is used if empty
|
|
|
|
|
hostname = ""
|
2012-02-18 17:39:20 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Enables SSL support on this transport
|
|
|
|
|
enable-ssl = false
|
2012-01-20 14:29:50 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Sets the connectTimeoutMillis of all outbound connections,
|
2012-08-06 11:31:34 +02:00
|
|
|
# i.e. how long a connect may take until it is timed out
|
2012-01-20 14:29:50 +01:00
|
|
|
connection-timeout = 120s
|
2011-11-15 11:34:39 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# If set to "<id.of.dispatcher>" then the specified dispatcher
|
|
|
|
|
# will be used to accept inbound connections, and perform IO. If "" then
|
|
|
|
|
# dedicated threads will be used.
|
|
|
|
|
use-dispatcher-for-io = ""
|
2012-01-20 14:29:50 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Sets the high water mark for the in and outbound sockets,
|
2012-09-26 10:56:25 +02:00
|
|
|
# set to 0b for platform default
|
2012-06-01 21:29:47 +02:00
|
|
|
write-buffer-high-water-mark = 0b
|
|
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Sets the low water mark for the in and outbound sockets,
|
2012-09-26 10:56:25 +02:00
|
|
|
# set to 0b for platform default
|
2012-06-01 21:47:14 +02:00
|
|
|
write-buffer-low-water-mark = 0b
|
|
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Sets the send buffer size of the Sockets,
|
2012-09-26 10:56:25 +02:00
|
|
|
# set to 0b for platform default
|
2013-01-17 16:19:31 +01:00
|
|
|
send-buffer-size = 32000b
|
2012-06-01 21:29:47 +02:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Sets the receive buffer size of the Sockets,
|
2012-09-26 10:56:25 +02:00
|
|
|
# set to 0b for platform default
|
2013-01-17 16:19:31 +01:00
|
|
|
receive-buffer-size = 32000b
|
|
|
|
|
|
|
|
|
|
# Sets the size of the connection backlog
|
|
|
|
|
backlog = 4096
|
2012-10-29 14:37:39 +01:00
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Used to configure the number of I/O worker threads on server sockets
|
2012-10-29 14:37:39 +01:00
|
|
|
server-socket-worker-pool {
|
|
|
|
|
# Min number of threads to cap factor-based number to
|
|
|
|
|
pool-size-min = 2
|
|
|
|
|
|
|
|
|
|
# The pool size factor is used to determine thread pool size
|
|
|
|
|
# using the following formula: ceil(available processors * factor).
|
|
|
|
|
# Resulting size is then bounded by the pool-size-min and
|
|
|
|
|
# pool-size-max values.
|
|
|
|
|
pool-size-factor = 1.0
|
|
|
|
|
|
|
|
|
|
# Max number of threads to cap factor-based number to
|
|
|
|
|
pool-size-max = 8
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-17 16:19:31 +01:00
|
|
|
# Used to configure the number of I/O worker threads on client sockets
|
2012-10-29 14:37:39 +01:00
|
|
|
client-socket-worker-pool {
|
|
|
|
|
# Min number of threads to cap factor-based number to
|
|
|
|
|
pool-size-min = 2
|
|
|
|
|
|
|
|
|
|
# The pool size factor is used to determine thread pool size
|
|
|
|
|
# using the following formula: ceil(available processors * factor).
|
|
|
|
|
# Resulting size is then bounded by the pool-size-min and
|
|
|
|
|
# pool-size-max values.
|
|
|
|
|
pool-size-factor = 1.0
|
|
|
|
|
|
|
|
|
|
# Max number of threads to cap factor-based number to
|
|
|
|
|
pool-size-max = 8
|
|
|
|
|
}
|
2012-01-20 14:29:50 +01:00
|
|
|
}
|
2013-01-17 16:19:31 +01:00
|
|
|
|
|
|
|
|
netty.udp = ${akka.remote.netty.tcp}
|
|
|
|
|
netty.udp {
|
|
|
|
|
transport-protocol = udp
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
netty.ssl = ${akka.remote.netty.tcp}
|
|
|
|
|
netty.ssl = {
|
|
|
|
|
enable-ssl = true
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-15 11:34:39 +01:00
|
|
|
}
|
2013-01-17 16:19:31 +01:00
|
|
|
|
2011-11-15 11:34:39 +01:00
|
|
|
}
|