Re: Hardware for PostgreSQL

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Hardware for PostgreSQL
Дата
Msg-id 4729783A.2030201@hagander.net
обсуждение исходный текст
Ответ на Re: Hardware for PostgreSQL  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Ответы Re: Hardware for PostgreSQL  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Список pgsql-performance
Ow Mun Heng wrote:
> On Wed, 2007-10-31 at 22:58 +0100, Tomas Vondra wrote:
>
>> 2) separate the transaction log from the database
>>
>>     It's mostly written, and it's the most valuable data you have. And in
>>     case you use PITR, this is the only thing that really needs to be
>>     backed up.
>
> My main DB datastore is in a raid1 array and the xlog is still
> maintained in a single OS drive. Is this considered OK?

Is your OS not RAIDed? I'd keep everything RAIDed one way or another -
otherwise you are certain to get downtime if the disk fails.

Also, if you don't have a *dedicated* disk for the xlog (putting it on
the OS disk doesn't make it dedicated), you miss out on most of the
performance advantage of doing it. The advantage is in that the writes
will be sequential so the disks don't have to seek, but if you have
other access on the same disk, that's not true anymore.

You're likely better off (performance-wise) putting it on the same disk
as the database itself if that one has better RAID, for example.

//Magnus

В списке pgsql-performance по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Hardware for PostgreSQL
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: hardware and For PostgreSQL