pekko/akka-remote/src/main/resources/reference.conf

130 lines
3.7 KiB
Text
Raw Normal View History

#####################################
# Akka Remote Reference Config File #
#####################################
# This the reference config file has all the default settings.
# Make your edits/overrides in your application.conf.
akka {
actor {
deployment {
default {
# if this is set to a valid remote address, the named actor will be deployed
# at that node e.g. "akka://sys@host:port"
remote = ""
2011-12-17 16:33:29 +01:00
routees {
# A list of hostnames and ports for instantiating the children of a
# non-direct router
# The format should be on "akka://sys@host:port", where:
# - sys is the remote actor system name
# - hostname can be either hostname or IP address the remote actor
# should connect to
# - port should be the port for the remote server on the other node
# 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.
nodes = []
}
}
}
}
remote {
transport = "akka.remote.netty.NettyRemoteSupport"
use-compression = off
# Generate your own with '$AKKA_HOME/scripts/generate_config_with_secure_cookie.sh'
# or using 'akka.util.Crypt.generateSecureCookie'
secure-cookie = ""
# Timeout for ACK of cluster operations, lik checking actor out etc.
remote-daemon-ack-timeout = 30s
# Reuse inbound connections for outbound messages
use-passive-connections = on
# accrual failure detection config
failure-detector {
2011-12-14 17:14:57 +01:00
# 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 = 8
2011-12-14 17:14:57 +01:00
max-sample-size = 1000
}
gossip {
initialDelay = 5s
frequency = 1s
}
# The dispatcher used for remote system messages
compute-grid-dispatcher {
# defaults to same settings as default-dispatcher
name = ComputeGridDispatcher
}
server {
# The hostname or ip to bind the remoting to,
# InetAddress.getLocalHost.getHostAddress is used if empty
hostname = ""
2011-12-14 17:14:57 +01:00
# The default remote server port clients should connect to.
# Default is 2552 (AKKA)
port = 2552
2011-12-14 17:14:57 +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
# Timeout duration
connection-timeout = 120s
2011-12-14 17:14:57 +01:00
# Should the remote server require that it peers share the same secure-cookie
# (defined in the 'remote' section)?
require-cookie = off
2011-12-14 17:14:57 +01:00
# Enable untrusted mode for full security of server managed actors, allows
# untrusted clients to connect.
untrusted-mode = off
2011-12-14 17:14:57 +01:00
# Sets the size of the connection backlog
backlog = 4096
}
client {
buffering {
# Should message buffering on remote client error be used (buffer flushed
# on successful reconnect)
retry-message-send-on-failure = off
2011-12-14 17:14:57 +01:00
# If negative (or zero) then an unbounded mailbox is used (default)
# If positive then a bounded mailbox is used and the capacity is set using
# the property
capacity = -1
}
reconnect-delay = 5s
read-timeout = 3600s
message-frame-size = 1 MiB
# Maximum time window that a client should try to reconnect for
reconnection-time-window = 600s
}
}
cluster {
name = "default-cluster"
nodename = ""
seed-nodes = []
}
}