-
1. Re: Slowdown of ESB-Registry
mvecera Feb 4, 2008 3:29 AM (in response to bernd.koecke)Hello,
this issue well-known (as you can see here for example http://www.jboss.com/index.html?module=bb&op=viewtopic&t=96389&postdays=0&postorder=asc&start=10).
Your idea is definitely good, and you are not the first one. There's a plan to solve that problem in the future. Unfortunatelly I can't promise you when. -
2. Re: Slowdown of ESB-Registry
marklittle Feb 4, 2008 9:40 AM (in response to bernd.koecke)There are a couple of fixes for this in the CP1 branch.
-
3. Re: Slowdown of ESB-Registry
bernd.koecke Feb 4, 2008 3:01 PM (in response to bernd.koecke)Hello,
thanks a lot. I will have a deeper look at the referenced topic. I wrote a small JAXR-Client for direct registry access. As a quick fix, I will add the possibility to remove the duplicate entries. This might not be a solution for all situations, but its suitable for my current problem and will hopefully lessen the shutdown time of our cluster. Currently each node needs more than 20 minutes to come down. And then it seems to be a good idea to checkout the CP1 branch and play around with it.
Best regards,
Bernd -
4. Re: Slowdown of ESB-Registry
marklittle Feb 5, 2008 1:28 PM (in response to bernd.koecke)I'd recommend the CP branch because there are a number of performance improvements too.
-
5. Re: Slowdown of ESB-Registry
bernd.koecke Feb 29, 2008 5:17 AM (in response to bernd.koecke)Hello,
now I played a little bit around with the CP branch, read the mentioned forum and the noted whitepaper. I see the better performance of the CP version, it seems to add new entries at the beginning of the list, so the maybe damaged older entries need not be handled on shutdown/undeployment. But the damaged entries are still there. I learned by the mentioned docs, that its not a good idea when the ESB should determine on deployment which entry is old or damaged. But it would be nice, if the EPR knows his UUID. May be as a part of an extension entry in EPRs PortReference. Then it would be possible to ask the Registry for the UUIDs of all stored service endpoints and ask the ESB through JMX for the UUIDs of the registered EPRs. All UUIDs which are in both listes are ok. And the ids which are only known by the registry I have to look at by myself. Would this be a solution and are there any thoughts to add the UUID to the EPRs data? I saw some posts on the mentioned topic, but I can't find it in the code of 4.2.1.CP.
Thanks in advance,
Bernd -
6. Re: Slowdown of ESB-Registry
marklittle Feb 29, 2008 7:16 AM (in response to bernd.koecke)There are a number of problems with your proposed solution, not least of which is the fact that the same registry may be used by multiple ESB deployments each with multiple services registered with the same service name/category. So in order for this to work, you'd need to cross reference all ESB instances for their UUIDs in order to find stale references. Then there's the problem that there is no global notion of "now", so the list you get back from the registry and the list you get back from all of the ESB instances may be "identical" when in fact there are differences due to timing.
We will definitely provide a fix for this, but for the time being you're better off using the two CP options that are mentioned in the documentation.