[ckan-dev] cache_dir
Ross Jones
ross at servercode.co.uk
Wed Feb 4 11:01:04 UTC 2015
Hi Marco,
Try the instructions at
http://stackoverflow.com/questions/13781023/how-to-configure-ckan-to-store-sessions-somewhere-other-than-disk-e-g-db-or-me
they should help.
Ross
Marco Combetto wrote:
> I revamp this old thread about the caching because I just crashed my
> Production CKAN.
> Could I get rid of these files periodically? Is there a way?
>
> In facts, I just realized today that our CKAN is producing hundreds of
> thousands of small files on the cache directory (/session in
> particular), file like this:
>
> ./default/sessions/container_file/5/59/5992e9b028454f8684e5d53a0f2a8005.cache
>
> Basically the file system crashed because we reached the max number of
> INode on it.
>
> Is there a setting on the PRODUCTION.INi to avoid this caching?
> Is there any issue related if I setup a cron job that delete these files
> periodically
>
> Thanks a lot for any suggestions
>
> Marco Combetto
> marcomb at hotmail.com <mailto:marcomb at hotmail.com>
> Mobile: +39 3316329971
> www.*linkedin*.com/in/*marco*mb
>
>
>
>
> ------------------------------------------------------------------------
> From: y2kristi at hotmail.com
> To: ckan-dev at lists.okfn.org
> Date: Fri, 14 Mar 2014 05:11:13 -0400
> Subject: Re: [ckan-dev] cache_dir
>
> thanks so much!
>
> > Date: Fri, 14 Mar 2014 09:09:45 +0000
> > From: david.raznick at okfn.org
> > To: ckan-dev at lists.okfn.org
> > Subject: Re: [ckan-dev] cache_dir
> >
> > Hello
> >
> > The normal data is not stored on disk first and goes straight in the
> database.
> >
> > David
> >
> > On 14 March 2014 09:04, kristi powell <y2kristi at hotmail.com> wrote:
> > > oh I understand. I'm asking now if a copy of the data that will be
> saved to Postgres is saved anywhere else on the file system before being
> persisted.
> > >
> > >> On Mar 14, 2014, at 5:00 AM, "David Raznick"
> <david.raznick at okfn.org> wrote:
> > >>
> > >> The data saved there is never persisted to the database, but is saved
> > >> locally just for a single request.
> > >>
> > >>> On 14 March 2014 08:55, kristi powell <y2kristi at hotmail.com> wrote:
> > >>> but is the data actually saved locally before it's persisted to
> the db anywhere?
> > >>>
> > >>>> On Mar 14, 2014, at 4:41 AM, "David Raznick"
> <david.raznick at okfn.org> wrote:
> > >>>>
> > >>>> Hello
> > >>>>
> > >>>> The cache directory or the session directory is only used for stuff
> > >>>> that is not saved in the database. It is always safe to remove. It
> > >>>> is only used for very temporary data. CKAN only uses it infact to
> > >>>> store the little popup messages that come up after you are
> redirected
> > >>>> to a new page.
> > >>>>
> > >>>> David
> > >>>>
> > >>>>> On 14 March 2014 07:36, kristi powell <y2kristi at hotmail.com> wrote:
> > >>>>> can anyone explain this setting to me please?
> > >>>>>
> > >>>>> thanks.
> > >>>>>
> > >>>>>> On Mar 13, 2014, at 3:45 AM, "kristi powell"
> <y2kristi at hotmail.com> wrote:
> > >>>>>>
> > >>>>>> hello...
> > >>>>>>
> > >>>>>> is there anything written into cache before the data is saved
> to the database? I see a setting called "cache_dir" is that just session
> information or actual data? is there any data saved locally before it's
> persisted?
> > >>>>>>
> > >>>>>> thanks
> > >>>>>>
> > >>>>>> kristie
> > >>>>>> _______________________________________________
> > >>>>>> 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
> > >>>>> _______________________________________________
> > >>>>> 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
> > >>>> _______________________________________________
> > >>>> 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
> > >>> _______________________________________________
> > >>> 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
> > >> _______________________________________________
> > >> 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
> > > _______________________________________________
> > > 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
> > _______________________________________________
> > 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
>
> _______________________________________________ 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
>
> _______________________________________________
> 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
More information about the ckan-dev
mailing list