Search code examples
c++ignitein-memory-database

How can i configure the public and system thread pool size in ignite


<!-- Configure internal thread pool. -->
<!--property name="publicThreadPoolSize" value="64"/-->

<!-- Configure system thread pool. -->
<!--property name="systemThreadPoolSize" value="24"/-->

Here are the two configurations i tried.

Error

 Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException:
 Invalid property 'systemThreadPoolSize' of bean class [org.apache.ignite.configuration.CacheConfiguration]: 
 Bean property 'systemThreadPoolSize' is not writable or has an invalid setter method. Does the parameter 
 type of the setter match the return type of the getter?

 Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: 
 Invalid property 'publicThreadPoolSize' of bean class [org.apache.ignite.configuration.CacheConfiguration]: 
 Bean property 'publicThreadPoolSize' is not writable or has an invalid setter method. Does the parameter 
 type of the setter match the return type of the getter?

I am trying out the configurations here. https://apacheignite-cpp.readme.io/v2.0/docs/performance-tips Most of them seem to be incorrect. can any also suggest where can i find the property names for xml configurations for performance tuning in FULL_SYNC Mode.


Solution

  • You put it in wrong place, you put it inside cache config, while it must be a part of ignite configurations:

     <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
    
    ....
    
      <property name="publicThreadPoolSize" value="100"/>
      <property name="systemThreadPoolSize" value="100"/>
    
    ....
    
       <property name="cacheConfiguration">
          <list>
              <!-- NOT HERE -->
          </list>
       </property>
    </bean>