IP Library › Granted Patent US 11,263,000
Granted Patent B2
US 11,263,000 · App. 16/779,326 · Granted Mar 1, 2022

Upgrading an execution environment for event-driven functions

Inventor: Dylan Owen Marriner (Seattle, WA)
Assignee: Amazon Technologies, Inc.
G06F8/65
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,263,000
App. No.
16/779,326
Granted
Mar 1, 2022
Kind
B2
Abstract

An event-driven compute service upgrades an execution environment for registered functions of the compute service. Some compute nodes of the service have an updated version of the execution environment and some compute nodes have the old version of the execution environment. As a part of the upgrade process, some functions are executed in both environments. For example, for some invocations of a particular function, the function is executed in the updated execution environment while for other invocations of the same function, the function is executed in the old execution environment. Based on resulting status of the executions, the compute service determines that the particular function is compatible or incompatible with the updated version of the execution environment. The compute service performs subsequent executions of incompatible functions in the old version of the execution environment instead of in the updated version. A client may be notified of the incompatibility.

Claims (77)

1. A system, comprising:

one or more processors; and

one or more memories, wherein the one or more memories have stored thereon instructions, which when executed by the one or more processors, cause the one or more processors to implement a compute service to:

implement a plurality of compute nodes with respective execution environments, wherein at least one of the execution environments is an updated version of an execution environment and at least another of the execution environments is a previous version of the execution environment;

for individual functions of one or more functions:

for one or more invocations of the function, execute the function that comprises function code in the updated version of the execution environment; and

for another one or more invocations of the same function that comprises the same function code, execute the function in the previous version of the execution environment;

determine, based on the executions of the one or more functions in the updated version of the execution environment and the executions of the one or more same functions in the previous version of the execution environment, that at least one of the one or more functions does not satisfy one or more criteria for execution in the updated version of the execution environment; and

in response to the determination that the at least one function does not satisfy the one or more criteria for execution in the updated version of the execution environment, modify the compute service to perform, for subsequent invocations of the at least one function, execution of the at least one function in the previous version of the execution environment instead of in the updated version of the execution environment.

2. The system as recited in claim 1 , wherein the instructions cause the one or more processors to implement the compute service to:

determine, based on the executions of the one or more functions in the updated version and the previous version of the execution environment, that at least another of the one or more functions does satisfy the one or more criteria for execution in the updated version of the execution environment; and

modify the compute service to perform subsequent executions of the at least one other function in the updated version of the execution environment instead of in the previous version of the execution environment.

3. The system as recited in claim 1 , wherein the instructions cause the one or more processors to implement the compute service to:

receive, from a client of the compute service, an updated version of a particular one of the one or more functions that did not satisfy the one or more criteria; and

modify the compute service to enable execution of the updated version of the particular function in the updated version of the execution environment.

4. The system as recited in claim 3 , wherein the instructions cause the one or more processors to implement the compute service to:

determine, based on one or more executions of the updated version of the particular function in the updated version of the execution environment, that the updated version of the particular function does satisfy the one or more criteria for execution in the updated version of the execution environment; and

modify the compute service to perform subsequent executions of the updated version of the particular function in the updated version of the execution environment instead of in the previous version of the execution environment.

5. The system as recited in claim 4 , wherein the instructions cause the one or more processors to implement the compute service to:

instantiate the updated version of the execution environment on an additional compute node; and

perform at least one of the one or more executions of the updated version of the particular function in the updated version of the execution environment on the additional compute node.

6. The system as recited in claim 1 , wherein the instructions cause the one or more processors to implement the compute service to:

determine, based on the executions of the one or more functions in the updated version of the execution environment, that one or more particular functions that have not yet executed in the updated version of the execution environment do not satisfy one or more criteria for execution in the updated version of the execution environment; and

modify the compute service to perform subsequent executions of the one or more particular functions in the previous version of the execution environment instead of in the updated version of the execution environment.

7. The system as recited in claim 1 , wherein the one or more criteria for execution in the updated version of the execution environment comprises:

execution without an error;

execution with less than a threshold number of errors; and

execution within a threshold period of time.

8. A method, comprising:

performing, by one or more computing devices that implement a compute service:

implementing a plurality of compute nodes with respective execution environments, wherein at least one of the execution environments is an updated version of an execution environment and at least another of the execution environments is a previous version of the execution environment;

for individual functions of one or more functions:

for one or more invocations of the function, executing the function that comprises function code in the updated version of the execution environment; and

for another one or more invocations of the same function that comprises the same function code, executing the function in the previous version of the execution environment;

determining, based on the executions of the one or more functions in the updated version of the execution environment and the executions of the one or more same functions in the previous version of the execution environment, that at least one of the one or more functions does not satisfy one or more criteria for execution in the updated version of the execution environment; and

in response to the determination that the at least one function does not satisfy the one or more criteria for execution in the updated version of the execution environment, modifying the compute service to perform, for subsequent invocations of the at least one function, execution of the at least one function in the previous version of the execution environment instead of in the updated version of the execution environment.

9. The method as recited in claim 8 , further comprising:

