You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2019/09/03 23:04:39 UTC

[GitHub] [helix] jiajunwang commented on issue #447: Propose a Trie cluster structure to replace ClusterModel/ClusterContext/OptimalAssignment, etc

jiajunwang commented on issue #447: Propose a Trie cluster structure to replace ClusterModel/ClusterContext/OptimalAssignment, etc
URL: https://github.com/apache/helix/issues/447#issuecomment-527673611
 
 
   Could you please review the Topology.java class? I think that one is pretty much what you are trying to design here.
   
   To me, what you proposed is an additional layer of fault zone nodes, right?
   The reason we were not using that the Topology.java at the very beginning is for simplifying the algorithm. In short, does the constraint implementation need to understand the tree structure? I don't think so.
   
   Moreover, you won't need to replace the cluster model. Minor change the Assignable node and Topology.java would be enough. Basically you need to replace all the Nodes in the Topology.java with AssignableNode.
   And you won't need to change the optimal assignment either. Because we need the result to be a flat structure. If you return a tree, the rebalancer need to translate then return it anyway.
   
   Overall, I think this can help to clean up some code (cluster context for example). But it is not supposed to be a fundamental change. We can do this improvement anytime in the future. Eventually, whether the cluster model contains a tree or a list of nodes is transparent to the other components.
   
   
   Cheers,
   -Jiajun
   
   ________________________________
   From: Yi Wang <no...@github.com>
   Sent: Tuesday, September 3, 2019 3:50 PM
   To: apache/helix <he...@noreply.github.com>
   Cc: Jiajun Wang <jj...@linkedin.com>; Mention <me...@noreply.github.com>
   Subject: Re: [apache/helix] Propose a Trie cluster structure to replace ClusterModel/ClusterContext/OptimalAssignment, etc (#447)
   
   
   [cluster]<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F2618776%2F64213610-74034900-ce62-11e9-94b8-8dc863a35fb2.jpg&data=02%7C01%7Cjjwang%40linkedin.com%7Cad9e6d2425084bc563f708d730c120d7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637031478342742599&sdata=%2Byxx9L2fgAzczUMJWzGoJWkU2JS%2F%2FKYuj7bt5DNsIbw%3D&reserved=0>
   A visual illustration of the Trie structure that aligned with Helix settings.
   
   —
   You are receiving this because you were mentioned.
   Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fhelix%2Fissues%2F447%3Femail_source%3Dnotifications%26email_token%3DAANYM2CNU7TUD5FZQZ6CUE3QH3S3LA5CNFSM4ITLSD22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5ZZX3Y%23issuecomment-527670255&data=02%7C01%7Cjjwang%40linkedin.com%7Cad9e6d2425084bc563f708d730c120d7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637031478342742599&sdata=NbwKSjq9r6Md5DtFN2pc%2FWyr4V45KWx2Cx4ytu0TfUg%3D&reserved=0>, or mute the thread<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAANYM2B5LMXJTAN5B2AT7YLQH3S3LANCNFSM4ITLSD2Q&data=02%7C01%7Cjjwang%40linkedin.com%7Cad9e6d2425084bc563f708d730c120d7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637031478342752596&sdata=a8YP7JgG%2BHGR1ApFvrw60VaeoobYnZ7Z8fn1U6TVgtQ%3D&reserved=0>.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org