-
Notifications
You must be signed in to change notification settings - Fork 5
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
Kush/node runners #29
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
adbd609
Set up node runners and fixed reputer truth service
kush-alloralabs f2242d3
Set up node runners and fixed reputer truth service
kush-alloralabs f44719b
Set up node runners and fixed reputer truth service
kush-alloralabs 4162cd3
Set up node runners and fixed reputer truth service
kush-alloralabs 01f5981
Set up node runners and fixed reputer truth service
kush-alloralabs 3ec9d46
Set up node runners and fixed reputer truth service
kush-alloralabs 57c50bc
added
kush-alloralabs 59cfd65
eric changes
kush-alloralabs 312dfad
Merge branch 'main' into kush/node-runners
kush-alloralabs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
pages/datasci/build-and-deploy-worker-with-node-runners.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Build and Deploy a Worker Node With AWS Node Runners | ||
|
||
Welcome to the AWS Node Runners documentation! This page provides detailed instructions on how to leverage Node Runners on AWS, including benefits, setup instructions, and useful links. | ||
|
||
## Overview | ||
|
||
Node Runners on AWS enables you to deploy and manage blockchain nodes efficiently using AWS infrastructure. Whether you're deploying Ethereum nodes or other blockchain networks, Node Runners simplifies the process, offering scalability, reliability, and cost-effectiveness. | ||
|
||
For more detailed information and step-by-step guides, please refer to the [AWS Node Runners Documentation](https://aws-samples.github.io/aws-blockchain-node-runners/docs/Blueprints/Ethereum). | ||
|
||
### Allora Network's AWS Infrastructure | ||
|
||
This diagram illustrates the architecture of the integration between the Allora Network (built on a Cosmos AppChain) and an AWS-based infrastructure for handling inference requests. | ||
|
||
![node-runners](/aws-node-runners.png) | ||
|
||
#### Key Components | ||
|
||
1. **Allora Network (Cosmos AppChain)** | ||
- **Public Head Node**: Acts as the entry point for the Allora Network, handling requests and responses. | ||
|
||
2. **AWS Account Setup** | ||
- **Region**: The geographical location within AWS where the resources are deployed. | ||
- **Virtual Private Cloud (VPC)**: Provides an isolated network environment within the AWS region. | ||
- **Public Subnet**: A subnet within the VPC that has access to the internet through the VPC Internet Gateway. | ||
- **VPC Internet Gateway**: Allows communication between the instances in the VPC and the internet. | ||
|
||
3. **EC2 Instance (Allora Worker Node)** | ||
- **Inference Base**: This component handles network communication, receiving requests from the Allora Network's Public Head Node and sending responses back. | ||
- **Node Function**: Processes requests by interfacing with the private model server. It acts as an intermediary, ensuring the requests are correctly formatted and the responses are appropriately handled. | ||
- **Model Server**: Hosts the proprietary model. It executes the main inference script (`Main.py`) to generate inferences based on the received requests. | ||
|
||
#### Process Flow | ||
|
||
1. **Request Flow**: | ||
- The Allora Network's Public Head Node sends a request for inferences to the EC2 instance within the AWS environment. | ||
- The request passes through the VPC Internet Gateway and reaches the Inference Base in the public subnet. | ||
- The Inference Base forwards the request to the Node Function. | ||
- The Node Function calls `Main.py` on the Model Server to generate the required inferences. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The python file name is lower case: |
||
|
||
2. **Response Flow**: | ||
- The Model Server processes the request and returns the inferences to the Node Function. | ||
- The Node Function sends the inferences back to the Inference Base. | ||
- The Inference Base communicates the inferences back to the Allora Network's Public Head Node via the VPC Internet Gateway. | ||
|
||
## AWS Activate | ||
|
||
Before proceeding, please note that eligibility for AWS Activate credits and terms are governed by AWS. This documentation may become outdated, so ensure you refer to the [AWS Activate program page](https://aws.amazon.com/startups/credits#hero) for the latest eligibility requirements and instructions. | ||
|
||
## AWS Activate Stepwise Process | ||
|
||
To receive up to $5,000 in AWS Activate credits, follow these steps: | ||
|
||
1. **Fill out our [Typeform](https://vk4z45e3hne.typeform.com/to/TVwcjiL1)**: Provide your details to receive our Activate Provider Organizational ID. | ||
- Name (required) | ||
- Contact Information (optional): Email, Telegram, Discord handle, Linkedin | ||
- Official Company Website (required) | ||
|
||
2. **AWS Activate High-Level Instructions**: After obtaining our Organizational ID, | ||
- Visit [AWS Activate Credit Packages](https://aws.amazon.com/startups/credits#packages). | ||
- Apply through the Activate Portfolio | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here