These are chat archives for akkadotnet/akka.net

23rd
Feb 2017
Jose Carlos Marquez
@oeaoaueaa
Feb 23 2017 09:30
morning, in a cluster with a unreliable network, should I need to restart any node at all if I'm not using "auto-down-unreachable-after" ?
Arsene T. Gandote
@Tochemey
Feb 23 2017 14:27
Hello I want to use ask in an actor. However I would like to know the best way to do that. Any idea?
Sam 塞缪尔
@contactsamie
Feb 23 2017 14:31
@Tochemey doing only tells in an actor is usually the best way to go, you want to avoid asking inside an actor. What are you trying to accomplish?
Arsene T. Gandote
@Tochemey
Feb 23 2017 14:33
I do know that but I still want to do it.
Sam 塞缪尔
@contactsamie
Feb 23 2017 14:38
you'll need a ReceiveAsync<>(async message => and await on the ask with a timeout. you want to also decide how to supervise that, e.g try catch around the whole thing or use a supervision strategy. take a look at pipeto as well if it fits your scenario https://petabridge.com/blog/akkadotnet-async-actors-using-pipeto/
Natan Vivo
@nvivo
Feb 23 2017 14:46
Hi
My seed node suddenly became inaccessible running on localhost
No log messages was written. When I restarted the service, I got tons of messages like this
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:59853"](Id="ChannelId(1948796256)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:49719"](Id="ChannelId(-412813440)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:63094"](Id="ChannelId(-392835968)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:52377"](Id="ChannelId(1259869728)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:62366"](Id="ChannelId(-1132413888)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:60176"](Id="ChannelId(592336064)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:54113"](Id="ChannelId(1203897040)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:59554"](Id="ChannelId(-922175792)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:52908"](Id="ChannelId(-290422336)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:54339"](Id="ChannelId(679574016)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:63613"](Id="ChannelId(1052068480)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:62691"](Id="ChannelId(-1487295776)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:63163"](Id="ChannelId(1111266272)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:57529"](Id="ChannelId(1799942016)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:63188"](Id="ChannelId(175712224)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:63101"](Id="ChannelId(-1265841616)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about to be closed. Channel ["[::ffff:127.0.0.1]:10000"->"[::ffff:127.0.0.1]:53057"](Id="ChannelId(-533322976)")
2017-02-23 12:52:56.765 +00:00 [Information][akka://SICluster/deadLetters] Socket read operation aborted. Connection is about t
any idea what could be happening here? Every node was telling this node was not recheable
There were about 2k messages like this
Natan Vivo
@nvivo
Feb 23 2017 14:54
And is there anything I can enable on the hocon config to help diagnose this?
Jose Carlos Marquez
@oeaoaueaa
Feb 23 2017 15:06
@nvivo do you have log-remote-lifecycle-events enabled?
Natan Vivo
@nvivo
Feb 23 2017 15:08
I didn't have it explicitly, but it looks like it's on by default
There are 5 nodes in this cluster, all localhost. things were going fine since yesterday, suddenly it stops
Rik
@rikbosch
Feb 23 2017 15:25
Does anyone know a good example for using ES / Projections in akka?
I've looked at https://github.com/evendotnet/Even . This project is relatively old, do the concepts still apply? Or are there better akka alternatives, using streams for example?
Natan Vivo
@nvivo
Feb 23 2017 15:31
@rikbosch, regarding Even I had to halt development due to other projects and life. The concepts still apply, but it's not mature enough for production. I don't know any other similar project for akka.net, but depending on what you need, Akka Persistence may be enough.
Aaron Stannard
@Aaronontheweb
Feb 23 2017 20:47
@oeaoaueaa I would be careful with that setting
@nvivo is this with the latest from dev?
or is this with 1.1.3?
I'm wondering if akkadotnet/akka.net#2477 is the culprit there
Aaron Stannard
@Aaronontheweb
Feb 23 2017 20:53
ahhh actually, this is interesting
yeah, I think that's what was happening is that the seed node wasn't able to properly bind to port 10000 in your logs
if you can include the version details I'll know where to look
since this is happening at the level below Akka.NET
either a DotNetty or a Helios 2.1 error
but it looks like a configuration issue where something didn't get cleanly shutdown
and couldn't restart correctly either
Aaron Stannard
@Aaronontheweb
Feb 23 2017 21:10
for the record though, never seen this error before
Natan Vivo
@nvivo
Feb 23 2017 21:11
@Aaronontheweb it's 1.1.3
Aaron Stannard
@Aaronontheweb
Feb 23 2017 21:11
great, that's what I figured
so we're switching to DotNetty in the next release so the underlying socket driver is going to be different
but Helios 2.1's engine is DotNetty's with some modifications
so not too different
Would you mind opening an issue with these logs?
Natan Vivo
@nvivo
Feb 23 2017 21:13
ok
Aaron Stannard
@Aaronontheweb
Feb 23 2017 21:13
I have some more questions to help me diagnose the issue
but it'd be better to capture them on an issue for persistence
Natan Vivo
@nvivo
Feb 23 2017 21:25
done
Aaron Stannard
@Aaronontheweb
Feb 23 2017 21:25
thanks dude
I'll hit you up with some more questions on there
Natan Vivo
@nvivo
Feb 23 2017 21:28
ok
When I had only one seed and 2 nodes on the same machine, things were fine, the cluster ran for 2 weeks without a problem
But since I started adding nodes these problems became more frequent
so, there may be a connection with port reuse
Aaron Stannard
@Aaronontheweb
Feb 23 2017 21:30
want to try turning that setting off in the Akka.Remote HOCON?
and see if that improves things?
inside the akka.remote.helios.tcp settings
Natan Vivo
@nvivo
Feb 23 2017 21:51
ok, I'll try that
Aaron Stannard
@Aaronontheweb
Feb 23 2017 21:54
I'm leaning towards @maxcherednik 's suggestion of just turning that setting off by default
Natan Vivo
@nvivo
Feb 23 2017 21:57
Let's see how it goes tomorrow and over the weekend
I'll notify on the issue
thanks
Aaron Stannard
@Aaronontheweb
Feb 23 2017 21:57
sounds good to me