EBS vs EFS
1. EBS(Elastic Block Storage)
โถEBS volumes
- One instance (except multi-attach io1 / io2) - ํ ๋ฒ์ ํ๋์ ์ธ์คํด์ค๋ง ์ฐ๊ฒฐ
- are locked at the Availability Zone (AZ) level
- gp2: IO increases if the disk size increases
- gp3 & io 1: can increase IO independently
โถTo migrate an EBS volume across AZ
- Take a snapshot
- Restore the snapshot to another AZ
- EBS backups use IO and you shouldn't run them while your application is handling a lot of traffic
โถ Root EBS Volumes of instances get terminated by default if the EC2 instance gets terminated. (youo can disable that)
2. EBS(Elastic Block Storage)
- Mounting 100s of instances across AZ
- EFS share website files (WordPress)
- Only for Linux Instances (POSIX)
- EFS has a higher price point than EBS
- Can leverage Storage Tiers for cost savings
- Remember: EFS vs EBS cs Instance Store
3. EFS ์น์ ์ ๋ฆฌ
*๊ณผ๊ธ๋ฐฉ์ง*
์ง๊ธ๊น์ง ์ค์ตํ ๋ด์ฉ ์ฝ์์์ ์ญ์ ํ๊ธฐ
File System ์ญ์
File systems > ํ์ผ์์คํ ์ ํ > Action > Delete file system > file system ID ์ ๋ ฅ ํ ์ญ์
EC2 ์ธ์คํด์ค ์ญ์
EC2๋์๋ณด๋ > Instances > ์ธ์คํด์ค ์ ํ > Actions > Instance State > Terminate
EBS ๋ณผ๋ฅจ ์ญ์
Volumes > EBS ๋ณผ๋ฅจ ์ ํ > Delete Volumes
Snapshot ์ญ์
Snapshots > ์ค๋ ์ท ์ ํ > Delete
๋ณด์๊ทธ๋ฃน ์ญ์
Security Groups > default ๋ง ๋นผ๊ณ ๋๋จธ์ง๋ ๋ชจ๋ ์ ํ > Delete Security Groups
* ์ด ์์ ์ ํ ๋๋ ์ฐ๊ณ๋ EC2 ์ธ์คํด์ค๋ค์ ๋จผ์ ์ ๋ถ ์ง์ด ์ํ์ฌ์ผ๋ง ๋ณด์ ๊ทธ๋ฃน๋ค์ ์ญ์ ๊ฐ๋ฅํ๋ค.
* ๊ทธ๋์ ํ ๋ฒ์ ์ญ์ ๊ฐ ์ ๋ ๋๋ ์๋๋ฐ ๋ ๋๊น์ง ๋ํดํธ๋ง ๋นผ๊ณ ์ ๋ถ ์ญ์ ํ์
AMIs
AMIs > AMI ์ ํ > deregister AMI
๊ทธ๋ฆฌ๊ณ ์ด๊ฑด ๋ด๊ฐ Snapshot์ ์ญ์ ํ๋ฉด์ ๊ฒช์ ๋ฌธ์ ์ธ๋ฐ, ์ค๋ ์ท์ ์ญ์ ํ๋ ค๊ณ ํด๋ AMIs ์์ ์ค๋ ์ท์ด ์ฌ์ฉ์ค์ด๊ธฐ ๋๋ฌธ์ ๋ฐ๋ก ์ญ์ ๊ฐ ๋์ง ์๋ ๊ฒฝ์ฐ๊ฐ ์๋ค. ์ด ๋๋ AMIs ๋ก ๊ฐ์ deregister AMI๋ฅผ ๋จผ์ ์คํํด์ผ ํ๋ค. AMI ๋ฑ๋ก ํด์ ๊ฐ ๋๋๊ณ ๋ค์ Snapshots ํญ์ผ๋ก ๊ฐ๋ฉด ์ค๋ ์ท์ ์ญ์ ๊ฐ๋ฅํ๋ค.
์ด๋ฒ์๋ ๋ณด์๊ทธ๋ฃน์ ์ญ์ ํ๋ ๊ณผ์ ์์ ๋ค๋ฅธ ์ธ์คํด์ค๋ ๋คํธ์ํฌ ์ธํฐํ์ด์ค์์ ์ฌ์ฉ์ค์ธ ๋ณด์๊ทธ๋ฃน์ด ์์ด์ ์ผ๋ถ ๋ณด์๊ทธ๋ฃน์ด ์ญ์ ๊ฐ ์ ๋๊ณ ์๋ ๋ฌธ์ ๋ฅผ ๊ฒช์๋ค.
์ญ์ ๋ถ๊ฐ ๋ฉ์ธ์ง๋ฅผ ํ์ธํด ๋ณด๋ ๋ ๊ฐ์ง ๊ฒฝ์ฐ๊ฐ ์์๋ค.
์ฒซ ๋ฒ์งธ๋ ํด๋น ๋ณด์๊ทธ๋ฃน์ ๋คํธ์ํฌ ์ธํฐํ์ด์ค์์ ์ฌ์ฉ์ค์ธ ๊ฒฝ์ฐ์ด๋ค. Network Interfaces ํญ์ ๊ฐ์ ๋คํธ์ํฌ ์ธํฐํ์ด์ค๋ฅผ ์ญ์ ํ ๋ค ๋ค์ ๋ณด์ ๊ทธ๋ฃน์ผ๋ก ๋์์ค๋ฉด ์ญ์ ๊ฐ๋ฅํ๋ค.
๋ ๋ฒ์งธ๋ก๋ ๋ณด์๊ทธ๋ฃน๋ผ๋ฆฌ ์๋ก ์ฐธ์กฐํ๋ ๊ฒฝ์ฐ์ด๋ค. ์ด ๊ฒฝ์ฐ๋ ์์ง ํด๊ฒฐ์ ๋ชป ํด์ ์ญ์ ์ค์ด๋ค;