Ingestion for Sysadmins Rocky Linux#
A technical reference overview of the backend components of the platform responsible for ingesting incoming data, processing it, and storing it in the main data store, the indexing and search database, and the graph database.
Ingestion#
Step |
Service or process |
Actions |
---|---|---|
1 |
Incoming feed workers |
Each incoming feed worker:
|
2 |
Incoming feed workers |
Each incoming feed worker:
|
3 |
Ingestion workers |
Each incoming feed worker:
|
4 |
Ingestion workers |
The default action to execute is synchronous. The failover action is asynchronous. Each ingestion worker:
|
Core components#
Tip
For more information about the eiq-platform
command line tool, see
eiq-platform command line.
Component |
Description |
---|---|
|
There is only one running instance of the The instance integrates the Gunicorn web server gateway interface to exchange data with the Nginx web server, which acts as a proxy, through port 8008.
|
|
The default configuration spawns 4
Data traffic depends on the amount of incoming packages that are queued up for processing. It is possible to increase and decrease the amount of concurrent workers using For example, to decrease the default active workers from 4 to to 2: systemctl disable eclecticiq-platform-backend-ingestion@{3,4}
systemctl stop eclecticiq-platform-backend-ingestion@{3,4}
To increase the default active workers from 4 to 6: systemctl enable eclecticiq-platform-backend-ingestion@{1..6}
systemctl start eclecticiq-platform-backend-ingestion@{1..6}
To restart the default workers: systemctl restart eclecticiq-platform-backend-ingestion
To run the command manually: eiq-platform ingestion run
Redis acts as a message broker:
|
|
There is one running instance of It exchanges data with Elasticsearch and Redis. To restart the worker: systemctl restart eclecticiq-platform-backend-searchindex
To run the command manually: eiq-platform search run-indexer
Redis acts as a message broker:
|
Celery workers |
There are several Celery workers running concurrently. They execute tasks related to processes such as ingestion, dissemination, and discovery. They also manage execution priority for rules, data retention policies, and enrichers. eclecticiq-platform-backend-workers.service (sourced from EIQ platform-backend) Wants=eclecticiq-secrets-setter.service eclecticiq-platform-backend-scheduler.service \
eclecticiq-platform-backend-worker@discovery-priority.service \
eclecticiq-platform-backend-worker@discovery.service \
eclecticiq-platform-backend-worker@enrichers-priority.service \
eclecticiq-platform-backend-worker@enrichers.service \
eclecticiq-platform-backend-worker@entity-rules-priority.service \
eclecticiq-platform-backend-worker@extract-rules-priority.service \
eclecticiq-platform-backend-worker@incoming-transports-priority.service \
eclecticiq-platform-backend-worker@incoming-transports.service \
eclecticiq-platform-backend-worker@outgoing-feeds-priority.service \
eclecticiq-platform-backend-worker@outgoing-feeds.service \
eclecticiq-platform-backend-worker@outgoing-transports-priority.service \
eclecticiq-platform-backend-worker@outgoing-transports.service \
eclecticiq-platform-backend-worker@reindexing.service \
eclecticiq-platform-backend-worker@retention-policies-priority.service \
eclecticiq-platform-backend-worker@retention-policies.service \
eclecticiq-platform-backend-worker@synchronization.service \
eclecticiq-platform-backend-worker@utilities-priority.service \
eclecticiq-platform-backend-worker@utilities.service
Celery queues manage workload and task distribution for the workers: settings.py (sourced from EIQ platform-backend) CELERY_TASK_QUEUES = [
{"name": "enrichers", "routing_key": "eiq.enrichers.#"},
{"name": "enrichers-priority", "routing_key": "priority.enrichers.#"},
{"name": "incoming-transports", "routing_key": "eiq.incoming-transports.#"},
{
"name": "incoming-transports-priority",
"routing_key": "priority.incoming-transports.#",
},
{"name": "outgoing-transports", "routing_key": "eiq.outgoing-transports.#"},
{
"name": "outgoing-transports-priority",
"routing_key": "priority.outgoing-transports.#",
},
{"name": "outgoing-feeds", "routing_key": "eiq.outgoing-feeds.#"},
{"name": "outgoing-feeds-priority", "routing_key": "priority.outgoing-feeds.#"},
{"name": "utilities", "routing_key": "eiq.utilities.#"},
{"name": "utilities-priority", "routing_key": "priority.utilities.#"},
{"name": "discovery", "routing_key": "eiq.discovery.#"},
{"name": "discovery-priority", "routing_key": "priority.discovery.#"},
{"name": "entity-rules-priority", "routing_key": "priority.entity-rules.#"},
{"name": "extract-rules-priority", "routing_key": "priority.extract-rules.#"},
{"name": "reindexing", "routing_key": "eiq.reindexing.#"},
{"name": "retention-policies", "routing_key": "eiq.retention-policies.#"},
{"name": "synchronization", "routing_key": "eiq.synchronization.#"},
{
"name": "retention-policies-priority",
"routing_key": "priority.retention-policies.#",
},
]
|
Core dependencies#
Nginx
Redis
PostgreSQL
Elasticsearch
Logstash
Kibana