Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Switch peers from using variable IPs to hostnames. #58

Merged
merged 2 commits into from
Aug 20, 2020

Conversation

libby
Copy link
Contributor

@libby libby commented Aug 20, 2020

  • Use k8s service hostname for quorum peers: permissioned-nodes.json and static-nodes.json.

  • Use k8s service hostname in tessera config for peer discovery.

  • The hostnames are obtained via the quorum services which are known at the time of generation and do not change.
    This removes the need to do sed and manipulation on the config files after they are deployed in order to set the IPs
    (which are not known until after k8s resources have been deployed). This also helps with automatically updating the
    config files when new nodes are deployed or removed, thus avoiding restarting the nodes.

  • Enabled by this PR: DNS support for static nodes and discovery quorum#885.

* Use k8s service hostname for quorum peers: permissioned-nodes.json and static-nodes.json.

* Use k8s service hostname in tessera config for peer discovery.

* The hostnames are obtained via the quorum services which are known at the time of generation and do not change.
This removes the need to do sed and manipulation on the config files after they are deployed in order to set the IPs
(which are not known until after k8s resources have been deployed). This also helps with automatically updating the
config files when new nodes are deployed or removed, thus avoiding restarting the nodes.

* Enabled by this PR: Consensys/quorum#885.
@libby libby requested a review from jbhurat August 20, 2020 15:21
Copy link
Contributor

@jbhurat jbhurat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

* hostname not supported pre 2.3.0, if there is demand to support them,
we can include support, but for now removing support as these version
should be phased out.
* add sleep in quorum version tests after running intial public contract
to allow block number to increase.
@jbhurat jbhurat self-requested a review August 20, 2020 18:23
Copy link
Contributor

@jbhurat jbhurat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@libby libby merged commit 15bf0ff into Consensys:master Aug 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants