Deployment
Deployment
Release builds, graceful shutdown, containers, and socket activation.
An Ulo application is one binary. Its main names the runtime and the servers, so deployment needs three things beyond a development run:
- A signal future passed to
serve.ulo_runtime_tokio::shutdown_signal()resolves on SIGINT and SIGTERM, andservethen drains in-flight work and returns. Without a signal future the process has nothing to drain on. - Timeouts that fit the orchestrator's grace period:
drain_timeoutandshutdown_timeouton the builder. - A listener address reachable from outside the container:
0.0.0.0rather than127.0.0.1.