Obtain the queue length at a Thrift server

浪子不回头ぞ 提交于 2020-06-16 17:26:46

问题


I am using thrift to implement a simple application. I would like to collect the queue length at a server i.e the number of requests that are pending service at the server. It could be either the queue length per client (connection) or total queue length at a server. I am playing around with different server types and thought the ThreadManager class would help since it collects server metrics. I created a server of type TThreadPoolServer but the methods like ThreadManager::pendingTaskCount() provide the number of connections that are pending service and not the number of requests that are pending service. The result was the same when I used a server of type TNonblockingServer. Can you please point me to a way to obtain the queue length?

来源:https://stackoverflow.com/questions/62226858/obtain-the-queue-length-at-a-thrift-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!