Skip to main content

Deploy to your own host

isoplaned deploy initializes one app from an already-built bundle and captures its template. With the daemon stopped, it selects the template for the next startup. With the daemon running, new requests try the candidate, and its first successful instance activation makes it the selected version on disk.

Build the bundle​

isoplane bundle --project /path/to/application --configuration Release --output application.tar

The archive contains application assemblies, managed dependencies and content assets, including appsettings files. User Secrets and launch-profile settings stay on the development machine. Keep secrets out of files included in the bundle.

Copy the archive to the host using your own deployment pipeline. Preparation on the host does not invoke a project build or require the source files.

Set up a new host​

Install and configure the daemon​

isoplaned runs on Linux only. It starts instances from prepared templates using memory-management facilities that only Linux provides, so it is not built for macOS or Windows for now. The SDK and the isoplane command run on all three; see Install.

For example, for version 0.1.0 download isoplaned-v0.1.0.tar.gz and isoplaned-v0.1.0.tar.gz.sha256 from the GitHub release matching your SDK version. Run sha256sum --check isoplaned-v0.1.0.tar.gz.sha256 in the download directory before extracting the archive on a Linux x64 host. It extracts into isoplaned-v0.1.0/. The node archive contains the binary, a runtimes directory, license notices, checksums, and an optional systemd service installer. Run the host commands below as the operating-system user that owns the host's state, with isoplaned on PATH.

Create host.toml:

# One explicit local namespace owns all applications on this host.
owner = "local"
# Maximum distinct applications accepted in this configuration.
# max_applications = 10000

# Relative paths resolve beside this configuration file.
# The host creates this directory with owner-only access.
data_dir = "state"

# Optional host-wide capacity settings, shown with their defaults.
# [engine]
# max_instances = 10000
# [host]
# instances_per_application = 16
# requests_per_instance = 8

[proxy]
# Put a TLS reverse proxy in front of this listener for public HTTPS.
listen = "127.0.0.1:8080"

# Optional wait for the next body frame while an application reads an upload.
# body_idle_secs = 30

# Optional public HTTP transport limits, shown with their defaults.
# [proxy.limits]
# header_timeout_secs = 15
# write_idle_secs = 30

[preparation]
# The directory containing inventory.json and the installed SDK runtimes.
runtimes = "/opt/isoplane/current/runtimes"
# These bounds apply while preparing a new application.
initialization_occupancy_ms = 30000
initialization_wall_ms = 120000
initialization_log_bytes = 1048576

[[apps]]
# Exact host names, without a scheme, path or port. Requests may include a port.
hosts = ["api.example.com"]
[apps.manifest]
# The name selected by deploy --app.
name = "my-api"
# Optional soft memory allowance in bytes (default: 512 MiB).
# guest_memory_bytes = 536870912

# Optional per-application overrides; omitted fields use the defaults.
# [apps.manifest.resource_limits]
# occupancy_ms_per_dispatch = 300000
# instance_open_connections = 32
# pending_futures_per_dispatch = 4096
# package_bytes = 52428800

Use the runtime directory from your installation if it differs from the example. Add another [[apps]] block and manifest for each additional application. Host names must not overlap between applications.

The public listener derives the node’s dispatch budget by multiplying engine.max_instances by host.requests_per_instance. Across all applications, up to half that many requests (rounded down) can queue for dispatch. The listener allows twice the dispatch budget in open sockets and the same number of response deliveries. A dispatch slot becomes available when guest work finishes. A delivery slot stays occupied until the final socket flush or connection close.

Every application can use available capacity. When the dispatch budget fills, waiting applications with fewer in-flight requests get the next slot. A full queue can give a newcomer a place by shedding the newest request from an application using a larger share. Requests already dispatched keep their slot until completion, including while parked on I/O. When every dispatch slot is occupied, a new request waits at ingress before it becomes eligible for worker scheduling. Slow clients can occupy every delivery slot even while workers are available. At the queue or delivery limit, a refused request receives HTTP 503 with Retry-After. When all sockets are occupied, new connections wait in the operating system’s listen backlog.

The daemon sets aside the diagnostics socket budget (admin.limits.max_connections, default 64), then allows public sockets to use up to half the remaining descriptor limit. It reduces the public budgets together when descriptors are scarce. Run isoplaned serve --config host.toml --print-config to see the calculation at the hard open-file limit. The startup log reports the effective budgets after the daemon attempts to raise its soft limit.

The header deadline includes idle time between requests. The upload deadline applies while an application waits for the next body frame. Diagnostics endpoints do not consume uploads. The write deadline applies while the socket cannot accept more response data.

Application limits use the numeric resource defaults. The daemon validates application memory limits against its engine capacity.

Deploy the initial apps, then start serving​

Leave the daemon stopped. Run the following command on the host for my-api. If the app needs settings, configure them before deploying so initialization can use them.

