Skip to content

Commit

Permalink
Merge pull request #467 from modelix/feature/MODELIX-736-Make-Ignite-…
Browse files Browse the repository at this point in the history
…cache-size-configurable

feat(model-server): make the Ignite cache size configurable
  • Loading branch information
languitar authored Jan 30, 2024
2 parents 6ab3772 + 3a233a0 commit fd6471a
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 fd6471a

Please sign in to comment.