We have a cluste (Ignite v2.7) with 2 data nodes and distributed cache.
We loaded data to this cache and started massive read/write operation. Cluster works perfectly. According to JMX, StripedExecutor queue is empty.
We enabled backups on this cache, loaded data to this cache and started massive read/write operation. According to JMX, StripedExecutor queue constantly grows on one node. Sys-stripe threads consumes CPU, but StripedExecutor works slowly.
We use three kind of read operations:
distirbuted sql from client node, select form xxx where ...
ignite compute from client node,
Collection offerSearchResults = ignite.compute(ignite.cluster().forServers()).broadcast(new GetProductOfferJob(), computeTaskData); GetProductOfferJob uses cache.getnear cache from client node, cache.get
Is it a bug in backup internals?
Data region configuration:
<property name="dataStorageConfiguration">
<bean class="org.apache.ignite.configuration.DataStorageConfiguration">
<property name="systemRegionInitialSize" value="#{100 * 1024 * 1024}"/>
<property name="pageSize" value="16384"/>
<property name="walMode" value="LOG_ONLY"/>
<property name="writeThrottlingEnabled" value="true"/>
<property name="dataRegionConfigurations">
<list>
<bean class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="name" value="default_data_region"/>
<property name="initialSize" value="#{10L * 1024 * 1024 * 1024}"/>
<property name="maxSize" value="#{50L * 1024 * 1024 * 1024}"/>
<property name="metricsEnabled" value="false"/>
<property name="persistenceEnabled" value="true"/>
</bean>
</list>
</property>
</bean>
</property>
Cache configuration:
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="ATTR_VALUE"/>
<property name="dataRegionName" value="default_data_region"/>
<property name="cacheMode" value="PARTITIONED"/>
<property name="backups" value="1"/>
<property name="sqlSchema" value="ATTR_VALUE"/>
<property name="onheapCacheEnabled" value="true"/>
<property name="copyOnRead" value="false"/>
<property name="keyConfiguration">
<bean class="org.apache.ignite.cache.CacheKeyConfiguration">
<property name="typeName" value="entity.key.AttributeValueKey"/>
<property name="affinityKeyFieldName" value="segId"/>
</bean>
</property>
<property name="queryEntities">
<list>
<bean class="org.apache.ignite.cache.QueryEntity">
<property name="keyType" value="entity.key.AttributeValueKey"/>
<property name="valueType" value="entity.AttributeValue"/>
<property name="fields">
<map>
<entry key="segId" value="java.lang.String"/>
<entry key="value" value="java.lang.String"/>
<entry key="attrId" value="java.lang.Long"/>
<entry key="entityObjectId" value="java.lang.Integer"/>
</map>
</property>
<property name="keyFields">
<set>
<value>segId</value>
<value>value</value>
<value>attrId</value>
<value>entityObjectId</value>
</set>
</property>
</bean>
</list>
</property>
</bean>