Last active
May 27, 2020 15:32
-
-
Save scriptnull/c2f67a449ce9b22507f3d2d9fbdfc46b to your computer and use it in GitHub Desktop.
Apache ignite sample config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd"> | |
<bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> | |
<property name="dataStorageConfiguration"> | |
<bean class="org.apache.ignite.configuration.DataStorageConfiguration"> | |
<property name="defaultDataRegionConfiguration"> | |
<bean class="org.apache.ignite.configuration.DataRegionConfiguration"> | |
<property name="name" value="default_data_region"/> | |
<property name="persistenceEnabled" value="false"/> | |
<property name="maxSize" value="#{1L * 1024 * 1024 * 1024}"/> | |
</bean> | |
</property> | |
</bean> | |
</property> | |
<property name="cacheConfiguration"> | |
<list> | |
<bean class="org.apache.ignite.configuration.CacheConfiguration"> | |
<property name="name" value="example-cache"/> | |
<property name="atomicityMode" value="ATOMIC"/> | |
<property name="cacheMode" value="PARTITIONED"/> | |
<property name="backups" value="0"/> | |
<property name="writeSynchronizationMode" value="PRIMARY_SYNC"/> | |
</bean> | |
</list> | |
</property> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment