Overview
ampd is the core Amp daemon that handles data extraction, transformation, and query serving. It is a multi-mode executable that can run in different operational configurations depending on deployment needs, from single-node development setups to distributed production deployments.
Subcommands
server
Start query servers (Arrow Flight and JSON Lines)
worker
Run distributed worker node for data extraction
controller
Start controller service with Admin API
solo
All-in-one development mode
migrate
Run database migrations
dump
Extract data from blockchain sources to Parquet
Global Options
The configuration file to use. This file defines where to look for dataset definitions and providers, along with many other configuration options.Can also be set via the
AMP_CONFIG environment variable.Configuration
The--config parameter (or AMP_CONFIG environment variable) points to a TOML configuration file that controls:
- Database connections: PostgreSQL metadata database URL
- Storage locations: Data directory, providers directory, manifests directory
- Server ports: Arrow Flight, JSON Lines, and Admin API endpoints
- Provider settings: RPC endpoints, Firehose connections
- Query settings: Streaming intervals, keep-alive settings
Example Configuration
Operational Modes
ampd supports different deployment patterns:
Development Mode
Solo Mode - All-in-one process for local development:- Combines server, controller, and worker in one process
- Embedded worker with node ID “worker”
- All services on default ports (1602, 1603, 1610)
Production Mode
Distributed Deployment - Independent services for production:- Independent scaling of components
- Fault isolation between services
- Horizontal scaling of workers
Common Workflows
Initial Setup
Production Deployment
Exit Codes
Operation completed successfully or service shut down gracefully
Error occurred during operation or configuration is invalid
See Also
- ampd server - Query server configuration
- ampd worker - Worker node setup
- ampd controller - Controller and Admin API
- ampd solo - Development mode
- ampd migrate - Database migrations