Juan Hernandez has uploaded a new change for review.

Change subject: core: Set min connection pool size to 1
......................................................................

core: Set min connection pool size to 1

In a previous patch we changed the default minimum database connection
pool size to 75 (it used to be 1). This was done in order to have
database connections ready from the very beginning and thus improve
performance. But in practice this means that 75 PostgreSQL processes are
created wether they are needed or not. These consume approx 2.1 GiB of
RAM. In machines with a total of 4 GiB this evantually triggers the out
of memory killer of the kernel, which will in turn select the process
that is using more memory, which usually happens to be the engine
itself, so it is killed. This patch changes the default minimum size
back to 1 to avoid this issue.

Change-Id: I9de2c9e6999cb22a4be99eabb66a7216e673d0d2
Bug-Url: https://bugzilla.redhat.com/1026100
Signed-off-by: Juan Hernandez <[email protected]>
---
M packaging/services/ovirt-engine/ovirt-engine.conf.in
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/88/21188/1

diff --git a/packaging/services/ovirt-engine/ovirt-engine.conf.in 
b/packaging/services/ovirt-engine/ovirt-engine.conf.in
index 48c1d08..6587426 100644
--- a/packaging/services/ovirt-engine/ovirt-engine.conf.in
+++ b/packaging/services/ovirt-engine/ovirt-engine.conf.in
@@ -176,7 +176,7 @@
 #
 # Size of the database connection pool:
 #
-ENGINE_DB_MIN_CONNECTIONS=75
+ENGINE_DB_MIN_CONNECTIONS=1
 ENGINE_DB_MAX_CONNECTIONS=100
 
 #


-- 
To view, visit http://gerrit.ovirt.org/21188
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9de2c9e6999cb22a4be99eabb66a7216e673d0d2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to