GitHub user SharplEr opened a pull request:
https://github.com/apache/ignite/pull/1436
Add extension point to reordering nodes by custom comparator.
-- Add to TcpDiscoverySpi field Comparator<TcpDiscoveryNode> nodeComparator
for load custom comparators from config file like bean.
-- Add implementation with old behavior: BaseNodeComparator
-- Add region id implementation: RegionNodeComparator which get map from IP
address to region ID in constructor.
-- Modified TcpDiscoveryNodesRing#nextNode for using nodeComparator for
find next node.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/SharplEr/ignite ignite-4501
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/1436.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1436
----
commit 2290d3fa3304781f2d7980ecb076902beb859a88
Author: Alexander Menshikov <[email protected]>
Date: 2017-01-18T12:34:26Z
Add extension point to reordering nodes by custom comparator.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---