-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could queuedtracking:monitor command also report number of requests processed per second? #90
Comments
The process command does it... it would be hard for the monitor to do it |
or maybe it could be something like a running summary of the last 60 seconds (or since the script started if less than 60 seconds):
|
It would be great if you think of a way this could be implemented technically |
just fyi: eg with redis you always only know how many requests are in the queue... but you don't know how many had been processed in between. Eg just because you always see 100K requests in queue doesn't mean no requests had been processed. Could be zero or could be 10000req/s. The only one who kind of knows is the processor roughly. It would need couple events/hooks to process this information on the fly and eg write roughly every couple seconds this into a table where the monitor can access it for each processor. And it would need to be smart enough to delete the req/s option entry when finished or failed, or outdated (eg entry older than X seconds) |
Thanks for the note! considering how complex it would be, let's skip this for now until we really need more detailed QueuedTracking monitoring. |
I actually wouldn't write any update script and not move queued requests into a different queue after the update. There are not too many things that can happen only in some edge cases where it maybe would create a new visit with fewer actions when two different queues track the pageview at the same time. And most of the time queues might be quite empty anyway so it pretty much shouldn't be an issue at all. |
This feature is actually really something we would love to see on QT. As there is hardly any metrics coming out of QT, and this would help a lot to monitor QT in production. |
Could
queuedtracking:monitor
command also report number of requests processed per second?Currently output looks like this:
It would be interesting if it could also say:
The text was updated successfully, but these errors were encountered: