- Newest
- Most votes
- Most comments
Hello.
The T2 instance type starts consuming CPU credits when you use more vCPUs than the baseline throughput.
Therefore, even if Ghost CMS meets the minimum performance requirements, we believe that if there is a load during installation, the CPU credits will be consumed and the performance will drop to the baseline throughput.
As a result of the performance dropping to the baseline throughput, the installation takes longer, and I think I'm stuck in a loop where I try to force the installation to proceed despite the low performance and the CPU credits never recover.
Therefore, it may be a good idea to consider using an instance size with slightly higher performance when installing.
https://aws.amazon.com/ec2/instance-types/?nc1=h_ls
@Riku's suggestion of uplifting the instance type is probably best, but it may be that the increase in CPU usage is a direct consequence of running short of memory - what I mean by this is that the Ghost install has pretty much exhausted the available memory, and so the CPU is working harder and harder as the kernel memory manager looks to find some chunks of memory anywhere that it can free up.
You may want to add some swap space to the system and see if this is enough to get you over this obstacle https://help.ubuntu.com/community/SwapFaq
Thank you, of course this makes sense. I added 1 G swap and the install went smoothly. It has been a lot of years since I worked much with 'nix but I do recall the importance of setting of various partitions and always adding swap. With EC2 you don't really think about it. I found this very easy and helpful article: https://linuxbeast.com/tutorials/aws/how-to-add-swap-space-on-ec2-ubuntu-18-04/#google_vignette
Relevant content
- asked 8 months ago
- asked 9 months ago
- asked 4 years ago
- asked a month ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 7 months ago
Thank you for this information. I set my instance to "unlimited" which I understand should allow unlimited vcpu use. Correct? I also discovered the vcpu is Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz which should be adequate. I ran the Ghost install again and the installation went further but the serve did become cpu bound again at 100%. maybe it is a node.js issue. You suggested installing Ghost with a higher performing tier but I did not see a way to do that and return back to the T2.micro after.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html
You should be able to change the instance type from t2.micro to t2.small or t2.medium using these instructions, and then put it back again once you are done.
Be sure to keep within the same instance family, and also be aware that anything other than t2.micro falls outside of free tier.