Fix: publish ALB metadata as atomic generations to avoid partial reads (#78)
The metadata collector cleared the alb-prewarm-metadata table and then rebuilt it item by item, while the LCU modification function scanned the same table with no gating. A modification run overlapping a collection run could observe an empty or partially rebuilt table, and would either exit early via “No ALB data found in DynamoDB table” or apply capacity changes to a subset of the tagged ALBs.
The collector now tags each run’s items with a unique Generation, commits the run with a single PutItem on a control item, and only then removes older generations using conditional deletes. The modification function reads the control item and processes only the committed generation, so an in-progress collection is never visible to it.
Two additional guards: the collector is limited to one concurrent execution, and a run that yields no data because of errors keeps the previously committed generation rather than publishing an empty snapshot.
Tables with no control item fall back to reading every item, so the first collector run after an upgrade is not blocked.
Co-authored-by: Keshu Jiang jiakeshu@amazon.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Elastic Load Balancing Tools
Elastic Load Balancing (ELB) automatically distributes incoming application traffic across Amazon EC2 instances,containers, or resources identified by IP addresses.
The types of ELB are:
Elastic Load Balancing Tools is a collection of utilities, tutorials and code samples to help AWS customers with their use of Elastic Load Balancing.
Capturing Packets on Application & Classic Load Balancers Using Traffic Mirroring
Application Load Balancer IPAM Monitoring
Classic Load Balancer to Application Load Balancer copy utility
Classic Load Balancer to Network Load Balancer copy utility
Classic Load Balancer Console Link utility
Proxy Protocol v2 implementation Java library
Step by step for Log Analysis with Amazon Athena
CDK & CloudFormation samples for Log Analysis with Amazon Athena
CloudFormation template for IP monitoring for Classic and Application Load Balancers
CloudFormation template for Sharding
LCU reservation scheduler