Hi,

I'm developing an akka based application using event-sourcing and CQRS. I'm 
using the cluster sharding feature of the contrib module, use remote, 
cluster modules and akka-persistence using jdbc persistence on PostgreSQL.

Application has an actor hirarchy like in below diagram, where the top 
level actor is cluster sharded and there is two levels of actors below that 
(which are created using usual context.actorOf() mechanism).

https://drive.google.com/open?id=0ByesuJQ6vK9idWJxalR1NXN6QU0&authuser=0

I tried to run some load tests on the application. Below are some findings,

1. When running with only single node in the cluster, the application is 
really fast.
2. When the application is started with more nodes (than 1), request 
processing get slower gradually for each request being processed.

Initially my assumption was that it has to do with Java serialization and 
network latency. But when I really looked at the logs I could find that 
time taken for a message being sent from actor A to A/1 takes more than a 
second in some cases, and in some other cases its not.
Please keep in mind that there's no network overhead involved as A to A/1 
messaging happens on the same node and is just parent->Child messaging

Actors doesn't do much computation other than some simple business rules 
and persisting the events generated from the command.

Questions:

Why is application slow when running on multiple nodes and fast on single 
node.

*Pictures from the profiler:*

*JVM memory attributes:*

https://drive.google.com/open?id=0ByesuJQ6vK9iOHVRSEE0Um51TDQ&authuser=0

*Thread status:*

https://drive.google.com/open?id=0ByesuJQ6vK9idFM2U3dReGhKODg&authuser=0

https://drive.google.com/open?id=0ByesuJQ6vK9iSHJLU2F4NUt2WG8&authuser=0

*OS Attributes:*

https://drive.google.com/open?id=0ByesuJQ6vK9iVzZGSnNiVTJUaHM&authuser=0


Appreciate any pointers in right direction.

Thanks,
Shajahan.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to