ai-serving icon indicating copy to clipboard operation
ai-serving copied to clipboard

单台服务器4核8G xgboost 访问在100QPS以下 返回在10ms左右 达到500QPS 就有超过500ms响应 时长

Open adangadang opened this issue 2 years ago • 2 comments

单台服务器4核8G xgboost 访问在100QPS以下 cpu占10% 返回在10ms左右 达到500QPS cpu占30% 就有超过500ms响应 时长 json 请求

这个怎么优化

adangadang avatar Apr 27 '22 06:04 adangadang

@adangadang I suppose you are using the REST API, if so you can config the following part: https://github.com/autodeployai/ai-serving/blob/master/src/main/resources/application.conf#L17

  ai-predicting-dispatcher {
    type = Dispatcher
    executor = "thread-pool-executor"
    thread-pool-executor {
      fixed-pool-size = 16
    }
    throughput = 1
  }

About the dispatcher, see the AKKA doc: https://doc.akka.io/docs/akka/current/typed/dispatchers.html

scorebot avatar Apr 29 '22 01:04 scorebot

直接 调用你docker 镜像

adangadang avatar May 06 '22 03:05 adangadang