Optimizing cost and performance for server-less data analysis workloads

By decomposing serverless workflows into stages and leveraging multiple storage types to optimize configurations, cost and performance optimization challenges in serverless computing are solved, storage management is simplified, and workflow efficiency and adaptability are improved.

CN118550640APending Publication Date: 2024-08-27HEWLETT PACKARD ENTERPRISE DEV LP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311078242.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2023-08-25
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing serverless computing methods are difficult to effectively optimize the cost and performance of workflows, especially in data analysis scenarios that process large amounts of intermediate data, where storage read/write throughput resource requirements are high, and developers need to manage complex Output storage properties and function node assignments.

Method used

By decomposing serverless workflows into stages and leveraging multiple heterogeneous storage types for optimal configuration on nodes, using a scheduler to compare cost and performance based on gamma tuning factors, optimal serverless workflow stage configurations are achieved, leveraging containers ization method exposes storage resources, allowing functions to disperse output storage among different storage media.

Benefits of technology

It reduces storage read/write throughput resource requirements, simplifies management complexity for developers, improves the cost and performance adaptability of serverless workflows, and is suitable for data analysis and other serverless application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The invention discloses optimizing cost and performance for server-less data analysis workloads. Systems and methods are provided for optimizing a server-less workflow. Given a directed acyclic graph ("DAG") defining a functional relationship and a gamma tuning factor indicating a preference between cost and performance, a server-less workflow corresponding to the DAG may be optimized. The optimization is performed according to the gamma tuning factor and is performed in a DAG sub-segment, referred to as a stage. Further, a system for allowing data to be stored by a server-less platform using different types of storage media is disclosed. A server-less platform maintains visibility of storage medium types of a persistent volume underlying layer, and may store data in partitions across different types of storage medium. For example, one data item may be stored in part at a byte-addressed storage medium and in part at a block-addressed storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] As network and computing technologies advance, a variety of methods have been developed to handle the growing computing demands of modern applications. One such method is cloud computing, in which cloud computing applications are developed in relation to an abstract server architecture. The cloud computing applications are subsequently executed on real servers via a virtual environment. The virtual environment enables the execution of cloud computing applications by associating the computing hardware resources available to real servers with the abstract server architecture used to develop the cloud computing applications.

[0002] Cloud computing methods enable developers to design and run applications on servers that can be provided by specialized providers of cloud computing resources (e.g., Amazon Web Services). Microsoft Google Cloud ) operations. In addition, cloud computing methods enable developers to design and run applications on servers that can be located remotely from the developer. Cloud computing relieves developers from having to provide computing hardware resources themselves for the cloud computing applications they wish to run, and allows developers to take advantage of the potentially vast resources available to such professional providers.

[0003] Another approach is serverless computing, where serverless applications differ from cloud computing applications in that they can be developed without reference to an abstract server architecture. Instead, serverless applications can be described as a collection of functions in a serverless workflow. Functions are related to each other by the specification of inputs and outputs. Decomposing a serverless workflow into functions allows the backend platform (e.g., a cloud computing resource provider) to distribute functions in separate domains ("nodes") of computing hardware resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0004] According to one or more different examples, the present disclosure is described in detail with reference to the following drawings. The drawings are provided for illustration purposes only and merely depict typical or example embodiments.

[0005] Figure 1 A system for optimizing cost and performance of serverless workflows according to some examples of the present disclosure is illustrated.

[0006] Figure 2 A diagram illustrating a serverless backend application architecture according to some examples of the present disclosure is illustrated.

[0007] Figure 3 The cost-performance tradeoffs associated with the storage of data on different storage media types are illustrated.

[0008] Figure 4An example DAG describing a serverless workflow according to some examples of the present disclosure is illustrated.

[0009] Figure 5 Illustrated are example computing components that may be used to implement methods for optimizing cost and performance of serverless workflows according to some examples of the present disclosure.

[0010] Figure 6 are example computing components that can be used to implement various features of the embodiments described in this disclosure.

[0011] The drawings are not exhaustive and do not limit the disclosure to the precise forms disclosed. DETAILED DESCRIPTION

[0012] The present disclosure relates to the field of serverless applications. As described above, a serverless application can be considered as a collection of functions in a serverless workflow, where the functions are related to each other by the specification of inputs and outputs. Decomposing a serverless workflow into functions allows a backend platform (e.g., a cloud computing resource provider) to allocate functions in separate domains ("nodes") of computing hardware resources.

[0013] In the examples described herein, the above functions are additionally grouped into stages, where a stage contains functions that do not depend on the output of another function in the same stage or a subsequent stage. Grouping functions into stages allows the backend platform to better distribute functions among available nodes because each function in a stage can execute in parallel with each other. In addition, grouping functions into stages allows the backend platform to optimize the configuration of the workflow with each stage increment, thereby reducing the overall computational burden. In some examples, developers can describe serverless workflows in the form of a directed acyclic graph ("DAG"). As shown below Figure 4 As described in , the DAG layouts each stage and its functions, with the inputs and outputs of each function defined by connecting arrows. The DAG also includes a definition of what exactly each function does to transform the function's input into the function's output. In some examples, the stages may be defined differently, functions may be related to each other using different conventions, and / or grouping of functions may not be used.

[0014] Because there is no persistent server architecture defined by serverless workflows, each output from a function is specified to be stored in a machine-readable medium. Each node can have multiple types of storage media (e.g., persistent memory ("PMEM"), flash memory, solid-state drive ("SSD"), hard disk drive ("HDD")) that can be used to store a given output. Each output can be stored in a dispersed portion of multiple types of storage media available across nodes. In the present disclosure, outputs are defined as being stored at the node where the function is executed, and each node is defined as containing a set of processing resources, storage media, storage read / write throughput resources, and network resources. The input of a function is understood to be transmitted from the node that generates the input data. In some examples, a node can be defined as containing less than all available processing resource groups or storage media types. In some examples, outputs can be defined as being stored at nodes other than execution nodes.

[0015] The node executing the earlier stage function can generate data as the output defined by the DAG to be used as the input of the subsequent stage function. In some cases, the node executing the earlier stage function can be the same node as the node executing the subsequent stage function. In the case where the earlier stage function execution node is the same as the subsequent stage function execution node, the transmission of input data does not occur, thereby saving the time, storage read / write throughput and network resources for transmitting data between nodes. However, other considerations (e.g., the write speed of the available storage medium at a given node, the price of additional calculation at a given node) can make it advantageous to execute functions on separate nodes in terms of overall workflow cost and / or performance. This only highlights one of the many decisions made before executing a serverless workflow.

