Upgrade ubuntu release from 16.04 to 18.04 on ec2 instance safely

0

Hi there, I currently have some ec2 instances running with Ubuntu 16.04.2 LTS. I would like to upgrade them to the newer one. But I'm confused if it would take any risks. Is there a safe method to perform that? Regards,

profile picture
duyl97
질문됨 일 년 전1630회 조회
1개 답변
0

It depends on what your definition is of "safely".

If you define safely as zero downtime for your app, it may be better to reinstall the app in a new ec2 that uses 18.04 as a base and migrate traffic to the new instance.

If you define safely as an in-place upgrade with expected downtime, then it may be better to create an AMI of your instance, spin up a new ec2 and try the upgrade. If the upgrade works then you can deprecate the old instance.

Instead of 18.04 (Apr 2018), if possible, I would recommend using the latest Ubuntu which is 22.04 (Apr 2022) today. Both are LTS releases which have support for 5 years. The former will have support until 2023 and the latter will have support until 2027.

RB
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