[ckan-dev] redis and cluster installation

Florian.Brucker at it.karlsruhe.de Florian.Brucker at it.karlsruhe.de
Tue Aug 29 07:29:50 UTC 2017

Dear David,

As of 2.7, core CKAN only requires Redis for the new background job system 
(http://docs.ckan.org/en/ckan-2.7.0/maintaining/background-tasks.html), in 
particular Redis contains the task queues.

Each task of these queues will be executed once (not once per instance). 
If your multiple CKAN instances have the same ckan.site_id setting then 
they will share their task queues. That is, tasks enqueued by one instance 
will be seen by all others. However, the core CKAN WSGI process does not 
execute these tasks on its own. Instead, separate worker processes run in 
the background to execute the tasks asynchronously (
). You can run the worker process(es) on one or more hosts, which may or 
may not be the ones that also host your CKAN instances.

If your CKAN instances have different ckan.site_id settings then they will 
have separate task queues, so each instance will need its own worker 
process(es), which again may or may not run on the same host.

I hope this gets you started ;)


"ckan-dev" <ckan-dev-bounces at lists.okfn.org> schrieb am 28.08.2017 

> Von: dporto <dporto at gmail.com>
> An: CKAN Development Discussions <ckan-dev at lists.okfn.org>, 
> Datum: 28.08.2017 17:05
> Betreff: [ckan-dev] redis and cluster installation
> Gesendet von: "ckan-dev" <ckan-dev-bounces at lists.okfn.org>
> AFAIK redis is mandatory for 2.7.0
> I want to install this version (2.7.0) in a cluster infrastructure
> (high availability)
> Currently, there're several ckan instances (wsgi+solr) sharing the
> same postgresql database
> Could anybody tell me how to deal with (redis) ?
> Redis tasks should be executed in each ckan node or it should be only
> executed in one node?
> Thanks in advance
> David
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170829/abb6b723/attachment-0003.html>

More information about the ckan-dev mailing list