我正在 Trino 上运行一个简单的并发查询负载测试,大多数请求都成功。但是,失败的日志条目与以下日志条目相关:
2024-05-03 07:13:08 2024-05-03T05:13:08.691Z 警告 ContinuousTaskStatusFetcher-20240503_051240_01897_g7z4z.4.0.0-4111 io.trino.server.remotetask.RequestErrorTracker 获取任务状态时出错 202 40503_051240_01897_g7z4z.4.0.0:
http://172.31.0.10:8080/v1/task/20240503_051240_01897_g7z4z.4.0.0 2024-05-03 07:13:08 io.trino.server.remotetask.SimpleHttpResponseHandler$ServiceUnavailableException: 服务器返回 SERVICE_UNAVAILABLE: http://172.31.0.10:8080/v1/task/20240503_051240_01897_g7z4z.4.0.0/status
2024-05-03 07:13:08 于 io.trino.server.remotetask.SimpleHttpResponseHandler.onSuccess(SimpleHttpResponseHandler.java:52)
2024-05-03 07:13:08 于 io.trino.server.remotetask.SimpleHttpResponseHandler.onSuccess(SimpleHttpResponseHandler.java:27)
2024-05-03 07:13:08 于 com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
2024-05-03 07:13:08 于 io.airlift.concurrent.BoundedExecutor.drainQueue(BoundedExecutor.java:79)
2024-05-03 07:13:08 于 java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
2024-05-03 07:13:08 于 java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
2024-05-03 07:13:08 于 java.base/java.lang.Thread.run(Thread.java:1570)
2024-05-03 07:13:08
2024-05-03 07:13:08
2024-05-03 07:13:08 2024-05-03T05:13:08.597Z 警告
ContinuousTaskStatusFetcher-20240503_051244_01926_g7z4z.5.0.0-1027
io.trino.server.remotetask.RequestErrorTracker 获取错误 任务状态20240503_051244_01926_g7z4z.5.0.0: http://172.31.0.10:8080/v1/task/20240503_051244_01926_g7z4z.5.0.02024-05-03 07:13:08 io.trino.server.remotetask.SimpleHttpResponseHandler$ServiceUnavailableException: 服务器返回 SERVICE_UNAVAILABLE: http://172.31.0.10:8080/v1/task/20240503_051244_01926_g7z4z.5.0.0/status
2024-05-03 07:13:08 于 io.trino.server.remotetask.SimpleHttpResponseHandler.onSuccess(SimpleHttpResponseHandler.java:52)
2024-05-03 07:13:08 于 io.trino.server.remotetask.SimpleHttpResponseHandler.onSuccess(SimpleHttpResponseHandler.java:27)
2024-05-03 07:13:08 于 com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
2024-05-03 07:13:08 于 io.airlift.concurrent.BoundedExecutor.drainQueue(BoundedExecutor.java:79)
2024-05-03 07:13:08 于 java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
2024-05-03 07:13:08 于 java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
2024-05-03 07:13:08 于 java.base/java.lang.Thread.run(Thread.java:1570)
错误是:
io.trino.server.remotetask.SimpleHttpResponseHandler$ServiceUnavailableException: 服务器返回 SERVICE_UNAVAILABLE:
我应该微调哪些 config.properties 设置以提高 HTTP 吞吐量?
我认为您遇到了“服务不可用”错误,因为您的协调器可能耗尽了资源。您可以尝试添加
node-scheduler.include-coordinator=false
。完成此操作后,将不会在协调器上安排任何工作。请检查并告知我这是否解决了问题。”