Services Configuration Screen
┌──────────────────────────────────────────────────────────────────────────────┐
│ Services Settings │
├──────────────────────────────────────────────────────────────────────────────┤
│ │
│ Khedra provides five services. The first, "control," exposes endpoints to │
│ control the other four: "scrape", "monitor", "api", and "ipfs". │
│ │
│ You may disable/enable any combination of services, but at least one must │
│ be enabled. │
│ │
│ The next few screens will allow you to configure each service. │
│ │
│ │
│ │
│ Press enter to continue. │
│ │
│ Keyboard: [h] Help [q] Quit [b] Back [enter] Continue │
└──────────────────────────────────────────────────────────────────────────────┘
Purpose
- Enables users to select and configure Khedra's core services
- Explains the relationship between the services
- Ensures at least one service is enabled for proper functionality
Available Services
Khedra offers five core services that work together:
-
Control Service: Management endpoints for the other services
- Always enabled by default
- Provides a central API for managing other services
-
Scraper Service: Builds and maintains the Unchained Index
- Processes blocks to extract address appearances
- Configurable batch size and sleep interval
-
Monitor Service: Tracks specific addresses of interest
- Provides notifications for address activities
- Configurable batch size and sleep interval
-
API Service: REST API for data access
- Configurable port number
- Provides endpoints for querying the index and monitors
-
IPFS Service: Distributed data sharing
- Enables sharing and downloading index data
- Configurable port number
Configuration Parameters
For each service, you can configure:
- Enabled/Disabled: Toggle the service on or off
- Port numbers: For services that expose network endpoints
- Batch size: Number of blocks processed in one batch (for scraper/monitor)
- Sleep interval: Time to wait between batches (for scraper/monitor)
- Resource limits: Memory and CPU constraints