You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/concepts/flow/deployment-args.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@
36
36
|`reload`| If set, the Executor will restart while serving if YAML configuration source or Executor modules are changed. If YAML configuration is changed, the whole deployment is reloaded and new processes will be restarted. If only Python modules of the Executor have changed, they will be reloaded to the interpreter without restarting process. |`boolean`|`False`|
37
37
|`install_requirements`| If set, try to install `requirements.txt` from the local Executor if exists in the Executor folder. If using Hub, install `requirements.txt` in the Hub Executor bundle to local. |`boolean`|`False`|
38
38
|`port`| The port for input data to bind to, default is a random port between [49152, 65535]. In the case of an external Executor (`--external` or `external=True`) this can be a list of ports. Then, every resulting address will be considered as one replica of the Executor. |`number`|`random in [49152, 65535]`|
39
+
|`protocol`| Communication protocol of the server exposed by the Executor. This can be a single value or a list of protocols, depending on your chosen Gateway. Choose the convenient protocols from: ['GRPC', 'HTTP', 'WEBSOCKET']. |`array`|`[<ProtocolType.GRPC: 0>]`|
39
40
|`monitoring`| If set, spawn an http server with a prometheus endpoint to expose metrics |`boolean`|`False`|
40
41
|`port_monitoring`| The port on which the prometheus server is exposed, default is a random port between [49152, 65535]|`number`|`random in [49152, 65535]`|
41
42
|`retries`| Number of retries per gRPC call. If <0 it defaults to max(3, num_replicas) |`number`|`-1`|
@@ -57,4 +58,10 @@
57
58
|`when`| The condition that the documents need to fulfill before reaching the Executor.The condition can be defined in the form of a `DocArray query condition <https://docarray.jina.ai/fundamentals/documentarray/find/#query-by-conditions>`|`object`|`None`|
58
59
|`external`| The Deployment will be considered an external Deployment that has been started independently from the Flow.This Deployment will not be context managed by the Flow. |`boolean`|`False`|
59
60
|`grpc_metadata`| The metadata to be passed to the gRPC request. |`object`|`None`|
60
-
|`tls`| If set, connect to deployment using tls encryption |`boolean`|`False`|
61
+
|`tls`| If set, connect to deployment using tls encryption |`boolean`|`False`|
62
+
|`title`| The title of this HTTP server. It will be used in automatics docs such as Swagger UI. |`string`|`None`|
63
+
|`description`| The description of this HTTP server. It will be used in automatics docs such as Swagger UI. |`string`|`None`|
64
+
|`cors`| If set, a CORS middleware is added to FastAPI frontend to allow cross-origin access. |`boolean`|`False`|
65
+
|`uvicorn_kwargs`| Dictionary of kwargs arguments that will be passed to Uvicorn server when starting the server<br><br>More details can be found in Uvicorn docs: https://www.uvicorn.org/settings/|`object`|`None`|
66
+
|`ssl_certfile`| the path to the certificate file |`string`|`None`|
67
+
|`ssl_keyfile`| the path to the key file |`string`|`None`|
Copy file name to clipboardexpand all lines: docs/concepts/flow/executor-args.md
+1
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@
36
36
|`reload`| If set, the Executor will restart while serving if YAML configuration source or Executor modules are changed. If YAML configuration is changed, the whole deployment is reloaded and new processes will be restarted. If only Python modules of the Executor have changed, they will be reloaded to the interpreter without restarting process. |`boolean`|`False`|
37
37
|`install_requirements`| If set, try to install `requirements.txt` from the local Executor if exists in the Executor folder. If using Hub, install `requirements.txt` in the Hub Executor bundle to local. |`boolean`|`False`|
38
38
|`port`| The port for input data to bind to, default is a random port between [49152, 65535]. In the case of an external Executor (`--external` or `external=True`) this can be a list of ports. Then, every resulting address will be considered as one replica of the Executor. |`number`|`random in [49152, 65535]`|
39
+
|`protocol`| Communication protocol of the server exposed by the Executor. This can be a single value or a list of protocols, depending on your chosen Gateway. Choose the convenient protocols from: ['GRPC', 'HTTP', 'WEBSOCKET']. |`array`|`[<ProtocolType.GRPC: 0>]`|
39
40
|`monitoring`| If set, spawn an http server with a prometheus endpoint to expose metrics |`boolean`|`False`|
40
41
|`port_monitoring`| The port on which the prometheus server is exposed, default is a random port between [49152, 65535]|`number`|`random in [49152, 65535]`|
41
42
|`retries`| Number of retries per gRPC call. If <0 it defaults to max(3, num_replicas) |`number`|`-1`|
Copy file name to clipboardexpand all lines: docs/concepts/flow/gateway-args.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,13 @@
12
12
|`title`| The title of this HTTP server. It will be used in automatics docs such as Swagger UI. |`string`|`None`|
13
13
|`description`| The description of this HTTP server. It will be used in automatics docs such as Swagger UI. |`string`|`None`|
14
14
|`cors`| If set, a CORS middleware is added to FastAPI frontend to allow cross-origin access. |`boolean`|`False`|
15
-
|`no_debug_endpoints`| If set, `/status``/post` endpoints are removed from HTTP interface. |`boolean`|`False`|
16
-
|`no_crud_endpoints`| If set, `/index`, `/search`, `/update`, `/delete` endpoints are removed from HTTP interface.<br><br> Any executor that has `@requests(on=...)` bound with those values will receive data requests. |`boolean`|`False`|
17
-
|`expose_endpoints`| A JSON string that represents a map from executor endpoints (`@requests(on=...)`) to HTTP endpoints. |`string`|`None`|
18
15
|`uvicorn_kwargs`| Dictionary of kwargs arguments that will be passed to Uvicorn server when starting the server<br><br>More details can be found in Uvicorn docs: https://www.uvicorn.org/settings/|`object`|`None`|
19
16
|`ssl_certfile`| the path to the certificate file |`string`|`None`|
20
17
|`ssl_keyfile`| the path to the key file |`string`|`None`|
18
+
|`no_debug_endpoints`| If set, `/status``/post` endpoints are removed from HTTP interface. |`boolean`|`False`|
19
+
|`no_crud_endpoints`| If set, `/index`, `/search`, `/update`, `/delete` endpoints are removed from HTTP interface.<br><br> Any executor that has `@requests(on=...)` bound with those values will receive data requests. |`boolean`|`False`|
20
+
|`expose_endpoints`| A JSON string that represents a map from executor endpoints (`@requests(on=...)`) to HTTP endpoints. |`string`|`None`|
21
21
|`expose_graphql_endpoint`| If set, /graphql endpoint is added to HTTP interface. |`boolean`|`False`|
22
-
|`protocol`| Communication protocol of the server exposed by the Gateway. This can be a single value or a list of protocols, depending on your chosen Gateway. Choose the convenient protocols from: ['GRPC', 'HTTP', 'WEBSOCKET']. |`array`|`[<GatewayProtocolType.GRPC: 0>]`|
23
22
|`host`| The host address of the runtime, by default it is 0.0.0.0. |`string`|`0.0.0.0`|
24
23
|`proxy`| 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 |`boolean`|`False`|
25
24
|`uses`| The config of the gateway, it could be one of the followings:<br> * the string literal of an Gateway class name<br> * a Gateway YAML file (.yml, .yaml, .jaml)<br> * a docker image (must start with `docker://`)<br> * the string literal of a YAML config (must start with `!` or `jtype: `)<br> * the string literal of a JSON config<br><br> When use it under Python, one can use the following values additionally:<br> - a Python dict that represents the config<br> - a text file stream has `.read()` interface |`string`|`None`|
@@ -42,6 +41,7 @@
42
41
|`floating`| If set, the current Pod/Deployment can not be further chained, and the next `.add()` will chain after the last Pod/Deployment not this current one. |`boolean`|`False`|
43
42
|`reload`| If set, the Gateway will restart while serving if YAML configuration source is changed. |`boolean`|`False`|
44
43
|`port`| The port for input data to bind the gateway server to, by default, random ports between range [49152, 65535] will be assigned. The port argument can be either 1 single value in case only 1 protocol is used or multiple values when many protocols are used. |`number`|`random in [49152, 65535]`|
44
+
|`protocol`| Communication protocol of the server exposed by the Gateway. This can be a single value or a list of protocols, depending on your chosen Gateway. Choose the convenient protocols from: ['GRPC', 'HTTP', 'WEBSOCKET']. |`array`|`[<ProtocolType.GRPC: 0>]`|
45
45
|`monitoring`| If set, spawn an http server with a prometheus endpoint to expose metrics |`boolean`|`False`|
46
46
|`port_monitoring`| The port on which the prometheus server is exposed, default is a random port between [49152, 65535]|`number`|`random in [49152, 65535]`|
47
47
|`retries`| Number of retries per gRPC call. If <0 it defaults to max(3, num_replicas) |`number`|`-1`|
0 commit comments