V
V
VMCLOUD2014-03-31 08:34:55
PostgreSQL
VMCLOUD, 2014-03-31 08:34:55

How to optimize Postgresql for high loads?

Colleagues.
I would like to get advice on optimizing postgresql 9.2 for high loads.
There is VMWare VM 24vCPU\128GB vRAM\1Tb vHDD. Debian x64 installed. About 25k requests come to the server and the LA server is filled with 10-70. An almost constant picture is the use of all vCPUs at 100%. In this case, the memory is practically not used.
Base config attached: pastebin.com/mDFCTJW8

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vit, 2014-03-31
@fornit1917

First, check if everything is in order with sql queries and indexes in the database.
And for fine-tuning, I recommend postgresql.leopard.in.ua

P
Puma Thailand, 2014-03-31
@opium

Well, the very first and simple step is to run pgtune, it will generate a config optimized for your database and server.
And then turn on the log of slow queries and optimize them.

A
Alexey Lesovsky, 2014-04-16
@lesovsky

How many connections do you have if the CPU is under 100%
if more than the number of cores on the server, install pgbouncer and work through it.
use pgbadger to detect slow queries, then optimize them.
And the question of disk load remains open, run iostat -x 5, if util% reaches 100%, then write, I will give out a bunch of tips ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question