Ask Your Question
4

How can i run multiple instances of askbot on a server?

asked 2012-06-23 16:49:21 -0500

rornvi gravatar image rornvi flag of India
135 7 3 14
http://naviarora.com/

updated 2012-06-24 00:50:28 -0500

Currently I'm successfully running a askbot instance site.com. When I try to install the second instance at site2.com, site2.com and site.com gets content from each other randomly despite having a different databases and configs. I use virtualenv for setting up askbot on both sites using pip.

Server Environment: Nginx, Mysql, uWSGI, Python 2.6

I use this script for starting uwsgi as service, http://goo.gl/nI7Em

I use this config in nginx, https://gist.github.com/427eace448b71461755c

site.com = http://goo.gl/GN3Fv

site2.com = http://goo.gl/VgWpe

Difference beetween the two sites is, site2.com doesn't have any question whereas site.com have one question "How're you today?". If you refresh them both randomly, my issue can be regenerated, i.e the question will randomly appear on both sites.

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-06-23 17:59:37 -0500

Evgeny gravatar image Evgeny flag of Chile
11044 50 84 182
http://askbot.org/

updated 2012-07-21 21:13:29 -0500

The issue is due to cache "mixups" between the sites.

edited: with Django 1.3 you could try setting up CACHES settings variable and add distinct KEY_PREFIX value to all of your sites.

For example:

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': 'unix:/tmp/memcached.sock',
        'KEY_PREFIX': 'siteA',
    }
}

That way caches will be differentiated between sites and you can host several on the same server.

link publish delete flag offensive edit

Comments

I'm not sure how to have separate cache engines.

rornvi ( 2012-06-24 01:24:40 -0500 )edit

@Evgeny : about multi-site implementation, did you already documented what you plan to implement ? It also need this features asap so I can contribute on this point

Alban ( 2012-06-26 03:10:51 -0500 )edit

@Evgeny Is it possible to rectify this issue at the earliest? Will donation help to accelerate? If yes, what amount?

rornvi ( 2012-06-28 23:10:35 -0500 )edit
2

@rovni, thanks! Please save your donation for something else:). I will fix this tomorrow.

Evgeny ( 2012-06-29 00:08:42 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
2 followers

subscribe to rss feed

Stats

Asked: 2012-06-23 16:49:21 -0500

Seen: 118 times

Last updated: Jul 21 '12