Skip to content
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

Change altruistic service to use nodes directly instead of relaying #75

Closed
nymd opened this issue Jun 24, 2021 · 2 comments
Closed

Change altruistic service to use nodes directly instead of relaying #75

nymd opened this issue Jun 24, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@nymd
Copy link
Contributor

nymd commented Jun 24, 2021

Currently the altruism service works by relaying the fallback calls to a special set of Pocket nodes. These nodes, run by PNI, are out of date and only used for altruism. The feature they use to do this is not supported in future versions and it is an inefficient relay system by all measures.

The altruistic node service should be replaced with service that directly calls the PNF hosted blockchain nodes in US-East-2.

There is an internal ALB that is used for node communication located in US-East-2.

All VPCs where the Portal API exists should be VPC peered with the node-infra-manual VPC in US-East-2: https://aws.amazon.com/premiumsupport/knowledge-center/elb-access-load-balancer-vpc-peering/

The portal API should keep a stored list of the chain's full URL for use in the backup service.

That stored list could be a GitHub secret that is loaded into an env variable and parsed or the backup location could be stored in the mongo DB as part of the blockchain record.

@nymd nymd added the enhancement New feature or request label Jun 24, 2021
@nymd
Copy link
Contributor Author

nymd commented Jun 28, 2021

As raised by BenVan here: https://forum.pokt.network/t/pushing-altruistic-servers-to-the-edges/1053 the altruistic service could be distributed between PNF's nodes and other nodes run by our bootstrapping partners.

An array of altruists for each chain could be kept and the altruist randomly chosen from the available.

This might be better done by deploying nginx or using an ALB as the altruistic front so that uptime can be automatically monitored.

@nymd nymd self-assigned this Jun 28, 2021
@nymd
Copy link
Contributor Author

nymd commented Jul 6, 2021

Closed with #100

@nymd nymd closed this as completed Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant