Running a Node
You must obtain an mTLS certificate from the Gateway team to network with our Storage Layer.
See Authentication Requirements to generate your certificate.
This guide walks through the process of setting up and running an Encrypted Data Vault (EDV) node. EDV nodes form the backbone of Gateway Protocol’s distributed storage network, providing secure and private data storage capabilities.
Installation Prerequisites
Before deploying an EDV node, ensure your system meets the hardware requirements outlined in the previous section and has the following software prerequisites installed:
The system should have Docker Engine version 20.10 or later installed. Docker manages container deployment, ensuring consistent operation across different environments.
Configuration Options
EDV nodes offer various configuration options to customize their behavior and performance. These options can be specified as command-line arguments or environment variables.
Essential Configuration Parameters
The following parameters are crucial for proper node operation:
Field | Description |
---|---|
dataCenter | Organization name |
rack | Rack identifier within the organization |
dir | Data directory path for storing encrypted data |
events.dir | Directory path for event logs |
port | HTTP port for client connections (default: 8080) |
port.grpc | gRPC port for client connections (default: 10000+port =18080) |
ip | Bind IP address for the node |
publicUrl | Public URL or IP address for node access |
mserver | Master server address for network coordination |
metricsPort | Port for exposing Prometheus metrics |
Volume Management
EDV nodes use Docker volumes for persistent storage. The primary volumes include:
Path | Description |
---|---|
/etc/gatewayfs/certs | Directory for mTLS certificates (e.g., node.key , node.crt , ca.crt ) |
/data | Primary storage for encrypted data |
/events | Event log storage |
See Authentication Requirements for details on requesting your certificate.
These volumes persist data across container restarts and updates. Regular backup of these volumes is recommended for data safety.
Deployment
Docker CLI
The simplest way to deploy an EDV node is using Docker. Our official Docker image contains all necessary components pre-configured for immediate deployment:
Docker Compose
For production environments, Docker Compose provides better management and configuration options. Create a docker-compose.yml
file in your deployment directory:
Start the node using Docker Compose:
Data Directory Structure
The EDV node organizes data in a specific structure:
Understanding this structure helps in monitoring and maintaining the node effectively.
Version Management
Checking Current Version
Verify your node’s current version:
Update Process
The update process involves pulling the latest image and redeploying the container:
Storage volumes persist during updates, ensuring no data loss during the upgrade process.
Monitoring
After deployment, verify your node’s operation:
A properly functioning node should show:
- Container status as “Up”
- No error messages in logs
- Accessible metrics endpoint
- Successful connection to the master server
Troubleshooting
Common issues and their solutions:
Connection Issues
If the node fails to connect to the master server, verify:
- Network connectivity
- Correct master server address
- Proper port configuration
- Firewall settings
Storage Issues
For storage-related problems, check:
- Available disk space
- Volume mount points
- File permissions
- I/O performance
Performance Problems
When experiencing performance issues, verify:
- Resource utilization
- Network bandwidth
- Storage I/O rates
- System logs for bottlenecks
Contact the Gateway Protocol team if you encounter persistent issues requiring additional support.