High CPU on read-only streaming replication server

Started by Nickover 13 years ago4 messagesgeneral
Jump to latest
#1Nick
nboutelier@gmail.com

My read-only streaming replication servers are showing a much higher
CPU load than I would expect.

None of my queries are longer than 10ms.

My application server is connecting to this server via pgbouncer.

Other than that, its a pretty standard setup. I haven't toyed with too
many settings besides the standard optimization settings.

Any ideas what could be going on?

#2Nick
nboutelier@gmail.com
In reply to: Nick (#1)
Re: High CPU on read-only streaming replication server

BTW, Its version 9.1.4 on a 2.2Ghz dual processor with 17GB of ram.

#3Nick
nboutelier@gmail.com
In reply to: Nick (#1)
Re: High CPU on read-only streaming replication server

On Jul 19, 1:23 pm, Nick <nboutel...@gmail.com> wrote:

My read-only streaming replication servers are showing a much higher
CPU load than I would expect.

None of my queries are longer than 10ms.

My application server is connecting to this server via pgbouncer.

Other than that, its a pretty standard setup. I haven't toyed with too
many settings besides the standard optimization settings.

Any ideas what could be going on?

One more thing to point out, the top process that shows high CPU is...
COMMAND: postgres: dbuser mydatabase X.XX.XXX.XXX(XXXX) idle
CPU%: 68%

#4Craig Ringer
craig@2ndquadrant.com
In reply to: Nick (#2)
Re: High CPU on read-only streaming replication server

On 07/20/2012 04:44 AM, Nick wrote:

BTW, Its version 9.1.4 on a 2.2Ghz dual processor with 17GB of ram.

Sample queries?

EXPLAIN (ANALYZE, VERBOSE) ?

How many concurrent queries? What's the connection limit on the pooler?
How big is shared_buffers?

--
Craig Ringer