pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
To: Paul Förster <paul.foerster@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: AW: [Extern] Re: Advice on binary installation
Date: Tue, 13 Apr 2021 13:07:55 +0000
Message-ID: <d798ded4298d496f81bc31187273b05d@zuerich.ch> (raw)
In-Reply-To: <5EC6D598-9EBD-451B-B9E3-66CF7D866F8E@gmail.com>
References: <e649d6ec38304870932f94c850bac392@zuerich.ch>
	<5EC6D598-9EBD-451B-B9E3-66CF7D866F8E@gmail.com>

> -----Ursprüngliche Nachricht-----
> Von: Paul Förster <paul.foerster@gmail.com>
> Gesendet: Dienstag, 13. April 2021 15:02
> An: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
> Cc: pgsql-general@postgresql.org
> Betreff: [Extern] Re: Advice on binary installation
> 
> Hi Markus,
> 
> On 13. Apr, 2021, at 14:43, Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
> wrote:
> > We assume to get more than 100 Postgres clusters in the future.
> >
> > We will get a very heterogeneous binary installation basis if we install needed
> extensions (e.g. ip4r) or software (e.g. patroni) on a per project basis.
> >
> > There could be even more incompatibility problems otherwise if we install all
> global needed extensions or software with every project to get a homogenous
> binary installation.
> >
> > Software installation is done with yum using PGDG downstream channels.
> >
> > Any recommendations?
> 
> I don't know how you plan to do it, but I can only say how we do it:
> 
> - Compile from source including all extensions needed (make install-world).
>   Create a binary only directory this way, i.e. compile source to
>   /data/postgres/xx.x
> - Create a tar file of said directory.
> - Distribute that via Ansible untaring it on the destination servers.
> - Have a standard postgresql.conf ready which includes a
>   shared_preload_libraries = 'pg_stat_statements'
>   (or whatever you need) for use with initdb.
> 
> This way, we make sure that all servers get the same new software directory as
> needed in a separate directory including all necessary extensions, which means we
> can then delete the old directory if it is not longer needed (i.e. after all databases
> have been upgraded). Also, this makes sure, everything is loaded properly.
> 
> With individual and only some few cases, we then use "create extension", but only
> extensions which we deliver with the tar via Ansible. If there is doing to be a new
> extension (which we avaoid if we can), then we put it into the tar Archive and
> nowhere else. So it's on all servers, but only a few databases use it then.
> 
> Hope this helps.
> 
> Paul
> 


Out IT Sec requires to do software patching at least every 3 months.

How to you do software patching with your method? Creating + deploy new tarballs every 3 month?

Thanks, Markus





Message-ID: <d798ded4298d496f81bc31187273b05d@zuerich.ch>
Permalink:  ../d798ded4298d496f81bc31187273b05d@zuerich.ch/
Also on:    postgresql.org/message-id/d798ded4298d496f81bc31187273b05d@zuerich.ch

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: Markus.Zwettler@zuerich.ch, paul.foerster@gmail.com
  Subject: Re: [Extern] Re: Advice on binary installation
  In-Reply-To: <d798ded4298d496f81bc31187273b05d@zuerich.ch>
  References: <e649d6ec38304870932f94c850bac392@zuerich.ch> <5EC6D598-9EBD-451B-B9E3-66CF7D866F8E@gmail.com> <d798ded4298d496f81bc31187273b05d@zuerich.ch>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox