Skip to content

Commit

Permalink
feat(model-server): make the Ignite cache size configurable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
languitar committed Jan 30, 2024
1 parent 2dd4605 commit 3a233a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<!-- Redefining the default region's settings -->
<property name="defaultDataRegionConfiguration">
<bean class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="maxSize" value="#{100L * 1024 * 1024}"/>
<property name="maxSize" value="${ignite.cache.size}"/>
<!--<property name="evictionThreshold" value="0.5"/>-->
<property name="pageEvictionMode" value="RANDOM_LRU" />
<property name="emptyPagesPoolSize" value="2000" />
Expand Down

0 comments on commit 3a233a0

Please sign in to comment.