These are chat archives for akkadotnet/akka.net

5th
Apr 2016
joonhwan
@joonhwan
Apr 05 2016 00:13
@Aaronontheweb It worked. now I have
```
akka {
remote {
watch-failure-detector {
implementation-class = ""Akka.Remote.DeadlineFailureDetector,Akka.Remote""
acceptable-heartbeat-pause = 5 s
}
}
}
configuration and before transport failure detection, remote watch recognized the unplugged remote actor system works as I want.
to11mtm
@to11mtm
Apr 05 2016 00:56
@Horusiath : Thanks, I didn't notice that one before!
hmm... If I do this at home, I could put a fork up... >_>
Kris Schepers
@schepersk
Apr 05 2016 07:36
@Horusiath did you have time to get around reproducing the issue in my sample?
Bartosz Sypytkowski
@Horusiath
Apr 05 2016 09:02
@schepersk yes, I think I'm able to reproduce it, however I need to check it against current dev branch (I think we may had this issue already fixed, just not released yet)
Kris Schepers
@schepersk
Apr 05 2016 09:55
@Horusiath owkay, thanks! Keep me in the loop please.. Otherwise I'll have to come up with plan B :smile:
Pavel Knorr
@knorrus
Apr 05 2016 12:29
question: A want to use advantages of App.Config transformation with HOCON let's say that I want to have different persistence.journal.postgresql.connection-string in App.Debug.Config and App.Release.Config. Right now I came only to storing connection string in appSetting section and then using it by doing withFallback programmatically during startup, is there is a better way to achieve that?
Kris Schepers
@schepersk
Apr 05 2016 12:33
@knorrus Good question, I would also like to see what the specialists have to say about this. For the moment I'm copying the whole akka section in every transform file, applying the changes for that environment and using the xdt:Transform="Replace" as transform option.
Pavel Knorr
@knorrus
Apr 05 2016 12:36
@schepersk I see, but for me it look weird to copy ~200 rows of HOCON to change persistence.journal.postgresql.connection-string and remote.helios.tcp
Kris Schepers
@schepersk
Apr 05 2016 12:37
@knorrus Indeed, same here basically.. But I couldn't find a quick alternative :smile:
Pavel Knorr
@knorrus
Apr 05 2016 12:40

I thought about several Akka.Configuration.Hocon.AkkaConfigurationSection one for general stuff (actors config, deployment stuff and so on ) and one variable part: something like:

cluster {
    log-info = off
    seed-nodes = ["akka.tcp://cluster-system@127.0.0.1:4052"]
    seed-node-timeout = 10s
    roles = ["api"]
}

And then apply generalConfig.WithFallback(clusterConfig).WithFallback(persistenceConfig) it should works but also looks weird as for me

Bartosz Sypytkowski
@Horusiath
Apr 05 2016 13:27
@knorrus you have connection-string-name besides connection-string - if you haven't specified connection-string, it will use name as key for *.config file lookup
Pavel Knorr
@knorrus
Apr 05 2016 13:29
@Horusiath So I should place connection settings into separate file?
Bartosz Sypytkowski
@Horusiath
Apr 05 2016 13:31
it's up to you. Lookup works using standard configuration manager connection strings section
Pavel Knorr
@knorrus
Apr 05 2016 13:33
Ok, maybe connection string is bad example, but how properly organize workflow when akka.cluser for debug and release if 100% different?
Bartosz Sypytkowski
@Horusiath
Apr 05 2016 13:38
I usually create a settings class, which then I fill with actorSystem.Settings.Config.GetConfig("section.path"). Common configuration is placed inside dedicated reference.conffile, which is an embedded resource inside the assembly, and always offered as a falback config. Only moving parts (like distinction between debug/prod) are placed under *.config files
this is basically how every akka plugin solves its configuration management
JaspritBola
@JaspritBola
Apr 05 2016 15:39
@knorrus I find that kind of fallback doesn't always work as expected
Christian Duhard
@cduhard
Apr 05 2016 15:45
when sending a PoisonPill to a RoundRobin pool router will I receive 1 or X(pool size) terminated messages? I assume the latter
JaspritBola
@JaspritBola
Apr 05 2016 16:05
@knorrus actually it does work... I was trying it with host instead of hostname