Skip to content

FAQ

Apex is a manifest-driven deployment orchestrator for TDengine All-in-One. It manages component installation, version resolution, dependency ordering, and lifecycle execution across local and remote nodes.

Control host (where Apex runs):

  • Linux x64, arm64
  • macOS x64, arm64 (for Docker mode)
  • Windows x64

Target nodes (where components deploy):

  • Linux x64, arm64 (requires glibc 2.28+, AVX2 for x64 All-in-One)
  • Windows x64

No. Apex is designed for All-in-One deployments combining TSDB, IDMP, TDgpt, and optional packages. For standalone TDengine installations, use the standard TDengine installers.

How is Apex different from Docker Compose?

Section titled “How is Apex different from Docker Compose?”

Apex orchestrates both Host and Docker deployments. For Docker mode, Apex prepares configuration, manages manifests, and invokes Compose. For Host mode, it directly installs components on target nodes. Apex adds version resolution, dependency management, and unified operations across deployment modes.

Linux:

Terminal window
curl -fsSL https://downloads.tdengine.com/apex/latest/install.sh | bash -s -- -m apex

Windows: Download and run TDengineSetup-x64.exe, then choose Host mode.

Docker: Use -m docker with the install script, or choose Docker in the Windows installer.

See Quick start for details.

Yes. Download the platform-specific release package, extract it, and run the included install.sh or install.ps1 with -OfflineBundle pointing to the package. See Offline deployment.

Control host:

  • Linux/macOS: ~/.apex/ (configurable via apex_home)
  • Windows: C:\Users\<user>\.apex\

Target nodes (Host mode):

  • Linux: /opt/tdengine/, /usr/local/taos/, component-specific paths
  • Windows: C:\TDengine\, C:\ProgramData\TDengine\

See Directories and paths for complete mappings.

Do I need root or administrator privileges?

Section titled “Do I need root or administrator privileges?”

Control host: No, Apex runs with normal user privileges.

Target nodes: Yes, Host mode installations require root (Linux) or Administrator (Windows) for installing system services and writing to protected directories.

A Deployment YAML describes your topology: which nodes to target, which components to install, their versions, and transport settings (local or SSH). It’s the main configuration file you maintain. See Deployment YAML reference.

A Component Manifest is published by the component team and declares supported platforms, installers, dependencies, and lifecycle commands. You normally don’t edit manifests; Apex downloads them based on the versions in your Deployment YAML.

Set explicit versions in roles:

roles:
- component: tsdb
version: "3.3.5.0"

This prevents automatic updates. For dynamic versions, use version: auto with spec.release.

Set spec.release.profile in your Deployment YAML:

spec:
release:
profile: TSDB-Enterprise
channel: stable

Or use the installer’s APEX_DEPLOY_PROFILE variable:

Terminal window
APEX_DEPLOY_PROFILE='IDMP-Enterprise' bash install.sh -m apex

Yes. Each node can have transport: local or transport: ssh. Use local for the Apex host itself and SSH for remote targets.

What’s the difference between check, validate, prepare, and apply?

Section titled “What’s the difference between check, validate, prepare, and apply?”
  • check: Tests YAML syntax and node connectivity
  • validate: Loads manifests, resolves versions, checks dependencies
  • prepare: Downloads and verifies artifacts (SHA256)
  • apply: Distributes artifacts and runs lifecycle commands

Run them separately to inspect between stages, or use apex deploy to run all four.

Partially. Artifact distribution can happen in parallel across nodes, but component installation is sequential within a node to honor dependencies. This ensures TSDB installs before IDMP, for example.

What happens if a deployment fails mid-way?

Section titled “What happens if a deployment fails mid-way?”

Apex stops at the first critical failure and writes a report to ~/.apex/reports/. Check the report for the failing node, component, and stage, then inspect logs under ~/.apex/logs/. Fix the issue and re-run apply or deploy.

Yes. After fixing the underlying issue (network, permissions, port conflicts), re-run the same command. Apex skips already-completed work where possible, though some stages may re-execute for safety.

Terminal window
apex apply -f deployment.yaml --dry-run

This generates and prints the deployment plan without executing commands or changing target nodes.

Add multiple entries to spec.nodes in your Deployment YAML, each with its own name, host, platform, and roles. Use transport: ssh for remote nodes.

Linux:

Terminal window
apex-component-status.sh

Windows:

Terminal window
apex-component-status.ps1

These scripts query installed components and their service states.

Linux:

Terminal window
apex-component-start.sh tsdb,idmp
apex-component-stop.sh tdgpt

Windows:

Terminal window
apex-component-start.ps1 tsdb,idmp
apex-component-stop.ps1 tdgpt
  1. Update component versions in your Deployment YAML
  2. Back up configuration and data
  3. Run apex deploy -f deployment.yaml --yes

Review Troubleshooting and upgrades for best practices.

Terminal window
apex-component-uninstall.sh tsdb

This removes the component but typically preserves data. For complete removal including data:

Terminal window
apex-component-purge.sh tsdb

On the control host:

  • Delete ~/.apex/ (or your configured apex_home)
  • Remove the apex binary from your PATH

On target nodes:

Terminal window
apex clean -f deployment.yaml --yes

