These are chat archives for akkadotnet/akka.net

26th
Sep 2016
Alex Valuyskiy
@alexvaluyskiy
Sep 26 2016 06:50
@boekabart Sqlite is not supported on Mono
read these instructions if you want to run it on mono https://system.data.sqlite.org/index.html/doc/trunk/www/build.wiki#mono
Robert Stiff
@uatec
Sep 26 2016 12:54
hey
so i'm trying to use cluster sharding, and i've followed the documentation and i simply get "Trying to register to coordinator at [], but no acknowledgement. Total 2 buffered messages.", but it never instantiates my actor
Bartosz Sypytkowski
@Horusiath
Sep 26 2016 12:55
@uatec did you setup a persistent backend?
Robert Stiff
@uatec
Sep 26 2016 13:31
@Horusiath not yet, but i'm not bothered about persistence yet
from the documentation, that shouldn't matter
i have established that have a single node cluster pointing directly to itself works
but when i try to introduce the lighthouse, the lighthouse starts throwing weird exceptions([ERROR][26/09/2016 13:23:26][Thread 0012][[akka://birch/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Fbirchd%40127.0.0.1%3A62441-1/endpointWriter#780246330]] Dropping message [Akka.Actor.ActorSelectionMessage] for non-local recipient [[akka.tcp://birchd@127.0.0.1:4053/]] arriving at [akka.tcp://birchd@127.0.0.1:4053] inbound addresses [akka.tcp://birch@127.0.0.1:4053])
and my node never starts the coordinator
Bartosz Sypytkowski
@Horusiath
Sep 26 2016 13:52
@uatec by default cluster sharding will assume, that every node in the cluster has cluster sharding capability. This includes lighthouse, which is not capable of such thing. You need to set config to limit cluster sharding to nodes having particular role and make sure only correct nodes have that role
something like:
akka.cluster.roles = [ "cluster-sharding" ]
akka.cluster.sharding.role = "cluster-sharding"
Bart de Boer
@boekabart
Sep 26 2016 14:00
@alexvaluyskiy thanks
Robert Stiff
@uatec
Sep 26 2016 14:32
@Horusiath yes, i've done that both in configuration and in code (when creating the clustershardingsettings
well, adding the sharding.roles in to the configuration file has stopped it from throwing errors over to the lighthouse, which is great
although it's not helping my shardregion figure out whether to spawn a coordinator
oh wait, it hasn't... pfff
Andrew Young
@ayoung
Sep 26 2016 16:49
Can someone point me to how Cluster resolves conflicts in HOCON configuration for the cluster? So let's say we have one node that defines min-nr-of-members = 3 and another that defines min-nr-of-members = 4. Which one wins?
Bartosz Sypytkowski
@Horusiath
Sep 26 2016 17:47
@ayoung the one, you've used to initialize a router afaik
Andrew Young
@ayoung
Sep 26 2016 17:49
for now, i've just been putting all that config in my seed nodes. but i'd like to know for certain how config resolution takes place.
TonyLo1
@TonyLo1
Sep 26 2016 19:21
Hi, is it possible to use persistence to just take snapshots (on demand) - I'm not looking for a recovery option, I just want to save state when required?
Bartosz Sypytkowski
@Horusiath
Sep 26 2016 19:30
@TonyLo1 no, akka.persistence snapshots are made to optimize eventsourcing. Simply saving a state in a database is not hard thing to do
TonyLo1
@TonyLo1
Sep 26 2016 19:36
@Horusiath, thx - now I know - guess it's back to the SaveState/LoadState messages then :)