pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: neos@olansoft.com
To: pgsql-admin@postgresql.org
Subject: Too long startup time after crash.
Date: Wed, 21 Dec 2016 10:00:37 +0500
Message-ID: <4504221482296437@web16m.yandex.ru> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hi.

After the upgrade postgresql had a strange behavior. After the crash, server launch was take a long time, up to 30-40 minutes sometimes. When connecting to the server (as well as in the log), the message - "the database system is starting up". Startup process consumes 0.4 - 1% CPU. 

Tried different version 9.5.[2,3,4], 9.6.1 (9.4 works fine). On the Internet this problem is not met, perhaps the problem lies in a combination of different factors (configuration database, the Linux kernel), may be my config is wrong?

Technical details:

Gentoo Linux 4.4.2-hardened
current pg version 9.6.1
## pg config:

listen_addresses = '*'
port = 5432
max_connections = 500
shared_buffers = 2048MB
temp_buffers = 16MB
work_mem = 64MB
maintenance_work_mem = 512MB
max_stack_depth = 4MB
dynamic_shared_memory_type = posix
wal_level = replica
wal_buffers = 8MB
checkpoint_completion_target = 0.85
archive_mode = on
archive_command = 'gzip < %p > /home/pgbasebackup/xlogs/%f.gz'
max_wal_senders = 3
effective_cache_size = 9GB
log_min_duration_statement = 1500
log_timezone = 'Asia/Yekaterinburg'
datestyle = 'iso, dmy'
timezone = 'Asia/Yekaterinburg'
lc_messages = 'ru_RU.UTF-8'
lc_monetary = 'ru_RU.UTF-8'
lc_numeric = 'ru_RU.UTF-8'
lc_time = 'ru_RU.UTF-8'
default_text_search_config = 'pg_catalog.russian'
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'

## end of config

-- 
Thanks,

Vitaliy


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



Message-ID: <4504221482296437@web16m.yandex.ru>
Permalink:  ../4504221482296437@web16m.yandex.ru/
Also on:    postgresql.org/message-id/4504221482296437@web16m.yandex.ru

 · 

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: neos@olansoft.com
  Subject: Re: Too long startup time after crash.
  In-Reply-To: <4504221482296437@web16m.yandex.ru>

* 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