-
Notifications
You must be signed in to change notification settings - Fork 7
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
Upgrade from Amazon Linux 2 to 2022 (or 2023?) #1278
Comments
Ok, an update on where this stands:
I think it's in our interest to wait until they're fully done. The new OS might provide better performance or it might be about the same, but there's no reason to think it'll make such a significant difference that we want to get on board the moment it's available. Most of the work of this task will be load testing and evaluation, and doing that early, on a preview, is probably not a substitute for doing it on the actual final AMI. So it makes sense to do it once, when the thing is ready. |
It just got released: https://aws.amazon.com/about-aws/whats-new/2023/03/amazon-linux-2023/ |
Hey @KlaasH , I saw the above message from Bryan that the newer version is now released. Would you suggest us to make the move or would you like to have a review of the above doc next sprint before a decision? |
I don't have a very clear sense of how much performance improvement we expect from upgrading and how important it is that we capture it. The I think the first big question for me is whether it makes sense to upgrade our EC2 instances or if we're hoping to be able to upgrade to Fargate and think it will be possible soon enough that it doesn't make sense to spend time on an intermediate upgrade. The issue description above mentions that we need to be able to increase So yeah, we definitely could make the move now, but whether we should depends on how much we expect to gain from it, how important those gains are to the functionality or stability of the app, and whether we're likely to keep it for a while or change again soon. |
Thanks @KlaasH I was skeptical about the zswap bit as well, and I agree with your reasoning. I think we might have an understanding of the performance implication through some potential load tests when we have capacity to do load testing again? Regarding new version of Fargate with Hey @BryanQuigley could you expand on why we may drop the code block for reading control group memory max when determining the docker memory limit after this upgrade please? I think I am missing some context here. |
I don't understand how they plan to implement the sysctl kernel changes - but it sounds like it's a way off.
The cgroup commit that can be changed is: 700d413 All our Linux/Mac machines are running using cgroupsv2 while our production/staging sites are using v1. There are numerous memory improvements with cgroupsv2 as well - https://docs.kernel.org/admin-guide/cgroup-v2.html#issues-with-v1-and-rationales-for-v2 that may match some of the issues with the agent being killed. Or in other words, I don't know if it's worth troubleshooting why it's happening on the old OS, when a new one is available. |
Update (sort of) re Fargate: There's another issue, aws/containers-roadmap#1452, that's specific to that one parameter. There hasn't been much activity on it, but until three days ago the last comment was "#460 should handle this issue." Now that that hasn't happened, maybe it will get some attention. Then again maybe not— |
Thanks @KlaasH for continuing looking out for it. Please keep us posted! |
Detailed Description
This does not have any current urgency, but wanted to get these notes and context written down.
AWS has announced a new Amazon Linux release structure in Amazon Linux 2022. They also released an ECS version which is the variant of AL2 DB uses. The 2022 version are all in preview mode right now.
Context
Alternatives
If they introduce a newer Fargate that is backed by this more modern OS - there may be a chance we can switch to Fargate instead. That is blocked on using the kernel option vm_max_map_count.
Possible Implementation
Changing to it is trivial, has been slightly tested: c780b2f
We don't necessarily need to wait until it's out of preview, but do want to a lot of performance testing/comparison to confirm it's better.
The text was updated successfully, but these errors were encountered: