The invention discloses a
cloud workflow resource scheduling cost optimization method based on time and reliability constraints. The method comprises the following steps: S1, deadline allocation is carried out on an input scientific
workflow; s2, creating an
ant colony and initializing a
pheromone track, and constructing an initial
task list; s3, after each
ant constructs the solution, local
pheromone updating is carried out, and the diversity of the solutions is improved. And S4, performing global
pheromone updating when each iteration is finished, and selecting an optimal solution from the solutions of all ants. And S5, using a Kahn
algorithm for generating
topological sorting to generate topological task sorting according to pheromone tracks and probability ascending sorting. And S6, carrying out
resource allocation on the tasks in the ordered
list set, and selecting instance resources which meet the reliability requirement and are less in
execution time. According to the method,
cloud workflow time and reliability constraints are considered, deadline allocation is carried out by fully utilizing a dependency relationship between tasks, and task sorting and
resource allocation are carried out by utilizing a meta-
heuristic ant colony optimization
algorithm. And the
resource scheduling cost is optimized under the condition that time and reliability constraints are met. According to the method, the time and reliability requirements of the
workflow application program are ensured, the
workflow resource scheduling cost is reduced, and the method has excellent commercial value.