Skip to content

Advanced deployment

Scenario Recommended entry point Notes
Windows single-node Host TDengineSetup-x64.exe GUI installer for production Windows hosts.
Linux single-node Host install.sh -m apex Requires root; built-in configuration uses local transport.
Remote or multi-node Host Apex CLI with SSH nodes The control host prepares artifacts, then distributes and runs them over SSH.
Linux Docker install.sh -m docker Requires root, Docker Engine, and Compose.
macOS Docker install.sh -m docker Run as a regular user with Docker Desktop; Host mode is unsupported.
Windows Docker Installer Docker mode or install.ps1 -Mode docker Uses Docker Desktop; the standalone script does not require administrator access.
Offline Linux/Windows Host Host offline bundle Prepare on a connected machine with the same OS and architecture; Docker and macOS are unsupported.

The default profile is All-in-One, but its component list can depend on release configuration and platform. The installer summary is authoritative. TSDB-Enterprise installs TSDB only. IDMP-Enterprise requires an existing TSDB REST endpoint in host:port form, without a URL scheme. Set APEX_DEPLOY_PROFILE to select a profile in script installs.

Components delivered as packages can use installMode: compact or installMode: full; the default is compact:

roles:
- id: node1-tsdb
component: tsdb
version: auto
installMode: compact

Availability of full depends on the component version and platform Manifest. If unsupported, validation fails rather than silently falling back to compact. TSDB compact uses the core package; optional extensions can be managed separately. Windows TSDB extensions cannot currently be removed separately, and reinstalling TSDB core may remove existing extensions.

validate, prepare, apply, and deploy accept --install-mode compact|full to apply a mode to every role without changing the source YAML. During execution, a mismatch with trusted target installation records requires confirmation; automation can use --yes. Confirmation does not replace the installer’s ability to convert a component.

After a successful full Host deploy or apply, manage optional packages declared by the component Manifest:

Terminal window
apex package list
apex package install explorer
apex package remove explorer

list checks status only. install installs the selected package and its resources without running lifecycle steps. remove asks for confirmation by default; use --yes for automation. Nodes in full mode cannot install or remove optional packages independently. Package operations do not remove cached artifacts.

By default, package commands use the most recent successful Default Deployment. Specify -f <deployment.yaml> when needed. Pass the original Deployment if the snapshot is unavailable, deployment state is incomplete, or SSH credentials are not present in the snapshot. Component Manifests must still be available locally.

A complete deployment saves a resolved Default Deployment. Apex removes SSH passwords from the snapshot, retains private-key paths, and resolves relative paths against the original Deployment directory. Unix permissions are 0700 for the directory and 0600 for the file; Windows uses a protected native ACL.

Execution is serial by default. An audited single-node deployment can request mode: partial-parallel under spec.execution, with an explicit parallelGroup and auditFile. This is not a general all-component parallel switch: Apex falls back to serial execution when audit, platform, target, or component-isolation requirements are not met, and records the reason in the plan.

Windows parallel execution also requires local transport, the default Apex directory, the TSDB/IDMP/TDgpt combination, administrator access, and x64. Target-state declarations authorize an operation but do not prove installation isolation; checksum validation, locks, mode confirmation, and health checks still apply.

Host deploy, apply, and package install/remove share an operation lock within the same apex_home. Artifact caches have a separate lock; different Apex homes can conflict if they point at the same cache. Do not remove lock files.

If execution fails or is cancelled after changes begin, Apex retains an incomplete-deployment marker and the previous complete Default Deployment. Use -f to select a Deployment explicitly or fix the issue and complete a full deployment. Do not clear the marker manually or assume Apex will automatically adopt state or roll back software.