Ask Your Question
1

multi instances sharing one db a problem?

asked 2011-08-19 11:47:58 -0500

mether gravatar image mether flag of India
1272 29 17 45
http://fedoraproject.org/

For the Fedora deployment, our infrastructure team wants to run Askbot in multiple machines for redundancy/high availability and have those connect to a single DB (since our DB system is not replicated yet). Is there any problems with this setup?

We are using Postgresql 8.4 with python-psycopg2-2.0.13 in RHEL 6

delete close flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-08-22 11:06:01 -0500

toshio gravatar image toshio
36 2

At the level we were asking, it's a coding question ;-) most web applications these days have an architecture where the only thing shared between instances is the database (Used to be called Shared Nothing http://en.wikipedia.org/wiki/Shared_nothing but the database is shared so it's not really.) This allows deploying the web application to multiple application servers easily and the database is the only SPOF.

There are, however, still some apps that are coded that need to share other resources besides a database. For instance, we ran an application that needed to cache code repositories from hundreds of projects around the internet. This was an expensive operation in terms of disk and bandwidth and the cache could get out of sync between app servers. We ended up needing to create a nfs share for this data and forcing the cache to be created and synced only on a single node.

So really, we're asking whether askbot is a standard web app that just needs to share the database or if there's other dynamic, shared resources that we need to know about.

link publish delete flag offensive edit

Comments

1
I think askbot also shares user uploaded files(in case you allow them) Fitoria ( 2011-08-22 14:23:52 -0500 )edit
That's right - database, uploaded and the static files are shared. User sessions are stored in the database by default. You can share a memcached instance too. Evgeny ( 2011-08-22 20:45:17 -0500 )edit
0

answered 2011-08-21 07:01:56 -0500

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

I think this is fully a deployment issue, hopefully your system administrators can figure this out. If you think something is missing in askbot to support this - please let us know.

link publish delete flag offensive 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
1 follower

subscribe to rss feed

Stats

Asked: 2011-08-19 11:47:58 -0500

Seen: 100 times

Last updated: Aug 22 '11