T2 instances are Burstable Performance Instances that provide a baseline level of CPU performance with the ability to burst above the baseline. The baseline performance and ability to burst are governed by CPU Credits. Each T2 instance receives CPU Credits continuously at a set rate depending on the instance size. T2 instances accrue CPU Credits when they are idle, and use CPU credits when they are active. T2 instances are a good choice for workloads that don’t use the full CPU often or consistently, but occasionally need to burst (e.g., web servers, developer environments, and small databases).
Amazon Simple Email Service (Amazon SES) is a highly scalable and cost-effective bulk and transactional email-sending service for businesses and developers. Sign-up is quick and on a pay-as-you-go basis.
Sometimes EC2 CloudWatch monitoring shows 100% CPU usage, but when you SSH into your instance and check it with ‘top’, it’s hard to tell what is happening. Amazon is probably “borrowing” some of your CPU cycles to give to someone else who needs them. This is standard practice in a virtualized environment where physical server resources like RAM and CPU cycles are often heavily overcommitted.
To check for CPU steal, run top and look at the %st value. If this value is anything other than zero, your VM’s CPU cycles are being “borrowed”.
To watch per-core steal time continuously over 1-second intervals, you can also run:
mpstat -P ALL 1
Modern Note: Legacy t1.micro shared baseline CPU aggressively when noisy neighbors spiked. Modern Nitro-based T3/T4g instances (and Dedicated hosts) isolate vCPUs much more predictably as long as CPU credits stay positive.
If you lose your Amazon EC2 SSH key and can’t log in to your instance, this isn’t a big problem as long as your instance is EBS-based and uses an Elastic IP.
1. Upload your new SSH key, or use one generated by AWS.
2. Create an AMI of your instance.
3. Launch a new instance from your AMI and select the new SSH key.
4. Log in to your instance with the default user (ubuntu or ec2-user, depending on your original AMI).
5. Reassign the Elastic IP to the new instance.
6. Turn off the old instance and terminate it.
Modern Alternatives (No Instance Replacement Required): Today you can usually regain access without cloning an AMI by connecting via AWS Systems Manager Session Manager, pushing a temporary key through EC2 Instance Connect, or stopping the instance to attach its root EBS volume to a temporary rescue VM and updating ~/.ssh/authorized_keys directly.
Historical default max_connections limits across first-generation Amazon RDS MySQL instance classes:
RDS Instance Class
Default max_connections
db.t1.micro
34
db.m1.small
125
db.m1.medium
296
db.m1.large
623
db.m1.xlarge
1,263
db.m2.xlarge
1,441
db.m2.2xlarge
2,900
db.m2.4xlarge
5,816
In RDS Parameter Groups, the dynamic formula defaults to {DBInstanceClassMemory/12582880} for MySQL and LEAST({DBInstanceClassMemory/9531392}, 5000) for PostgreSQL. On modern instance families (such as db.t3 and Graviton db.t4g), pooling connections with Amazon RDS Proxy prevents connection exhaustion from serverless or autoscaling workloads.
Choosing the right AWS region alongside Reserved capacity, Savings Plans, Spot Instances for fault-tolerant jobs, and ARM64 AWS Graviton instance families can cut monthly compute bills significantly without sacrificing reliability.
Alongside swap, keeping a tiny VM responsive came down to caching and restraint: placing Varnish in front of Apache absorbed static/anonymous reads before spawning memory-heavy worker processes, while PHP bytecode caching (APC back then, replaced natively by PHP OPcache today) avoided recompiling scripts on every request.
Cloud & Modern Linux Caveats: Heavy swapping on network-attached EBS volumes adds latency and burns through storage IOPS burst credits, so keep vm.swappiness=10 and treat swap strictly as an OOM safety net. On modern Linux kernels, compressed in-memory swap with zram is much faster and avoids unnecessary disk writes, while older tools like prelink are deprecated because of ASLR.