- Newest
- Most votes
- Most comments
Without knowing more about the base AMI you're building from this is just part educated-guess / part stab-in-the-dark, but on the first boot could it be doing an SELinux relabel, and has to walk the whole of the directory tree (which takes time)?
Subsequent reboots won't need this, so they are quicker.
When you create an AMI, a snapshot is created and stored in S3. Start an instance from the AMI, it takes time to read from S3 when initialize EBS, and if there is a large amount of custom data in the custom AMI, it takes a certain amount of time to initialize.
To reduce this time, you can refer to the following solutions: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-fast-snapshot-restore.html
But sorry, I don't know how to use this feature with ASG, please let me know if you know, thanks.
Relevant content
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago