pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: michael.mattox@verideon.com
To: pgsql-performance@postgresql.org
Subject: Re: Performance advice
Date: Tue, 24 Jun 2003 12:33:42 +0100
Message-ID: <200306241233.42361.dev@archonet.com> (raw)
In-Reply-To: <CJEBLDCHAADCLAGIGCOOCEJECKAA.michael.mattox@verideon.com>
References: <CJEBLDCHAADCLAGIGCOOCEJECKAA.michael.mattox@verideon.com>

On Tuesday 24 Jun 2003 8:39 am, Michael Mattox wrote:
> I'd like to get some feedback on my setup to see if I can optimize my
> database performance.  My application has two separate applications:
>
> The first application connects to websites and records the statistics in
> the database.  Websites are monitored every 5 or 10 minutes (depends on
> client), there are 900 monitors which comes out to 7,800 monitorings per
> hour.  
[snip]
> There is a serious
> performance constraint here because unlike a webserver, this application
> cannot slow down.  If it slows down, we won't be able to monitor our sites
> at 5 minute intervals which will make our customers unhappy.

Others are discussing the performance/tuning stuff, but can I make one 
suggestion?

Don't log your monitoring info directly into the database, log straight to one 
or more text-files and sync them every few seconds. Rotate the files once a 
minute (or whatever seems suitable). Then have a separate process that reads 
"old" files and processes them into the database.

The big advantage - you can take the database down for a short period and the 
monitoring goes on. Useful for those small maintenance tasks.
-- 
  Richard Huxton



view thread (23+ messages)  latest in thread

Message-ID: <200306241233.42361.dev@archonet.com>
Permalink:  ../200306241233.42361.dev@archonet.com/
Also on:    postgresql.org/message-id/200306241233.42361.dev@archonet.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: dev@archonet.com, michael.mattox@verideon.com
  Subject: Re: Performance advice
  In-Reply-To: <200306241233.42361.dev@archonet.com>
  References: <CJEBLDCHAADCLAGIGCOOCEJECKAA.michael.mattox@verideon.com> <200306241233.42361.dev@archonet.com>

* 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