X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9DB3854AD9 for ; Wed, 11 May 2005 04:58:02 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56611-10 for ; Wed, 11 May 2005 07:57:59 +0000 (GMT) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by svr1.postgresql.org (Postfix) with ESMTP id 606D854A9C for ; Wed, 11 May 2005 04:57:58 -0300 (ADT) Received: from web2.messagingengine.com (web2.internal [10.202.2.211]) by frontend1.messagingengine.com (Postfix) with ESMTP id A2468C8D819; Wed, 11 May 2005 03:57:59 -0400 (EDT) Received: by web2.messagingengine.com (Postfix, from userid 99) id B8E2D4A3; Wed, 11 May 2005 03:57:57 -0400 (EDT) Message-Id: <1115798277.29223.233869472@webmail.messagingengine.com> X-Sasl-Enc: W+JRp3SRjgZoFZA86zO1nPvZUIdyA3cMn2XSFEiq+J8Q 1115798277 From: "David Roussel" To: "Alex Stapleton" , pgsql-performance@postgresql.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.5 (F2.73; T1.001; A1.64; B3.05; Q3.03) References: <5F94B6EB-3925-4CD3-A67F-4310890B438A@advfn.com> Subject: Re: Partitioning / Clustering In-Reply-To: <5F94B6EB-3925-4CD3-A67F-4310890B438A@advfn.com> Date: Wed, 11 May 2005 08:57:57 +0100 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200505/193 X-Sequence-Number: 12357 For an interesting look at scalability, clustering, caching, etc for a large site have a look at how livejournal did it. http://www.danga.com/words/2004_lisa/lisa04.pdf They have 2.6 Million active users, posting 200 new blog entries per minute, plus many comments and countless page views. Although this system is of a different sort to the type I work on it's interesting to see how they've made it scale. They use mysql on dell hardware! And found single master replication did not scale. There's a section on multimaster replication, not sure if they use it. The main approach they use is to parition users into spefic database clusters. Caching is done using memcached at the application level to avoid hitting the db for rendered pageviews. It's interesting that the solution livejournal have arrived at is quite similar in ways to the way google is set up. David