[0016] Ultimately, to execute the serverless workflow, each function within the next unexecuted stage is assigned to a specific node, and the storage characteristics of each output are defined (e.g., how much output is stored at which available storage medium). These assignments and definitions of a given stage (referred to herein as "serverless workflow stage configurations") can be done by a cloud computing resource provider or developer on the back end or front end. In some examples, all functions may be grouped in one stage, or there may be no stages, in which case the serverless workflow stage configuration defines the deployment of the entire serverless workflow at once. The present disclosure relates to systems and methods for determining at least one serverless workflow stage configuration that optimizes the cost and performance of a serverless workflow.

[0017] In some examples, a scheduler may be employed that compares the overall cost and performance of each possible serverless workflow stage configuration for the next stage in a developer-supplied DAG. The scheduler weighs the comparison based on a gamma tuning factor supplied by the developer. The gamma tuning factor is a real number between 0 and 1 that represents the developer's preference for cost compared to performance. The scheduler then deploys the serverless workflow configuration with the best scored cost and performance (the "optimal" serverless workflow stage configuration) based on the gamma tuning factor. The scheduler deploys the optimal serverless workflow configuration by assigning the workflow's functions to execute at the nodes specified in the configuration and assigning the outputs of the associated functions to the storage media specified in the configuration. The scheduler repeats this process for each stage of the developer-supplied DAG until all stages of the supplied DAG have been executed.

[0018] In some examples, optimizing the cost and performance of serverless workflows can be achieved by enabling the utilization of multiple heterogeneous storage types at a single node. Multiple types of storage media (e.g., PMEM, flash, SSD, HDD) may be available at a node. In the case where multiple types of storage resources are available at a node, different containerization methods are implemented and / or combined to enable serverless applications to expose all storage resources as persistent volumes. For example, in the case where block-addressed storage is containerized, a container storage interface (CSI) plug-in can be used, but in the case where byte-addressed storage like PMEM is containerized, a dedicated containerization method like pmem-csi can be adopted. In addition to block-addressed containerization methods like CSI, the present disclosure also considers the use of dedicated byte-addressed containerization methods like pmem-csi, where nodes on the network include byte-addressed and block-addressed storage resources.

[0019] These containerization approaches can also be adopted at the backend to allow visibility to the serverless platform (e.g., Lithops, PyWren, OpenLambda, OpenWhisk, Kubernetes) about which inputs and / or outputs are stored to which storage types available at the node. In some examples, the containerization approach can be specified at the frontend and / or adopted by the developer. With more different types of storage media available at a given node, function node allocation and output type definition can be done in such a way that the cost and performance of the serverless workflow stage configuration better adapts to the wishes indicated by the developer in the gamma tuning function.

[0020] When employing the systems and methods disclosed herein, developers may not need to be exposed to such complexities regarding output storage characteristics and function node allocations, and may instead specify only the DAG and gamma tuning factors.

[0021] Data analysis may require processing of large amounts of intermediate data, and thus the described systems and methods may contribute to the field of serverless data analysis workflows, where the systems and methods may reduce the demand for storage read / write throughput resources. However, the disclosure herein is not limited to the field of data analysis and may be applied anywhere serverless applications are employed.

[0022] Figure 1 A system 100 for optimizing cost and performance of serverless workflows according to some examples of the present disclosure is illustrated. System 100 may include a client device 101 in communication with a cloud computing provider 111 and nodes 121A-G via a network 110. Client device 101 may include a processor 102, cloud computing provider 111 may include a processor 112, and nodes 121A-G may include processors 122A-G, respectively. In addition, client device 101 may include a computer-readable medium 103, cloud computing provider 111 may include a computer-readable medium 113, and nodes 121A-G may include computer-readable media 123A-G, respectively. As discussed herein, such computer-readable media may include one or more applications or control planes.

[0023] The processor(s) 102, 112, and / or 122A-G may each represent one or more central processing units (CPUs), semiconductor-based microprocessors, and / or other hardware devices suitable for retrieving and executing instructions stored in the computer-readable medium(s) 103, 113, and / or 123A-G. The processor(s) 102, 112, and / or 122A-G may each fetch, decode, and execute instructions to control a process or operation for optimizing the system during runtime. As an alternative or in addition to retrieving and executing instructions, the processor(s) 102, 112, and / or 122A-G may each include one or more electronic circuits that include electronic components for performing the functions of one or more instructions, such as field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), or other electronic circuits. As used herein, for convenience, various instructions may be described as performing operations when in fact the various instructions program the processor(s) 102, 112, and / or 122A-G to perform the operations. Similarly, where a computing device is disclosed as performing operations, in fact the associated processor(s) of the computing device performs the operations when executing associated instructions.

[0024] The computer-readable medium(s) 103, 113, and / or 123A-G may each include a random access memory (RAM), cache, and / or other dynamic storage device coupled to the bus for storing information and instructions to be executed by the associated processor(s) 102, 112, and / or 122A-G. The computer-readable medium(s) 103, 113, and / or 123A-G may also each be used to store temporary variables or other intermediate information during the execution of instructions to be executed by the associated processor(s) 102, 112, and / or 122A-G. Such instructions, when stored in a storage medium accessible to the associated processor(s) 102, 112, and / or 122A-G, enable the computer system(s) 101, 111, and / or 121A-G to become a special-purpose machine customized to perform the operations specified in the instructions.

[0025] In addition, the computer-readable medium(s) 103, 113, and / or 123A-G may each include an electronic, magnetic, optical, or other physical storage device containing or storing executable instructions. Thus, the computer-readable medium(s) 103, 113, and / or 123A-G may each include, for example, a random access memory (RAM), a non-volatile RAM (NVRAM), an electrically erasable programmable read-only memory (EEPROM), a storage device, an optical disk, etc. As described in detail below, the computer-readable medium(s) 103, 113, and / or 123A-G may be encoded with executable instructions.

[0026] The client device 101 may implement one or more applications and / or control planes within the computer-readable medium 103 , including a serverless workflow front-end control plane 104 .

[0027] In the disclosed example, the serverless workflow front-end control plane 104 may include a user interface where a developer can specify parameters that define a serverless workflow. Figure 4 More specifically, developers can provide DAGs to define the input / output relationships between functions within a serverless workflow, as well as the functions themselves and their stage groupings. Figure 5 As described in more detail, a developer may provide a gamma tuning factor to specify how the developer wishes to weigh cost benefits versus performance benefits when determining an optimal serverless workflow configuration. In some examples, a developer may provide a different set of parameters not described herein, but still define the same concepts.

[0028] Client device 101 may transmit the parameters to cloud computing provider 111 via network 110 . Cloud computing provider 111 may implement one or more applications and / or control planes within computer-readable medium 113 , including serverless workflow backend application 114 and cost-performance optimization application 115 .

