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
* Various deployment fixes and improvements
* fixed the GCP deployer service name max size
* implemented reload setting for local deployments
* reworked the app runner to correctly use sub-processes for multiple workers
* fixed concurrency by instantiating a deployment orchestrator for
each request
* configured REST zen store connection pool size to match ASGI app thread count
* implemented client-side healthcheck for deployments
* Updated docs
* Fix unit tests
Copy file name to clipboardExpand all lines: docs/book/component-guide/deployers/local.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ For additional configuration of the Local deployer, you can pass the following `
52
52
*`port_range`: The range of ports to search for a free port. Defaults to `(8000, 65535)`.
53
53
*`address`: The address that the deployment server will listen on. Defaults to `127.0.0.1`.
54
54
*`blocking`: Whether to run the deployment in the current process instead of running it as a daemon process. Defaults to False. Use this if you want to debug issues with the deployment ASGI application itself.
55
+
*`auto_reload`: Whether to enable auto-reload for the uvicorn server. This is useful to speed up local development by automatically restarting the server when code changes are detected without requiring a re-provisioning of the entire deployment. Defaults to False. NOTE: the `auto_reload` setting has no effect on changes in the pipeline configuration, step configuration or stack configuration.
55
56
56
57
Check out [this docs page](https://docs.zenml.io/concepts/steps_and_pipelines/configuration) for more information on how to specify settings.
Copy file name to clipboardExpand all lines: docs/book/how-to/deployment/deployment_settings.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -241,6 +241,27 @@ A rudimentary playground dashboard is included with the ZenML python package tha
241
241
When supplying your own custom dashboard, you may also need to [customize the security headers](./deployment_settings#secure-headers) to allow the dashboard to access various resources. For example, you may want to tweak the `Content-Security-Policy` header to allow the dashboard to access external javascript libraries, images, etc.
242
242
{% endhint %}
243
243
244
+
#### Jinja2 templates
245
+
246
+
You can use a Jinja2 template to dynamically generate the `index.html` file that hosts the single-page application. This is useful if you want to dynamically generate the dashboard files based on the pipeline configuration, step configuration or stack configuration. A `service_info` variable is passed to the template that contains the service information, such as the service name, version, and description. This variable has the same structure as the `zenml.deployers.server.models.ServiceInfo` model.
Tune server runtime parameters for performance and topology:
365
386
387
+
The following settings are available for tuning the uvicorn server:
388
+
* `thread_pool_size`: the size of the thread pool for CPU-bound work offload.
389
+
* `uvicorn_host`: the host to bind the uvicorn server to.
390
+
* `uvicorn_port`: the port to bind the uvicorn server to.
391
+
* `uvicorn_workers`: the number of workers to use for the uvicorn server.
392
+
* `log_level`: the log level to use for the uvicorn server.
393
+
* `uvicorn_reload`: whether to enable auto-reload for the uvicorn server. This is useful when using [the local Deployer stack component](https://docs.zenml.io/stacks/stack-components/deployers/docker) to speed up local development by automatically restarting the server when code changes are detected. NOTE: the `uvicorn_reload` setting has no effect on changes in the pipeline configuration, step configuration or stack configuration.
394
+
* `uvicorn_kwargs`: a dictionary of keyword arguments to pass to the uvicorn server.
0 commit comments