90年代的黄河路

New Design Enhances Performance and Cost Efficiency

September 5, 2024, 03:39 UTC – Amazon Web Services (AWS) has unveiled a significant update to its Aurora Serverless database service, detailing a sophisticated approach to resource management and scaling for clusters containing over 10,000 instances. The new design, which builds on the experiences and feedback from the first generation ASv1, introduces a host of improvements aimed at optimizing performance, reducing costs, and ensuring seamless operations.

Evolution of Aurora Serverless

The evolution of Aurora Serverless, now in its second generation ASv2, is a testament to AWS’s commitment to innovation and meeting the dynamic needs of its customers. The original ASv1, launched in 2018, laid the groundwork for the current service, which now emphasizes in-place scaling, a feature that allows for real-time migration of resources across hosts without disrupting client connections or sessions.

In-Place Scaling and Resource Management

One of the key advancements in ASv2 is the introduction of in-place scaling, which utilizes hot-plugging for CPU and memory. This approach enables the database to scale up or down without the need to migrate data across different hosts, resulting in faster and more seamless operations. The new design also supports smaller increments of scaling, making it more cost-effective for customers.

Challenges and Solutions

The team behind ASv2 faced several challenges, notably the effective management of memory for varying workloads. Linux and database engines tend to consume and retain all available memory, which can be problematic when scaling. AWS engineers addressed this by modifying the database engine, Linux kernel, and AWS Nitro hypervisor to provide more flexible memory management tailored to different workloads.

Instance Manager and Fleet Manager Services

Aurora Serverless employs an instance manager service on each instance to control resource scaling based on the demand trends of all instances on a physical host. This optimization ensures that there are sufficient resources to accommodate dynamic workloads without the need for migration between hosts.

Additionally, the Fleet Manager service plays a crucial role in managing large clusters by adjusting the size and capacity of the fleet over the long term. It focuses on predicting demand and adjusting utilization levels to ensure optimal performance. In cases where a host is at risk of becoming hot, the service employs real-time migration to free up resources. Temporary limits can also be imposed on the maximum Aurora Capacity Units (ACU) during hot fixes.

Data and Efficiency

Engineers shared data from Aurora clusters in the US AWS region, revealing that the vast majority (99.98%) of scaling events do not require migration between hosts, thanks to the in-place scaling mechanism. This underscores the efficiency and effectiveness of the new design.

Future Prospects

The team behind ASv2 is open to introducing more predictive elements into the solution in the future. They also emphasize the importance of the hypervisor and operating system kernel evolving together to better support database workloads.

Conclusion

The new design of Amazon Aurora Serverless represents a significant step forward in resource management and scaling for large database clusters. By focusing on simplicity and a responsive, metric-driven approach, AWS has created a service that not only meets but exceeds the demands of modern applications. As the service continues to evolve, it is clear that Amazon Aurora Serverless will remain a leading choice for businesses seeking reliable, scalable, and cost-effective database solutions.

About the Author

Rafal Gancarz is an experienced technology leader and expert. He currently helps Starbucks build scalable, resilient, and cost-effective business platforms. Prior to this, Rafal has designed and built large-scale, distributed, and cloud-based systems for companies like Cisco, Accenture, Kad, ICE, and Callsign. His interests span architecture and design, continuous delivery, observability, and the socio-technical and organizational aspects of software delivery.

Original Article – This article is a translation by InfoQ and is not to be reproduced without permission.


read more

Views: 0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注