[
https://issues.apache.org/jira/browse/BOOKKEEPER-629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697072#comment-13697072
]
Rakesh R commented on BOOKKEEPER-629:
-------------------------------------
bq.using uuid or something, and then it can use that identity forever. on boot,
the bookie creates /ledgers/active/
{uuid}
Yeah [[email protected]], this will be more generic and avoids bookie's
machine/env details to an entity.
How about an algo like:
# On fresh startup, bookie will generate 'uuid' and store this to a file myid
under ledger dir. Next startup will look at this myid file and read the
identity.
# Register the myid - creates an ephemeral znode in zk with data
'hostname:port'. All clients will use the data for server communications.
# cookies, Ledgermetadata, autorecovery modules will store bookie as myid.
While fetching will resolve to hostname:port.
> Support hostname based ledger metadata to help users to change IP with
> exitsting installation
> ---------------------------------------------------------------------------------------------
>
> Key: BOOKKEEPER-629
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-629
> Project: Bookkeeper
> Issue Type: Sub-task
> Components: bookkeeper-auto-recovery, bookkeeper-client,
> bookkeeper-server
> Affects Versions: 4.2.1, 4.3.0
> Reporter: Vinay
> Assignee: Rakesh R
> Fix For: 4.3.0
>
> Attachments: 1-BOOKKEEPER-629.patch, 2-BOOKKEEPER-629.patch,
> 3-BOOKKEEPER-629.patch, 4-BOOKKEEPER-629.patch, 5-BOOKKEEPER-629.patch,
> 6-BOOKKEEPER-629.patch
>
>
> Register the bookie with *hostname:port* and also store the bookie addresses
> as *hostname:port* in ledger metadata files instead of *ip:port*
> This will help users to change the machine IP if they want without loosing
> their data.
> Supporting hostname based installation/functionality is one of the important
> requirement of users.
> Any thoughts?
--
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