public class LpSolver extends BaseSolver implements Solver
Resource requirements, and generate Hadoop RDL requests which
will be used to make recurring resource reservation.| Constructor and Description |
|---|
LpSolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release the resource used by the Solver.
|
void |
init(org.apache.hadoop.conf.Configuration config,
PredictionSkylineStore skylineStore)
Initializing the Solver, including loading solver parameters from
configuration file.
|
org.apache.hadoop.yarn.server.resourcemanager.reservation.RLESparseResourceAllocation |
solve(Map<RecurrenceId,List<ResourceSkyline>> jobHistory)
The Solver reads recurring pipeline's
ResourceSkyline history, and
precits its ResourceSkyline requirements for the next run. |
toRecurringRDLpublic final void init(org.apache.hadoop.conf.Configuration config,
PredictionSkylineStore skylineStore)
Solverinit in interface Solverconfig - Configuration for the Solver.skylineStore - the PredictionSkylineStore which stores
predicted Resource allocations.public final org.apache.hadoop.yarn.server.resourcemanager.reservation.RLESparseResourceAllocation solve(Map<RecurrenceId,List<ResourceSkyline>> jobHistory) throws SolverException, SkylineStoreException
SolverResourceSkyline history, and
precits its ResourceSkyline requirements for the next run.solve in interface SolverjobHistory - the ResourceSkylines of the recurring pipeline in
previous runs. The RecurrenceId identifies one run of the
recurring pipeline, and the list of ResourceSkylines
records the ResourceSkyline of each job within the pipeline.Resource requested by the pipeline for the
next run (discretized by timeInterval).SolverException - if: (1) input is invalid; (2) the number of
instances in the jobHistory is smaller than the minimum
requirement; (3) solver runtime has unexpected behaviors;SkylineStoreException - if it fails to add predicted Resource
allocation to the PredictionSkylineStore.Copyright © 2019 Apache Software Foundation. All Rights Reserved.