CKAN uses Pylons and hence Beaker. It therefore appears to stores session info (and other cache info) on disk. Is there a way to configure CKAN to store session information somewhere else than disk e.g. DB or memcached?
I’m asking particularly because a) you can run into issues storing sessions on disk (if you have a lot of sessions) b) I would like to run CKAN on something like Heroku where having sessions on disk causes issues (esp if you have more than 1 process)
Install memcached with:
Default config should have settings to listen to localhost on port 11211. /etc/memcached.conf:
For CKAN/Beaker to talk to it, you’ll need Python module pylibmc and libmemcached. Install libmemcached2 first and see which version comes with your distro:
Lucid comes with v0.31-1 which needs pylibmc no later than version 0.9. If you have 0.32 then you can use a more recent pylibmc. Now install pylibmc:
Then in your ckan config you set up Beaker to talk to it like this:
Once you restart you should be using Beaker, instead of creating those files that eventually completely fill your disk.