Fwd: how ignite c++ node set baselinetopology

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: how ignite c++ node set baselinetopology

Denis Magda
Igor,

I think it's reasonable to add the baseline topology APIs to C++. Can you
plan this for the nearest releases?

Pave, do you have time to do the same for .Net?

--
Denis

---------- Forwarded message ---------
From: aealexsandrov <[hidden email]>
Date: Tue, Aug 14, 2018 at 3:23 AM
Subject: Re: how ignite c++ node set baselinetopology
To: <[hidden email]>


Hi,

C++ API doesn't contain the methods to update the baseline. So, in this
case, you can use Java API for it:

Add the code that will listen to the EVT_NODE_JOINED event

private final IgniteEx ignite;

ignite.events().localListen(event -> {
            DiscoveryEvent e = (DiscoveryEvent)event;

            final long topVer = e.topologyVersion();

            ignite.cluster().setBaselineTopology(topVer);

            return true;
        }, EventType.EVT_NODE_JOINED);

The whole example you can see here:

https://apacheignite.readme.io/docs/baseline-topology#section-triggering-rebalancing-programmatically

BR,
Andrei



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: how ignite c++ node set baselinetopology

Igor Sapego-2
Filed a ticket: [1]

[1] - https://issues.apache.org/jira/browse/IGNITE-9293

Best Regards,
Igor


On Thu, Aug 16, 2018 at 3:28 AM Denis Magda <[hidden email]> wrote:

> Igor,
>
> I think it's reasonable to add the baseline topology APIs to C++. Can you
> plan this for the nearest releases?
>
> Pave, do you have time to do the same for .Net?
>
> --
> Denis
>
> ---------- Forwarded message ---------
> From: aealexsandrov <[hidden email]>
> Date: Tue, Aug 14, 2018 at 3:23 AM
> Subject: Re: how ignite c++ node set baselinetopology
> To: <[hidden email]>
>
>
> Hi,
>
> C++ API doesn't contain the methods to update the baseline. So, in this
> case, you can use Java API for it:
>
> Add the code that will listen to the EVT_NODE_JOINED event
>
> private final IgniteEx ignite;
>
> ignite.events().localListen(event -> {
>             DiscoveryEvent e = (DiscoveryEvent)event;
>
>             final long topVer = e.topologyVersion();
>
>             ignite.cluster().setBaselineTopology(topVer);
>
>             return true;
>         }, EventType.EVT_NODE_JOINED);
>
> The whole example you can see here:
>
>
> https://apacheignite.readme.io/docs/baseline-topology#section-triggering-rebalancing-programmatically
>
> BR,
> Andrei
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>