Open mjanez opened 9 months ago
Check kartoza/ckanext-dalrrd_emc_dcpr
solution:
CKAN command entrypoint: https://github.com/kartoza/ckanext-dalrrd-emc-dcpr/blob/29b246f969bc4867a621f1c6e5818c5c41f69f4d/ckanext/dalrrd_emc_dcpr/cli/docker_entrypoint.py#L1-L103
CKAN Docker Compose: https://github.com/kartoza/ckanext-dalrrd-emc-dcpr/blob/29b246f969bc4867a621f1c6e5818c5c41f69f4d/docker/docker-compose.yml#L1-L29
Info
Background
First a deployment was developed with all workers in the background in the main CKAN container, but in order to handle high availability and scalability, it is proposed to separate the workers into isolated containers, connected to each other.
More info: https://github.com/mjanez/ckan-docker/issues/102
To do
To allow horizontal scalability, it would be better to use workers in separate containers rather than as background cron jobs within the `ckan' container.
They communicate with the ckan container via redis, and need access to DB, solr and filesystem (config, storage, logs, etc.)
References:
ckan-docker/Datapusher replacement
Example