-
Notifications
You must be signed in to change notification settings - Fork 10
v3.5 Recycle Mode
Andrey Kurilov edited this page Jul 25, 2017
·
8 revisions
Some cases require to perform the load operations on the limited set of objects/files in the unlimited manner (infinitely either using time limit).
- Load type is one of
- Noop
- Read
- Update
- Items input is configured
- Items input supplies the items which count is no more than the configured recycle queue size
- Recycle the load operations on the items.
- Sustain the initial items input order.
- Respect the operation weight in case of the weighted load.
- Respect the rate limit if configured.
The Load Generator component is responsible for the tasks recycling. There are two additional methods in its interface to support the recycling:
- Check if the load generator is configured to recycle the tasks:
boolean isRecycling();
- Enqueue the load task for further recycling:
void recycle(final O ioTask);
- Load Generator:
- Produces the new load tasks which count is no more than the configured recycle queue size
- Storage Driver:
- Resets the next load task state (status, timestamps, etc)
- Executes the next load task
- Outputs the next completed load task to the Load Controller
- Load Controller:
- Receives the next completed load task
- Drops the load task if its status is not successful
- Determines the load task origin (the Load Generator produced this load task)
- Checks if the resolved Load Generator is in the recycling mode
- Updates the latest results for the corresponding item.
- Enqueues the load task back to the Load Generator for further recycle
- Load Generator:
- Begins to recycle only if items input is exhausted
- Produces the recycling load tasks from the recycle queue
- "Nothing to recycle" state.
-
load-generator-recycle
The flag to enable the recycle mode. Disabled by default. -
load-queue-size
The recycle queue size. Note that this queue size is also used by storage drivers internal queues.
- Overview
- Deployment
- User Guide
- Troubleshooting
- Reference