Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0LiX-0001ck-5b for pgsql-general@arkaria.postgresql.org; Wed, 21 Aug 2019 08:11:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i0LiV-0007S3-SA for pgsql-general@arkaria.postgresql.org; Wed, 21 Aug 2019 08:11:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0LiV-0007Rv-5d for pgsql-general@lists.postgresql.org; Wed, 21 Aug 2019 08:11:39 +0000 Received: from mail-eopbgr1380094.outbound.protection.outlook.com ([40.107.138.94] helo=IND01-MA1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i0LiQ-0006wd-9o for pgsql-general@lists.postgresql.org; Wed, 21 Aug 2019 08:11:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P6cf6hcavsqQheCSaU2TIkX5A3t8tZU7bwRLWSF/BNG36YX/P+U/k5CID5RImgMbhkLcmpqcO5Sp8dtVTsQKF0E6/jaPDkqeMRuVHUhRFn2VXgFigxHXxn/6VNwSmpgJYuL0K4BELLapCGeeNzC2GylYoc9Ql0TMNIF4l+Q3MjYE4wT3+UO9Zo++2Wf/F4Vtc2oe2XmT/ti+1X1uDAKQSZXa86fCYskqAkxQbstMvAvzcLcyhHJW8pFdm4F2EP8HO2Fl3w2aIzKnUB9eRYJuPHe0wlJexRo4JSXKosYAAyhZT3YliA/RTsnEeq2PanlE2Vw3AO4k4xPZ6wdMNhKvgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3Ix3s9l+TYk/CQNur0IuMhzfhJSKi83fhhlRlNEZCwQ=; b=NI4mbsbXVhkwqxEEtdYPYAR/hgEJ+obH6EZutX4oWrtflCDfxUVXhrnpkv3cYLRA2es9IyuF9rb2kbb8rTJ2vpeB4mjzW8x8So+1HtCT3S7leMHRj0FNllsRB1M1Nhyi2NaUce5KqnOyyxdXAvY9FBZPWVgNLSir6ZltTPSXnMgdkGo5Vvc0fgEKqANo8s4HNgKgxYmy27ycBcjaFg/momRxr7xTS2NUgKt2Dq4lWX+F7KHn9iow0vjylT0U1pQraZ5qDtwdfV/+HoAT00L0ZPQdBekaaFrheJLRjYkz4SfeB+qLrUUflugXK9PZ16Mjx7CemBxeBX/RXDY0FKb2QQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 203.143.187.86) smtp.rcpttodomain=gmail.com smtp.mailfrom=techmahindra.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=techmahindra.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=techmahindra.onmicrosoft.com; s=selector2-techmahindra-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3Ix3s9l+TYk/CQNur0IuMhzfhJSKi83fhhlRlNEZCwQ=; b=LgvyMnK0CWUhkMFfz6FNz4g8pqfh5bf1Ifz66Z1u5s80Kn3JCBKFI/kDVkS//Tt3dwo0j/OrQe8HEK8n6j7B+LFcKcos3prmkGU3yvFswsYs6zGM51wHvibbjN27YvHbyIc2ylRH7KH/JBVk7XtgRjmnMEELaYHDwEalRdEXTHs= Received: from MAXPR0101CA0066.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::28) by MAXPR01MB3837.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:65::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Wed, 21 Aug 2019 08:11:29 +0000 Received: from BO1IND01FT010.eop-IND01.prod.protection.outlook.com (2a01:111:f400:7ea5::207) by MAXPR0101CA0066.outlook.office365.com (2603:1096:a00:e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2178.16 via Frontend Transport; Wed, 21 Aug 2019 08:11:29 +0000 Authentication-Results: spf=pass (sender IP is 203.143.187.86) smtp.mailfrom=TechMahindra.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=pass action=none header.from=TechMahindra.com; Received-SPF: Pass (protection.outlook.com: domain of TechMahindra.com designates 203.143.187.86 as permitted sender) receiver=protection.outlook.com; client-ip=203.143.187.86; helo=MyEmail.TechMahindra.com; Received: from MyEmail.TechMahindra.com (203.143.187.86) by BO1IND01FT010.mail.protection.outlook.com (10.152.202.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2178.16 via Frontend Transport; Wed, 21 Aug 2019 08:11:29 +0000 Received: from UKEXCHMBX003.TechMahindra.com (10.6.16.29) by PUNEXCHMBX002.TechMahindra.com (10.10.169.2) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 21 Aug 2019 13:41:27 +0530 Received: from UKEXCHMBX003.TechMahindra.com (10.6.16.29) by UKEXCHMBX003.TechMahindra.com (10.6.16.29) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 21 Aug 2019 09:11:26 +0100 Received: from UKEXCHMBX003.TechMahindra.com ([fe80::78f3:87c1:c766:fb74]) by UKEXCHMBX003.TechMahindra.com ([fe80::78f3:87c1:c766:fb74%20]) with mapi id 15.00.1395.000; Wed, 21 Aug 2019 09:11:26 +0100 From: Karl Martin Skoldebrand To: Jeff Janes CC: "pgsql-general@lists.postgresql.org" Subject: SV: Databases and servers Thread-Topic: Databases and servers Thread-Index: AQHVV0GsNytupAGTtUuCUHrBJYNOGacEfHOAgADDzF8= Date: Wed, 21 Aug 2019 08:11:25 +0000 Message-ID: <1566375243350.81504@TechMahindra.com> References: <1566297353973.84310@TechMahindra.com>, In-Reply-To: Accept-Language: sv-SE, en-GB, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.6.248.54] Content-Type: multipart/alternative; boundary="_000_156637524335081504TechMahindracom_" MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:203.143.187.86;IPV:CAL;SCL:-1;CTRY:IN;EFV:NLI;SFV:NSPM;SFS:(10019020)(4636009)(136003)(376002)(346002)(39860400002)(396003)(2980300002)(199004)(189003)(106002)(16586007)(7696005)(76176011)(81166006)(81156014)(8676002)(19625735003)(70586007)(70206006)(97876018)(966005)(478600001)(14454004)(26826003)(14444005)(356004)(71190400001)(316002)(7736002)(7116003)(30436002)(36756003)(3846002)(6116002)(6916009)(8936002)(486006)(4326008)(26005)(186003)(126002)(2616005)(2906002)(11346002)(53936002)(446003)(426003)(19273905006)(6306002)(76130400001)(54896002)(53546011)(5660300002)(117636001)(102836004)(86362001)(336012)(4546004)(53416004)(19627405001)(476003)(236005)(85282002)(130980200001)(562404015)(563064011);DIR:OUT;SFP:1102;SCL:1;SRVR:MAXPR01MB3837;H:MyEmail.TechMahindra.com;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 43cd1689-ccbd-4883-c2d8-08d7260f2b91 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(4709080)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:MAXPR01MB3837; X-MS-TrafficTypeDiagnostic: MAXPR01MB3837: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-Forefront-PRVS: 0136C1DDA4 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: osG/Xmmwab0zckFCpwHmYXAwusfl6mBDDOHbzRknGUoeDoTMklUwCLZMFtkgIgdA02HLBqX/x2oFhNCwfF+UuuvfVR+2Bc1d67SnhkP0l2FIcwYATQm3AKPlgFqPSy84BNHilrCuNzJ9yVrtnTv9SUPWO7iZz1zdrBx/XkzBlw2wKWk6IxzAdCanPe8uN5mVkyAaIhvopnqbmE0GU1N6zH01ig7Rix1lclKjAW6vlGDfvcm99HLzu3TPTLADMuNJAApNoJZv/tl9MKugZ16TsRs5hoAbWS9ac8iTEud+I1z3aG6qVBUsksP/zqnx+rsUqZK4s4dhWPgnE3xqCocR/ttc3NRIzzcyZ6VtDbrgmiGbMmOHkI6OsWLDgSP8fxc8DyfX1ZcfaYO4BvWEEmWp6hQYDM3839e04v3cyGR6rng= X-OriginatorOrg: techmahindra.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2019 08:11:29.1160 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 43cd1689-ccbd-4883-c2d8-08d7260f2b91 X-MS-Exchange-CrossTenant-Id: edf442f5-b994-4c86-a131-b42b03a16c95 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=edf442f5-b994-4c86-a131-b42b03a16c95;Ip=[203.143.187.86];Helo=[MyEmail.TechMahindra.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MAXPR01MB3837 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_156637524335081504TechMahindracom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Tue, Aug 20, 2019 at 6:33 AM Karl Martin Skoldebrand > 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 ser= ver and A1t and A2t on the same server. >Are these two PostgreSQL instances running on the same hardware, or two da= tabases 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 d= atabase 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 s= uch 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 opport= unities for mistakes in configuration or maintenance that let breaches happ= en. That is true. I would prefer to A1p and A2p on seperate servers, maybe keeping A1t and A2= t on the same. (This is what seems to be happening when the database server= s are being repladed). >I don't know what that last part means. repladed =3D=3D 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Di= sclaimer: 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 externall= y http://tim.techmahindra.com/tim/disclaimer.html internally within TechMah= indra. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D --_000_156637524335081504TechMahindracom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

 

On Tue, Aug 20, 2019 at 6:33 AM Karl Martin Skoldebrand &l= t;KS0C77263@techmahindra.com<= /a>> wrote:

Hi,

I just discovered that a client has done this: 

They have two web applications A1 and A2. They have seperate hostnames/U= RLs. 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, o= r two databases within a single PostgreSQL instance?
 
They are two databases in a Single PostgreSQL instance access by diffe= rent accounts with different permissions.>
 

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

>Is this a common occurrence?  Of all the occurrences of downt= ime in recent memory (or better yet, from incidence documentation), what we= re the causes of them?  Is this near the top of the list?
 
No it is not common.

>Also, are the two apps completely independen= t, or are they used together such that one being down makes the other one n= ot 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 m= oving parts, means more opportunities for mistakes in configuration or main= tenance 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 ser= vers are being repladed).

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

What is the general thought on the current setup?

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

Jeff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Di= sclaimer: 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/Discla= imer.html externally http://tim.techmahindra.com/tim/disclaimer.html intern= ally within TechMahindra. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D --_000_156637524335081504TechMahindracom_--