Technologies to allocate resources to start-up a function
AssigneeIntel Corporation
InventorsHong Zhang, Adriaan D.M. Van De Ven, Liping Lian
Life of this patent
Estimating the term…
Abstract
Examples described herein relate to launching a function instance based on data related to a previously launched instance of the function and prior to receipt of a portion of the data. In some examples, the memory snapshot is taken during launch of the previously launched instance of the function. In some examples, the first code segments are loaded into memory of a runtime environment during the launch of the previously launched instance of the function in a life cycle execution of the previously launched instance of the function.
Claims16
At least one non-transitory computer-readable medium comprising instructions stored thereon, that if executed by one or more processors, cause the one or more processors to:
- launch a function instance by:
- retrieving data related to a previously launched instance of the function, wherein the data comprises a memory snapshot taken during launch of the previously launched instance of the function and the data comprises first code segments loaded into a runtime environment during a launch of the previously launched instance of the function,
- after retrieval of copies of the first code segments, retrieve second code segments associated with the function instance and access the retrieved first code segments and retrieved second code segments, and
- while retrieving the second code segments, execute a function handler to launch the function instance based on the memory snapshot and the first code segments and retrieved code segments of the second code segments, wherein:
- the memory snapshot comprises memory content of the previously launched instance of the function after completion of creating a sandbox but before initiation of a function handler for the previously launched instance of the function,
- the first and second code segments are different parts of the function instance.
An apparatus comprising:
- at least one processor;
- at least one memory comprising instructions stored thereon, that if executed by the at least one processor, cause the at least one processor to:
- launch a function instance by:
- retrieval of data related to a previously launched instance of the function, wherein the data comprises a memory snapshot taken during launch of the previously launched instance of the function and the data comprises first code segments loaded into a runtime environment during a launch of the previously launched instance of the function,
- after retrieval of copies of the first code segments, retrieve second code segments associated with the function instance and access the retrieved first code segments and retrieved second code segments, and
- during retrieval the second code segments, execute a function handler to launch the function instance based on the memory snapshot and the first code segments and retrieved code segments of the second code segments, wherein:
- the memory snapshot comprises memory content of the previously launched instance of the function after completion of creating a sandbox but before initiation of a function handler for the previously launched instance of the function,
- the first and second code segments are different parts of the function instance.
A method comprising:
- launch a function instance by:
- retrieving data related to a previously launched instance of the function, wherein the data comprises a memory snapshot taken during launch of the previously launched instance of the function and the data comprises first code segments loaded into a runtime environment during a launch of the previously launched instance of the function,
- after retrieval of copies of the first code segments, retrieving second code segments associated with the function instance and accessing the retrieved first code segments and retrieved second code segments, and
- during retrieval the second code segments, execute a function handler to launch the function instance based on the memory snapshot and the first code segments and retrieved code segments of the second code segments, wherein:
- the memory snapshot comprises memory content of the previously launched instance of the function after completion of creating a sandbox but before initiation of a function handler for the previously launched instance of the function,
- the first and second code segments are different parts of the function instance.
Dependencies are inferred from the claim text.