Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YM2fl-0006Gx-DK for pgsql-performance@arkaria.postgresql.org; Thu, 12 Feb 2015 22:55:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YM2fj-0007Hn-NU for pgsql-performance@arkaria.postgresql.org; Thu, 12 Feb 2015 22:55:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YM2fW-0006u3-JW for pgsql-performance@postgresql.org; Thu, 12 Feb 2015 22:55:34 +0000 Received: from nm26-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.186]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YM2fP-0002ia-FJ for pgsql-performance@postgresql.org; Thu, 12 Feb 2015 22:55:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1423781726; bh=hjodUIOgSPbQKHzjMx2GOlJVFvruyA8nM7dxk7xEejE=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=J6ThIbaKOew31V/22aP8/hgWbNWfWskA4lncVjICCVmLRYUp494S+2B0HaCHpPdkdf+oTBajT+yBhNOW0nuuLxHXeZcvxvxvIjfvOaVgTEb9h43x9VhIT0A/zOlID4VXXItSQ1kl67/XL5dhSta9knfP4aFpJCGagXvxp6nH4oyn3ZE0QrFMlU5M/Vckn9ckZv/9Yb9gAIvGHHP5ifcazODNcoALbl0GWaih/+glK2oBywjuqveMyIGxJCO9yM9pAFCcO4ATa2OPfz0pQVfShHf/zQZMujjAC79rSkQquQ/HF2HXHbDDW33nEJXjhNhLJXZ7VM7bwozMRaXTtzfeFA== Received: from [98.138.100.115] by nm26.bullet.mail.ne1.yahoo.com with NNFMP; 12 Feb 2015 22:55:26 -0000 Received: from [98.138.89.199] by tm106.bullet.mail.ne1.yahoo.com with NNFMP; 12 Feb 2015 22:55:26 -0000 Received: from [127.0.0.1] by omp1057.mail.ne1.yahoo.com with NNFMP; 12 Feb 2015 22:55:26 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 91702.93719.bm@omp1057.mail.ne1.yahoo.com X-YMail-OSG: 1qts3bYVM1kXdNZnyTzd7tsBJru.kltKLhmvDRZxqTfzmCOr75VxvM0IRWx_orm svMCAq2YAqo2VXO.IOQUkvR2k0Xg48oOWYQt3crJ8VKrir_VgJCUsxEgLmjuZTUqidrGcis0CbVr dYyFtzEG7q8OCYPNidO2.7uuloNhd6Mkbvq_tw5hsrQH6lrWuS7MS0r9N2.Q6iNU_W7jBKebHoqv 2jebK8LMw2pNmCMU9O8UTih6FDYqFHC.oUlixYcTSO7J5OkCzpr1etUxHISi0tzjUXE287s2YlUM K7GEM4CW3aiLNjdGbmBwXhJ6U.9A8Hpf1U_LJaogaXRKl.2wcowLYcWJPYyxtLuRqvldFvK6BqhD Zd6viXF1sYxdh7Y1PTOtB0Ue7YXzbyfu4eufaQ8WD58T.__vMqtzrCTzzm_3Owr9._EtCmc7JNe5 RjGZbPhEynITjT20_DjrBvgtwFphzYkhu8VscOq8ZchSOHTiTEDHnT27BfJeOHZAY97kysg4_6yY 0naYTyxvPbxia0ad2GakcEuWxzWludIMuBH_0bEAdoS4DsLuPhsXuO12w5yGq2bPVdVnAnl8sujM R7XS2WjHzEakMPy2dTSikx8tI0Fi_g4BYgMZ2UU_04eIWXYywYv8xgeHcQoeDtNOdoOaVmsVVE7X 9B0W6KokMVjowSSYAPz2_DEiFCmWubIdbeksQGcd0gg-- Received: by 98.138.101.174; Thu, 12 Feb 2015 22:55:25 +0000 Date: Thu, 12 Feb 2015 22:55:20 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Nico Sabbi Cc: "pgsql-performance@postgresql.org" Message-ID: <785380407.2469064.1423781720365.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <54DD2DAD.3090503@poste.it> References: <54DD2DAD.3090503@poste.it> Subject: Re: Configuration tips for very large database MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 1179 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Nico Sabbi wrote: > Can you give any hint on the configuration and on the underlying > hardware? Well, this particular web site has millions of hits per day (running up to about 20 queries per hit) from thousands of concurrent web users, while accepting logical replication from thousands of OLTP users via logical replication, so you probably don't need equivalent hardware. If I recall correctly it is running 32 cores with 512GB RAM running two PostgreSQL clusters, each multiple TB, and each having a RAID 5 array of 40 drives, plus separate controllers and RAID for OS and WAL. For server configuration, see these Wiki pages for the general tuning techniques used: https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server https://wiki.postgresql.org/wiki/Number_Of_Database_Connections The best course to solve your problem would probably be to review those and see what might apply, and if you still have a problem pick a specific slow-running query and use the process described here: https://wiki.postgresql.org/wiki/SlowQueryQuestions -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance