Replies: 1 comment 2 replies
-
Where exactly do you use the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello All!
I am searching an advice. Short description of our archetecture:
We have one controller as entry point, which is receiving notifications which should be processed.
This controller parses params and sends message to Akka aktor (notification feed).
Notification aktor is making a decision based on message which child aktor should be created and sending message to corresponding child aktor which is created for each message.
And each child aktor makes a calls to some other classes which performs all corresponding work for each message.
This classes designed in such way that performs all the fork in Future with appropriate execution context (so we configured separate contexts and not using default playframework dispatcher for such work).
Once work is done child aktor sends message back to notification aktor, notification aktor sends poison pill to child.
Most of work requires DB connection, so based on this article https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
we configured our connection pool accordingly and our separate execution contexts also have the same pool size, i.e. application.conf:
Maybe my understooding of this article (https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing) wrong and it describes the maximum connections which DB server could process simultaneously.
My concern - I supposed that with correct configuration of thread and connection pool our application should consume most of resources of server during high load but actual results are different:
During high load of application we could see in our logs that number of messages are grown in queue (we are logging it in our notification aktor) but consumption of server resources are low.
Maybe there is a way to get info about each execution context in realtime (number of threads in work/number of idle threads)?
Beta Was this translation helpful? Give feedback.
All reactions