2011-11-15 11:34:39 +01:00
|
|
|
#####################################
|
|
|
|
|
# Akka Remote Reference Config File #
|
|
|
|
|
#####################################
|
|
|
|
|
|
|
|
|
|
# This the reference config file has 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
|
|
|
|
|
|
|
|
akka {
|
|
|
|
|
|
2011-12-12 23:31:15 +01:00
|
|
|
actor {
|
|
|
|
|
|
|
|
|
|
deployment {
|
|
|
|
|
|
|
|
|
|
default {
|
|
|
|
|
|
2011-12-15 14:26:17 +01: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
|
|
|
|
2011-12-17 16:33:29 +01:00
|
|
|
routees {
|
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
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-15 11:34:39 +01:00
|
|
|
remote {
|
2011-12-02 18:08:13 +01:00
|
|
|
transport = "akka.remote.netty.NettyRemoteSupport"
|
2011-11-25 12:02:25 +01:00
|
|
|
|
|
|
|
|
use-compression = off
|
2011-11-15 11:34:39 +01:00
|
|
|
|
2011-12-14 15:12:40 +01:00
|
|
|
# Generate your own with '$AKKA_HOME/scripts/generate_config_with_secure_cookie.sh'
|
|
|
|
|
# or using 'akka.util.Crypt.generateSecureCookie'
|
|
|
|
|
secure-cookie = ""
|
2011-11-15 11:34:39 +01:00
|
|
|
|
2011-12-14 15:12:40 +01:00
|
|
|
# Timeout for ACK of cluster operations, lik checking actor out etc.
|
|
|
|
|
remote-daemon-ack-timeout = 30s
|
2011-11-15 11:34:39 +01:00
|
|
|
|
2011-12-14 15:12:40 +01:00
|
|
|
# Reuse inbound connections for outbound messages
|
|
|
|
|
use-passive-connections = on
|
2011-11-15 11:34:39 +01:00
|
|
|
|
2011-12-14 15:12:40 +01:00
|
|
|
# accrual failure detection config
|
|
|
|
|
failure-detector {
|
2011-12-14 17:14:57 +01:00
|
|
|
|
2011-12-14 15:12:40 +01:00
|
|
|
# defines the failure detector threshold
|
2011-12-15 14:26:17 +01:00
|
|
|
# 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
|
2011-12-14 15:12:40 +01:00
|
|
|
threshold = 8
|
2011-12-14 17:14:57 +01:00
|
|
|
|
2011-11-15 11:34:39 +01:00
|
|
|
max-sample-size = 1000
|
|
|
|
|
}
|
2011-12-14 15:12:40 +01:00
|
|
|
|
2011-11-30 10:20:57 +01:00
|
|
|
gossip {
|
|
|
|
|
initialDelay = 5s
|
|
|
|
|
frequency = 1s
|
|
|
|
|
}
|
2011-12-14 15:12:40 +01:00
|
|
|
|
|
|
|
|
# The dispatcher used for remote system messages
|
|
|
|
|
compute-grid-dispatcher {
|
|
|
|
|
# defaults to same settings as default-dispatcher
|
|
|
|
|
name = ComputeGridDispatcher
|
2011-11-30 10:20:57 +01:00
|
|
|
}
|
2011-11-15 11:34:39 +01:00
|
|
|
|
|
|
|
|
server {
|
2011-12-15 14:26:17 +01:00
|
|
|
# The hostname or ip to bind the remoting to,
|
|
|
|
|
# InetAddress.getLocalHost.getHostAddress is used if empty
|
2011-12-14 15:12:40 +01:00
|
|
|
hostname = ""
|
2011-12-14 17:14:57 +01:00
|
|
|
|
2011-12-15 14:26:17 +01:00
|
|
|
# The default remote server port clients should connect to.
|
|
|
|
|
# Default is 2552 (AKKA)
|
2011-12-14 15:12:40 +01:00
|
|
|
port = 2552
|
2011-12-14 17:14:57 +01:00
|
|
|
|
2011-12-14 15:12:40 +01:00
|
|
|
# Increase this if you want to be able to send messages with large payloads
|
|
|
|
|
message-frame-size = 1 MiB
|
2011-12-14 17:14:57 +01:00
|
|
|
|
2011-12-14 15:12:40 +01:00
|
|
|
# Timeout duration
|
|
|
|
|
connection-timeout = 120s
|
2011-12-14 17:14:57 +01:00
|
|
|
|
2011-12-15 14:26:17 +01:00
|
|
|
# Should the remote server require that it peers share the same secure-cookie
|
|
|
|
|
# (defined in the 'remote' section)?
|
2011-12-14 15:12:40 +01:00
|
|
|
require-cookie = off
|
2011-12-14 17:14:57 +01:00
|
|
|
|
2011-12-15 14:26:17 +01:00
|
|
|
# Enable untrusted mode for full security of server managed actors, allows
|
|
|
|
|
# untrusted clients to connect.
|
2011-12-14 15:12:40 +01:00
|
|
|
untrusted-mode = off
|
2011-12-14 17:14:57 +01:00
|
|
|
|
2011-12-14 15:12:40 +01:00
|
|
|
# Sets the size of the connection backlog
|
|
|
|
|
backlog = 4096
|
2011-11-15 11:34:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
client {
|
|
|
|
|
buffering {
|
2011-12-15 14:26:17 +01:00
|
|
|
# Should message buffering on remote client error be used (buffer flushed
|
|
|
|
|
# on successful reconnect)
|
2011-12-14 15:12:40 +01:00
|
|
|
retry-message-send-on-failure = off
|
2011-12-14 17:14:57 +01:00
|
|
|
|
2011-12-14 15:12:40 +01:00
|
|
|
# If negative (or zero) then an unbounded mailbox is used (default)
|
2011-12-15 14:26:17 +01:00
|
|
|
# If positive then a bounded mailbox is used and the capacity is set using
|
|
|
|
|
# the property
|
2011-12-14 15:12:40 +01:00
|
|
|
capacity = -1
|
2011-11-15 11:34:39 +01:00
|
|
|
}
|
2011-11-22 13:04:10 +01:00
|
|
|
reconnect-delay = 5s
|
|
|
|
|
read-timeout = 3600s
|
2011-11-29 11:50:22 +01:00
|
|
|
message-frame-size = 1 MiB
|
2011-12-14 15:12:40 +01:00
|
|
|
# Maximum time window that a client should try to reconnect for
|
|
|
|
|
reconnection-time-window = 600s
|
2011-11-22 13:04:10 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-25 12:02:25 +01:00
|
|
|
cluster {
|
2011-11-25 15:42:25 +01:00
|
|
|
name = "default-cluster"
|
|
|
|
|
nodename = ""
|
|
|
|
|
seed-nodes = []
|
2011-11-15 11:34:39 +01:00
|
|
|
}
|
|
|
|
|
}
|