Hi Claus,
now it is working as expected. The problem was elsewhere. The CDI
produced Weld Proxy for MasterRoutePolicy and it didn't work, because
I have some 'policy instanceof MasterRoutePolicy' check returning
false
After fixing it, looks like the leader is selected properly
2018-01-09 16:51
Sorry, I have to correct myself it didn't start at all on all
machines. So, still not working for me. In logs I see just
09:11:33 [main] INFO o.a.camel.impl.DefaultCamelContext - Skipping
starting of route myId as its configured with autoStartup=false
09:11:33 [main] INFO o.a.camel.impl.DefaultC
Tried. Leader selection with MasterRoutePolicy didn't work at all. All
instances started the route and no errors or any hints were reported
MasterRoutePolicy master = new MasterRoutePolicy();
master.setZooKeeperUrl("host1:2181,host2:2181");
master.setZkRoot("/route/root");
master.setGr
Yeah I think it does. Can you give it a try, and we can improve the docs.
On Tue, Jan 9, 2018 at 4:47 PM, Dennis Holunder wrote:
> thank you!
> Does it support multiple zookeeper comma-separated URLs? The example
> in docs uses just one localhost
>
> masterRoutePolicy.setZooKeeperUrl("host1:2181,
thank you!
Does it support multiple zookeeper comma-separated URLs? The example
in docs uses just one localhost
masterRoutePolicy.setZooKeeperUrl("host1:2181,host2:2181,host3:2181");
2018-01-09 16:25 GMT+01:00 Claus Ibsen-2 [via Camel]
:
> Yes check its doc page
> https://github.com/apache/camel/
Yes check its doc page
https://github.com/apache/camel/blob/master/components/camel-zookeeper-master/src/main/docs/zookeeper-master-component.adoc
And its also covered in the CiA2 book in the clustering chapter.
On Tue, Jan 9, 2018 at 1:38 PM, Dennis Holunder wrote:
> Is there any documentation
Is there any documentation or example usage of zookeeper-master component?
2018-01-09 13:17 GMT+01:00 Claus Ibsen-2 [via Camel]
:
> Try the zookeeper-master component - it should be better
>
> On Tue, Jan 9, 2018 at 12:55 PM, Dennis Holunder <[hidden email]> wrote:
>
>> Hello,
>>
>> I'm using zook
Try the zookeeper-master component - it should be better
On Tue, Jan 9, 2018 at 12:55 PM, Dennis Holunder wrote:
> Hello,
>
> I'm using zookeeper route policy for leader selection on 8 instances
> of my route and get sometimes 2 leaders selected. What I'm doing wrong
> here?
>
> String uri = "zoo