namespace
replay
Classes
- struct WorkloadDataMigrator
- A helper objgroup for workload replay. Derives from
vt::Vrt::collection::lb::BaseLB
in order to gain access to normalizeReassignments but is not a load balancer in the traditional sense. A new instance should be created for each call to normalizeReassignments.
Functions
- void replayWorkloads(PhaseType initial_phase, PhaseType phases_to_run, PhaseType phase_mod)
- Simulate replaying the object workloads as recorded in the json file, but allow new load balancing decisions to be made.
-
void replayWorkloads(PhaseType initial_phase,
PhaseType phases_to_run,
PhaseType phase_mod,
std::shared_ptr<LBDataHolder> workloads,
Callback<std::vector<balance::
LoadData>> stats_cb) - Simulate replaying the object workloads passed in, but allow new load balancing decisions to be made.
- auto readInWorkloads(const std::string& filename) -> std::shared_ptr<LBDataHolder>
- Build a LBDataHolder object from the LB data in a json file.
Function documentation
void vt:: vrt:: collection:: balance:: replay:: replayWorkloads(PhaseType initial_phase,
PhaseType phases_to_run,
PhaseType phase_mod)
Simulate replaying the object workloads as recorded in the json file, but allow new load balancing decisions to be made.
Parameters | |
---|---|
initial_phase in | the first phase to replay |
phases_to_run in | how many phases to replay |
phase_mod |
The json files specified by the command-line arguments –vt_lb_data_file_in and –vt_lb_data_dir_in will be imported and the LB data contained within will be fed through the load balancer(s) specified on the vt command-line on each requested phase, allowing new load balancing decisions to happen. There is no requirement to colocate the LB data on the same rank as the object exists during any given phase.
void vt:: vrt:: collection:: balance:: replay:: replayWorkloads(PhaseType initial_phase,
PhaseType phases_to_run,
PhaseType phase_mod,
std::shared_ptr<LBDataHolder> workloads,
Callback<std::vector<balance:: LoadData>> stats_cb)
Simulate replaying the object workloads passed in, but allow new load balancing decisions to be made.
Parameters | |
---|---|
initial_phase in | the first phase to replay |
phases_to_run in | how many phases to replay |
phase_mod | |
workloads in | the workload data to simulate |
stats_cb in | callback for post-lb statistics |
LB data passed in will be fed through the load balancer(s) specified on the vt command-line on each requested phase, allowing new load balancing decisions to happen. There is no requirement to colocate the LB data on the same rank as the object exists during any given phase.
std::shared_ptr<LBDataHolder> vt:: vrt:: collection:: balance:: replay:: readInWorkloads(const std::string& filename)
Build a LBDataHolder object from the LB data in a json file.
Parameters | |
---|---|
filename in | read in LB data from the specified json file |
Returns | the LBDataHolder object built from the LB data |