isoplaned deploy --config host.toml --app my-api --bundle application.tar

Repeat the deploy command for each app in host.toml, using its name and bundle. At startup the daemon loads the selected version of every listed app. Once each has a selection, start the listener:

isoplaned serve --config host.toml

Check routing directly:

curl -H 'Host: api.example.com' http://127.0.0.1:8080/

Configure your reverse proxy to preserve the application's Host name. Unknown or malformed Host values do not select an application. Without a Host header, an absolute request URL can select its configured hostname; other requests without a Host do not select an application. TLS termination, public DNS and any routing between machines belong to your deployment setup.

Supply application settings​

Store application configuration in a flat JSON object whose keys use .NET's colon-delimited names, for example {"ConnectionStrings:Main":"..."}. Keep the file owned by the daemon user with mode 0600, outside the application bundle.

Add one [[application_settings]] entry per settings file. Match application to the name in the corresponding [apps.manifest]. Paths are relative to host.toml:

[[application_settings]]
application = "my-api"
configuration_file = "my-api.settings.json"
# Optional: permit this app to connect to a specific private IP and port.
# allowed_destinations = ["127.0.0.1:5432"]

Private and internal network destinations are blocked by default. Use allowed_destinations for exact IP-and-port exceptions, such as an operator-run database. These exceptions apply during preparation and execution, and changes require redeployment along with configuration changes.

The node's public egress policy admits global unicast destinations and blocks transition networks and Azure WireServer by default. Add an [egress] table to host.toml to exclude network-specific internal services. On a NAT64 network, set the actual translation prefix to allow public IPv4 destinations through it. Include any other locally routed translation prefixes in deny_ranges.

[egress]
# Optional IPv4 or IPv6 CIDRs outside public egress. Defaults to an empty list.
# deny_ranges = ["192.0.2.0/24"]
# Optional RFC 6052 translator. Set this only to the prefix routed to your gateway.
# nat64_prefix = "64:ff9b::/96"

These rules check the presented address and any IPv4 destination it represents. Exact application endpoint exceptions still apply. Restart the node to load edits to its public egress policy and use the same configuration for deployment.

Preparation captures these settings in an owner-only file bound to the exact application, version and prepared artifact. Settings encryption belongs to the operator's settings store; the host does not provide it. Editing the source file does not change a running application or a previously prepared selection. Redeploy the affected bundle to capture and activate new values. Keep the host's state directory private: it contains settings snapshots and initialized application memory, which can include secrets.

Add or update an app on a running host​

Leave the daemon running. To add billing alongside my-api, copy its bundle to the host as billing.tar and append the following entries to the daemon’s host.toml. This example uses a separate billing.settings.json file.

[[apps]]
hosts = ["billing.example.com"]
[apps.manifest]
name = "billing"

[[application_settings]]
application = "billing"
configuration_file = "billing.settings.json"

Deploy billing, then send a request to its new hostname:

isoplaned deploy --config host.toml --app billing --bundle billing.tar
curl -H 'Host: billing.example.com' http://127.0.0.1:8080/

To update billing later, copy the replacement bundle and repeat the deploy command. isoplaned deploy prepares the bundle while the daemon continues serving, then contacts the daemon through a Unix socket in its private state directory. A preparation failure or a hostname conflict leaves the previous version serving.

A live deploy returns activation_pending: true when the daemon accepts the candidate. Send a request to the app to exercise activation. Check the daemon log for the selected version and compare it with the deploy result’s deployment value.

New requests, including those on existing connections, go to the candidate. Requests already routed to the previous version can finish, including streaming responses. Idle old instances release their slots immediately. Busy instances release theirs as they drain. When requests still hold the previous route at cutover, draining names that version. Deployment adds no drain timeout.

Both versions share the app’s instance allowance and the daemon’s engine pool. If capacity is exhausted, a request can receive HTTP 503. The rollout stays pending and later requests can activate the candidate as capacity becomes available. If the first activation fails for a critical reason, the daemon logs the error and restores the previous routes for subsequent requests. For a new app, it removes the failed route. An application-level HTTP error after the instance activates does not trigger rollback. To roll back a selected version, deploy the older bundle again.

If the daemon stops before the first activation, the last selected version stays on disk. Before restarting, ensure every app listed in host.toml has a selection matching its manifest. You can deploy a pending bundle offline.

A live deploy applies the named app’s manifest, settings and hostnames. The running daemon keeps its startup engine configuration, including [engine].max_instances and [engine].total_tables.

Each preparation captures the application's initialization state. Prepared artifacts are specific to the engine, runtime and machine capabilities used to create them. The daemon checks compatibility before serving.

Application logs appear on the daemon's standard output and error streams. Use your service manager or log collector to retain them. With the supplied systemd service, use journalctl -u isoplaned.