[akka-user] Re: [akka java 2.4.2] Akka HTTP client oncomplete callback

2016-04-07 Thread Johannes Berg
stem.out.println("Done, wrote " + result.getCount() + " bytes"); > else > System.out.println("Failed: " + result.getError().getMessage()); > }); > > > I hope this helps > -- > Johan Andrén > Akka Team, Lightbend Inc. > > &g

[akka-user] [akka java 2.4.2] Akka HTTP client oncomplete callback

2016-03-30 Thread Johannes Berg
Hi! I have a streaming Akka HTTP client request that I would want to register an oncomplete callback on (in addition to the streaming which is working fine) which is called when the complete request-response is done. There doesn't seem to be anything in the Akka HTTP API directly (only

Re: [akka-user] [akka java 2.4.2] Future callbacks for already completed futures

2016-03-24 Thread Johannes Berg
https://github.com/akka/akka/issues/20133 On Thursday, March 24, 2016 at 4:53:10 PM UTC+2, Johannes Berg wrote: > > Okay good, thanks, that makes it clear then. > > I wouldn't like to see those docs removed altogether though, I always get > back there when there's someth

Re: [akka-user] [akka java 2.4.2] Future callbacks for already completed futures

2016-03-24 Thread Johannes Berg
from my iPhone > > On 24 Mar 2016, at 15:20, Akka Team <akka.o...@gmail.com > > wrote: > > I have a feeling that that doc remark is obsolete (these sections were not > touched in years), but let the expert/Klang speak. > > -Endre > > On Thu, Mar 24, 2016 at

[akka-user] [akka java 2.4.2] Future callbacks for already completed futures

2016-03-24 Thread Johannes Berg
and-asynchronous/ Best Regards, Johannes Berg -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >

[akka-user] Cluster sharding shutdown and restart in proxy mode

2015-10-13 Thread Johannes Berg
, but is there some possibility of doing the same thing in 2.3.X somehow (sending poisonpill to shardregion and restart region with null entryProps or something like that)? Best Regards, Johannes Berg -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>&

Re: [akka-user] Re: Cluster Metrics CPU/load reporting very inaccurate

2015-03-30 Thread Johannes Berg
, Johannes Berg jber...@gmail.com javascript: wrote: Awesome, that seem to be the exact issue I've experienced, glad to see it's already in release-2.3. Thanks a lot hepin! now just waiting on 2.3.10 ;) On Tuesday, March 24, 2015 at 4:03:29 AM UTC+2, 何品 wrote: https://github.com/akka/akka

[akka-user] Re: Cluster Metrics CPU/load reporting very inaccurate

2015-03-24 Thread Johannes Berg
Awesome, that seem to be the exact issue I've experienced, glad to see it's already in release-2.3. Thanks a lot hepin! now just waiting on 2.3.10 ;) On Tuesday, March 24, 2015 at 4:03:29 AM UTC+2, 何品 wrote: https://github.com/akka/akka/pull/16669 在 2015年3月20日星期五 UTC+8下午11:03:07,Johannes

Re: [akka-user] Re: Cluster Metrics CPU/load reporting very inaccurate

2015-03-23 Thread Johannes Berg
Nordwall wrote: Maybe it was fixed in https://github.com/akka/akka/issues/16121, which was merged to master here https://github.com/akka/akka/pull/16475 /Patrik On Mon, Mar 23, 2015 at 7:38 AM, Johannes Berg jber...@gmail.com javascript: wrote: Sounds good but can you please elaborate

[akka-user] Re: Cluster Metrics CPU/load reporting very inaccurate

2015-03-23 Thread Johannes Berg
Sounds good but can you please elaborate, where and when has this been fixed? If it's fixed I would like to know what I need to update. Thanks, Johannes On Saturday, March 21, 2015 at 9:01:46 PM UTC+2, 何品 wrote: have been fixed 在 2015年3月20日星期五 UTC+8下午11:03:07,Johannes Berg写道: Hi! I've

[akka-user] Cluster Metrics CPU/load reporting very inaccurate

2015-03-20 Thread Johannes Berg
Hi! I've been working with some monitoring of the cluster through the ClusterMetrics provided in Akka 2.3.9 using hyperic-sigar-1.6.4. I've been comparing what is displayed in top and what I get by listening to ClusterMetricsChanged events in the cluster. The numbers coming in

Re: [akka-user] Shard coordinator persisting actor addresses containing the node IP

2015-03-05 Thread Johannes Berg
Figureau bric...@daysofwonder.com javascript: wrote: On Tue, 2015-02-24 at 23:06 -0800, Johannes Berg wrote: Hi! We recently made a mistake by having two separate clusters use the same journal DB which obviously doesn't work but it lead to some questions about how the cluster sharding

[akka-user] Shard coordinator persisting actor addresses containing the node IP

2015-02-24 Thread Johannes Berg
Hi! We recently made a mistake by having two separate clusters use the same journal DB which obviously doesn't work but it lead to some questions about how the cluster sharding works. We detected our problem by seeing a stack trace containing lines of code that didn't exist anywhere in the

Re: [akka-user] Cluster aware router preferring local routees if available

