-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add ec2 instance options for data and ml nodes #30
Conversation
Codecov Report
@@ Coverage Diff @@
## main #30 +/- ##
=======================================
Coverage ? 81.12%
=======================================
Files ? 5
Lines ? 339
Branches ? 102
=======================================
Hits ? 275
Misses ? 64
Partials ? 0 |
95319a3
to
9167c9f
Compare
@gaiksaya @peterzhuamazon @prudhvigodithi Need your review. |
README.md
Outdated
@@ -51,6 +51,8 @@ In order to deploy both the stacks the user needs to provide a set of required a | |||
| clientNodeCount (Optional) | integer | Number of dedicated client nodes, default is 0 | | |||
| ingestNodeCount (Optional) | integer | Number of dedicated ingest nodes, default is 0 | | |||
| mlNodeCount (Optional) | integer | Number of dedicated machine learning nodes, default is 0 | | |||
| dataInstanceType (Optional) | string | Ec2 instance type for data node, defaults to r5.large. See options in `lib/opensearch-config/node-config.ts` for available options. E.g., `-c dataInstanceType=m5.xlarge` | |
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.
| dataInstanceType (Optional) | string | Ec2 instance type for data node, defaults to r5.large. See options in `lib/opensearch-config/node-config.ts` for available options. E.g., `-c dataInstanceType=m5.xlarge` | | |
| dataInstanceType (Optional) | string | EC2 instance type for data node, defaults to r5.large. See options in `lib/opensearch-config/node-config.ts` for available options. E.g., `-c dataInstanceType=m5.xlarge` | |
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.
Done!
README.md
Outdated
@@ -51,6 +51,8 @@ In order to deploy both the stacks the user needs to provide a set of required a | |||
| clientNodeCount (Optional) | integer | Number of dedicated client nodes, default is 0 | | |||
| ingestNodeCount (Optional) | integer | Number of dedicated ingest nodes, default is 0 | | |||
| mlNodeCount (Optional) | integer | Number of dedicated machine learning nodes, default is 0 | | |||
| dataInstanceType (Optional) | string | Ec2 instance type for data node, defaults to r5.large. See options in `lib/opensearch-config/node-config.ts` for available options. E.g., `-c dataInstanceType=m5.xlarge` | | |||
| mlInstanceType (Optional) | string | Ec2 instance type for ml node, defaults to r5.large. See options in `lib/opensearch-config/node-config.ts` for available options. E.g., `-c mlInstanceType=m5.xlarge` | |
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.
| mlInstanceType (Optional) | string | Ec2 instance type for ml node, defaults to r5.large. See options in `lib/opensearch-config/node-config.ts` for available options. E.g., `-c mlInstanceType=m5.xlarge` | | |
| mlInstanceType (Optional) | string | EC2 instance type for ml node, defaults to r5.large. See options in `lib/opensearch-config/node-config.ts` for available options. E.g., `-c mlInstanceType=m5.xlarge` | |
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.
Done!
readonly dataEc2InstanceType: InstanceType, | ||
readonly mlEc2InstanceType: InstanceType, |
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.
Should we enable instance type for all types of nodes including leader, etc? Keep defaults but allow option to override for others too?
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.
Not required as manager and client nodes not really do any heavy lifting and are only involved in book-keeping and traffic routing tasks.
We can take it up in future if the need arises.
@gaiksaya
Signed-off-by: Rishabh Singh <sngri@amazon.com>
Signed-off-by: Rishabh Singh <sngri@amazon.com> (cherry picked from commit 465f824) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
This PR adds ec2 isntance options for data and ml nodes.
This PR also adds the ability to set seed node to data instance type and storage when there is no dedicated master node configured.
The single-node is fixed to eg.2xlarge due to urgent requirement for it to be used for benchmarking test. Will update this to use the passed data ec2 instance type post P0 release.
Other nodes except data and ml default to
c5.xlarge
, options for them can be provided in subsequent PRs.Issues Resolved
#6 #27 #28
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.