<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Pierrick,<br>
<br>
from what I see you try to use the infinispan subsystem to build
your own cache, also your package seems to be planned for EAP7.<br>
You should consider that the infinispan subsystem is not meant to
have customer caches, there are some restrictions and it is not
tested for EAP.<br>
I.e. I'm not sure whether the cluster subsystem starts in any case
if you use the cache.<br>
Note that if you use a subscription for EAP this is not supported!<br>
<br>
I recommend to use the JDG aka Infinispan modules and configure
the cluster for this.<br>
<br>
- Wolf<br>
<br>
On 03/02/16 20:11, Pierrick HYMBERT wrote:<br>
</div>
<blockquote
cite="mid:CAKh6_HbCK6X8s7rZsjLoceSj0n-8VJdoYiSunE7B7RppWyGKHw@mail.gmail.com"
type="cite">Thanks for your feedback. There is no firewall, server
nodes are on the same host, I use default full-ha jgroups config.
You can check the code in the link, I also attached domain
configuration.
<div><br>
</div>
<div>I found a workaround by configuring cache definition
programatically (that is unexpected, I guess there is an issue
in wildfly-clustering-infinispan-extension artifact...):<br>
<br>
// this.myAppCache = this.cacheContainer.getCache("myAppCache");<br>
this.cacheContainer.defineConfiguration("dist", new
ConfigurationBuilder()<br>
.clustering()<br>
.cacheMode(CacheMode.DIST_SYNC)<br>
.hash().numOwners(2)<br>
.build()<br>
);<br>
this.myAppCache = this.cacheContainer.getCache("dist");<br>
<br>
And now it works:<br>
<br>
2016-02-02 12:20:25,925 INFO
[org.hypik.test.jboss.eap7.server.TestService] (EJB default - 7)
Produce new cache entry 1454404825925 on node master:server-one<br>
2016-02-02 12:20:26,008 INFO
[org.hypik.test.jboss.eap7.server.TestService] (EJB default - 8)
Cache size on node master:server-one = 172<br>
<br>
2016-02-02 12:20:26,009 INFO
[org.hypik.test.jboss.eap7.server.TestService] (EJB default - 5)
Cache size on node master:server-two = 172</div>
<div><br>
</div>
<div><br>
<div class="gmail_quote">
<div dir="ltr">Le mar. 2 févr. 2016 17:30, Sanne Grinovero
<<a moz-do-not-send="true"
href="mailto:sanne@infinispan.org">sanne@infinispan.org</a>>
a écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
that's unlikely to be an Infinispan bug as we have many
tests and<br>
other features relying on it.<br>
It probably is a networking configuration problem: if you
start<br>
multiple servers in a cluster but they do not manage to
connect to<br>
each other they will start as independent nodes
(disconnected from<br>
each other) and effectively behave like they were configured
in LOCAL<br>
mode.<br>
<br>
I would suggest to check your JGroups stack for it using the
network<br>
interface that you intended, it using a correct Discovery
protocol for<br>
your environment, and possibly details like your firewall?<br>
<br>
On 2 February 2016 at 08:19, Pierrick HYMBERT<br>
<<a moz-do-not-send="true"
href="mailto:pierrick.hymbert@gmail.com" target="_blank">pierrick.hymbert@gmail.com</a>>
wrote:<br>
> Hi all,<br>
><br>
> I am blocked to deploy a test app that use a
distributed infinispan (8.0.1)<br>
> cache within 2 wildfly (10.0.0) domain nodes and a
cache entry producer<br>
> deployed as clustered singleton service.<br>
><br>
> Your feedback/advise are really appreciated!<br>
><br>
> Cache definition:<br>
><br>
> <cache-container
name="my-cache-container"><br>
> <transport
lock-timeout="60000"/><br>
> <distributed-cache
name="myAppCache" mode="SYNC"><br>
> <transaction
mode="NONE"/><br>
> <eviction
strategy="NONE"/><br>
> </distributed-cache><br>
> </cache-container><br>
><br>
> Sample code:<br>
><br>
> @Resource(lookup =
"java:jboss/infinispan/container/my-cache-container")<br>
> private EmbeddedCacheManager cacheContainer;<br>
><br>
> private Cache<Long, Long> myAppCache;<br>
><br>
> @PostConstruct<br>
> public void startNotClustered() throws
NamingException {<br>
> this.myAppCache =
this.cacheContainer.getCache("myAppCache");<br>
> ...<br>
> }<br>
><br>
> ...<br>
><br>
> @Schedule(hour = "*", minute = "*", second = "*")<br>
> public void consume() {<br>
> <a moz-do-not-send="true" href="http://logger.info"
rel="noreferrer" target="_blank">logger.info</a>("Cache
size on node {} = {}",<br>
> System.getProperty("<a moz-do-not-send="true"
href="http://jboss.node.name" rel="noreferrer"
target="_blank">jboss.node.name</a>"), myAppCache.size());<br>
> }<br>
><br>
><br>
> Server one sample logs:<br>
> 2016-01-31 14:52:03,789 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 1) Produce new cache entry 1454241123789
on node<br>
> master:server-one<br>
> 2016-01-31 14:52:04,005 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 2) Cache size on node master:server-one
= 35<br>
> 2016-01-31 14:52:04,796 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 3) Produce new cache entry 1454241124796
on node<br>
> master:server-one<br>
> 2016-01-31 14:52:05,006 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 4) Cache size on node master:server-one
= 36<br>
> 2016-01-31 14:52:05,801 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 5) Produce new cache entry 1454241125801
on node<br>
> master:server-one<br>
> 2016-01-31 14:52:06,007 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 6) Cache size on node master:server-one
= 37<br>
> 2016-01-31 14:52:06,807 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 7) Produce new cache entry 1454241126807
on node<br>
> master:server-one<br>
> 2016-01-31 14:52:07,005 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 8) Cache size on node master:server-one
= 38<br>
> 2016-01-31 14:52:07,813 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 9) Produce new cache entry 1454241127813
on node<br>
> master:server-one<br>
> 2016-01-31 14:52:08,006 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 10) Cache size on node master:server-one
= 39<br>
> 2016-01-31 14:52:08,817 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 1) Produce new cache entry 1454241128817
on node<br>
> master:server-one<br>
> 2016-01-31 14:52:09,007 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 2) Cache size on node master:server-one
= 40<br>
><br>
> Server two logs:<br>
> 2016-01-31 14:51:56,006 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 4) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:51:57,008 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 5) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:51:58,007 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 6) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:51:59,007 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 7) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:52:00,006 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 8) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:52:01,008 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 9) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:52:02,007 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 10) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:52:03,006 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 1) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:52:04,007 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 2) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:52:05,008 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 3) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:52:06,006 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 4) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:52:07,006 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 5) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:52:08,007 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 6) Cache size on node master:server-two
= 0<br>
> 2016-01-31 14:52:09,007 INFO
[org.hypik.test.jboss.eap7.server.TestService]<br>
> (EJB default - 7) Cache size on node master:server-two
= 0<br>
><br>
><br>
> I have attached all necessary info to investigate, but
I am not sure<br>
> attachement is allowed, so you can see source and logs
here:<br>
> <a moz-do-not-send="true"
href="https://www.dropbox.com/s/l1uhmfg5tkjkikw/infinispan-issue-wildfly-10.0.0.zip?dl=0"
rel="noreferrer" target="_blank">https://www.dropbox.com/s/l1uhmfg5tkjkikw/infinispan-issue-wildfly-10.0.0.zip?dl=0</a><br>
><br>
> С уважением / Cordialement / Best regards,<br>
><br>
> Pierrick HYMBERT<br>
><br>
> _______________________________________________<br>
> infinispan-dev mailing list<br>
> <a moz-do-not-send="true"
href="mailto:infinispan-dev@lists.jboss.org"
target="_blank">infinispan-dev@lists.jboss.org</a><br>
> <a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/infinispan-dev"
rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:infinispan-dev@lists.jboss.org"
target="_blank">infinispan-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/infinispan-dev"
rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
infinispan-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></pre>
</blockquote>
<br>
</body>
</html>