IP Library › Granted Patent US 10,795,674
Granted Patent B2
US 10,795,674 · App. 16/270,077 · Granted Oct 6, 2020

Automatic scaling of microservices applications

Inventors: Jalandip Lepcha (Sunnyvale, CA); Tong Jiang (Fremont, CA)
Assignee: Juniper Networks, Inc.
G06F9/28G06F9/4843G06F9/5061G06F9/5066G06F9/5083
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 10,795,674
App. No.
16/270,077
Granted
Oct 6, 2020
Kind
B2
Abstract

A device may receive information identifying a set of tasks to be executed by a microservices application that includes a plurality of microservices. The device may determine an execution time of the set of tasks based on a set of parameters and a model. The set of parameters may include a first parameter that identifies a first number of instances of a first microservice of the plurality of microservices, and a second parameter that identifies a second number of instances of a second microservice of the plurality of microservices. The device may compare the execution time and a threshold. The threshold may be associated with a service level agreement. The device may selectively adjust the first number of instances or the second number of instances based on comparing the execution time and the threshold.

Claims (124)

1. A device, comprising:

a memory; and

one or more processors to:

receive information identifying a set of tasks to be executed,

the set of tasks being associated with a microservices application,

the microservices application being associated with a set of microservices, and

the set of tasks to be executed by the microservices application associated with the set of microservices;

determine an execution time of the set of tasks based on a set of parameters and a model,

the set of parameters including at least:

a first parameter that identifies a first score associated with a first microservice of the set of microservices, and

a second parameter that identifies a second score associated with a second microservice of the set of microservices;

determine that the first microservice is associated with a greater amount of execution time of a first subtask, of a plurality of first subtasks, as compared to an execution time of a second subtask, of a plurality of second subtasks associated with the second microservice; and

execute a greater Quantity of the plurality of first subtasks of the first microservice in parallel as compared to a quantity of the plurality of second subtasks of the second microservice.

2. The device of claim 1 , where the one or more processors are further to:

determine a threshold,

the threshold being a threshold amount of time based on a service level agreement;

compare the execution time and the threshold; and

selectively adjust a first number of instances of the first microservice or a second number of instances of the second microservice based on comparing the execution time and the threshold.

3. The device of claim 1 , where the one or more processors are further to:

determine the first score for the first microservice based on a set of factors associated with the first microservice,

the set of factors including one or more of:

an instruction metric associated with the first microservice,

the execution time,

a number of requests of the first microservice to execute a subtask,

a resource utilization of the first microservice, or

an amount of time that the first microservice is executing one or more of the plurality of first subtasks.

4. The device of claim 1 , where the one or more processors are further to:

determine that the second score for the second microservice is higher than the first score for the first microservice; and

increase a second number of instances of the second microservice.

5. The device of claim 1 , where the one or more processors are further to:

determine a first number of instances for the first microservice based on one or more of:

the model,

one or more resources associated with the first microservice, or

the first score of the first microservice; and

determine a second number of instances for the second microservice based on one or more of:

the model,

one or more resources associated with the second microservice, or

the second score of the second microservice.

6. The device of claim 1 , where the one or more processors, are further to:

adjust a first number of instances of the first microservice or a second number of instances of the second microservice by one or more of:

increasing the first number of instances of the first microservice when the first microservice is associated with a highest score, or

decreasing the second number of instances of the second microservice when the first microservice is associated with a lowest score; and

determine whether the execution time based on the increased first number of instances and the decreased second number of instances satisfies a threshold,

the threshold being a threshold execution time based on a service level agreement.

7. The device of claim 1 , where the one or more processors are further to: determine the execution time satisfies a threshold; and

provision a network device to execute the set of tasks associated with the microservices application.

8. A non-transitory computer-readable medium storing instructions, the instructions comprising:

one or more instructions that, when executed by one or more processors of a first maintenance endpoint (MEP) device, cause the one or more processors to:

receive information identifying a set of tasks to be executed,

the set of tasks being associated with a microservices application,

the microservices application being associated with a set of microservices, and

the set of tasks to be executed by the microservices application associated with the set of microservices;

determine an execution time of the set of tasks based on a set of parameters and a model,

the set of parameters including at least:

a first parameter that identifies a first score associated with a first microservice of the set of microservices, and

a second parameter that identifies a second score associated with a second microservice of the set of microservices;

determine that the first microservice is associated with a greater amount of execution time of a first subtask, of a plurality of first subtasks, as compared to an execution time of a second subtask, of a plurality of second subtasks associated with the second microservice; and

