0

I am using Apache Ignite in my python project. I am using 'pyignite' client to make a connection. I need to set some expiry time for cache. Also, need to configure system resources for apache ignite. If anyone knows the configuration help me.

alamar
  • 18,729
  • 4
  • 64
  • 97
karthik
  • 283
  • 2
  • 15

1 Answers1

2

You can set expiry in your Ignite XML configuration when starting your server nodes:

<bean class="org.apache.ignite.configuration.CacheConfiguration">
    ...

    <property name="expiryPolicyFactory">
        <bean class="javax.cache.expiry.CreatedExpiryPolicy" factory-method="factoryOf">
            <constructor-arg>
                <bean class="javax.cache.expiry.Duration">
                    <constructor-arg value="MINUTES"/>
                    <constructor-arg value="5"/>
                </bean>
            </constructor-arg>
        </bean>
    </property>
</bean>

System resources are configured by adjusting data region size and thread pools size.

alamar
  • 18,729
  • 4
  • 64
  • 97