-
1. Re: Using DistributedExecutorService and JGroups RELAY
dsb Nov 4, 2011 10:48 AM (in response to dsb)So my plan is to create a JGroups custom protocol above the RELAY protocol. I am going to look for ReplicableCommand's where the commandId is 19 as this seems to be the identifier for DistributedExecuteCommand. I can then mark the jgroups message as NO_RELAY.
My issue now is marshalling the jgroups message back into a Infinispan ReplicableCommand, anyone have any suggestions or a snippet of code?
-
2. Re: Using DistributedExecutorService and JGroups RELAY
vblagojevic Nov 4, 2011 2:24 PM (in response to dsb)Hi dsb,
This is an interesting use case that may call for a feature in distributed executor framework rather than having users implement what you are doing themselves. I'll think about providing both configurational and programmatic hook to achieve this in a more transparent approach. Until then I am afraid that you will have to resort to "hacks" described in your previous post.
Regards,
Vladimir
-
3. Re: Using DistributedExecutorService and JGroups RELAY
dsb Nov 4, 2011 2:32 PM (in response to vblagojevic)Thanks. A few hours ago I decided I was attacking this from the wrong end. I've ended up extending DefaultExecutorService with my own TopologyAwareExecutorService. The one thing I did need to do was to make DistributedRunnableFuture in DefaultExecutorService protected vs. private.
-
4. Re: Using DistributedExecutorService and JGroups RELAY
vblagojevic Nov 4, 2011 2:47 PM (in response to dsb)Dsb, excellent! Please take notes of issues encountered in your use cases and possible ideas how to solve them. Write these down in form of a JIRA and they will get solved in the next iteration when we focus on distributed execution - many improvements are planned for Infinispan 5.2.
-
5. Re: Using DistributedExecutorService and JGroups RELAY
dsb Nov 8, 2011 10:21 AM (in response to vblagojevic)Vladimir,
Per your last message I have created a JIRA issue for this: https://issues.jboss.org/browse/ISPN-1513
Thanks,
David
-
6. Re: Using DistributedExecutorService and JGroups RELAY
vblagojevic Nov 8, 2011 11:31 AM (in response to dsb)David,
Noted and much appreciated! Keep us updated regarding your experience with distributed execution.
Regards,
Vladimir