Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruoWl-007o9y-7O for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2024 07:07:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ruoWj-00EGpo-Th for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2024 07:07:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruoWj-00EGp9-HJ for pgsql-general@lists.postgresql.org; Thu, 11 Apr 2024 07:07:17 +0000 Received: from mout.web.de ([212.227.15.4]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruoWg-002JD8-Mr for pgsql-general@lists.postgresql.org; Thu, 11 Apr 2024 07:07:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1712819230; x=1713424030; i=thewand@web.de; bh=okOLQn7+oPom8Uk1eXtH27fkTISs8wVWQTDGKMLC6Wc=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To: References; b=RpK/AUKl9jsnjiW6GpmYpn5qVH1dseCmMwCGYj0tbh/fqUD9aHG3FU/ktU+02rQt H13TxQc88fMtCvflCMo/s+iU6oojp1dSSHW6fbDBo5UQ97JpzZzDSYqte/5Bt3/FC fSlyROOIUXFQN6zeSmobpk7vqbv8TzfOxO0myzlfTsTf74eqIGJNYZx00rzIFBTFv /jmSK4EK4j5P3jjfY4Yx5mosshAzOFthH8isU3PB9dJOMriOIF33LVG3B1CMXaHd8 6MpYiOHL6fk/SaidNtFCV0FRzZ6iOtuFmmo2e0rqE0pv3wVljR9i+eNfyXmnbl9q3 DuRyB9ObiEVB7fgF3g== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.2.135] ([79.215.39.150]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N1u6n-1swIHX0S65-012HL0; Thu, 11 Apr 2024 09:07:10 +0200 Message-ID: <975f53af426aed43374abbc494ac82517119876d.camel@web.de> Subject: Re: Two server instances on one server From: Andreas Wagner To: Tom Lane Cc: pgsql-general@lists.postgresql.org Date: Thu, 11 Apr 2024 09:07:08 +0200 In-Reply-To: <4180220.1712781718@sss.pgh.pa.us> References: <644908bed5bd78e5d0d514a57f894a1451daec2e.camel@web.de> <4180220.1712781718@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:tE6zBFu2tCaVFERPd3eQImo/0ujZsQLMoAFGZrxzHuM4gm54CCy HPE2cpZb1hnPXRTJBn3sbBFBUwGZ3k6flypGPTpQXsapU+yxh+SiHx0TeXMslSY6SQ/urH4 iaJSbxbH/W6XA4xZWxU98PJDERjdX9g6ax4EAXA822GXbElZTj8ji5CYfiaNa9eGhiSEhYt D26HGwHy9bEvQpM3u0ncA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:0+otOhH5g2A=;gWNNuszG4lIPCmJRNN+uWyGZQjm oXXU7tmsk6NE78BLYu6I031GXCyKt0v/6mSkgQo5UCnAdMvzUps62XfJfKu7GZLr3dAeEsM11 lAzQ3cj56HcU4Js/GVifH6r8jxCMoQ2un4sCUhQ5L58vXsn4Jmoj4YMKeURnaN2wr0gUVERAn rT+jqkgHfVtQpmRUX7c7U/atzPkarUcQXGzTUX5HmkKGavi+UWChAiiBrnokxu4GLWNJQUM9U guKg7mwxbouuP7eLHENbkwegQR6frNo0fTQylY/WA4AOiDUtc27+i591zu7FZf5BA47BvBLT/ UwK5xrystHMsVHnOrqaOiOfhhg1f4zfq1L0BZkCq/EglnMh35+Axjfh/8KplmEJWwCa51/BE2 H79ML9zFV2gxea4n/aq0rc1C7QR4EpVY5HcRmL5IBRscgR6YhEHlSy9AKAF2oH3ru6KfGdgDv nJrvGIjoD1AAMFeqN0GSGSpAuU9uhQlxW5s+kyBXdIskIPuHHpQudpUN0zk5Xd+m62Vr2tYEN SAEh1gsrOJQy7FFQAhP7WU5jFkxbB6vn30M8ORQ9oamNzbf4ysYZvPaZA3TcBnhMhmR8LA3FB eM5f1Gqt7KYb1Jj3HqlAIri2im/xj0iN4rlw9Ac+qU3iHVdz5tVqrfLTg4zA29APCnwVe7g7E hGQcchvQyE59qWuMazySahMMk5ZhPG9z8CW1nmHPnokfIGlWSs1qdYxl+DI36wzZsgcq4YkFv j0b+xXIQMWTv5lLKm6t1TuIpBnQ/oC/yB+8zMhlCLuMDZJQDS1dxid58l3cjkQAdjvbA+K5C/ 40SmcFmrnrVPtC315UZjxq4pNwUVXlwXHTcOohZJJ5zOs= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am Mittwoch, dem 10.04.2024 um 16:41 -0400 schrieb Tom Lane: > Andreas Wagner writes: > > I consider using two instances of the PG server on one node. The > > node > > has two processors and each processor has 64GB memory assigned to > > it. > > I'd like to > > * restrict instance one to processor 0 and its memory and > > * instance two to processor 1 and its memory > > using numactl (or similar commands regarding cpuset) and > > partitioning. >=20 > Seems straightforward enough to me, as long as you put the instances > onto distinct port numbers.=C2=A0 Are you encountering problems? I don't see a way, yet, to put one half of the partitions on on instance ond the other half to the other, automatically. Replication seems to be a 1:1 copy and partitioning seems to stick to one instance. Regards, Andreas Wagner