From 3a233a0fe1b66ce5a45cf3919748b9ceb95eb2e1 Mon Sep 17 00:00:00 2001 From: Johannes Wienke Date: Tue, 30 Jan 2024 11:13:21 +0100 Subject: [PATCH] feat(model-server): make the Ignite cache size configurable Adds the database JVM property ignite.cache.size, which can be used to control the off heap Ignite cache size when using Postgres as a backend. The property defaults to the previous 100 Mb size. --- .../org/modelix/model/server/store/database.properties | 2 ++ .../main/resources/org/modelix/model/server/store/ignite.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/model-server/src/main/resources/org/modelix/model/server/store/database.properties b/model-server/src/main/resources/org/modelix/model/server/store/database.properties index 60ab6d4d1c..ad79d11d92 100644 --- a/model-server/src/main/resources/org/modelix/model/server/store/database.properties +++ b/model-server/src/main/resources/org/modelix/model/server/store/database.properties @@ -3,3 +3,5 @@ jdbc.url=jdbc:postgresql://localhost:54333/ jdbc.schema=modelix jdbc.user=modelix jdbc.pw=modelix +# Size of the ignite cache in bytes. Defaults to 100 Mb. +ignite.cache.size=104857600 diff --git a/model-server/src/main/resources/org/modelix/model/server/store/ignite.xml b/model-server/src/main/resources/org/modelix/model/server/store/ignite.xml index 1b465d8198..175cee47cf 100644 --- a/model-server/src/main/resources/org/modelix/model/server/store/ignite.xml +++ b/model-server/src/main/resources/org/modelix/model/server/store/ignite.xml @@ -66,7 +66,7 @@ - +