Modifying a flow of operations to be executed in a plurality of execution environments
View Patent ↗A flow of operations is to be executed in a plurality of execution environments according to a distribution. In response to determining that the distribution is unable to achieve at least one criterion, the distribution is modified according to at least one policy that specifies at least one action to apply to the flow of operations in response to a corresponding at least one condition relating to a characteristic of the flow of operations.
1. A computer system comprising:
at least one processor; and
flow management instructions executable on the at least one processor to:
determine whether an execution plan satisfies at least one specified criterion, the execution plan specifying a distribution of operations of a hybrid flow across a plurality of types of execution environments;
in response to determining that the execution plan exceeds a computation cost threshold calculated based on resource usage cost to meet an objective, modifying the execution plan and executing based on that modification by sending at least a portion of the hybrid flow from a first execution environment to a second execution environment in response to a cost relating to resource usage at the first execution environment and the second execution environment;
the sending is further based on a combination of a cost of shipping the at least a portion of the hybrid flow from the first execution environment to the second execution environment, and a cost of accessing data, wherein the hybrid flow includes flow fragments decomposed from the hybrid flow and having dependency relationships that are tracked by different execution environments.