[0029] In disclosed examples, the serverless workflow backend application 114 may include a serverless platform (e.g., Lithops, PyWren, Open-Lambda, OpenWhisk, Kubeless) running in a cloud computing environment (e.g., Kubernetes). The serverless workflow backend application 114 may provide backend services that enable deployment of serverless workflows. Examples of such backend services may include containerizing applications, providing available storage media as persistent storage volumes, providing available computing resources as nodes, and / or enabling storage of data to in-memory key-value (or object) storage. As described in detail in relation to Figure 2-3 As further discussed, where different storage types are to be exposed for utilization by the serverless workflow, such provision may be accomplished through utilization of the storage interface by the serverless workflow backend application 114 .

[0030] In the disclosed example, the cost-performance optimization application 115 may include an application in which developer-supplied parameters are used to determine the optimal serverless workflow stage configuration. Figure 5 As described in more detail, the supplied parameters may include a DAG and / or a gamma tuning factor. In some examples, the optimal serverless workflow stage configuration may be found by first calculating the cost and performance of each potential serverless workflow stage configuration for a given stage. The optimal serverless workflow stage configuration is then determined by selecting the best weighted score based on the gamma tuning factor. Other examples may employ any method for determining an optimal serverless workflow configuration given parameters that define the same concepts associated with the DAG and gamma tuning factors described herein.

[0031] Once the optimal serverless workflow configuration is determined, the serverless workflow backend application 114 can deploy the optimal serverless workflow configuration to the available nodes 121A-G. In some examples, the deployment instructions are part of a scheduler application defined in the computer-readable medium 113. The deployment of the optimal serverless workflow configuration is achieved by allocating functions of the workflow stages for execution at the nodes specified in the optimal serverless workflow stage configuration and allocating the outputs of the associated functions to the storage media specified in the configuration.

[0032] The cloud computing provider 111 can deploy an optimal serverless workflow configuration by sending instructions and data to the nodes 121A-G via the network 110. Node 121A is disclosed in greater detail herein, however, nodes 121B-G may include components that are the same or substantially similar to node 121A. The associated computer-readable medium 123A of node 121A may include one or more function definitions and / or one or more output storage locations grouped by storage type. The disclosed example illustrates only seven nodes 121A-G, however other examples may include any number of nodes.

[0033] The serverless workflow function 124A may include functions associated with a serverless workflow stage deployed to the node 121A by the cloud computing provider 111. The serverless workflow function runs as defined in the DAG provided by the developer, and its output is stored in the available output storage type. The output of the function is stored according to the determined optimal serverless workflow stage configuration. The input of the function can be at the node 121A, or at a remotely located node 121B-G. In the case where the input is remotely located, the input data can be transmitted to the node 121A via the network 110 before executing the serverless workflow function 124A.

[0034] Node 121A is illustrated as containing several output storage locations grouped by type: PMEM output storage 125A, Flash output storage 126A, SSD output storage 127A, and HDD output storage 128A. These represent different types of storage media that may be present at node 121A, however, in some examples, additional types of storage media may be present at node 121A. These specific output storage locations are disclosed herein to give an understanding of how node 121A may store data output from serverless workflow function 124A at multiple types of storage media available at the node. In some examples, node 121A may partially store data output from serverless workflow function 124A, with some of it being stored at different types of storage media. As discussed above and below, during deployment of an optimal serverless workflow stage configuration to node 121A, it is defined how exactly a given output from serverless workflow function 124A is stored on the types of storage media available at node 121A. As described below with respect to Figure 3 As discussed, storing output on a given storage type may affect the cost and / or performance of running a workflow.

[0035] In some examples, network 110 may include the Internet, wherein each of devices 101, 111, and 121A-G is remotely located via an Internet connection. In some examples, network 110 may include a local area network ("LAN") or intranet connection, wherein each of devices 101, 111, and 121 is local to each other. In some examples, some of devices 101, 111, and 121 are local to each other, and other devices 101, 111, and 121 are remote from each other. In some examples, any combination of devices 101, 111, and 121A-G may be implemented on the same machine, for example, the same device may implement the front-end control plane 104, back-end application 114, and multiple nodes 121A-G of system 100.

[0036] Figure 2 Figure 200 illustrating a serverless backend application architecture according to some examples of the present disclosure. In some examples, a serverless platform (e.g., Lithops, PyWren, OpenLambda, OpenWhisk, Kubernetes) supports a serverless framework 201. The serverless framework 201 enables function data to be stored in an abstract object and / or key-value store list 202. The object and / or key-value store list 202 contains a series of persistent volumes 203-206. The underlying storage medium can be exposed as abstract persistent volumes 203-206 via the use of a set of container storage interfaces ("CSI") 207. The CSI 207 can interface with storage media that is sometimes located on a machine remote from the device executing the serverless application via the use of a set of direct access interfaces 208 (e.g., remote direct memory access (RDMA), non-volatile fast memory over fabric (NVMEoF), transmission control protocol (TCP)). This overall architecture ultimately allows the serverless framework to take advantage of available storage media 209-212, albeit of different storage types (e.g., PMEM, flash, SSD, HDD). The disclosed backend application architecture diagram 200 is non-limiting, and the disclosed examples can be implemented with Figure 2 The serverless backend engine architecture disclosed in Figure 200 is organized differently to achieve this.

[0037] Visibility at the object and / or key-value storage list 202 about which types of underlying storage media are available for containing storage objects can enable greater flexibility in configuring serverless workflow stage configurations. To achieve visibility, the persistent volumes 203-206 can adopt a storage containerization scheme that associates each persistent volume 203-206 with a specific type of available storage media. The serverless workflow backend application can then configure the serverless workflow stage configuration more flexibly by selecting a persistent volume associated with a storage type. The persistent volume can also expose hardware metrics about the underlying storage media with a storage type that matches the persistent volume. The output can also be partitioned and stored across multiple different persistent volumes.

[0038] A specific example of this containerization scheme is implemented by containerizing PMEM according to the PMEM-specific CSI, pmem-csi, while containerizing SSD according to the traditional SSD CSI. Storage media containerized using pmem-csi are associated with the first persistent volume, while storage media containerized using the traditional SSD CSI are associated with the second persistent volume. In addition to maintaining visibility of available storage types at the object and / or key-value storage list 202, the combination of CSIs allows different types of storage data to be stored for function outputs. Previously, in the case of using byte-addressed storage media like PMEM, only other byte-addressed storage types could be used to store outputs due to the consistency of addressing and dedicated communication interfaces required when processing objects. Containerization using pmem-csi and traditional CSI methods at the serverless workflow backend allows byte-addressed storage types to be used in combination with block storage types (e.g., SSD, HDD) to store a given object. The availability of block-addressed and byte-addressed storage media as options for output storage devices allows greater flexibility in finding optimal serverless workflow configurations.

[0039] Figure 3 The cost-performance tradeoffs associated with data storage on different storage media types are illustrated. The disclosed data was not collected by the applicant and represents only a rough relationship for each type of storage media depicted with respect to the disclosed metrics. The latency on the vertical axis represents the time in milliseconds it takes for the storage type to complete a read or write request. The cost on the horizontal axis represents the cost in dollars per GB of storage in the storage type. Those skilled in the art understand that storage media types differ in many other characteristics besides latency and cost, and that such other characteristics may also be accounted for by the systems and methods disclosed herein. In addition, the disclosed storage media types are non-limiting, and the disclosed examples may be used in conjunction with the disclosed examples. Figure 3 This is achieved using an undisclosed storage medium type.

[0040] like Figure 3As shown, storage types like tape drives can provide relatively cheap data storage (about $0.05 per GB of storage) at relatively high latency (about 100 milliseconds). On the other hand, dynamic random access memory ("DRAM") can provide relatively expensive data storage (about $20 per GB of storage) at relatively low latency (about 0.0001 milliseconds of latency). Figure 3 Other types of storage media disclosed in (HDD at 5400RPM, 7200RPM, 10000RPM, and 15000RPM, SSD Serial Attached SCSI ("SAS"), SSD Serial Advanced Technology Attachment ("SATA"), SSD Non-Volatile Express Memory ("NVMe")) may provide latency and cost characteristics at values ​​between these extremes. Other undisclosed and / or yet-to-be-invented storage media types may provide latency and cost characteristics outside of these extremes.

[0041] In serverless applications with heavy read / write requirements, sensitivity to storage latency can increase. For example, where multiple serverless functions are executed in parallel on separate nodes and rely on a single output, the time spent reading from the storage medium storing the single output can double for each parallel function that reads the output sequentially. Providing additional flexibility in how exactly output data is stored enables determination of a more optimal serverless workflow stage configuration in situations where the performance of the overall workflow is sensitive to storage latency.

[0042] Figure 4 An example DAG 400 describing a serverless workflow according to some examples of the present disclosure is illustrated. DAG 400 provides a visual description of how functions within a serverless workflow are related to each other. Figure 4 4, but DAG 400 also defines how each function transforms its input into its output. These definitions can take the form of functions selected from a library of known functions, explicit executable instructions, algorithms output from a trained (or to be trained) machine learning algorithm, or any other form of defining a function in a way that is executable by a processor.

[0043] Phases 401, 402, 403, and 404 are all depicted as including at least one function. Phase 401 includes functions 411, 412, and 413. Phase 402 includes functions 414 and 415. Phase 403 includes functions 416 and 417. Phase 404 includes function 418. The output-to-input relationship between functions is defined by output-to-input arrows 421-428. In the case of depicting arrows, the output from one function is used as the input of another function. For example, based on the output-to-input arrow 421 starting from function 411 and pointing to function 414, the output of function 411 is used as the input of function 414.

[0044] The output from a function may be retained while waiting to be read as input to at least one subsequent function. Each output-to-input relationship on the disclosed DAG 400 may be understood as also representing an instance where the output is stored at a machine-readable medium. In some examples, the output may be partitioned and stored in a variety of types of machine-readable media. In the disclosed examples, the output is conceptualized as being written to a machine-readable medium located at any node where the output function is executed. In the case where subsequent functions are deployed to different nodes and it is desired to use the output as input, the output data may be transferred from the node where the output function is deployed to the node where the input function is deployed. In some examples, this convention may be reversed, where the output data is automatically stored at each node where the input function is deployed. In any case, in the case where both the output function and the input function are deployed by the same node, then before executing the input function, the output data may not need to be transferred to another storage medium. Once all functions have been executed and their outputs are stored in (one or more) machine-readable media, the serverless workflow has been fully executed.

[0045] The functions disclosed herein are grouped into stages where the inputs of the functions in a stage do not depend on functions in the same stage or subsequent stages. For example, functions 416 and 417 can be grouped together in stage 403 as depicted because functions 416 and 417 do not have inputs that depend on functions 416, 417 in the same stage 403 or on function 418 in subsequent stage 404. In the case where multiple functions are grouped in one stage, once all previous stages have completed execution, these functions can be executed in parallel, for example, once the functions in stages 401 and 402 have completed, functions 416 and 417 can be deployed to separate nodes and executed simultaneously.

[0046] In the disclosed examples, the developer defines the DAG by defining functions 411-418, output-input arrows 421-428, and which functions belong to stages 401-404. In some examples, the serverless workflow backend application can define the stages 401-404. In the disclosed examples, and as described in Figure 5 Described in more detail, the serverless workflow backend application deploys the serverless workflow stage configuration for one stage at a time. After a stage executes, the serverless workflow backend deploys the serverless workflow stage configuration for the next stage. For a given function, the serverless workflow backend application can determine which node will execute the given function, and which storage medium will store the output of the function. In order to prepare the complete serverless workflow stage configuration for deployment, the serverless workflow backend application makes these determinations for each function at a given stage and for each output of each function.

[0047] Figure 5 An example computing component 500 is illustrated that can be used to implement a method for optimizing the cost and performance of a serverless workflow according to some examples of the present disclosure. The computing component 500 can be, for example, a client device 101, a cloud computing provider 111, a node 121A-G, or any other similar computing component capable of processing data. Figure 5 In the example disclosed in , the computing component 500 can be conceptualized as a cloud computing provider 111 having a serverless workflow backend application 114 and a cost-performance optimization application 115 stored in its computer-readable medium 113. The computing component 500 includes a hardware processor 501 and (one or more) machine-readable storage media 502.

[0048] The hardware processor 501 may be similar to Figure 1 1. The hardware processor 501 may be one or more central processing units (CPUs), semiconductor-based microprocessors, and / or other hardware devices suitable for retrieving and executing instructions stored in the machine-readable storage medium 502. The hardware processor 501 may retrieve, decode, and execute instructions, such as instructions associated with operations 504-512, to control a process or operation for network-aware resource allocation. As an alternative or in addition to retrieving and executing instructions, the hardware processor 501 may include one or more electronic circuits including electronic components for performing the functions of one or more instructions, such as a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or other electronic circuits.

[0049] The machine-readable storage medium(s) 502 may be similar to Figure 1 113 disclosed in . A machine-readable storage medium such as machine-readable storage medium 502 may be any electronic, magnetic, optical, or other physical storage device containing or storing executable instructions. Thus, machine-readable storage medium 502 may be, for example, a random access memory (RAM), a non-volatile RAM (NVRAM), an electrically erasable programmable read-only memory (EEPROM), a storage device, an optical disk, or the like. In some examples, machine-readable storage medium 502 may be a non-transitory storage medium, where the term "non-transitory" does not encompass transient propagating signals. As described in detail below, machine-readable storage medium 502 may be encoded with executable instructions, such as instructions associated with operations 504-514.

[0050] The machine-readable storage medium(s) 502 are illustrated as storing a method for optimizing cost and performance of a serverless workflow, wherein the method is divided into operations 504 through 514. In some examples, operations 504 through 514 may be conceptualized as being performed under an application, a control plane, an application, etc. For example, operations 504 and 512 may be conceptualized as being performed under the serverless workflow backend application 114, and operations 506-510 and 514 may be conceptualized as being performed under the cost-performance optimization application 115. In some examples, all operations 504 through 512 may be conceptualized under any number of applications, control planes, applications, etc., including applications, control planes, applications, etc. not disclosed herein.

[0051] As used herein, for convenience, various instructions may be described as performing operations when the various instructions actually program a processor to perform the operations. Similarly, where a computing device is disclosed as performing an operation, in fact the associated processor of the computing device performs the operation when executing the associated instructions. In addition, operations 504-414 are disclosed in a top-down order, however, this order is not limiting. In some examples, similar or identical results optimization of serverless workflows can be achieved by methods in which the disclosed operations occur in a different order.

[0052] At operation 504, a serverless workflow DAG and a gamma tuning factor are received by the computing component 500. In some examples, this is received over a network from a client device running a serverless workflow front-end control plane to generate the serverless workflow DAG and the gamma tuning factor based on input from a developer. In some examples, the developer may provide the serverless workflow DAG and the gamma tuning factor via the serverless workflow front-end control plane executed at the computing component 500.

[0053] As about Figure 4 As described, the serverless workflow DAG at least defines the output-input relationship between the functions of the serverless workflow, the functions themselves, and the stages of the functions of the serverless workflow. These stages allow the functions within the stages to be executed in parallel and separate the optimization calculations into the stages of the serverless workflow.

[0054] The gamma tuning factor is a real number between 0 and 1 that represents the developer's preference for cost over performance. For example, where the developer values ​​cost significantly higher than performance, a gamma tuning factor of 0 may be selected, resulting in a serverless workflow stage configuration that executes at the absolute minimum cost of all serverless workflow stage configurations. Where the developer values ​​performance significantly higher than cost, a gamma tuning factor of 1 may be selected, resulting in a serverless workflow stage configuration that executes at the absolute highest performance (e.g., fastest) of all possible serverless workflow stage configurations. Where the developer values ​​cost and performance equally, a gamma tuning factor of 0.5 may be selected, resulting in a serverless workflow stage configuration that is balanced between the former two. In the disclosed examples, the gamma tuning factor may take any real number between 0 and 1, but in other examples, the gamma tuning factor may be scaled to any range of numbers.

[0055] In operation 506, hardware metrics are collected. In some examples, these metrics are collected from a library containing metrics previously defined for associated hardware. In some examples, these metrics are collected by direct measurement by the node itself, the computing component 500, a client device, or any device communicatively coupled to the computing component 500. In some examples, these metrics are collected from a machine learning algorithm that is trained (or to be trained) for hardware-related measurements. In the case where the associated library, measurement, and / or machine learning algorithm is away from the computing component 500, the library, measurement, and / or machine learning algorithm can be communicated to the computing component 500. These metrics can be updated before, during, or after executing a function that contains a serverless workflow stage. In some examples, some metrics can be a rough estimate and / or prediction of future hardware behavior.

[0056] The metrics collected are relevant to determining the cost and / or performance of the intended serverless workflow stage configuration. Example metrics may include: read time for a particular storage medium, write time for a particular storage medium, time to transfer data over a particular network path, time taken by a particular processor to process a particular amount of data, available capacity on a particular storage medium, dollars per byte of storage at a particular storage medium, dollars per processor cycle for a particular processor, dollars per byte of data transferred over a particular network path. Many other metrics may be used in place of or in addition to those disclosed herein to determine the cost and / or performance of the intended serverless workflow stage configuration.

[0057] At operation 508, the cost and performance of each potential node function and output storage type arrangement within the stage is calculated. This operation may include many calculations because the number of potential node functions and output storage type arrangements grows rapidly as the number of nodes and storage types available at each node increases. For example, using Figure 4In stage 401 of the DAG 400 disclosed in , assuming a system of 100 nodes and 100 different storage type arrangements available for each output, there are at least 30,000 potential arrangements. For each of the three functions in stage 401, there are 100 nodes where they can store their outputs, and for each of these output storages, there are 100 different storage type arrangements. This translates to 3*100*100 (or 30,000) potential node functions and output storage type arrangements. This calculation is provided merely to illustrate how many configurations can be on hand to complete operation 508, and other examples can have any number of nodes and storage type arrangements. In the case of considering partial storage of outputs across multiple storage media, the storage type arrangements can be varied.

[0058] In each of the potential node functions and output storage type arrangements, cost and performance may be calculated. To calculate cost, a cost expressed in dollars per byte stored, dollars per byte executed, and dollars per data transmitted over the network may be calculated for at least each function within the stage. To calculate performance, a time expressed in latency may be calculated for each read, write, and processor cycle associated with each function within the stage. These calculations are based on the metrics obtained in operation 506 and the node functions and output storage type arrangements. Both cost and performance calculations may be repeated for each potential node function and output storage type arrangement. For example, using Figure 4 In stage 401 of the DAG 400 disclosed in , assuming a 100-node system and 100 different storage type arrangements available for each output, the cost and performance calculations may be repeated for at least each of the 30,000 arrangements.

[0059] In some examples, calculations may be skipped if a significant number of calculations have already been performed in the same or similar previous calculations.

[0060] In some examples, constraints can be applied when defining potential node functions and output storage type arrangements. Where such constraints are applied, they can reduce the number of calculations performed to determine an optimal serverless workflow stage configuration.

[0061] In some examples, the potential node function and output storage type arrangement is constrained to be those where the outputs of each function are stored only at storage media present at the node executing the function.

[0062] In some examples, potential node function and output storage type arrangements are constrained to those where the output of each function is stored only once.

[0063] In some examples, potential node function and output storage type arrangements are constrained to those where the total amount of data output by the function does not exceed the storage capacity available at the node executing the function.

[0064] In some examples, potential node function and output storage type arrangements are constrained to those where sufficient processing resources are available at the node to execute all functions specified to be executed at the node.

[0065] In some examples, potential node function and output storage type arrangements are constrained to those where sufficient memory (volatile data storage) resources are available at the node to execute all functions specified to be executed at the node.

[0066] In some examples, potential node function and output storage type arrangements are constrained to those where executing all functions that allocate writes to a given storage medium will not overload the given storage medium's limit on concurrent writes.

[0067] In some examples, potential node function and output storage type arrangements are constrained to those where executing all functions allocated to read from a given storage medium will not overload the given storage medium's limit on concurrent reads.

[0068] In some examples, potential node function and output storage type arrangements are constrained to those where transmitting inputs to nodes that perform functions utilizing the inputs will not overload associated network connections.

[0069] At operation 510, an optimal serverless workflow stage configuration is determined based on the calculations and the gamma tuning factor completed at operation 506. In some examples, this is accomplished by multiplying the gamma tuning factor ("γ") by the performance of the calculation in time, multiplying (1-γ) by the cost of the calculation in dollars, and then adding the results of the two calculations. This is done for each serverless workflow stage configuration, and then the optimal serverless workflow stage configuration is selected as the serverless workflow stage configuration with the lowest sum of the two calculation results.

[0070] As will be readily appreciated by those skilled in the art, such calculations based on γ result in γ acting as a tuning factor that defines how the developer weighs cost versus performance for the serverless workflow. Where the developer selects a γ of 0.9, the serverless workflow stage configuration with the lowest sum result of the two calculations above will be preferred to the configuration where performance, expressed in time, is minimized. Conversely, where the developer selects a γ of 0.1, the serverless workflow stage configuration with the lowest sum result of the two calculations above will be preferred to the configuration where cost, expressed in dollars, is minimized. A higher γ may be said to indicate that the developer prefers faster performance, while a lower γ may be said to indicate that the developer prefers lower cost. In some examples, γ may be applied differently to the cost and / or performance of the computation, with the same result that γ approximates a preference between cost and performance for the serverless workflow.

[0071] Table 1 and Equations 1-7 below define a specific example method for determining an optimal serverless workflow stage arrangement. The specific methods disclosed herein can be understood to occur during operations 506-510 in an example of employing a specific method. This is a non-limiting example that can be used to perform the calculations described herein. The final cost and performance of a given output-storage type arrangement can be calculated via many other methods, as long as these methods follow the abstract guidance given above with respect to operations 508 and 510.

[0072] Table 1: Summary of symbols for example equations.

[0073]

[0074]

[0075] Equation 1:

[0076] Equation 2: (where s = d, )

[0077] Equation 3:

[0078] Equation 4:

[0079] Equation 5:

[0080] Equation 6:

[0081] Equation 7:

[0082] The specific method disclosed herein begins by collecting the metrics in Table 1, except where the metrics are derived from equations 1-4. In the case where the metrics are derived from equations 1-4, they are for each associated function f in the stage i , potential input storage nodes s, potential output storage nodes d, input storage media k, and output storage media k'. Using these metrics, for all possible configurations of function nodes and output storage types, the total cost in terms of dollars and the performance in terms of execution time for a stage in the workflow can be determined according to the optimization variable x. The optimization variable x represents the fraction of the function output that is written to a given storage medium k'. Note that there is an optimization variable for at least each available storage medium at node d.

[0083] Then, for each function node configuration of the stage and each storage medium available at each node, the optimization variable x varies between 0 and 1, and the cost and performance at each value of the optimization variable x are calculated. An x value of 0 means that no function's output is written to the storage medium k', and an x ​​value of 1 means that all function's output is written to the storage medium k'. Where x is a fraction, the output is partially stored at the storage medium k', where the rest of the output is stored to one or more other storage media. The granularity of the x value between 0 and 1 (e.g., 0.1, 0.2, 0.3, ... relative to 0.01, 0.02, 0.03, ...) can vary according to the developer's preferences or the configuration of the cost-performance optimization application. Then, the optimal serverless workflow stage configuration is selected based on the combination of function nodes, storage media, and x values ​​that produces the lowest result of Equation 5.

[0084] As can be appreciated by those skilled in the art, and as discussed above with respect to operation 510, the presence of the gamma tuning factor γ in equation 5 results in γ acting as a tuning factor that defines how the developer weighs cost compared to the performance of the serverless workflow. In the case where γ is 1, equation 5 simplifies to equation 6, and the serverless workflow stage configuration that results in the fastest performance is selected. In the case where γ is 0, equation 5 simplifies to equation 7, and the serverless workflow stage configuration that results in the lowest cost is selected.

[0085] In operation 512, the functions of the stage are deployed according to the optimal serverless workflow stage configuration determined in operation 510. In some examples, this is accomplished by a scheduler implemented in a serverless workflow backend application. In some examples, different applications, control planes, or applications can be used to deploy the optimal serverless workflow stage configuration using a similar approach. The scheduler deploys the optimal serverless workflow stage configuration by sending each of the functions of the stage to the node specified in the optimal serverless workflow stage configuration. The scheduler also sends instructions detailing how to store the output of each of the functions of the stage to the storage medium of the associated node, as specified in the optimal serverless workflow stage configuration. The serverless workflow stage can then be executed by the associated node.

[0086] At operation 514, after the functions of the stage have completed execution, operations 506-512 are repeated for the next stage in the serverless workflow DAG. In some examples, the metrics collected at operation 506 may not be changed and / or their collection may be skipped without disrupting the ability of the computing component 500 to determine the optimal serverless workflow stage configuration for the next stage. Operations 506-512 are repeated until the last stage in the serverless workflow DAG has been executed. The result of performing operations 506-512 at each stage is an overall optimized serverless workflow execution, where each stage is executed according to the supplied serverless workflow DAG and the cost-relative-performance preference represented by the gamma tuning factor.

[0087] Figure 6 A block diagram of an example computer system 600 is depicted in which various embodiments described herein may be implemented. The computer system 600 includes a bus 602 or other communication mechanism for communicating information, one or more hardware processors 604 coupled to the bus 602 for processing information. The hardware processor(s) 604 may be, for example, one or more general purpose microprocessors.

[0088] The computer system 600 also includes a main memory 606, such as a random access memory (RAM), cache, and / or other dynamic storage device, coupled to the bus 602 for storing information and instructions to be executed by the processor 604. The main memory 606 may also be used for storing temporary variables or other intermediate information during execution of instructions to be executed by the processor 604. Such instructions, when stored in a storage medium accessible to the processor 604, make the computer system 600 a special-purpose machine customized to perform the operations specified in the instructions.

[0089] Computer system 600 also includes a read only memory (ROM) 608 or other static storage device coupled to bus 602 for storing static information and instructions for processor 604. A storage device 610, such as a magnetic disk, optical disk, or USB thumb drive (flash drive) or the like is provided and coupled to bus 602 for storing information and instructions.

[0090] The computer system 600 may be coupled to a display 612, such as a liquid crystal display (LCD) (or touch screen), via the bus 602 for displaying information to a computer user. An input device 614, including alphanumeric and other keys, is coupled to the bus 602 for communicating information and command selections to the processor 604. Another type of user input device is a cursor control 616, such as a mouse, trackball, or cursor direction keys, for communicating direction information and command selections to the processor 604 and for controlling cursor movement on the display 612. In some examples, the same direction information and command selections as a cursor control may be achieved via receiving touches on a touch screen without a cursor.