execute a greater quantity of the plurality of first subtasks of the first microservice in Parallel as compared to a quantity of the plurality of second subtasks of the second microservice.

9. The non-transitory computer-readable medium of claim 8 , where the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:

determine a threshold,

the threshold being a threshold amount of time based on a service level agreement;

compare the execution time and the threshold; and

selectively adjust a first number of instances of the first microservice or a second number of instances of the second microservice based on comparing the execution time and the threshold.

10. The non-transitory computer-readable medium of claim 8 , where the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:

determine the first score for the first microservice based on a set of factors associated with the first microservice,

the set of factors including one or more of:

an instruction metric associated with the first microservice,

the execution time,

a number of requests of the first microservice to execute a subtask,

a resource utilization of the first microservice, or

an amount of time that the first microservice is executing one or more of the plurality of first subtasks.

11. The non-transitory computer-readable medium of claim 8 , where the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:

determine that the second score for the second microservice is higher than the first score for the first microservice; and

increase a second number of instances of the second microservice.

12. The non-transitory computer-readable medium of claim 8 , where the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:

determine a first number of instances for the first microservice based on one or more of:

the model,

one or more resources associated with the first microservice, or

the first score of the first microservice; and

determine a second number of instances for the second microservice based on one or more of:

the model,

one or more resources associated with the second microservice, or

the second score of the second microservice.

13. The non-transitory computer-readable medium of claim 8 , where the one or more instructions, when executed by the one or more processors, are further to: adjust a first number of instances of the first microservice or second number of instances of the second microservice by one or more of: increasing the first number of instances of the first microservice when the first microservice is associated with a highest score, or

decreasing the second number of instances of the second microservice when the first microservice is associated with a lowest score; and

determine whether the execution time based on the increased first number of instances and the decreased second number of instances satisfies a threshold,

the threshold being a threshold execution time based on a service level agreement.

14. The non-transitory computer-readable medium of claim 8 , where the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:

determine the execution time satisfies a threshold; and

provision a network device to execute the set of tasks associated with the microservices application.

15. A method, comprising:

receiving information identifying a set of tasks to be executed,

the set of tasks being associated with a microservices application,

the microservices application being associated with a set of microservices, and

the set of tasks to be executed by the microservices application associated with the set of microservices;

determining an execution time of the set of tasks based on a set of parameters and a model,

the set of parameters including at least:

a first parameter that identifies a first score associated with a first microservice of the set of microservices, and

a second parameter that identifies a second score associated with a second microservice of the set of microservices;

determining that the first microservice is associated with a greater amount of execution time of a first subtask, of a plurality of first subtasks, as compared to an execution time of a second subtask, of a plurality of second subtasks associated with the second microservice; and

executing a greater quantity of the plurality of first subtasks of the first microservice in parallel as compared to a quantity of the plurality of second subtasks of the second microservice.

16. The method of claim 15 , further comprising:

determining a threshold,

the threshold being a threshold amount of time based on a service level agreement;

comparing the execution time and the threshold; and

selectively adjusting a first number of instances of the first microservice or a second number of instances of the second microservice based on comparing the execution time and the threshold.

17. The method of claim 15 , further comprising:

determining the first score for the first microservice based on a set of factors associated with the first microservice,

the set of factors including one or more of:

an instruction metric associated with the first microservice,

the execution time,

a number of requests of the first microservice to execute a subtask,

a resource utilization of the first microservice, or

an amount of time that the first microservice is executing one or more of the plurality of first subtasks.

18. The method of claim 15 , further comprising:

determining that the second score for the second microservice is higher than the first score for the first microservice; and

increasing a second number of instances of the second microservice.

19. The method of claim 15 , further comprising: adjusting a first number of instances of the first microservice or a second number of instances of the second microservice by one or more of:

increasing the first number of instances of the first microservice when the first microservice is associated with a highest score, or

decreasing the second number of instances of the second microservice when the first microservice is associated with a lowest score; and

determining whether the execution time based on the increased first number of instances and the decreased second number of instances satisfies a threshold,

the threshold being a threshold execution time based on a service level agreement.

20. The method of claim 15 , further comprising: determining the execution time satisfies a threshold; and

provisioning a network device to execute the set of tasks associated with the microservices application.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 12, 2019
From: LEPCHA, JALANDIP; JIANG, TONG
To: JUNIPER NETWORKS, INC.
Reel/Frame 048313/0730 →
Continuity (2)
Continuation 15388014 · Dec 22, 2016
Related Publication 20190171447A1 · Jun 6, 2019