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

Feature/shengweiw/aurora hardware #53

Merged
merged 2 commits into from
May 22, 2023

Conversation

ShengweiWang
Copy link
Contributor

  1. Using db.xx instances instead of normal ec2 instances, to get a more accurate cost estimation
  2. Adding IO cost estimation

@@ -161,7 +180,7 @@ def _estimate_aurora_regional(
extra_model_arguments: Dict[str, Any],
) -> Optional[CapacityPlan]:
instance_family = instance.family
if instance_family not in ("x2g", "r6g", "r6i", "r5", "t4g"): # TODO: split db instance and ec2 instance
if instance_family not in ("db.x2g", "db.r6g", "db.r6i", "db.r5", "db.t4g"):
Copy link
Contributor

Choose a reason for hiding this comment

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

could this be not instance_family.startswith('db.')?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are only some of the instance families are supported in Aurora. For example, db.m5 is supported by RDS but not Aurora.

@ShengweiWang ShengweiWang merged commit 46eb1f5 into main May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants