-
1. Re: Infinispan non-transactional cache
nadirx Apr 3, 2015 7:14 AM (in response to gspadmapriya)You don't need a tx cache unless your modifications involve multiple keys that need to be atomically modified.
-
2. Re: Infinispan non-transactional cache
gspadmapriya Apr 24, 2015 12:41 PM (in response to gspadmapriya)Thank you Tristan., your reply helped to make a big decision on our config.
I need another help,
We have 36 instances in production under the same cluster. But we end up restarting every day(very bad on our side), even then its observed, to have XAException after 4 hours of start time. Looks like have some concurrency issues.
Can you please help me, resolve this?
We are using Infinispan 5.2 and jgroups 3. I see, that jgroups, has config with thread_pool.max_threads="30" , given below snippet from jgroups xml, we are using.
Should I increase this thread_pool.max_threads="30" to 40? As we have 36 tomcat instances...
<TCP
bind_addr="SITE_LOCAL"
bind_port="${jgroups.tcp.port:7800}"
loopback="true"
port_range="2"
recv_buf_size="20m"
send_buf_size="640k"
discard_incompatible_packets="true"
max_bundle_size="64000"
max_bundle_timeout="30"
enable_bundling="true"
use_send_queues="true"
enable_diagnostics="false"
bundler_type="old"
thread_naming_pattern="pl"
thread_pool.enabled="true"
thread_pool.min_threads="2"
thread_pool.max_threads="30"
thread_pool.keep_alive_time="60000"
thread_pool.queue_enabled="true"
thread_pool.queue_max_size="100"
thread_pool.rejection_policy="Discard"
oob_thread_pool.enabled="true"
oob_thread_pool.min_threads="2"
oob_thread_pool.max_threads="30"
oob_thread_pool.keep_alive_time="60000"
oob_thread_pool.queue_enabled="false"
oob_thread_pool.queue_max_size="100"
oob_thread_pool.rejection_policy="Discard"
/>
Any help on resolving, will be greatly appreciated!
-
3. Re: Infinispan non-transactional cache
wdfink Apr 25, 2015 1:58 PM (in response to gspadmapriya)Thread pool depends more on the load. You might check whether increasing of the thread_pool and oob_thread_pool helps, maybe increase min=2 as well.
Also I would set oob_thread_pool.queue_enabled="true"
-
4. Re: Infinispan non-transactional cache
rvansa Apr 27, 2015 3:33 AM (in response to gspadmapriya)What exception exactly is that?
30 OOB threads is quite a low value, especially if you write into the cache very often. In stress tests, hundreds of threads are needed. However, you do not need thread per node - the number of threads is rather proportional to frequency of modifications.
I would not recommend enabling OOB queue as Wolf suggests, JGroups resends discarded messages, and therefore if they can't be processed for a while, there's no reason to queue them - the retransmission would be probably on its way.
-
5. Re: Infinispan non-transactional cache
gspadmapriya Apr 27, 2015 2:28 PM (in response to wdfink)Didnt help, got replication exception
-
6. Re: Infinispan non-transactional cache
rvansa Apr 27, 2015 2:35 PM (in response to gspadmapriya)Can't help, don't have your logs.