Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

change default aws linux instance type to t3.micro, reduce default template TTL#2776

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 5 commits intomainfromcj/template-ttl-default
Jul 12, 2022

Conversation

johnstcn
Copy link
Member

No description provided.

@johnstcnjohnstcn self-assigned thisJul 1, 2022
@johnstcnjohnstcn marked this pull request as ready for reviewJuly 1, 2022 15:56
@johnstcnjohnstcn requested a review froma teamJuly 1, 2022 15:57
- make default workspace autostop 2 hours unless specified otherwise- add instance type selector to aws templates
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

Default TTL of 2h sounds a bit short, but I understand why we're making the change, so all good 👍🏻.

@@ -36,6 +36,22 @@ variable "region" {
}
}

variable "instance_type" {
description = "What instance type should your workspace use?"
default = "2C/1G: t3.micro"
Copy link
Member

Choose a reason for hiding this comment

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

I've had a few instances where defining thedefault skipped the prompt. I'm guessing this is not the case here? (Just checking.)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I don't recall it being the case when I tested it!

Copy link
Member

@mafredrimafredriJul 12, 2022
edited
Loading

Choose a reason for hiding this comment

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

Then it's probably fine 👍, could've been related to variables markedsensitive (and that behavior might've changed already, it was a while ago).

validation {
condition = contains([
"2C/1G: t3.micro",
"2C/2G: t3.small",
Copy link
Contributor

Choose a reason for hiding this comment

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

It wasn't immediately clear what "C" and "G" meant in this context. I eventually realized it was vCPU and GB RAM, but I think 2 vCPU / 2 GB RAM is clearer and it's not like we're hurting for space in this context, nor do the users have to type these values in our UX.

Unfortunately the vCPU number is a little misleading for T3 instances. Micro-large have the same number of vCPUs, and reading this you might conclude that they have the same CPU performance. They do not. Amazon throttles the CPUs except for short bursts and the amount of throttling is different for the different instance sizes. I'm not really sure what to suggest except to drop the stats and just include the instance type names. Up to you.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I can drop the stats, I only put them in there so the instance types would show up in the right order :D

Copy link
Member

Choose a reason for hiding this comment

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

I guess you could do numbered list,1. t3.micro,2. t3.small if you want to maintain order? 😄

@johnstcnjohnstcn merged commit5e63201 intomainJul 12, 2022
@johnstcnjohnstcn deleted the cj/template-ttl-default branchJuly 12, 2022 18:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mafredrimafredrimafredri approved these changes

@spikecurtisspikecurtisspikecurtis approved these changes

@kylecarbskylecarbsAwaiting requested review from kylecarbs

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@johnstcn@mafredri@spikecurtis@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp