我正在使用具有云运行后端服务的gcp云端点。我的问题是,后端配置的默认超时时间为15秒。这就是为什么我想设置openAPI "x-google-backend“截止日期参数来增加端点的超时时间:(https://cloud.google.com/endpoints/docs/openapi/openapi-extensions)
目前,我正在为我的端点使用以下grpc服务配置。
https://cloud.google.com/endpoints/docs/grpc/grpc-service-config
此类配置不支持openAPI扩展。现在,我正在寻找一种将grpc配置与openAPI相结合的方法。我读到有可能为一个端点发布多个配置文件。
因此,任何形式的帮助都将非常感谢。
太感谢了,祝Joern好运
发布于 2021-03-25 22:55:41
好的,这种配置工作得很好。
type: google.api.Service
config_version: 3
name: ${cloud_run_hostname_endpoint}
title: ${endpoint_title}
apis:
- name: my_endpoint_name
usage:
rules:
# No APIs can be called without an API Key
- selector: "*"
allow_unregistered_calls: false
backend:
rules:
- selector: "*"
address: grpcs://${cloud_run_hostname_backend}
deadline: 300.0接受deadline参数。
https://stackoverflow.com/questions/66497179
复制相似问题