-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infrastructure setup for testnet should automate multiple instances for multiple nodes #488
Comments
@tegefaulkes please link the PR for |
It's important for each node that gets created to be given their seed node list ahead of time since they can't dynamically discover each other. This means they would need to know the IPs that we are going to be assigning the instances before we plugin and start each node. This means you must take the set of recovery codes, map them to the instances and attached EIPs first, then construct the seed node config list, and idempotently setup the task definitions with the seed node list then starting the seed node. |
Alternatively we can just pass a set of seed nodes and re-use the DNS Unlike other nodes, seed nodes are special case:
|
This is mostly done. We have the For the seed nodes to discover each other they need to support multi-node resolving. That is currently being worked on. I don't think this can be resolved until then. |
Task 4 is a continuation of #269. We never got around to putting our trusted NodeIds into the source code. Create a new PR for that and merge it into staging branch. We'll start with 2, the 2 that you already setup now, and we will update that when we finish #446 as the keypairs become Ed25519 keypairs. This has to be done as part of MatrixAI/Polykey-CLI#71, so I'll close this. |
Just a note, the placement constraints was applied from service to EC2 instance ID. This was sufficient to ensure that if the setup script is re-ran, it would always start a service with respect to an instance that is always mapped from a given recovery code. |
Right now
Polykey-Infrastructure
does not check if an existing instance is already running. It should be doing this before attempting to run more instances.It also should have the ability to setup multiple instances depending on a fixed cluster configuration. To do this, it depends on #285 first so it can derive the
NodeID
during configuration.See: https://gitlab.com/MatrixAI/Engineering/Polykey/Polykey-Infrastructure/-/merge_requests/2#note_1146016192 for more information.
Tasks
nodeId
derivation from the recovery codes stored in the secret managerNodeId
.testnet.polykey.io
[ ] 4. Ensure that the fixed pool of recovery codes are put into the PK source code- this will be a task on Integration Tests fortestnet.polykey.com
Polykey-CLI#71.The text was updated successfully, but these errors were encountered: