pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: pgsql-admin@lists.postgresql.org
Subject: Re: OOM Killing on Docker while ANALYZE running
Date: Fri, 26 Jan 2018 17:15:39 +1300
Message-ID: <41aac336-d5ed-9cf2-15d8-cf3783b7fea5@catalyst.net.nz> (raw)
In-Reply-To: <4e519ceb-d4ff-1cbf-1536-a96a79426ea2@vt.edu>
References: <20180125194720.ammwkya3dvj23rjc@alvherre.pgsql>
	<29102.1516913306@sss.pgh.pa.us>
	<4e519ceb-d4ff-1cbf-1536-a96a79426ea2@vt.edu>

On 26/01/18 15:51, Ray Stell wrote:

> On 1/25/18 3:48 PM, Tom Lane wrote:
>
>> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
>>> Jorge Daniel wrote:
>>>> Hi guys , I'm dealing with OOM killing on Postgresql 9.4.8 running 
>>>> on docker
>
> Mike Coleman's talk at DockerCon17 is here:
> http://training.play-with-docker.com/ops-stage1/
> At about the 38 minute mark, on the topic of transitioning enterprise 
> apps to docker:
> "define your guardrails,  leave the db out in the VM."  Mike is a 
> docker evangelist.
>
>

Hmm - I don't think docker per se is the problem here - that 
default_statistics_target of 10000 is the more likely culprit. A minimal 
allowance of resources (e.g memory in this case) combined with hugely 
over spec'ed memory use (the default_statistics_target setting) is gonna 
trigger OOM for any environment.

regards

Mark




view thread (6+ messages)

Message-ID: <41aac336-d5ed-9cf2-15d8-cf3783b7fea5@catalyst.net.nz>
Permalink:  ../41aac336-d5ed-9cf2-15d8-cf3783b7fea5@catalyst.net.nz/
Also on:    postgresql.org/message-id/41aac336-d5ed-9cf2-15d8-cf3783b7fea5@catalyst.net.nz

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mark.kirkwood@catalyst.net.nz, pgsql-admin@lists.postgresql.org
  Subject: Re: OOM Killing on Docker while ANALYZE running
  In-Reply-To: <41aac336-d5ed-9cf2-15d8-cf3783b7fea5@catalyst.net.nz>

* 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