Re: How to scale out uploaded file storage & serving?

2010-12-26 Thread Russ B.
If it's just disk performance and ability to add on space, a simple performance RAID (JBOD or RAID-0) attached internally, externally via Firewire/eSATA, or as NAS from another machine. If you're worried about a lot of files moving down the network concurrently, then you'll certainly have to look i

Re: How to scale out uploaded file storage & serving?

2010-12-26 Thread Javier Guerra Giraldez
On Sun, Dec 26, 2010 at 1:40 AM, Andy wrote: > Planning ahead, if the website gets popular, how do I scale it out so > that the images (both original and thumbnails) will be stored in and > served from multiple servers? Maybe a cluster? Is there any open > source software that would help me in thi

How to scale out uploaded file storage & serving?

2010-12-25 Thread Andy
I'm building a website where users can upload photos and I'd also convert uploaded photos into thumbnails (probably using sorl- thumbnail). When everything fits in one server, I would just use FileField() and handle_uploaded_file() as detailed in the doc. Planning ahead, if the website gets popul

Re: How to scale out django apps?

2009-04-13 Thread Andy
Tim, Thanks for the helpful answers. As for specific details about my app, right now I'm still in the design phase. It will start small, but hopefully it will get popular quickly. So I don't know how big the Db will be or how many users will there be. What I'm trying to do is to make sure there

Re: How to scale out django apps?

2009-04-13 Thread Tim Chase
> Recently I found out Django doesn't support multiple databases. That's > quite surprising. > > Given that limitation, how do you scale out a Django app? Depends on where your bottleneck(s) is/are. It also depends heavily on your read/write usage pattern. If you're truly experiencing a sten

How to scale out django apps?

2009-04-13 Thread Continuation
Recently I found out Django doesn't support multiple databases. That's quite surprising. Given that limitation, how do you scale out a Django app? Without multi-DB support, most of the usual techniques for scaling out such as: - DB sharding - functional partitioning - eg. separate DB serve

Re: how to scale

2007-10-04 Thread James Bennett
On 10/4/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: > JB> You mean no projects using MySQL Replication, > > Did I? I think I've said exactly opposite. You jumped from "MySQL Replication won't work" to "no big projects will use Django". Big projects already are using Django, therefore th

Re: how to scale

2007-10-04 Thread Andrey Khavryuchenko
James, JB> On 10/3/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: >> The only thing django app should know is that there are two different >> *kinds* of servers: read-only and whole access. It doesn't matter how many >> servers you have - you may well have pool of masters and pool of sl

Re: how to scale

2007-10-04 Thread Andrey Khavryuchenko
AA> Am 03.10.2007 um 12:36 schrieb Andrey Khavryuchenko: AA> It's possible to use circular replication together with some free AA> load balancing software. As I've told earlier, I know perfectly about circular replication. AA> Then there's MySQL Proxy that allows you to manipulate queri

Re: how to scale (was: how to do something at startup)

2007-10-03 Thread Udi
Check out: http://ant.apache.org/ These types of deployment & initialization tasks should be handled by the surrounding environment, not Django itself. I suggest you use ant or something similar to set up some scripts for yourself that coordinate everything. --~--~-~--~~--

Re: how to scale

2007-10-03 Thread Andreas Ahlenstorf
Am 03.10.2007 um 12:36 schrieb Andrey Khavryuchenko: > I know about MySQL Cluster. The obvious disadvantage is that the > whole > database should be in main memory. Kiss goodbye to a bunch of cheap > servers sitting close to actual users. > > There are also replication tweaks like multi-mast

Re: how to scale

2007-10-03 Thread James Bennett
On 10/3/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: > The only thing django app should know is that there are two different > *kinds* of servers: read-only and whole access. It doesn't matter how many > servers you have - you may well have pool of masters and pool of slaves, it > doesn't

Re: how to scale

2007-10-03 Thread Andrey Khavryuchenko
JB> On 10/2/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: >> Shouldn't it? In case of MySQL replication (which is quite widely used) >> and transactions someone somehow *has* to decide where the whole >> transaction is going - to a master or to a slave. JB> In the case of MySQL, use

Re: how to scale

2007-10-02 Thread James Bennett
On 10/2/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: > Shouldn't it? In case of MySQL replication (which is quite widely used) > and transactions someone somehow *has* to decide where the whole > transaction is going - to a master or to a slave. In the case of MySQL, use MySQL Cluster, wh

Re: how to scale

2007-10-02 Thread Andrey Khavryuchenko
JB> As for database clustering, there's a philosophical issue here: Django JB> shouldn't need to know whether there's one database server behind it, JB> or five, or a hundred. Shouldn't it? In case of MySQL replication (which is quite widely used) and transactions someone somehow *has* to de

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 20:37 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > I'm not sure what drove me to call it "fragment caching". > > What I really meant to point at are the little things (such as > > form_for_model()) that would likely benefit from some obj

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 20:29 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > My question was really only about the former, a much simpler problem: > > How to keep a tcp connection persistent and re-use it across requests? > > By using a pooling connection manage

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread James Bennett
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > I'm not sure what drove me to call it "fragment caching". > What I really meant to point at are the little things (such as > form_for_model()) that would likely benefit from some object > caching instead of burning cycles for each request. You c

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread James Bennett
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > My question was really only about the former, a much simpler problem: > How to keep a tcp connection persistent and re-use it across requests? By using a pooling connection manager external to Django. Again, complicating the application layer wi

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 16:16 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > Hm, this raises some serious scalabity questions for me. > > >From your description it sounds like there is no template > > fragment caching, not even db connection pooling possible > >

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread James Bennett
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > Hm, this raises some serious scalabity questions for me. > >From your description it sounds like there is no template > fragment caching, not even db connection pooling possible > with django? You can cache anything you want to cache; read the c

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Fri, 2007-09-28 at 22:29 -0500, James Bennett wrote: > On 9/28/07, Mark Green <[EMAIL PROTECTED]> wrote: > > i'm looking for a way to perform a bunch of initialization tasks > > right after django startup. > > There really is no such thing as "Django startup"; remember that > Django is hosted