Xử lý sự cố vận hành Amazon RDS
Khi hệ thống lớn lên, database gặp những vấn đề mới như truy vấn báo cáo làm chậm website hay quá nhiều database connection cùng lúc; RDS có tính năng riêng cho từng vấn đề.
Khi quy mô MFTECH tăng, database phát sinh nhiều vấn đề hơn: báo cáo làm chậm website, Lambda function mở quá nhiều database connection, storage hết dung lượng, sự cố cấp Region. Chọn từng sự cố, chạy để quan sát hậu quả, sau đó bật tính năng RDS tương ứng và chạy lại:
Chọn một sự cố và nhấn Chạy để quan sát hậu quả. Sau đó bật tính năng tương ứng và chạy lại.
Hai biện pháp bổ sung giúp giảm tải cho đội vận hành. Hệ thống kế toán chạy SQL Server sử dụng RDS for SQL Server Multi-AZ: AWS quản lý standby và failover. Để mọi database mới tuân thủ cùng tiêu chuẩn (Multi-AZ, backup, mã hoá), các database được tạo từ cùng một CloudFormation template đã được kiểm định.
- Báo cáo làm chậm website: Read Replica cùng Region (không tính phí replication).
- Quá nhiều database connection: RDS Proxy.
- Nguy cơ hết dung lượng storage: RDS storage autoscaling.
- Sự cố cấp Region: cross-Region Read Replica + copy backup sang Region khác.
- Cần truy cập OS: RDS Custom (lưu ý: AWS ngừng hỗ trợ RDS Custom for Oracle từ 31/03/2027).
Troubleshooting Amazon RDS operational incidents
As a system grows, the database runs into new problems, such as reports slowing the website or too many database connections at once; RDS has a specific feature for each.
As MFTECH grows, the database runs into more problems: reports slow the website, Lambda functions open too many database connections, storage runs out, a Region-level outage. Choose each incident, run it to see the impact, then turn on the matching RDS feature and run again:
Chọn một sự cố và nhấn Chạy để quan sát hậu quả. Sau đó bật tính năng tương ứng và chạy lại.
Two further measures reduce the load on the operations team. The accounting system, which runs on SQL Server, uses RDS for SQL Server Multi-AZ: AWS manages the standby and failover. To make every new database follow the same standards (Multi-AZ, backups, encryption), databases are created from the same vetted CloudFormation template.
- Reports slow the website: a same-Region Read Replica (no replication charge).
- Too many database connections: RDS Proxy.
- Risk of running out of storage: RDS storage autoscaling.
- Region-level outage: a cross-Region Read Replica + backups copied to another Region.
- OS access needed: RDS Custom (note: AWS ends support for RDS Custom for Oracle on March 31, 2027).