You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Svetoslav Neykov (JIRA)" <ji...@apache.org> on 2017/11/08 18:53:00 UTC
[jira] [Commented] (BROOKLYN-548) Brooklyn node ID changes on
restart
[ https://issues.apache.org/jira/browse/BROOKLYN-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16244537#comment-16244537 ]
Svetoslav Neykov commented on BROOKLYN-548:
-------------------------------------------
[~tbouron] I believe that's the expected behaviour - instances gets a random ID at each start. What stays constant is the planeId and it is one and the same for all nodes in a cluster.
> Brooklyn node ID changes on restart
> -----------------------------------
>
> Key: BROOKLYN-548
> URL: https://issues.apache.org/jira/browse/BROOKLYN-548
> Project: Brooklyn
> Issue Type: Bug
> Affects Versions: 0.12.0
> Reporter: Thomas Bouron
>
> I was testing Brooklyn HA and noticed something odd: when restarting an HA Brooklyn node, it changes it's node ID reported by `/v1/server/ha/states`.
> For instance, I have 2 Brooklyn nodes, 1 master, 1 slave. I stopped master (not killed, stopped), slave took over as expected. Then I restarted the previous master, it came back online as a slave (expected) but the node ID was different. I was expecting it to keep its ID rather creating a new one.
> {code}
> {
> "planeId": "qDpn2Lau",
> "ownId": "nJagUrw8",
> "masterId": "nJagUrw8",
> "nodes": {
> "BgOjYcml": {
> "nodeId": "BgOjYcml",
> "nodeUri": null,
> "status": "TERMINATED",
> "localTimestamp": 1510052259169,
> "remoteTimestamp": 1510052260000
> },
> "iv3XfaEu": {
> "nodeId": "iv3XfaEu",
> "nodeUri": null,
> "status": "STANDBY",
> "localTimestamp": 1510054973636,
> "remoteTimestamp": 1510054974000
> },
> "nJagUrw8": {
> "nodeId": "nJagUrw8",
> "nodeUri": null,
> "status": "MASTER",
> "localTimestamp": 1510054975025,
> "remoteTimestamp": 1510054976000
> }
> },
> "links": {}
> }
> {code}
> On the JSON above, {{BgOjYcml}} is the same node as {{iv3XfaEu}} but {{BgOjYcml}} was the ID of the node before restart.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)