-
1. Re: Core API Client load balancing
jbertram May 13, 2014 12:51 PM (in response to yairogen)It's not clear to me exactly what you're doing when you send the messages. Are you creating multiple sessions using the ClientSessionFactory you declared in the code you pasted and using a different session for each of your concurrent producers?
And what specifically do you mean by, "I see the producer sends twice the messages"?
As always, a reproducible test-case is welcome.
BTW, have you read the documentation about client-side load-balancing?
-
2. Re: Core API Client load balancing
yairogen May 14, 2014 6:48 AM (in response to jbertram)I run concurrently and I create (base don teh same locator) new factories and new sessions per thread (once for each new thread and then re-use using ThreadLocal). The same applies for concurrent producers and consumers.
I see that although I have a loop of 10000 iterations, instead of only having 10000 in the queue - I see 20000. Either the producer is sending to both live servers OR server side is duplicating the messages?
-
3. Re: Core API Client load balancing
jbertram May 16, 2014 9:27 AM (in response to yairogen)I'm not sure. Do you have test-case or example I could use to reproduce the issue?
-
4. Re: Core API Client load balancing
yairogen May 18, 2014 5:36 AM (in response to jbertram)can we connect privately and I'll share my github access info?
yairogen AT gmail DOT com
-
5. Re: Core API Client load balancing
jbertram May 19, 2014 10:12 AM (in response to yairogen)At this point it would probably be best for you to investigate purchasing a support subscription from Red Hat. That's likely the only way you'll get the kind of support you need.
In any kind of support situation it's typically best to make it as easy as possible to receive the help you want. Usually the most effective way to do that is with code that's easy for one of the developers to take and run and see exactly the problem you're facing. That will, of course, require some work on your end to distill the problem to its simplest form and write something that's easy to run. However, HornetQ has a rich test-suite that you can use for this as well as a lot of examples that could serve as a template.
-
6. Re: Core API Client load balancing
yairogen May 20, 2014 4:00 AM (in response to jbertram)Last time I checked RedHat didn't have an option for HornetQ stand-alone support. Only when run as part of AS. Is that still true?
If not, please send me info on the support package.
-
7. Re: Core API Client load balancing
ataylor May 20, 2014 4:35 AM (in response to yairogen)you can trim down eap to be basically just HornetQ and any other sub systems you want.
-
8. Re: Core API Client load balancing
yairogen May 20, 2014 5:36 AM (in response to ataylor)Isn't that an overkill? Why isn't stand alone hornetq treated as first class citizen? If someone provides commercial support for HornetQ on itself - I'm very interested in hearing more details.
I've had trouble in the past getting such a stripped product. It is also not something I can deploy on customer site.
-
9. Re: Core API Client load balancing
ataylor May 20, 2014 5:42 AM (in response to yairogen)nope, its no different from using HornetQ standalone apart from its a different container and configuration. this is how Wildfly/eap is written, its extremely light weight.
-
10. Re: Core API Client load balancing
ataylor May 20, 2014 5:43 AM (in response to ataylor)actually its probably lighter as we ship the old microcontainer and jndi server for standalone.
-
11. Re: Core API Client load balancing
yairogen May 20, 2014 5:48 AM (in response to ataylor)1. can you explain how to create an EAP version that only holds HornetQ?
2. can we progress with this forum if I supply a working sample that demonstrates the problem?
-
12. Re: Core API Client load balancing
ataylor May 20, 2014 6:00 AM (in response to yairogen)1. can you explain how to create an EAP version that only holds HornetQ?
simply strip out the subsystems you dont need or want
2. can we progress with this forum if I supply a working sample that demonstrates the problem?
if you can provide a simple, easily runnable example then when we have time we will take a look. remember we all have day jobs and the support we give here is free and takes up quite a bit of time as we answer lots of questions from a lot of users.
-
13. Re: Core API Client load balancing
yairogen May 20, 2014 7:00 AM (in response to ataylor)what is the list of modules I need to keep in EAP to test out hornetq as part of EAP?
I am trying to follow the tip from here:
https://stackoverflow.com/questions/13449535/how-to-disable-modules-in-eap-6/18978774#18978774
But I don't know which modules to disable.
-
14. Re: Core API Client load balancing
ataylor May 20, 2014 7:14 AM (in response to yairogen)what is the list of modules I need to keep in EAP to test out hornetq as part of EAP?
I have no idea, thats a task for you to work out.
I am trying to follow the tip from here:
https://stackoverflow.com/questions/13449535/how-to-disable-modules-in-eap-6/18978774#18978774
or you could just remove then from the config file.