Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDQyG-0001PH-TK for pgsql-general@arkaria.postgresql.org; Mon, 18 Jul 2022 13:39:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oDQyE-0001oz-Qc for pgsql-general@arkaria.postgresql.org; Mon, 18 Jul 2022 13:39:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDQyE-0001lO-ED for pgsql-general@lists.postgresql.org; Mon, 18 Jul 2022 13:39:34 +0000 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oDQyC-0004jn-1B for pgsql-general@lists.postgresql.org; Mon, 18 Jul 2022 13:39:34 +0000 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-10c0e6dd55eso23659566fac.7 for ; Mon, 18 Jul 2022 06:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=R9W2+H/qxWcVNwKEHc47S4QTJcbiCZUA9G4r4fiNGAI=; b=g+roDImz+d2uJyjfLyFbNGt9MB7iB2H5DmBWtvUNGXuj2Ppemr3GX1P+jJ5OhP8xZE n/HFSHhANo83S0HqWwFnVWWu4qVM2dEPOGUscMs46UdiTir71CqLbc63aKnrW6ozCxbB owUbjq/YcwNfkCDao0kHbYQD0rSDJFXNGKvQfsd8wteWnlTnBJLOaFGC1j749F4qChIJ +Irm59PxUDiJjTCZ5q/lel27uM4CBY1KRdQvY/+dCZ5BMq0IZv3DmUBXJUhf89kgBgWS mKlIwGv0MbXZHkMz+FiQAqV02lPIEFo4nXKuSoGxmA3ld832oo9Wl8RHR5iiWLyVRjmi WxGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=R9W2+H/qxWcVNwKEHc47S4QTJcbiCZUA9G4r4fiNGAI=; b=DBuOwwn90p+mDDpy/XVFu1gdp3KsQSVtYOMZ7Hp8dC/Q1eQ18vj2pgh0LsDRrspC0J b/Ty2ArFY7p9tZfsH017ICnzrLBz0l+CGVbJ7wECBjBc7XR1niclUlKtU7QRZGOTrY59 ugSva92+ZY8euoOOle/jaQQmAmYKVoyWMiudmUvPe6hfLK4jHJ/zf3Q6jT3b84uXw7MY SvOV0qboQAeOd5CiLwO02dluzhTzBCRth2VzLzzjezPC3c3wfPbz/BGQkeojEcqimKg/ R8KYjPiSoQyfdxH4YEdZLQlPbtD5HFq83GUdhfjlSOAiy1U4GhILjfriJRfMoZogppJ5 HDNQ== X-Gm-Message-State: AJIora/5QYqBKPUCwJj09ANLyWJPiNnVgcJZ3/Az63ZeUXu9hq/69Yh/ mDUWVCQjC3R5FH6M9JI/OHjnW1bAlCc= X-Google-Smtp-Source: AGRyM1vqQca2vL5bR0mx0PPu10ZrYVJ7y5SCpgCzKo0iIpQ/Wc0Q2f/j8RLhp7iN73WKnh0tVdOOzw== X-Received: by 2002:a05:6870:d610:b0:10c:692:668a with SMTP id a16-20020a056870d61000b0010c0692668amr14379438oaq.86.1658151569845; Mon, 18 Jul 2022 06:39:29 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id h25-20020a4ad019000000b00435a8024bc1sm200502oor.4.2022.07.18.06.39.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jul 2022 06:39:29 -0700 (PDT) Message-ID: Date: Mon, 18 Jul 2022 08:39:28 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: More than one Cluster on single server (single instance) Content-Language: en-US To: pgsql-general@lists.postgresql.org References: From: Ron In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/18/22 02:55, Daulat wrote: > > Hello Team, > > We are planning to create multiple clusters on a single server (single > instance) with PostgreSQL V.10 to run multiple applications. Version (9,6, 10, 111, 12...) does not matter. > I don't know if it is a good idea to use a single machine to run n > clusters but we are looking to minimize the cost of servers and other > resources. That depends on your circumstances. > Please share your thoughts on this approach? It allows you to do PITR backups without doing all-or-nothing restores. > How can we create multiple clusters under a single postgres version? Separate $PGDATA directories, and separate postgresql.conf files (with each config file specifying a different port number: 5432, 5433, 5434, etc) > > How can we identify/allocate the resources to parameters like > shared_buffers, effective_cache_size, work_mem etc in case of multiple > clusters? Very trickily. -- Angular momentum makes the world go 'round.