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

Add aarch64prod #1270

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Add aarch64prod #1270

wants to merge 3 commits into from

Conversation

partouf
Copy link
Contributor

@partouf partouf commented Apr 8, 2024

(Based on #1269)

Adds Aarch64 prod environment
Will also need a staging environment

Untested

predefined_metric_specification {
predefined_metric_type = "ASGAverageCPUUtilization"
}
target_value = 50.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

r7g.medium only has 1 vCpu, so I suspect 50% will trigger more scaling than we want

Copy link
Member

Choose a reason for hiding this comment

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

We can suck it and see :)

version = "$Latest"
}
override {
instance_type = "r7g.medium"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://instances.vantage.sh/aws/ec2/r7g.medium

I built the packer image with a Graviton3 cpu, I don't really know if we can also add Grav2 to this mix
But if possible we could also add https://instances.vantage.sh/aws/ec2/c6g.xlarge
But it might just be better to stick to 1 type for now

Copy link
Member

Choose a reason for hiding this comment

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

nice

Base automatically changed from terraform-split to main April 20, 2024 13:28
Copy link
Member

@mattgodbolt mattgodbolt left a comment

Choose a reason for hiding this comment

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

I realise this is draft but some thoughts. tldr: awesome! thank you

@@ -264,3 +264,35 @@ resource "aws_alb_listener_rule" "compiler-explorer-alb-listen-https-stats" {
}
listener_arn = aws_alb_listener.compiler-explorer-alb-listen-https.arn
}

resource "aws_alb_listener_rule" "compiler-explorer-alb-listen-http-aarch64prod" {
Copy link
Member

Choose a reason for hiding this comment

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

I need to see if the http ones are needed any more (or the https ones), basically if the ALB is hitting the HTTPS all the time only then we could kill off half these.

@@ -0,0 +1,141 @@
resource "aws_autoscaling_group" "prod-mixed" {
Copy link
Member

Choose a reason for hiding this comment

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

Thank you for busting these out to separate files.

}
}

enabled_metrics = [
Copy link
Member

Choose a reason for hiding this comment

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

We probably should make this a local. and use it throughout to reduce copy pastey. I'm pretty sure that "just works" in terraform but also wouldn't be too surprised if there were gremlins.

@@ -3,12 +3,14 @@ locals {
staging_image_id = "ami-0dac25c567aa57e61"
beta_image_id = "ami-0dac25c567aa57e61"
gpu_image_id = "ami-05e1d61b3348d349f"
aarch64prod_image_id = "ami-0575a3cc115c9f3ac"
Copy link
Member

Choose a reason for hiding this comment

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

Can you add the packer that makes this to the Makefile etc too please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added that to main already with 1e6e847 - please do take a look at it and see if I did something daft

Copy link
Member

Choose a reason for hiding this comment

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

nice! thanks

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.

None yet

2 participants