PostgreSQL configuration in a VM

Started by Sebastien Flaeschabout 3 years ago2 messagesgeneral
Jump to latest
#1Sebastien Flaesch
sebastien.flaesch@4js.com

Hi!

I was wondering if the is any specific configuration setting that should be used with PostgreSQL, when running in a VM...

Is there anything obvious that must be set, to get best performances with such a config?

Sorry for this general question...

Seb

#2Andreas Joseph Krogh
andreas@visena.com
In reply to: Sebastien Flaesch (#1)
Sv: PostgreSQL configuration in a VM

På fredag 17. februar 2023 kl. 09:13:10, skrev Sebastien Flaesch <
sebastien.flaesch@4js.com <mailto:sebastien.flaesch@4js.com>>:
Hi!

I was wondering if the is any specific configuration setting that should be
used with PostgreSQL, when running in a VM...

Is there anything obvious that must be set, to get best performances with such
a config?

Sorry for this general question...
In my experience the most important parameter when running in a VM is
random_page_cost, and for that to be set to a sane value you need to know the
characteristics of the disk available to your VM. In other words, disk IO is
what you should be worried about as VMs are pretty good at scaling CPU-wise.

--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com&gt;
<https://www.visena.com&gt;