First time here? Check out the FAQ!
0

is it locmem related issue or djcelery issue?
 

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"
CELERY_ALWAYS_EAGER = True

import djcelery
djcelery.setup_loader()
DOMAIN_NAME = ''

Also I am using celery 2.2.7 with askbot 0.7.48

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
SocialQA's avatar
265
SocialQA
asked 11 years ago, updated 11 years ago

Comments

see more comments

1 Answer

1

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

Comments

Any suggestion to fix this?

SocialQA's avatar SocialQA (11 years ago)

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

Fitoria's avatar Fitoria (11 years ago)

@Fitoria any guidance on doing that?

SocialQA's avatar SocialQA (11 years ago)

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

Evgeny's avatar Evgeny (11 years ago)
see more comments