Rate Limiting Configuration
Scenario
A large e-commerce platform runs many data processing tasks each day during the early-morning hours. These tasks include order processing, inventory sync, and user behavior analysis. The platform also runs periodic data backfill jobs to keep historical data complete and consistent. If a data backfill job covers a long historical period, it consumes large amounts of compute resources. This slows down batch processing response times and may even cause timeouts or failures. How do you ensure daily batch tasks finish on time?
Solution and Features
Limit the concurrency of data backfill tasks. This reduces resource pressure on daily tasks and ensures timely output.
Rate limiting is supported only for offline tasks.
Prerequisites
You have purchased the artificial intelligence for IT operations (AIOps) value-added service, and your tenant has enabled the AIOps module.
Procedure
In the top menu bar on the Dataphin homepage, click Develop > Task O&M.
In the navigation pane on the left, click System Configuration > Rate Limiting Configuration. On the Rate Limiting Configuration page, click Create Rate Limiting Rule. Create a rule to control the concurrency of data backfill tasks and ensure normal output of daily batch tasks. Set Rule Name to Data Backfill Rate Limiting. Under Rule Configuration, select Custom Rule. Set the condition to Schedule Type Equals Data Backfill Instance. Set Concurrent Running Tasks to 10 (or adjust as needed based on available resources). For step-by-step instructions, see Create a Rate Limiting Rule.