Decentralized Distribution Node & Cluster Routing Deployment

Guide to deploying federated distribution nodes for real-time rates and secure client-side bookings.
Deploying a Trip.Enterprises distribution node within your enterprise network ensures local caching, low latency (sub-20ms), and isolated telemetry processing. Follow this deployment process:
1. Prerequisites and System Requirements
- Hardware: 2 vCPU, 4GB RAM, 20GB SSD storage.
- Software: Docker Engine 24.0+, Docker Compose v2.20+, and openssl.
- Network: Outbound HTTPS access (port 443) to the coordinator cluster. Inbound access is not required as the node maintains a persistent reverse WebSocket tunnel.
2. Deployment Steps
- Initialize Directory: Create a dedicated directory on your node server:
```bash mkdir -p /opt/trip-node && cd /opt/trip-node ```
- Generate Node Secret Key: Create a 256-bit cryptographic signature key bound to your organization:
```bash openssl rand -hex 32 > node.key ```
- Configure Environment: Create a `.env` file specifying the node identifier and registration token provided in the partner portal:
```env NODE_ID=node-pms-sync-01 COORDINATOR_URL=https://coordinator.trip.express REGISTRATION_TOKEN=your_secure_registration_token SECRET_KEY_PATH=/opt/trip-node/node.key ```
- Deploy Service: Launch the containerized daemon via Docker:
```bash docker run -d --name trip-dist-node \ --restart unless-stopped \ -v /opt/trip-node:/etc/trip \ --env-file /opt/trip-node/.env \ trip-express/distribution-node:latest ```
3. Cluster Health Verification
Once deployed, verify connectivity by querying the local health endpoint: ```bash curl http://localhost:8080/health ``` A successful response returns a signed JSON packet: ```json { "status": "active", "node_id": "node-pms-sync-01", "tunnel_established": true, "signature": "0x7f3a...c81b" } ```