pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karl Martin Skoldebrand <KS0C77263@TechMahindra.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: SV: Databases and servers
Date: Wed, 21 Aug 2019 08:11:25 +0000
Message-ID: <1566375243350.81504@TechMahindra.com> (raw)
In-Reply-To: <CAMkU=1x=MTXA7NqLLkQVN=o0qGjY57G7JuACdSgvR6EUaAg-Bg@mail.gmail.com>
References: <1566297353973.84310@TechMahindra.com>
	<CAMkU=1x=MTXA7NqLLkQVN=o0qGjY57G7JuACdSgvR6EUaAg-Bg@mail.gmail.com>



On Tue, Aug 20, 2019 at 6:33 AM Karl Martin Skoldebrand <KS0C77263@techmahindra.com<mailto:KS0C77263@techmahindra.com>> wrote:

Hi,

I just discovered that a client has done this:

They have two web applications A1 and A2. They have seperate hostnames/URLs. Both have a production and a test database A1p and A1t/ A2p and A2t.

What they've done is have both A1p and A2p on the same actual databaser server and A1t and A2t on the same server.

>Are these two PostgreSQL instances running on the same hardware, or two databases within a single PostgreSQL instance?

They are two databases in a Single PostgreSQL instance access by different accounts with different permissions.>


So, I'm thinking - if a bug in application A1 crashes the application and database badly it will risk bringing down both services A1 and A2.

>Is this a common occurrence?  Of all the occurrences of downtime in recent memory (or better yet, from incidence documentation), what were the causes of them?  Is this near the top of the list?

No it is not common.

>Also, are the two apps completely independent, or are they used together such that one being down makes the other one not very useful?

Yes they are independent on the database level. They share the same Windows application server.

The same risk would be evident on a successful security breach.

>On the other hand, more servers means more moving parts, means more opportunities for mistakes in configuration or maintenance that let breaches happen.

That is true.

I would prefer to A1p and A2p on seperate servers, maybe keeping A1t and A2t on the same. (This is what seems to be happening when the database servers are being repladed).

>I don't know what that last part means.
repladed == replaced


What is the general thought on the current setup?

In my experience, people acting on mere conjectures about what might cause downtime in the future and how to prevent it have caused more downtime than they have prevented.
/M
Cheers,

Jeff
============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra. ============================================================================================================================

view thread (2+ messages)  latest in thread

Message-ID: <1566375243350.81504@TechMahindra.com>
Permalink:  ../1566375243350.81504@TechMahindra.com/
Also on:    postgresql.org/message-id/1566375243350.81504@TechMahindra.com

 · 

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: KS0C77263@TechMahindra.com, jeff.janes@gmail.com
  Subject: Re: Databases and servers
  In-Reply-To: <1566375243350.81504@TechMahindra.com>
  References: <1566297353973.84310@TechMahindra.com> <CAMkU=1x=MTXA7NqLLkQVN=o0qGjY57G7JuACdSgvR6EUaAg-Bg@mail.gmail.com> <1566375243350.81504@TechMahindra.com>

* 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