[0091] The computing system 600 may include a user interface module that implements a GUI that may be stored in a mass storage device as executable software code executed by the computing device(s). This module and other modules may include, by way of example, components such as software components, object-oriented software components, class components, and task components, procedures, functions, properties, programs, subroutines, program code segments, drivers, firmware, microcode, circuit systems, data, databases, data structures, tables, arrays, and variables.

[0092] In general, the terms "component", "application", "system", "database", "data store", etc., as used herein, may refer to logic embodied in hardware or firmware, or a set of software instructions written in a programming language such as Java, C or C++, which may have entry and exit points. Software components may be compiled and linked into an executable program, installed in a dynamic link library, or may be written in an interpreted programming language such as BASIC, Perl or Python, for example. It should be understood that software components may be called from other components or from themselves, and / or may be called in response to detected events or interrupts. Software components configured for execution on a computing device may be provided on a computer-readable medium such as a compact disc, digital video disc, flash drive, disk, or any other tangible medium, or as a digital download (and may be initially stored in a compressed or installable format that requires installation, decompression or decryption prior to execution). Such software code may be stored in part or in whole on a memory device of an executing computing device for execution by the computing device. Software instructions may be embedded in firmware such as an EPROM. It should also be understood that hardware components may include connected logic units, such as gates and flip-flops, and / or may include programmable units, such as programmable gate arrays or processors.

[0093] The computer system 600 can implement the techniques described herein using custom hard-wired logic, one or more ASICs or FPGAs, firmware and / or program logic that is combined with the computer system to make the computer system 600 a special purpose machine or to program the computer system as a special purpose machine. According to one example, the techniques herein are performed by the computer system 600 in response to the processor(s) 604 executing one or more sequences of one or more instructions contained in the main memory 606. Such instructions may be read into the main memory 606 from another storage medium such as the storage device 610. Execution of the sequences of instructions contained in the main memory 606 causes the processor(s) 604 to perform the process steps described herein. In alternative examples, hard-wired circuitry may be used in place of or in combination with software instructions.

[0094] As used herein, the term "non-transitory media" and similar terms refer to any medium that stores data and / or instructions that cause a machine to operate in a particular manner. Such non-transitory media may include non-volatile media and / or volatile media. Non-volatile media include, for example, optical or magnetic disks, such as storage device 610. Volatile media include dynamic memory, such as main memory 606. Common forms of non-transitory media include, for example, floppy disks, flexible disks, hard disks, solid-state drives, magnetic tapes or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical media with a pattern of holes, RAM, PROMs and EPROMs, FLASH-EPROMs, NVRAMs, any other memory chips or storage boxes, and networked versions thereof.

[0095] Non-transient media are distinct from, but may be used in conjunction with, transmission media. Transmission media participate in the transfer of information between non-transient media. For example, transmission media include coaxial cables, copper wire, and optical fiber, including the wires that comprise bus 602. Transmission media may also take the form of acoustic or light waves, such as those generated during radio wave and infrared data communications.

[0096] Computer system 600 also includes a communication interface 618 coupled to bus 602. Network interface 618 provides bidirectional data communication coupled to one or more network links connected to one or more local networks. For example, communication interface 618 can be an integrated services digital network (ISDN) card, a cable modem, a satellite modem, or a modem that provides a data communication connection to a telephone line of a corresponding type. As another example, network interface 618 can be a local area network (LAN) card to provide a data communication connection to a compatible LAN (or a WAN component that communicates with a WAN). Wireless links can also be implemented. In any such implementation, network interface 618 sends and receives electrical signals, electromagnetic signals, or optical signals that carry digital data streams representing various types of information.

[0097] A network link typically provides data communications to other data devices through one or more networks. For example, a network link can provide a connection to a host or to data equipment operated by an Internet Service Provider (ISP) through a local network. The ISP in turn provides data communications services through a global packet data communications network now commonly referred to as the "Internet". Both local networks and the Internet use electrical, electromagnetic, or optical signals that carry digital data streams. Signals through various networks and signals on the network link and through the communication interface 618 are example forms of transmission media that carry digital data from and to the computer system 600.

[0098] Computer system 600 can send messages and receive data, including program code, through the network(s), network links, and communication interface 618. In the Internet example, a server may transmit the requested code for an application program through the Internet, an ISP, a local network, and communication interface 618.

[0099] The received code may be executed by processor 604 as it is received, and / or stored in storage device 610 or other non-volatile storage for later execution.

[0100] Each of the processes, methods, and algorithms described in the foregoing sections may be embodied in a code component executed by one or more computer systems or a computer processor comprising computer hardware, or may be fully or partially automated by these code components. One or more computer systems or computer processors may also operate to support the performance of related operations in a "cloud computing" environment or as "software as a service" (SaaS). The processes and algorithms may be implemented in part or in whole in a dedicated circuit system. The various features and processes described above may be used independently of each other, or may be combined in various ways. Different combinations and sub-combinations are intended to fall within the scope of the present disclosure, and certain methods or process frames may be omitted in some implementations. The methods and processes described herein are also not limited to any particular order, and the frames or states associated therewith may be executed in other appropriate orders, or may be executed in parallel, or in some other manner. Frames or states may be added to or removed from the disclosed example embodiments. The execution of certain operations or processes may be distributed in computer systems or computer processors, not only residing in a single machine, but also deployed across multiple machines.

[0101] As used herein, circuits can be implemented using any form of hardware, software, or a combination thereof. For example, one or more processors, controllers, ASICs, PLAs, PALs, CPLDs, FPGAs, logic components, software routines, or other mechanisms can be implemented to form circuits. In implementation, the various circuits described herein can be implemented as discrete circuits, or the functions and features described can be partially or completely shared in one or more circuits. Even if various features or functional elements can be described or claimed as separate circuits separately, these features and functions can be shared in one or more common circuits, and such descriptions will not require or imply the need for separate circuits to implement such features or functions. In the case of using software to implement the circuit in whole or in part, such software can be implemented to operate together with a computing or processing system (such as computer system 600) that can perform the functions described herein.

[0102] As used herein, the term "or" may be interpreted as inclusive or exclusive. In addition, descriptions of resources, operations, or structures in the singular should not be understood to exclude the plural. Unless otherwise expressly stated or otherwise understood within the context of use, conditional language, such as "can," "could," "might," or "may," etc., is generally intended to convey that certain examples include, while other examples do not include, certain features, elements, and / or steps.

