[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13659535#comment-13659535
 ] 

Ivan Kelly commented on BOOKKEEPER-592:
---------------------------------------

Nice work Sijie. It would be good to have a pluggable interface here, that you 
could specify ensemblePlacementPolicy=com.foobar.myCustomPolicy.class in the 
config. This way, keeping the data local could be implemented and plugged in.

Also, EnsemblePlacementPolicy#getBookies and 
EnsemblePlacementPolicy#onClusterChanged seem to be duplicating functionally 
between implementations. Notifying them of changes should trigger any wider 
behaviour, so why not keep the list of bookies in the BookieWatcher, and then 
pass them to newEnsemble and replaceBookie on invokation?
                
> allow application to recommend ledger data locality
> ---------------------------------------------------
>
>                 Key: BOOKKEEPER-592
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-592
>             Project: Bookkeeper
>          Issue Type: Improvement
>            Reporter: Ming Ma
>            Assignee: Sijie Guo
>             Fix For: 4.3.0
>
>         Attachments: BOOKKEEPER-592.patch
>
>
> For application like hbase WAL, it will be useful if application like hbase 
> can give a hint to bk about application's preferred ledger location. In that 
> way, application can fail over to specific machines where one of the ledger 
> replica is located; the recovery time will be faster. Another scenario is 
> hbase's support for hot standby region server where read request can be 
> served from a different machine other than the active region server. That 
> requires the hot standby region server to read from ledger. If the ledger is 
> on the same machine as standby region server, the performance will be better.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to