如何在 ignite 中配置 public 和系统线程池大小

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"/-->

这是我试过的两种配置。

错误

 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?

我正在尝试这里的配置。 https://apacheignite-cpp.readme.io/v2.0/docs/performance-tips 他们中的大多数似乎是不正确的。还可以建议我在哪里可以找到 xml 配置的 属性 名称,以便在 FULL_SYNC 模式下进行性能调整。

你把它放错地方了,你把它放在缓存配置中,而它必须是点燃配置的一部分:

 <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>