This removes Apex work directories on target nodes. It does not uninstall components; use apex-component-purge for that.

Deployment logs: ~/.apex/logs/<operation-timestamp>/

Component logs: Component-specific locations (e.g., /var/log/taos/ for TSDB on Linux, C:\TDengine\log\ on Windows)

See Logs and failure diagnosis for details.

Varies by component and configuration. Common defaults:

  • TSDB: 6030, 6041, 6043, 6044, 6060
  • IDMP: 7030, 8030, 8031, 9000, 9100, 10101
  • TDgpt: 8111

Check the installation guides and component documentation for complete lists.

Add SSH settings to your Deployment YAML:

spec:
ssh:
user: root
keyPath: ~/.ssh/id_ed25519
port: 22
nodes:
- name: node1
host: 192.168.1.100
transport: ssh
# Node-specific SSH overrides if needed
ssh:
user: ubuntu

Test connectivity with apex check -f deployment.yaml before deploying.

Do I need SSH for single-node installations?

Section titled “Do I need SSH for single-node installations?”

No. Use transport: local for single-node deployments on the Apex host. This avoids SSH setup entirely.

Can I use password authentication instead of SSH keys?

Section titled “Can I use password authentication instead of SSH keys?”

Yes, but it’s less secure. Set spec.ssh.password in your Deployment YAML. Keys are strongly recommended for production.

Yes. Apex has a Docker mode that prepares configuration and invokes Compose. Install with:

Terminal window
bash install.sh -m docker

Or choose Docker in the Windows installer.

Linux: ~/.apex/docker/ Windows: C:\ProgramData\TDengine\Apex\docker\

Apex generates or updates these files during Docker deployment.

Use the Apex-provided scripts:

Terminal window
./tdengine.sh start
./tdengine.sh stop
./tdengine.sh status

Avoid using docker compose directly; the Apex scripts handle environment and volume configuration.

Yes. After deployment, review .env and edit as needed, then run ./tdengine.sh restart. After Apex updates, merge changes from the new .env.example.

Can I use Apex in an air-gapped environment?

Section titled “Can I use Apex in an air-gapped environment?”

Yes. Prepare an offline bundle on a connected machine, transfer it to the air-gapped environment, and use the offline installation method. See Offline deployment.

Download the Apex release package and all required component artifacts on a connected machine, then transfer them together. The offline guide provides detailed steps.

Do I need to download manifests separately?

Section titled “Do I need to download manifests separately?”

No. Manifests are included in the Apex release package or can be pre-staged in ~/.apex/manifests/.

The downloaded file doesn’t match the manifest checksum. Causes:

  • Interrupted download
  • Proxy/cache serving stale content
  • Network corruption

Delete the artifact from ~/.apex/cache/artifacts/ and re-run prepare.

Deployment fails with “port already in use”

Section titled “Deployment fails with “port already in use””

Another service is using a required port. Use ss, lsof, or netstat to identify the conflict, then stop the conflicting service or change TDengine’s port configuration.

Check:

  • Target host is reachable: ping <host>
  • SSH service is running on target
  • Correct port in Deployment YAML
  • Firewall allows SSH traffic
  • SSH key permissions are 600 or 400

Run apex check -f deployment.yaml for diagnostics.

Component won’t start after installation

Section titled “Component won’t start after installation”

Check:

  • Ports are not in use
  • Dependencies installed correctly
  • Sufficient memory and disk space
  • Component logs for specific errors

Use apex-component-status and inspect logs under component-specific directories.

“Command not found: apex” after installation

Section titled ““Command not found: apex” after installation”

The installer’s binary directory isn’t in your PATH. Either:

  • Restart your shell (the installer updates shell profiles)
  • Manually add ~/.apex/bin to PATH
  • Use the absolute path: ~/.apex/bin/apex

Yes, but it’s best-effort and anonymous. No sensitive data (credentials, hostnames, configuration) is sent. Disable with:

telemetry_enabled: false

Or set APEX_TELEMETRY_DISABLED=1 environment variable.

No. Apex redacts passwords and private key content from logs and reports. Only paths to keys are recorded.

  • Use SSH key authentication, not passwords
  • Reference keys by path, don’t embed them
  • Set appropriate file permissions (e.g., chmod 600)
  • Don’t commit credentials to version control
  • Use secrets management for production

See Security guide for comprehensive hardening.

Yes. Lifecycle steps can reference custom scripts distributed as artifacts. Add the script to resources, then call it in pre-install or post-install steps.

When you use version: auto, Apex queries the Version Catalog with your spec.release.profile and spec.release.channel. The catalog returns compatible versions. validate resolves these and emits a concrete Deployment YAML that prepare and apply use.

Can I use Apex with my own artifact mirror?

Section titled “Can I use Apex with my own artifact mirror?”

Yes. Set base_url in ~/.apex/config.yaml:

base_url: https://my-mirror.example.com

Ensure your mirror has the same path structure as the official downloads server.

What’s the difference between uninstall and purge?

Section titled “What’s the difference between uninstall and purge?”
  • uninstall: Removes the component, usually preserving data and configuration
  • purge: Complete removal including data, logs, and configuration

Use uninstall for upgrades, purge for complete cleanup.