determining, based on the executions of the one or more functions in the updated version and the previous version of the execution environment, that at least another of the one or more functions does satisfy the one or more criteria for execution in the updated version of the execution environment; and

modifying the compute service to perform subsequent executions of the at least one other function in the updated version of the execution environment instead of in the previous version of the execution environment.

10. The method as recited in claim 8 , further comprising:

receiving, from a client of the compute service, an updated version of a particular one of the one or more functions that did not satisfy the one or more criteria; and

modifying the compute service to enable execution of the updated version of the particular function in the updated version of the execution environment.

11. The method as recited in claim 10 , further comprising:

determining, based on one or more executions of the updated version of the particular function in the updated version of the execution environment, that the updated version of the particular function does satisfy the one or more criteria for execution in the updated version of the execution environment; and

modifying the compute service to perform subsequent executions of the updated version of the particular function in the updated version of the execution environment instead of in the previous version of the execution environment.

12. The method as recited in claim 11 , further comprising:

instantiating the updated version of the execution environment on an additional compute node; and

performing at least one of the one or more executions of the updated version of the particular function in the updated version of the execution environment on the additional compute node.

13. The method as recited in claim 8 , further comprising:

determining, based on the executions of the one or more functions in the updated version of the execution environment, that one or more particular functions that have not yet executed in the updated version of the execution environment do not satisfy one or more criteria for execution in the updated version of the execution environment; and

modifying the compute service to perform subsequent executions of the one or more particular functions in the previous version of the execution environment instead of in the updated version of the execution environment.

14. The method as recited in claim 8 , wherein the one or more criteria for execution in the updated version of the execution environment comprises:

execution without an error;

execution with less than a threshold number of errors; and

execution within a threshold period of time.

15. One or more non-transitory computer-readable storage media storing program instructions that, when executed on or across one or more computing devices to implement a compute service, cause the one or more computing devices to implement:

implementing a plurality of compute nodes with respective execution environments, wherein at least one of the execution environments is an updated version of an execution environment and at least another of the execution environments is a previous version of the execution environment;

for individual functions of one or more functions:

for one or more invocations of the function, executing the function that comprises function code in the updated version of the execution environment; and

for another one or more invocations of the same function that comprises the same function code, executing the function in the previous version of the execution environment;

determining, based on the executions of the one or more functions in the updated version of the execution environment and the executions of the one or more same functions in the previous version of the execution environment, that at least one of the one or more functions does not satisfy one or more criteria for execution in the updated version of the execution environment; and

in response to the determination that the at least one function does not satisfy the one or more criteria for execution in the updated version of the execution environment, modifying the compute service to perform, for subsequent invocations of the at least one function, execution of the at least one function in the previous version of the execution environment instead of in the updated version of the execution environment.

16. The one or more non-transitory, computer-readable storage media of claim 15 , further comprising program instructions that, when executed on or across the one or more computing devices, cause the one or more computing devices to further implement:

determining, based on the executions of the one or more functions in the updated version and the previous version of the execution environment, that at least another of the one or more functions does satisfy the one or more criteria for execution in the updated version of the execution environment; and

modifying the compute service to perform subsequent executions of the at least one other function in the updated version of the execution environment instead of in the previous version of the execution environment.

17. The one or more non-transitory, computer-readable storage media of claim 15 , further comprising program instructions that, when executed on or across the one or more computing devices, cause the one or more computing devices to further implement:

receiving, from a client of the compute service, an updated version of a particular one of the one or more functions that did not satisfy the one or more criteria; and

modifying the compute service to enable execution of the updated version of the particular function in the updated version of the execution environment.

18. The one or more non-transitory, computer-readable storage media of claim 17 , further comprising program instructions that, when executed on or across the one or more computing devices, cause the one or more computing devices to further implement:

determining, based on one or more executions of the updated version of the particular function in the updated version of the execution environment, that the updated version of the particular function does satisfy the one or more criteria for execution in the updated version of the execution environment; and

modifying the compute service to perform subsequent executions of the updated version of the particular function in the updated version of the execution environment instead of in the previous version of the execution environment.

19. The one or more non-transitory, computer-readable storage media of claim 18 , further comprising program instructions that, when executed on or across the one or more computing devices, cause the one or more computing devices to further implement:

instantiating the updated version of the execution environment on an additional compute node; and

performing at least one of the one or more executions of the updated version of the particular function in the updated version of the execution environment on the additional compute node.

20. The one or more non-transitory, computer-readable storage media of claim 15 , further comprising program instructions that, when executed on or across the one or more computing devices, cause the one or more computing devices to further implement:

determining, based on the executions of the one or more functions in the updated version of the execution environment, that one or more particular functions that have not yet executed in the updated version of the execution environment do not satisfy one or more criteria for execution in the updated version of the execution environment; and

modifying the compute service to perform subsequent executions of the one or more particular functions in the previous version of the execution environment instead of in the updated version of the execution environment.

Continuity (2)
Continuation 15905675 · Feb 26, 2018
Related Publication 20200167150A1 · May 28, 2020