Difference between revisions of "CKAN Administration"

126 bytes added ,  19:28, 7 March 2022
Fix instructions for changing number of background workers
(Add details about activating the paster virtual env and managing background workers)
(Fix instructions for changing number of background workers)
Line 28: Line 28:
* To restart the Express Loader: <code>> sudo supervisorctl restart ckan-worker:*</code>
* To restart the Express Loader: <code>> sudo supervisorctl restart ckan-worker:*</code>


* To edit the background worker configuration (including increasing the number of background workers), edit the config file:
* To edit the background worker configuration (including increasing the number of background workers),  
<code>> vi /etc/supervisor/conf.d/supervisor-ckan-worker.conf</code>
*# Edit the config file: <code>> vi /etc/supervisor/conf.d/supervisor-ckan-worker.conf</code>
and then restart the workers:
*# Tell Supervisor to use the new configuration: <code>> sudo supervisorctl reread</code>
<code>> sudo supervisorctl restart ckan-worker:*</code>
*# Update the deployed configuration to start the desired number of workers: <code>> sudo supervisorctl update</code>


* Activate the virtual environment that lets you run <code>paster</code> commands: <code>> . /usr/lib/ckan/default/bin/activate</code>
* Activate the virtual environment that lets you run <code>paster</code> commands: <code>> . /usr/lib/ckan/default/bin/activate</code>