Hi,

Thanks for your quick response!


in org.apache.karaf.cellar.node.cfg "config.listener" is set to false.

Bothes nodes are in the same clustergroup (my_cluster).

So in my cluster i have two groups (default, my_cluster) and default has no 
members.

I would expect that my nodes respect the blacklist for their groups.


I used two copies of karaf. But this shouldn't be a problem...

I tried it with a blank installation. i only changed ports for second node.


Any ideas what i did wrong?


Thanks in advance,


Sebastian







________________________________
Von: Jean-Baptiste Onofré <[email protected]>
Gesendet: Donnerstag, 11. April 2019 10:57
An: [email protected]
Betreff: Re: Cellar config synchronization

Hi,

I guess you have the local listener enabled for config ?

The blacklist also apply only to a specific cluster group. So, if you
have the local listener and several groups, you have to blacklist in all
cluster groups.

Regards
JB

On 11/04/2019 10:41, Lorr, Sebastian wrote:
> Hi there,
>
>
> i notice a strange behaviour when synchronizing configs in a cellar cluster.
>
>
> I wanted one master giving its configuration to all other node in
> clustergroup.
>
>
> Here what i 've got:
>
> Karaf 4.1.5
>
> Cellar 4.1.3
>
> on Ubuntu 4.14
>
>
> What i did after unziping and starting 2 karafs:
>
> First on node1, then on node 2:
>
> # install cellar
>
> - feature:repo-add cellar
>
> - feature:install cellar cellar-dosgi cellar-log
> # first disable all sync on cluster
> - cluster:sync --bundle disabled
> - cluster:sync --config disabled
> - cluster:sync --feature disabled
> - cluster:sync --obr disabled
> # create clustergroup
> - cluster:group-create my_cluster
> - cluster:group-pick default my_cluster
>
> Now i wanted to setup synchronization.
> I opend <karaf node1>/etc/org.apache.kara.cellar.groups.cfg and changed
> the synchronization to only send config-changes to my_cluster:
> my_cluster.config.sync = NodeOnly
>
> Now i opened the same file on node2 and surprise: the value was already
> set to NodeOnly. Even if  my_cluster.config.blacklist contains for
> inbound and outbound org.apache.karaf.cellar.groups.cfg
>
> So i changed the value on node2 to "clusterOnly" to apply changes from
> cluster without sending changes. Then i doublechecked the value on
> node1. Again surprise: it changed its value to "clusterOnly"
>
>
> Now my question: What did i wrong? I expected, that i could configure
> the nodes in a clustergroup with different values. Is this not possible?
>
> Thanks in Advance,
>
> Sebastian
>
>

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com
Talend - A Cloud Data Integration Leader (modern ETL)<http://www.talend.com/>
www.talend.com
Talend Cloud delivers a single, open platform for data integration across cloud 
and on-premises environments. Put more data to work for your business faster 
with Talend.


Reply via email to