2009-08-13 22:55:39 +05:30
####################
# Akka Config File #
####################
2010-06-01 18:41:39 +02:00
2009-11-11 14:17:18 +00:00
# This file has all the default settings, so all these could be removed with no visible effect.
2009-08-13 22:55:39 +05:30
# Modify as needed.
2010-06-01 18:41:39 +02:00
2010-07-14 15:46:05 +02:00
akka {
2010-11-26 17:49:25 +01:00
version = "1.0-RC1" # Akka version, checked against the runtime version of Akka.
2010-10-29 16:33:31 +02:00
2010-11-22 17:58:21 +01:00
enabled-modules = [] # Comma separated list of the enabled modules. Options: ["remote", "camel", "http"]
2010-11-22 15:32:54 +01:00
time-unit = "seconds" # Time unit for all timeout properties throughout the config
2010-07-23 04:54:21 +02:00
2010-08-21 15:36:50 +02:00
# These boot classes are loaded (and created) automatically when the Akka Microkernel boots up
# Can be used to bootstrap your application(s)
# Should be the FQN (Fully Qualified Name) of the boot class which needs to have a default constructor
2010-03-16 07:08:10 +01:00
boot = ["sample.camel.Boot",
2010-06-01 18:41:39 +02:00
"sample.rest.java.Boot",
2010-04-05 12:32:15 +02:00
"sample.rest.scala.Boot",
"sample.security.Boot"]
2009-09-30 20:08:55 +02:00
2010-07-14 15:46:05 +02:00
actor {
2010-08-21 15:36:50 +02:00
timeout = 5 # Default timeout for Future based invocations
# - Actor: !! && !!!
# - UntypedActor: sendRequestReply && sendRequestReplyFuture
# - TypedActor: methods with non-void return type
2010-08-21 10:45:00 +02:00
serialize-messages = off # Does a deep clone of (non-primitive) messages to ensure immutability
2010-08-21 15:36:50 +02:00
throughput = 5 # Default throughput for all ExecutorBasedEventDrivenDispatcher, set to 1 for complete fairness
2010-09-21 18:52:41 +02:00
throughput-deadline-time = -1 # Default throughput deadline for all ExecutorBasedEventDrivenDispatcher, set to 0 or negative for no deadline
2010-11-12 14:04:06 +01:00
dispatcher-shutdown-timeout = 1 # Using the akka.time-unit, how long dispatchers by default will wait for new actors until they shut down
2010-08-21 15:36:50 +02:00
2010-08-12 16:41:54 +02:00
default-dispatcher {
2010-08-13 14:43:02 +02:00
type = "GlobalExecutorBasedEventDriven" # Must be one of the following, all "Global*" are non-configurable
2010-08-21 15:36:50 +02:00
# - Hawt
# - ExecutorBasedEventDriven
# - ExecutorBasedEventDrivenWorkStealing
# - GlobalHawt
# - GlobalExecutorBasedEventDriven
2010-09-21 18:52:41 +02:00
keep-alive-time = 60 # Keep alive time for threads
2010-08-21 10:45:00 +02:00
core-pool-size-factor = 1.0 # No of core threads ... ceil(available processors * factor)
max-pool-size-factor = 4.0 # Max no of threads ... ceil(available processors * factor)
executor-bounds = -1 # Makes the Executor bounded, -1 is unbounded
allow-core-timeout = on # Allow core threads to time out
2010-08-13 13:13:27 +02:00
rejection-policy = "caller-runs" # abort, caller-runs, discard-oldest, discard
2010-08-21 15:36:50 +02:00
throughput = 5 # Throughput for ExecutorBasedEventDrivenDispatcher, set to 1 for complete fairness
2010-09-21 18:52:41 +02:00
throughput-deadline-time = -1 # Throughput deadline for ExecutorBasedEventDrivenDispatcher, set to 0 or negative for no deadline
2010-08-21 10:45:00 +02:00
aggregate = off # Aggregate on/off for HawtDispatchers
2010-08-21 15:36:50 +02:00
mailbox-capacity = -1 # 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
2010-08-21 16:13:16 +02:00
# NOTE: setting a mailbox to 'blocking' can be a bit dangerous,
2010-08-21 15:36:50 +02:00
# could lead to deadlock, use with care
2010-09-06 19:12:05 +02:00
#
# The following are only used for ExecutorBasedEventDriven
# and only if mailbox-capacity > 0
2010-10-29 16:33:31 +02:00
mailbox-push-timeout-time = 10 # Specifies the timeout to add a new message to a mailbox that is full - negative number means infinite timeout
2010-09-21 18:52:41 +02:00
# (in unit defined by the time-unit property)
2010-08-12 16:41:54 +02:00
}
2010-07-14 15:46:05 +02:00
}
2010-05-27 15:58:28 +12:00
2010-07-14 15:46:05 +02:00
stm {
2010-09-01 19:22:39 +02:00
fair = on # Should global transactions be fair or non-fair (non fair yield better performance)
max-retries = 1000
timeout = 5 # Default timeout for blocking transactions and transaction set (in unit defined by
# the time-unit property)
write-skew = true
2010-08-31 10:39:18 +02:00
blocking-allowed = false
2010-09-01 19:22:39 +02:00
interruptible = false
speculative = true
quick-release = true
propagation = "requires"
trace-level = "none"
hooks = true
jta-aware = off # Option 'on' means that if there JTA Transaction Manager available then the STM will
# begin (or join), commit or rollback the JTA transaction. Default is 'off'.
2010-07-14 15:46:05 +02:00
}
2010-06-01 18:41:39 +02:00
2010-07-14 15:46:05 +02:00
jta {
2010-08-21 15:36:50 +02:00
provider = "from-jndi" # Options: - "from-jndi" (means that Akka will try to detect a TransactionManager in the JNDI)
# - "atomikos" (means that Akka will use the Atomikos based JTA impl in 'akka-jta',
# e.g. you need the akka-jta JARs on classpath).
2010-07-23 04:54:21 +02:00
timeout = 60
2010-07-14 15:46:05 +02:00
}
2010-04-20 11:44:26 +02:00
2010-11-22 15:32:54 +01:00
http {
2009-12-27 06:35:25 +01:00
hostname = "localhost"
port = 9998
2010-11-25 14:10:53 +01:00
#If you are using akka.http.AkkaRestServlet
filters = ["se.scalablesolutions.akka.security.AkkaSecurityFilterFactory"] # List with all jersey filters to use
resource_packages = ["sample.rest.scala",
"sample.rest.java",
"sample.security"] # List with all resource packages for your Jersey services
2010-08-21 15:36:50 +02:00
authenticator = "sample.security.BasicAuthenticationService" # The authentication service to use. Need to be overridden (sample now)
2010-11-25 14:10:53 +01:00
# Uncomment if you are using the KerberosAuthenticationActor
# kerberos {
# servicePrincipal = "HTTP/localhost@EXAMPLE.COM"
# keyTabLocation = "URL to keytab"
# kerberosDebug = "true"
# realm = "EXAMPLE.COM"
# }
2010-08-12 16:41:54 +02:00
2010-11-25 14:10:53 +01:00
#If you are using akka.http.AkkaMistServlet
mist-dispatcher {
2010-08-21 15:36:50 +02:00
#type = "Hawt" # Uncomment if you want to use a different dispatcher than the default one for Comet
2010-08-12 16:41:54 +02:00
}
2010-11-09 23:02:59 -08:00
connection-close = true # toggles the addition of the "Connection" response header with a "close" value
root-actor-id = "_httproot" # the id of the actor to use as the root endpoint
root-actor-builtin = true # toggles the use of the built-in root endpoint base class
timeout = 1000 # the default timeout for all async requests (in ms)
expired-header-name = "Async-Timeout" # the name of the response header to use when an async request expires
expired-header-value = "expired" # the value of the response header to use when an async request expires
2010-07-14 15:46:05 +02:00
}
2009-12-27 06:35:25 +01:00
2010-07-14 15:46:05 +02:00
remote {
2010-10-29 16:33:31 +02:00
2010-10-26 12:04:32 +02:00
secure-cookie = "050E0A0D0D06010A00000900040D060F0C09060B" # generate your own with '$AKKA_HOME/scripts/generate_secure_cookie.sh' or using 'Crypt.generateSecureCookie'
2009-11-22 14:32:27 +01:00
compression-scheme = "zlib" # Options: "zlib" (lzf to come), leave out for no compression
zlib-compression-level = 6 # Options: 0-9 (1 being fastest and 9 being the most compressed), default is 6
2010-07-14 15:46:05 +02:00
server {
2010-11-22 15:32:54 +01:00
hostname = "localhost" # The hostname or IP that clients should connect to
port = 2552 # The port clients should connect to. Default is 2552 (AKKA)
message-frame-size = 1048576 # Increase this if you want to be able to send messages with large payloads
2010-07-23 04:54:21 +02:00
connection-timeout = 1
2010-11-22 15:32:54 +01:00
require-cookie = on # Should the remote server require that it peers share the same secure-cookie (defined in the 'remote' section)?
untrusted-mode = off # Enable untrusted mode for full security of server managed actors, allows untrusted clients to connect.
2010-07-14 15:46:05 +02:00
}
2009-11-22 14:32:27 +01:00
2010-07-14 15:46:05 +02:00
client {
2010-07-23 04:54:21 +02:00
reconnect-delay = 5
read-timeout = 10
2010-11-02 21:41:35 +01:00
message-frame-size = 1048576
2010-08-21 15:36:50 +02:00
reconnection-time-window = 600 # Maximum time window that a client should try to reconnect for
}
2010-07-14 15:46:05 +02:00
}
2010-06-01 18:41:39 +02:00
2010-11-22 15:32:54 +01:00
persistence {
2010-07-14 15:46:05 +02:00
cassandra {
2009-08-14 00:05:02 +02:00
hostname = "127.0.0.1" # IP address or hostname of one of the Cassandra cluster's seeds
2010-08-21 15:36:50 +02:00
port = 9160 # Port to Cassandra
2010-05-25 12:24:15 +02:00
consistency-level = "QUORUM" # Options: ZERO, ONE, QUORUM, DCQUORUM, DCQUORUMSYNC, ALL, ANY
2010-07-14 15:46:05 +02:00
}
2010-06-01 18:41:39 +02:00
2010-07-14 15:46:05 +02:00
mongodb {
2009-08-14 00:05:02 +02:00
hostname = "127.0.0.1" # IP address or hostname of the MongoDB DB instance
2010-08-21 15:36:50 +02:00
port = 27017 # Port to MongoDB
2009-08-13 22:55:39 +05:30
dbname = "mydb"
2010-07-14 15:46:05 +02:00
}
2009-12-24 12:20:39 +05:30
2010-07-14 15:46:05 +02:00
redis {
2009-12-24 12:20:39 +05:30
hostname = "127.0.0.1" # IP address or hostname of the Redis instance
2010-08-21 15:36:50 +02:00
port = 6379 # Port to Redis
2010-07-14 15:46:05 +02:00
}
2010-09-15 16:06:02 +02:00
2010-10-12 17:29:32 +02:00
couchdb {
url = "http://localhost:5984/testakka/"
}
2010-10-05 19:31:28 +08:00
2010-09-15 16:06:02 +02:00
hbase {
2010-09-25 09:09:52 +02:00
zookeeper-quorum = "localhost" # A comma separated list of hostnames or IPs of the zookeeper quorum instances
2010-09-15 16:06:02 +02:00
}
2010-09-23 15:12:12 +02:00
2010-09-20 21:28:09 -04:00
voldemort {
store {
2010-09-23 21:14:36 -04:00
ref = "Refs" # Voldemort Store Used to Persist Refs. Use string serializer for keys, identity serializer for values
2010-09-24 19:38:28 -04:00
maps = "Maps" # Voldemort Store Used to Persist Map Keys. Use identity serializer for keys, identity serializer for values
vector = "Vectors" # Voldemort Store Used to Persist Vector Sizes. Use identity serializer for keys, identity serializer for values
2010-09-23 21:14:36 -04:00
queue = "Queues" # Voldemort Store Used to Persist Vector Values. Use identity serializer for keys, identity serializer for values
2010-09-20 21:28:09 -04:00
}
2010-10-29 16:33:31 +02:00
2010-09-24 19:38:28 -04:00
client { # The KeyValue pairs under client are converted to java Properties and used to construct the Voldemort ClientConfig
2010-09-20 21:28:09 -04:00
bootstrap_urls = "tcp://localhost:6666" # All Valid Voldemort Client properties are valid here, in string form
}
2010-09-15 16:06:02 +02:00
}
2010-10-15 12:26:31 -04:00
riak {
bucket {
ref = "Refs"
maps = "Maps"
vector = "Vectors"
queue = "Queues"
}
2010-11-22 15:32:54 +01:00
client {
2010-10-15 12:26:31 -04:00
host = "localhost"
port = 8087 #Default Riak Protobuf port
}
}
2010-11-05 19:24:07 -04:00
memcached {
2010-11-22 15:32:54 +01:00
client {
addresses = "localhost:11211" #Formatted according to spymemcached "localhost:11211 otherhost:11211" etc..
2010-11-05 19:24:07 -04:00
}
}
2010-11-11 16:33:23 -05:00
simpledb {
2010-11-22 15:32:54 +01:00
account {
2010-11-11 16:33:23 -05:00
id = "YOU NEED TO PROVIDE AN AWS ID"
secretKey = "YOU NEED TO PROVIDE AN AWS SECRETKEY"
}
2010-11-22 15:32:54 +01:00
client {
2010-11-11 16:33:23 -05:00
#Defaults to default AWS ClientConfiguration
timeout =50000
#maxconnections =
maxretries = 10
#protocol = "HTTPS" | "HTTP"
#sockettimeout 50000
#sendbuffer = 0
#receivebuffer = 0
#useragent = "AWS Java SDK-1.0.14"
}
2010-11-22 15:32:54 +01:00
domain {
2010-11-11 16:33:23 -05:00
ref = "ref"
map = "map"
vector = "vector"
queue = "queue"
}
}
2010-07-14 15:46:05 +02:00
}
}