Created
April 18, 2011 00:24
-
-
Save blt/924633 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akka { | |
version = "1.1-M1" # Akka version, checked at startup. | |
enabled-modules = ["camel"] | |
time-unit = "seconds" # Time unit for all timeout properties throughout the config | |
event-handlers = ["akka.event.slf4j.Slf4jEventHandler"] | |
event-handler-level = "DEBUG" | |
boot = ["com.fluentstream.smsbridge.Boot"] | |
actor { | |
timeout = 5 # Default timeout for Future based invocations | |
# - Actor: !! && !!! | |
# - UntypedActor: sendRequestReply && sendRequestReplyFuture | |
# - TypedActor: methods with non-void return type | |
serialize-messages = off # Does a deep clone of (non-primitive) messages to ensure immutability | |
throughput = 5 # Default throughput for all ExecutorBasedEventDrivenDispatcher, set to 1 for complete fairness | |
throughput-deadline-time = -1 # Default throughput deadline for all ExecutorBasedEventDrivenDispatcher, set to 0 or negative for no deadline | |
dispatcher-shutdown-timeout = 1 # Using the akka.time-unit, how long dispatchers by default will wait for new actors until they shut down | |
default-dispatcher { | |
type = "GlobalExecutorBasedEventDriven" # Must be one of the following, all "Global*" are non-configurable | |
# - ExecutorBasedEventDriven | |
# - ExecutorBasedEventDrivenWorkStealing | |
# - GlobalExecutorBasedEventDriven | |
keep-alive-time = 60 # Keep alive time for threads | |
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 | |
rejection-policy = "caller-runs" # abort, caller-runs, discard-oldest, discard | |
throughput = 5 # Throughput for ExecutorBasedEventDrivenDispatcher, set to 1 for complete fairness | |
throughput-deadline-time = -1 # Throughput deadline for ExecutorBasedEventDrivenDispatcher, set to 0 or negative for no deadline | |
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 | |
# NOTE: setting a mailbox to 'blocking' can be a bit dangerous, | |
# could lead to deadlock, use with care | |
# | |
# The following are only used for ExecutorBasedEventDriven | |
# and only if mailbox-capacity > 0 | |
mailbox-push-timeout-time = 10 # Specifies the timeout to add a new message to a mailbox that is full - negative number means infinite timeout | |
# (in unit defined by the time-unit property) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- For assistance related to logback-translator or configuration --> | |
<!-- files in general, please contact the logback user mailing list --> | |
<!-- at http://www.qos.ch/mailman/listinfo/logback-user --> | |
<!-- --> | |
<!-- For professional support please see --> | |
<!-- http://www.qos.ch/shop/products/professionalSupport --> | |
<!-- --> | |
<!-- FOR AKKA INTERNAL USE ONLY --> | |
<configuration scan="false" debug="false"> | |
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern>[%4p] [%d{ISO8601}] [%t] %c{1}: %m%n</pattern> | |
</encoder> | |
</appender> | |
<appender name="R" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<File>./logs/akka.log</File> | |
<encoder> | |
<pattern>[%4p] [%d{ISO8601}] [%t] %c{1}: %m%n</pattern> | |
</encoder> | |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | |
<fileNamePattern>./logs/akka.log.%d{yyyy-MM-dd-HH}</fileNamePattern> | |
</rollingPolicy> | |
</appender> | |
<logger name="akka" level="DEBUG"/> | |
<root level="DEBUG"> | |
<appender-ref ref="stdout"/> | |
<appender-ref ref="R"/> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment