FAQ
General
Section titled “General”What is Apex?
Section titled “What is Apex?”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.
What platforms does Apex support?
Section titled “What platforms does Apex support?”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
Do I need Apex to use TDengine?
Section titled “Do I need Apex to use TDengine?”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.
Installation
Section titled “Installation”How do I install Apex?
Section titled “How do I install Apex?”Linux:
curl -fsSL https://downloads.tdengine.com/apex/latest/install.sh | bash -s -- -m apexWindows:
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.
Can I install Apex offline?
Section titled “Can I install Apex offline?”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.
Where does Apex install files?
Section titled “Where does Apex install files?”Control host:
- Linux/macOS:
~/.apex/(configurable viaapex_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.
Configuration
Section titled “Configuration”What is a Deployment YAML?
Section titled “What is a Deployment YAML?”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.
What is a Component Manifest?
Section titled “What is a Component Manifest?”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.
How do I pin component versions?
Section titled “How do I pin component versions?”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.
How do I use a different profile?
Section titled “How do I use a different profile?”Set spec.release.profile in your Deployment YAML:
spec: release: profile: TSDB-Enterprise channel: stableOr use the installer’s APEX_DEPLOY_PROFILE variable:
APEX_DEPLOY_PROFILE='IDMP-Enterprise' bash install.sh -m apexCan I mix local and SSH nodes?
Section titled “Can I mix local and SSH nodes?”Yes. Each node can have transport: local or transport: ssh. Use local for the Apex host itself and SSH for remote targets.
Deployment
Section titled “Deployment”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.
Do components deploy in parallel?
Section titled “Do components deploy in parallel?”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.
Can I resume a failed deployment?
Section titled “Can I resume a failed deployment?”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.
How do I do a dry run?
Section titled “How do I do a dry run?”apex apply -f deployment.yaml --dry-runThis generates and prints the deployment plan without executing commands or changing target nodes.
How do I deploy to multiple nodes?
Section titled “How do I deploy to multiple 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.
Operations
Section titled “Operations”How do I check component status?
Section titled “How do I check component status?”Linux:
apex-component-status.shWindows:
apex-component-status.ps1These scripts query installed components and their service states.
How do I start or stop components?
Section titled “How do I start or stop components?”Linux:
apex-component-start.sh tsdb,idmpapex-component-stop.sh tdgptWindows:
apex-component-start.ps1 tsdb,idmpapex-component-stop.ps1 tdgptHow do I upgrade components?
Section titled “How do I upgrade components?”- Update component versions in your Deployment YAML
- Back up configuration and data
- Run
apex deploy -f deployment.yaml --yes
Review Troubleshooting and upgrades for best practices.
How do I uninstall a component?
Section titled “How do I uninstall a component?”apex-component-uninstall.sh tsdbThis removes the component but typically preserves data. For complete removal including data:
apex-component-purge.sh tsdbHow do I completely remove Apex?
Section titled “How do I completely remove Apex?”On the control host:
- Delete
~/.apex/(or your configuredapex_home) - Remove the
apexbinary from yourPATH
On target nodes:
apex clean -f deployment.yaml --yesThis removes Apex work directories on target nodes. It does not uninstall components; use apex-component-purge for that.
Where are the logs?
Section titled “Where are the logs?”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.
Networking and SSH
Section titled “Networking and SSH”What ports does TDengine use?
Section titled “What ports does TDengine use?”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.
How do I configure SSH for remote nodes?
Section titled “How do I configure SSH for remote nodes?”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: ubuntuTest 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.
Docker
Section titled “Docker”Can I use Apex with Docker?
Section titled “Can I use Apex with Docker?”Yes. Apex has a Docker mode that prepares configuration and invokes Compose. Install with:
bash install.sh -m dockerOr choose Docker in the Windows installer.
Where are Docker Compose files stored?
Section titled “Where are Docker Compose files stored?”Linux: ~/.apex/docker/
Windows: C:\ProgramData\TDengine\Apex\docker\
Apex generates or updates these files during Docker deployment.
How do I manage Docker services?
Section titled “How do I manage Docker services?”Use the Apex-provided scripts:
./tdengine.sh start./tdengine.sh stop./tdengine.sh statusAvoid using docker compose directly; the Apex scripts handle environment and volume configuration.
Can I customize Docker configuration?
Section titled “Can I customize Docker 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.
Offline and Air-Gapped
Section titled “Offline and Air-Gapped”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.
How do I create an offline bundle?
Section titled “How do I create an offline bundle?”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/.
Troubleshooting
Section titled “Troubleshooting”Apex says “artifact SHA256 mismatch”
Section titled “Apex says “artifact SHA256 mismatch””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.
SSH connection refused
Section titled “SSH connection refused”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
600or400
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/bintoPATH - Use the absolute path:
~/.apex/bin/apex
Security and Privacy
Section titled “Security and Privacy”Is telemetry enabled by default?
Section titled “Is telemetry enabled by default?”Yes, but it’s best-effort and anonymous. No sensitive data (credentials, hostnames, configuration) is sent. Disable with:
telemetry_enabled: falseOr set APEX_TELEMETRY_DISABLED=1 environment variable.
Are passwords logged?
Section titled “Are passwords logged?”No. Apex redacts passwords and private key content from logs and reports. Only paths to keys are recorded.
How should I secure my Deployment YAML?
Section titled “How should I secure my Deployment YAML?”- 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.
Advanced
Section titled “Advanced”Can I extend Apex with custom scripts?
Section titled “Can I extend Apex with custom scripts?”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.
How does version resolution work?
Section titled “How does version resolution work?”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.comEnsure 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.
Still need help?
Section titled “Still need help?”- Troubleshooting guide
- Logs and diagnostics
- Best practices
- Component-specific documentation for TDengine, IDMP, TDgpt