[0103] Unless expressly stated otherwise, the terms and phrases used in this document and variations thereof should be interpreted as open ended and not restrictive. Adjectives such as "conventional," "traditional," "normal," "standard," "known," and terms of similar meaning should not be interpreted as limiting the items described to a given time period or items available at a given time, but should be understood to cover conventional, traditional, normal, or standard technologies available or known now or at any time in the future. In some cases, the presence of broad words and phrases such as "one or more," "at least," "but not limited to," or other similar phrases should not be understood to mean that narrower cases are intended or required where such broad phrases may not be present.

[0104] It should be noted that the terms "optimize," "optimal," and the like, as used herein, may be used to mean making a performance as efficient or perfect as possible or achieving a performance that is as efficient or perfect as possible. However, as one of ordinary skill in the art reading this document will recognize, perfection is not always achievable. Thus, these terms may also encompass making a performance as good or efficient as possible or achieving a performance that is practical or as good or efficient as possible in a given situation, or making a performance better than that achievable using other settings or parameters or achieving a better performance than that achievable using other settings or parameters.

Claims

1. A method for optimizing a serverless workflow, the method comprising: receiving, at a first device, a directed acyclic graph DAG and a gamma tuning factor, in: The DAG defines a first function within the serverless workflow, a second function within the serverless workflow, and an output-input relationship between the first function and the second function; and The gamma tuning factor defines a relative preference between cost and performance for execution of the serverless workflow; collecting a first set of metrics about hardware on a network including a first node and a second node; calculating, based on the first set of metrics, a cost and a performance value for each possible configuration of a first stage including the first function; determining a first optimal serverless workflow stage configuration for the first stage based on the calculated costs and the performance values ​​for each possible configuration of the first stage, wherein the calculated costs and the performance values ​​are weighted according to the gamma tuning factor; transmitting the first function to the first node, wherein the first node is designated for execution of the first function by the first optimal serverless workflow stage configuration; as well as Instructions are transmitted detailing how to store data items output by the first function in a storage medium available at the first node.

2. The method according to claim 1, further comprising, after the execution of the first function is completed: collecting a second set of metrics about hardware on the network; calculating, based on the second set of metrics, a cost and a performance value for each possible configuration of a second stage including the second function; determining a second optimal serverless workflow stage configuration for the second stage based on the calculated costs and the performance values ​​for each possible configuration of the second stage, wherein the calculated costs and the performance values ​​are weighted according to the gamma tuning factor; transmitting the second function to the second node, wherein the second node is designated for executing the second function by the second optimal serverless workflow stage configuration; as well as Instructions are transmitted detailing how to store data items output by the second function in the storage medium available at the second node.

3. The method according to claim 1, further comprising: in, A configuration of stages is possible at least for each arrangement of functions containing said stages in each node available on said network, and for each arrangement of functions, also for each output arrangement in said storage medium available at each node executing an output function.

4. The method of claim 1, further wherein the configuration of the stages is constrained to a configuration in which output from a function is stored only at storage media available at the node executing the function.

5. The method of claim 1, further wherein the configuration of the stages is constrained to be a configuration in which output from a function is stored only once in all available storage media.

6. The method of claim 1, further wherein the configuration of the stages is constrained to be a configuration in which the total data output by all functions executed at a node is less than or equal to the storage capacity available at the node.

7. The method of claim 1, further wherein the configuration of stages is constrained to be a configuration in which processing resources required by all functions executed at a node are less than or equal to the processing resources available at the node.

8. The method of claim 1, further wherein the configuration of stages is constrained to be a configuration in which the volatile memory resources required by all functions executed at a node are less than or equal to the volatile memory resources available at the node.

9. The method of claim 1, further wherein the configuration of the stages is constrained to be a configuration in which the number of concurrent write operations performed by all functions writing to a storage medium is less than or equal to a concurrent write limit of the storage medium.

10. The method of claim 1, further wherein the configuration of the stages is constrained to be a configuration in which the number of concurrent read operations performed by all functions that read from a storage medium is less than or equal to a concurrent read limit of the storage medium.

11. The method of claim 1 , further wherein the configuration of the stages is constrained to be a configuration in which data transfer resources required by all functions that read data from remote nodes are less than or equal to the data transfer resources available on the network.

12. The method according to claim 1, further comprising: in, Determine the first optimal serverless workflow stage configuration including solving 13. The method according to claim 12, further comprising: in, The optimization factor x is calculated with a granularity corresponding to the values ​​0, 0.1, 0.2, ...

1.

14. The method according to claim 12, further comprising: in, The optimization factor x is calculated with a granularity corresponding to the values ​​0, 0.01, 0.02, ...

1.

15. A system for facilitating greater flexibility in optimizing serverless workflows, the system comprising: A node comprising a first storage medium and a second storage medium, wherein the first storage medium is of a first storage medium type and the second storage medium is of a second storage medium type ; and A cloud computing platform server includes a processor and a machine-readable medium, wherein the machine-readable medium contains instructions, which when executed by the processor cause the processor to: Running the serverless platform enables the function to store data to persistent volumes, wherein the persistent volumes are grouped according to the first storage medium type and the second storage medium type; as well as In response to execution of a function at the node, wherein the function stores data to a persistent volume grouped according to the first storage medium type, a container storage interface associated with the first storage medium type is utilized to allow data output by the function to be transferred to the first storage medium.

16. The system according to claim 15, further comprising: in, The first storage medium type is a byte-addressable storage medium type and the second storage medium type is a block-addressable storage medium type.

17. The system according to claim 16, further comprising: in, The first storage medium type is persistent memory (PMEM).

18. The system according to claim 17, further comprising: in, The container storage interface is pmem-csi.

19. The system according to claim 16, further comprising: in, The function stores a first portion of the data to persistent volumes grouped according to the first storage media type, and stores a second portion of the data to persistent volumes grouped according to the second storage media type.

20. A method for optimizing a serverless workflow, the method comprising: Receive the directed acyclic graph DAG and the gamma tuning factor from the user, in: The DAG defines a first function within the serverless workflow, a second function within the serverless workflow, and an output-input relationship between the first function and the second function; and the gamma tuning factor defines a relative preference between cost and performance for the serverless workflow execution; collecting a first set of metrics about hardware on a network including a first node and a second node; calculating, based on the first set of metrics, a cost and a performance value for each possible configuration of a first stage including the first function; determining a first optimal serverless workflow stage configuration for the first stage based on the calculated costs and the performance values ​​for each possible configuration of the first stage, wherein the calculated costs and the performance values ​​are weighted according to the gamma tuning factor; transmitting the first function to the first node, wherein the first node is designated for execution of the first function by the optimal serverless workflow stage configuration; as well as Instructions detailing how to store a data item output by the first function in a storage medium available at the first node are transmitted, the instructions resulting in partial storage of the data item at a byte-addressable storage medium and partial storage of the data item at a block-addressable storage medium.

Citation Information

Cited By

  • Data caching method, network storage server and system

    CN122450383A