Created
February 18, 2020 22:39
-
-
Save Aaronontheweb/dec8079f206e82df5a43323c59296c92 to your computer and use it in GitHub Desktop.
HOCON Debugging
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 { | |
loggers = ["Akka.Logger.Serilog.SerilogLogger, Akka.Logger.Serilog"] | |
stdout-loglevel = DEBUG | |
loglevel = DEBUG | |
log-config-on-start = off | |
suppress-json-serializer-warning = on | |
actor { | |
#serialize-messages = on | |
provider = "Akka.Cluster.ClusterActorRefProvider,Akka.Cluster" # turns Akka.Cluster on | |
# This is to get the manifest back in the event journal | |
serializers { | |
json2 = "SenSys2.Infrastructure.JsonSerializerWithManifest, SenSys2.Infrastructure" | |
} | |
serialization-bindings { | |
"System.Object" = json2 | |
} | |
# Configuration namespace of serialization identifiers. | |
# Each serializer implementation must have an entry in the following format: | |
# `akka.actor.serialization-identifiers."FQCN" = ID` | |
# where `FQCN` is fully qualified class name of the serializer implementation | |
# and `ID` is globally unique serializer identifier number. | |
# Identifier values from 0 to 40 are reserved for Akka internal usage. | |
serialization-identifiers { | |
"SenSys2.Infrastructure.JsonSerializerWithManifest, SenSys2.Infrastructure" = 410 | |
} | |
debug { | |
receive = on | |
autoreceive = on | |
lifecycle = on | |
event-stream = on | |
unhandled = on | |
} | |
} | |
remote { | |
dot-netty.tcp { | |
hostname = "localhost" # will / should be overwritten by CLUSTER_IP environment variable as part of Akka.Bootstrap.Docker | |
port = 0 # random port | |
} | |
} | |
cluster { | |
down-removal-margin = 2s | |
seed-nodes = ["akka.tcp://sensys2@localhost:4053"] # will / should be overwritten by CLUSTER_SEEDS environment variable as part of Akka.Bootstrap.Docker | |
roles = ["sensys2"] # help us distinguish from different services in Cluster | |
downing-provider-class = "Akka.Cluster.SplitBrainResolver, Akka.Cluster" | |
split-brain-resolver { | |
stable-after = 3s | |
active-strategy = keep-referee | |
keep-referee { | |
# referee address on the form of "akka.tcp://system@hostname:port" | |
address = "akka.tcp://sensys2@localhost:4053" | |
down-all-if-less-than-nodes = 0 | |
} | |
} | |
singleton { | |
singleton-name = "resumableProjections" | |
role = "" | |
hand-over-retry-interval = 1s | |
} | |
singleton-proxy { | |
singleton-name = "resumableProjections" | |
role = "" | |
singleton-identification-interval = 2s | |
buffer-size = 100 | |
} | |
} | |
persistence { | |
publish-plugin-commands = on | |
journal { | |
plugin = "akka.persistence.journal.sql-server" | |
sql-server { | |
connection-string-name = DefaultConnection | |
schema-name = dbo | |
table-name = EventJournal | |
auto-initialize = off | |
serializer = "json2" | |
} | |
} | |
snapshot-store { | |
plugin = "akka.persistence.snapshot-store.sql-server" | |
sql-server { | |
connection-string-name = DefaultConnection | |
schema-name = dbo | |
table-name = SnapshotStore | |
auto-initialize = off | |
serializer = "json2" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment