nameko 使用 http 做 k8s 健康检查注意事项!

当你的任务是耗时任务的时候,不要用 http 来做健康检查

这里的 http 指的是:@http('GET', '/health/') 这样的 http 装饰器

nameko 有 max_workers 限制 pool 的大小, http 也是要排队的

任务本身特别耗时,用 http client 就会 timeout

你可能感兴趣的:(python)