#
YAML specificationThis page outlines the specification for Gateway.
Gateway config is nested under with
key of a Flow YAML. For example,
jtype: Flow
version: '1'
with:
protocol: http
Defines a Gateway that uses HTTP protocol.
Fields#
The following fields are defined for Gateway and can be set under with
key of a Flow YAML.
Name |
Description |
Type |
Default |
---|---|---|---|
|
The name of this object. |
|
|
|
The working directory for any IO operations in this object. If not set, then derive from its parent |
|
|
|
The YAML config of the logger used in this object. |
|
|
|
If set, then no log will be emitted from this object. |
|
|
|
If set, then exception stack information will not be added to the log |
|
|
|
The timeout in milliseconds of the control request, -1 for waiting forever |
|
|
|
The polling strategy of the Deployment and its endpoints (when |
|
|
|
The config of the executor, it could be one of the followings: |
|
|
|
Dictionary of keyword arguments that will override the |
|
|
|
Dictionary of keyword arguments that will override the |
|
|
|
Dictionary of keyword arguments that will override the |
|
|
|
The customized python modules need to be imported before loading the executor |
|
|
|
The port for input data to bind to, default is a random port between [49152, 65535] |
|
|
|
The host address for binding to, by default it is 0.0.0.0 |
|
|
|
If set, only native Executors is allowed, and the Executor is always run inside WorkerRuntime. |
|
|
|
The type of array |
|
|
|
Dictionary of kwargs arguments that will be passed to the grpc server as options when starting the server, example : {‘grpc.max_send_message_length’: -1} |
|
|
|
Number of requests fetched from the client before feeding into the first Executor. |
|
|
|
The title of this HTTP server. It will be used in automatics docs such as Swagger UI. |
|
|
|
The description of this HTTP server. It will be used in automatics docs such as Swagger UI. |
|
|
|
If set, a CORS middleware is added to FastAPI frontend to allow cross-origin access. |
|
|
|
If set, |
|
|
|
If set, |
|
|
|
A JSON string that represents a map from executor endpoints ( |
|
|
|
Dictionary of kwargs arguments that will be passed to Uvicorn server when starting the server |
|
|
|
the path to the certificate file |
|
|
|
the path to the key file |
|
|
|
If set, /graphql endpoint is added to HTTP interface. |
|
|
|
Communication protocol between server and client. |
|
|
|
The host address of the runtime, by default it is 0.0.0.0. |
|
|
|
If set, respect the http_proxy and https_proxy environment variables. otherwise, it will unset these proxy variables before start. gRPC seems to prefer no proxy |
|
|
|
Routing graph for the gateway |
|
|
|
Dictionary stating which filtering conditions each Executor in the graph requires to receive Documents. |
|
|
|
dictionary JSON with the input addresses of each Deployment |
|
|
|
list JSON disabling the built-in merging mechanism for each Deployment listed |
|
|
|
The compression mechanism used when sending requests from the Head to the WorkerRuntimes. For more details, check https://grpc.github.io/grpc/python/grpc.html#compression. |
|
|
|
The timeout in milliseconds used when sending data requests to Executors, -1 means no timeout, disabled by default |
|
|
|
The runtime class to run inside the Pod |
|
|
|
The timeout in milliseconds of a Pod waits for the runtime to be ready, -1 for waiting forever |
|
|
|
The map of environment variables that are available inside runtime |
|
|
|
The number of shards in the deployment running at the same time. For more details check https://docs.jina.ai/fundamentals/flow/create-flow/#complex-flow-topologies |
|
|
|
The number of replicas in the deployment |
|
|
|
If set, spawn an http server with a prometheus endpoint to expose metrics |
|
|
|
The port on which the prometheus server is exposed, default is a random port between [49152, 65535] |
|
|
|
Number of retries per gRPC call. If <0 it defaults to max(3, num_replicas) |
|
|
|
If set, the current Pod/Deployment can not be further chained, and the next |
|
|