2015-01-29 Thread Johannes Berg
enhancements to the current routers (preferrably via tickets and pull requests ;) B/ On 29 January 2015 at 09:48:40, Johannes Berg (jber...@gmail.com javascript:) wrote: Is there some built-in support (Akka 2.3.9) for making cluster aware routers prefer local routees if such are available

[akka-user] Cluster aware router preferring local routees if available

2015-01-29 Thread Johannes Berg
Is there some built-in support (Akka 2.3.9) for making cluster aware routers prefer local routees if such are available? There seem to be such a thing for DistributedPubSubMediator.Send but I haven't seen that for cluster aware routers. -- Read the docs: http://akka.io/docs/ Check

Re: [akka-user] Cluster unreachable and a lot of cluster connections

2015-01-25 Thread Johannes Berg
resolve your problem. But remember that 'akka.remote.heartbeat-interval' is a globe setting, so the better way is to write a custom heartbeat based remote death watching. /Caoyuan On Fri, Jan 23, 2015 at 3:39 PM, Johannes Berg jber...@gmail.com javascript: wrote: Thanks for the answers

Re: [akka-user] Cluster unreachable and a lot of cluster connections

2015-01-23 Thread Johannes Berg
. But remember that 'akka.remote.heartbeat-interval' is a globe setting, so the better way is to write a custom heartbeat based remote death watching. /Caoyuan On Fri, Jan 23, 2015 at 3:39 PM, Johannes Berg jber...@gmail.com javascript: wrote: Thanks for the answers, this really explains a lot. I

Re: [akka-user] Cluster unreachable and a lot of cluster connections

2015-01-22 Thread Johannes Berg
On Wed, Jan 21, 2015 at 4:47 PM, Johannes Berg jber...@gmail.com javascript: wrote: Upgrading to 2.3.9 does indeed seem to solve my problem. At least I haven't experienced them yet. Now I'm curious what the fixes were, is there somewhere a change summary between versions or where is it listed

Re: [akka-user] Cluster unreachable and a lot of cluster connections

2015-01-22 Thread Johannes Berg
UTC+2, Patrik Nordwall wrote: You can try to increase akka.remote.system-message-buffer-size config setting. Default is 1000. /Patrik On Thu, Jan 22, 2015 at 3:41 PM, Johannes Berg jber...@gmail.com javascript: wrote: Thanks for the tip for what to look for, my logs are huge so it's a bit

Re: [akka-user] Cluster unreachable and a lot of cluster connections

2015-01-22 Thread Johannes Berg
the log entry that says that it is quarantined, if any. /Patrik 22 jan 2015 kl. 14:56 skrev Viktor Klang viktor...@gmail.com javascript:: Endre, could it be due to pending-to-send system message overflow? On Thu, Jan 22, 2015 at 11:45 AM, Johannes Berg jber...@gmail.com javascript

Re: [akka-user] Cluster unreachable and a lot of cluster connections

2015-01-22 Thread Johannes Berg
Thanks for the answers, this really explains a lot. I will go back to my abyss and rethink some things. See below some answers/comments. On Thursday, January 22, 2015 at 6:31:01 PM UTC+2, drewhk wrote: Hi Johannes, On Thu, Jan 22, 2015 at 4:53 PM, Johannes Berg jber...@gmail.com javascript

Re: [akka-user] Cluster unreachable and a lot of cluster connections

2015-01-21 Thread Johannes Berg
:31:02 AM UTC+2, drewhk wrote: Hi Johannes, We just released 2.3.9 with important bugfixes. I recommend to update and see if the problem is still persisting. -Endre On Wed, Jan 21, 2015 at 10:29 AM, Johannes Berg jber...@gmail.com javascript: wrote: Many connections seem to be formed

Re: [akka-user] Cluster unreachable and a lot of cluster connections

2015-01-21 Thread Johannes Berg
many smaller messages as fast as I can. If I just hammer it fast enough it will end up unreachable which I can except, but I need to get it back to reachable. On Thursday, December 11, 2014 at 11:22:41 AM UTC+2, Björn Antonsson wrote: Hi Johannes, On 9 December 2014 at 15:29:53, Johannes Berg

[akka-user] Cluster unreachable and a lot of cluster connections

2014-12-09 Thread Johannes Berg
Hi! I'm doing some load tests in our system and getting problems that some of my nodes are marked as unreachable even though the processes are up. I'm seeing it going a few times from reachable to unreachable and back a few times before staying unreachable saying connection gated for 5000ms and

Re: [akka-user] Cluster aware routers initialization problems

2014-06-25 Thread Johannes Berg
Ok, thanks for the responses. I will be following https://github.com/akka/akka/issues/15412 https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fakka%2Fakka%2Fissues%2F15412sa=Dsntz=1usg=AFQjCNE5oAjECJec7zb_ZgIqRgG1zXoVBQ for the allow-local-routees. I understand that I never can know for

[akka-user] Cluster aware routers initialization problems

2014-06-17 Thread Johannes Berg
I'm using Cluster aware routers that I want to create on the fly when needed and I have problems initializing them properly. Right now my workaround is to set allow-local-routees to false and to do a manual sleep of half a second before sending the first message but there must be some better