Skip to main content

Architecture and execution location

info

The management side dispatches taosX tasks to execution nodes. The browser is only the management interface. Direct, proxy, and multi-node deployments differ in which host reads data and which node executes the task. Files, connector plugins, certificates, and source identities must be available on the host that actually uses them. They do not move automatically when a task is reassigned.

Where to operate: manage service tasks in taosExplorer. Query node and task status in the taosExplorer Data Browser or taos CLI as well.

Check source connectivity on the collection host. After adding an Xnode, also prepare its connector plugins, certificates, and recovery data.

taosX management and data paths

1. Component responsibilities​

ComponentResponsibilities operators need to understand
taosExplorerProvides task configuration and management. Closing the browser does not stop service tasks.
taosdStores cluster node and task management information, stores target data, and supports SQL queries.
xnodedManages registered taosX execution nodes and coordinates task execution and recovery. It is a separate process from the taosX data process.
XnodeAn execution node registered in the cluster using the taosX gRPC address.
taosXRuns data tasks, performing collection, reading, parsing, transformation, and writing.
taosX-AgentCollects data on a host near the source or with the required platform dependencies. Data is transferred through the taosX path.
taosAdapterProvides WebSocket and RESTful access to TSDB.
taosKeeperReceives and stores monitoring data. For display and queries, see Logs and performance.

Dashed lines in the diagram show management relationships; solid lines show data direction. Components can run on different hosts, and a transfer does not necessarily pass through all components. An independent taosx run executes on the host where the command is run, outside service task scheduling.

2. Choose the collection host​

Direct ingestion is possible when the taosX host can reach the source and its platform and dependencies meet the connector requirements. If the source is in an isolated network segment, or the connector requires Windows, use taosX-Agent on a host in that segment with the required dependencies. For example, taosX on Linux requires a Windows collection host running taosX-Agent to ingest OPC DA or PI data.

When using a taosX-Agent proxy, check the networks from Agent to source, Agent to taosX, and taosX to target separately. Configure certificates, mapping files, SDKs, and source identities on the host of the process that actually uses them. Browser-uploaded files and manually entered server paths refer to different file locations.

A TDengine DSN with +ws uses WebSocket through taosAdapter. A native connection goes directly to taosd and requires the corresponding client dependencies. Do not confuse the taosAdapter port (default 6041) with the taosX gRPC port (default 6055).

3. Port mapping​

The following are common defaults and can be changed in a deployment. Confirm the connection direction and host first, then open only the ports needed for the features in use. Do not expose all ports to the public network.

PortServicePurpose
6060taosExplorerBrowser access to the management interface.
6050taosX HTTPHTTP services such as taosX health checks.
6055taosX gRPCPort used in Xnode registration addresses and for proxy connections.
6041taosAdapterData access through WebSocket and other interfaces.
6030taosdNative database connections.
6043taosKeeperMetrics reporting.

If client_port_range is not set for taosX-Agent, the operating system allocates the client source port for management connections. A configured range applies only when enabled; omitted lower and upper bounds default to 49152 and 65535, respectively. This range applies to client source ports for management connections, not Agent inbound listening ports or all source data connections. See Agent configuration for the exact conditions.

Confirm source database, messaging service, and industrial protocol ports separately from the source configuration.

4. Multi-node operation and high availability boundaries​

With multiple available Xnodes, tasks can be rescheduled. For planned maintenance, drain a node to move tasks to other nodes. Before operating, run the following in the taosExplorer Data Browser or taos CLI:

SHOW XNODES;
SHOW XNODE TASKS;
SHOW XNODE JOBS;

Record node states, tasks, and execution locations. Confirm that candidate nodes have the same connector dependencies, network access, permissions, and certificates before scheduling maintenance. For draining and management syntax, see Xnode SQL management. Do not test draining, deletion, or forced stops on production nodes.

warning

Tasks can be rescheduled, but files, certificates, SDKs, and caches on the original host are not copied to the new node. Nor is recovery of all data during an interruption guaranteed. Consider Kafka source retention and consumer groups, the queryable PI history range, and downtime gaps in current-value collection separately. After recovery, check not only that nodes are online but also the data around the interruption.

RESTART XNODE restarts only the management daemon, not the remote taosX data process. For maintenance and recovery procedures, see Daily operations and Restarts, checkpoints, and store-and-forward.