Installation Guide
This guide provides comprehensive installation instructions for DeepTrace. Choose the installation method that best fits your environment and requirements.
Installation Methods
DeepTrace can be installed using two primary methods:
-
Docker Installation (Recommended)
- Fastest and most reliable method
- Pre-built environment with all dependencies
- Ideal for production deployments
-
- Build from source code
- Full control over compilation process
- Required for custom modifications
System Requirements
Minimum Requirements
| Component | Requirement |
|---|---|
| Operating System | Ubuntu 24.04 LTS (or compatible) |
| Kernel Version | 4.7.0+ with eBPF support |
| Memory | 8GB recommended |
| Storage | 40GB free disk space |
| CPU | 2 cores minimum, 4+ recommended |
| Network | Internet connectivity for downloads |
Software Dependencies
- Docker: v26.1.3 or later
- Container Runtime: Docker Engine or compatible
- Shell: Bash 4.0+
- Privileges: Root or sudo access
Kernel Requirements
DeepTrace requires specific kernel features:
# Check kernel version
uname -r
# Verify eBPF support
zgrep CONFIG_BPF /proc/config.gz
zgrep CONFIG_BPF_SYSCALL /proc/config.gz
zgrep CONFIG_BPF_JIT /proc/config.gz
All should return =y or =m.
Pre-Installation Checklist
Before installing DeepTrace, verify your system meets all requirements:
1. System Compatibility
# Check OS version
lsb_release -a
# Check available disk space
df -h
# Check memory
free -h
# Verify Docker installation
sudo docker --version
2. Network Configuration
# Test internet connectivity
ping -c 3 github.com
# Check if required ports are available
netstat -tuln | grep -E ':(5601|7901|9200|52001)'
3. Permissions
# Verify sudo access
sudo whoami
# Check Docker permissions
sudo docker ps
Installation Overview
The installation process involves several key steps:
- Environment Setup: Prepare the host system
- Repository Clone: Download DeepTrace source code
- Configuration: Set up configuration files
- Server Deployment: Install server components
- Agent Installation: Deploy monitoring agents
- Verification: Confirm successful installation
Quick Installation
For users who want to get started immediately:
# Clone repository
git clone https://github.com/DeepShield-AI/DeepTrace.git
cd DeepTrace
# Quick setup with Docker (recommended)
sudo bash scripts/install_agent.sh
This script will:
- Pull necessary Docker images
- Set up basic configuration
- Deploy agent component
Deployment Modes
DeepTrace supports multiple deployment configurations:
Single Host (All-in-One)
- Server and agent on the same machine
- Ideal for testing and small deployments
- Simplified configuration and management
Distributed Deployment
- Server cluster with multiple agents
- Production-ready scalability
- Advanced configuration options
Post-Installation
After successful installation:
- Verify Services: Ensure all components are running
- Access Elasticsearch Web Interface: Connect to the management dashboard
- Test Functionality: Generate sample traces
Troubleshooting Installation
Common installation issues and solutions:
Docker Issues
# Fix Docker permissions
sudo usermod -aG docker $USER
newgrp docker
# Restart Docker service
sudo systemctl restart docker
Port Conflicts
# Check port usage
sudo netstat -tuln | grep :PORT_NUMBER
# Kill conflicting processes
sudo fuser -k PORT_NUMBER/tcp
Insufficient Resources
# Check system resources
htop
df -h
free -h
# Clean up disk space
docker system prune -a
Next Steps
After installation, proceed to:
- Configuration Guide: Customize your deployment
- Quick Start: Begin collecting traces
- Basic Usage: Learn essential operations
Support
If you encounter issues during installation:
- Check Prerequisites: Verify all requirements are met
- Review Logs: Examine installation logs for errors
- Consult Documentation: Check specific installation method guides
- Community Support: Visit our GitHub Issues