We're investigating a starvation issue in restQL (
https://github.com/B2W-BIT/restQL-http) under heavy load. We make heavy use
of core.async, all I/O is non-blocking, we use Aleph as http server and
client.
The symptom is that it takes a long time for the first line of go routine
to execute. e.g.:
(defn a []
(f1)
(f2)
(f3)
(go
(f4)
)
)
f1, f2, f3 are executed very fast in sequence. f4 takes more than 10
seconds to execute.
The CPU usage is high, so I guess the core.async thread pool is full so it
takes a long time for the dispatched block to execute in the thread pool.
This causes every request to timeout because no one able is able to execute
under the allowed time.
So my questions is:
- Is there a way to cancel a go execution block when it's queued for a
certain amount of time, such as max queue time? When the starvation process
start this would cancel the go routines and release resources.
Or any idea? Thanks in advance.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.