Ask Your Question

is it locmem related issue or djcelery issue?

asked 2014-01-22 12:45:19 -0500

SocialQA gravatar image

updated 2014-01-22 18:38:23 -0500

Currently I am seeing delays in my site. For an example the points don't get updated right away. In addition sometimes main page says there are two answers and when you go to the question you only see one answer. I have a feeling this is due to locmem cahce because I still get the warning about locmemcached. Also can this be due to some application layer issue where it doesn't invalidate the cache and do a database call.

[Thu Mar 14 18:35:03 2013] [error] WARNING!!! You are using a 'locmem' (local memory) caching backend,
[Thu Mar 14 18:35:03 2013] [error] which is OK for a low volume site running on a single-process server.
[Thu Mar 14 18:35:03 2013] [error] For a multi-process configuration it is neccessary to have a production
[Thu Mar 14 18:35:03 2013] [error] cache system, such as redis or memcached.

This is my current djcelery settings:

#Celery Settings
BROKER_TRANSPORT = "djkombu.transport.DatabaseTransport"

import djcelery

Also I am using celery 2.2.7 with askbot 0.7.48

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-28 11:53:11 -0500

Evgeny gravatar image

This may be because you have multiple processes using locmem cache. In this case each process has its own cache and since some html fragments are cached you may see different content depending on which process provides the response.

edit flag offensive delete link more


Any suggestion to fix this?

SocialQA gravatar imageSocialQA ( 2014-01-30 11:03:25 -0500 )edit

use a real cache engine for your site, it performs much better after that change :)

Fitoria gravatar imageFitoria ( 2014-01-30 11:04:59 -0500 )edit

@Fitoria any guidance on doing that?

SocialQA gravatar imageSocialQA ( 2014-01-30 11:12:22 -0500 )edit

Look at the django docs on how to set up memcached or redis cache, django-redis has own documentation too.

Evgeny gravatar imageEvgeny ( 2014-01-30 12:05:03 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-01-22 12:45:19 -0500

Seen: 124 times

Last updated: Jan 28 '14