Skip to main content

Xnode registration and maintenance

info

Xnode registration places a taosX execution node under TDengine cluster management. This page covers key checks for registration, planned maintenance, authentication changes, and deregistration. Registration establishes only the management relationship. It does not install taosX, supply missing connector plugins, or verify target data.

Where to operate: node and task management and the Data Browser in taosExplorer; for command-line access, use the taos CLI connected to the management cluster.

An Xnode is a cluster-managed execution node for data tasks. Its registered address points to the taosX gRPC port.

1. Before registration​

An authorized TDengine TSDB administrator must run management SQL. First confirm that taosX has started as planned, its version and listeners are correct, and the management cluster can reach its gRPC address. Use a reachable hostname for remote deployments; do not copy localhost:6055 literally. Here, localhost refers only to the environment initiating the connection.

Run in the taosExplorer Data Browser or the taos CLI:

SHOW XNODES;

If a node with the same address already exists, check its ownership and status before proceeding. Do not create a duplicate. A taosX instance normally belongs to one management cluster. Before moving it between clusters, drain and deregister it in the original cluster, then register it in the new cluster. This ownership check helps prevent mistakes; it does not replace network isolation and authentication.

2. Create and verify​

Use an approved identity for the Xnode management connection. This TLS example requires gRPC TLS on taosX and a trusted CA configured through --rpc-ca-cert or XNODED_RPC_CA_CERT on the management daemon. See TLS, DSNs, and sensitive files for configuration and verification. An address without a scheme uses HTTP; in the current implementation, https:// without a management-side CA does not verify the server certificate. Once prepared, run the following in the management cluster's taosExplorer Data Browser or taos CLI. The Token below is a placeholder, not an agent Token:

CREATE XNODE 'https://taosx-host:6055' TOKEN 'REPLACE_WITH_MANAGEMENT_TOKEN';
SHOW XNODES;

The public syntax also supports USER name PASS 'password'. See Xnode SQL for full authentication and permission details. Registration credentials are used by the management process to connect to taosd. They are not the source read identity and do not automatically grant write access to the target database.

The Xnode management credential is shared cluster-wide by xnoded, rather than stored separately for each node URL. When registering:

  • USER ... PASS ... or TOKEN ... in CREATE XNODE sets the credential only when the cluster has none. If a credential exists, omitting authentication parameters reuses it.
  • With an existing credential, a new URL and the same credential pass the credential consistency check. The same URL still returns an already-exists error.
  • A different credential, including switching between username/password and Token modes, returns 0x8000802C and creates no node. Use ALTER XNODE SET to update the credential.

Record the returned node ID, URL, and status. After confirming that the expected node is online, create a small-scope task. Use SHOW XNODE TASKS; and SHOW XNODE JOBS; to check the actual execution node, then query the target data. If the node is online but the task fails, investigate the source, plugins, and target based on the task error instead of repeatedly deregistering the node.

3. Planned maintenance​

  1. Record the node ID, task and job inventory, last business timestamp, and source recovery window.
  2. With multiple nodes, first check other nodes' capacity, networks, plugins, certificates, paths, and agent endpoints. Follow Multi-node takeover and maintenance to drain and verify takeover.
  3. With a single node, approve an interruption window and confirm that data can be reread or cached before maintaining the service on the taosX host.
  4. After maintenance, recheck nodes, tasks, and actual data. Do not end maintenance until data for the interruption window has caught up.

RESTART XNODE; requires the NODE ALTER privilege. It restarts the current management daemon xnoded, not the remote taosX data process. It briefly interrupts management and is not a general-purpose command for fixing missing data.

4. Change authentication and deregister​

ALTER XNODE SET TOKEN '...' or ALTER XNODE SET USER ... PASS '...' changes the cluster-wide management connection credential and restarts xnoded, briefly interrupting Xnode tasks. Do not run it repeatedly in a short period. Approve a maintenance window, save the original authentication materials, and confirm the new identity's permissions before running it. Do not mistake this for changing a connector's source password. After a database password change, follow Password Change Impact and Remediation to update the management credential, then update saved task connection strings separately.

DROP XNODE removes only the node registration, not the daemon credential record. Deleting and recreating a node does not update its credential.

warning

Before deregistering, establish where tasks will run, preserve local state, and check the drain results. Then run DROP XNODE according to the SQL manual. FORCE is not a routine cleanup option; do not use it when task ownership is unclear. Removing a registration does not migrate caches, files, or backups on the node.

5. Troubleshooting​

SymptomCheck order
Registration fails or node is offlineCheck the gRPC address and port from the management side, then the taosX service, TLS, and management authentication logs
Ownership conflictCheck registration in the original cluster and follow the approved migration procedure; do not recreate the instance to take ownership
0x8000802C credential mismatchCompare registration parameters with the existing cluster credential. Use ALTER XNODE SET if it needs updating; do not delete and recreate nodes to change a password
Online but tasks cannot executeCheck task reasons, plugins and dependencies on the execution node, source/target networks, and file permissions
Still no data after maintenanceCompare positions before and after the interruption, source retention, and the target window as described in Restarts, checkpoints, and store-and-forward