A service scheduling method and its implementation system based on microservice architecture

A scheduling method and technology of micro-services, applied in instrumentation, computing, electrical digital data processing, etc., can solve cross-server and even cross-data center calls, reduce business application performance, increase load balancing and API gateway time and resource overhead, etc. problems, to achieve high availability, improve performance, and ensure the effect of calling performance

Active Publication Date: 2022-04-05
山东睿创教育科技有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the complex scenario where multiple services call each other and work together, if we simply schedule different sub-services of each service to different servers, and add a layer of load balancing or API gateway to each sub-service, it will not only increase It reduces the time and resource overhead of load balancing and API gateway forwarding, and will also cause cross-server or even cross-data center calls between sub-services between different services, which will reduce the collaborative work between sub-services. performance, thereby degrading the performance of the entire business application
[0004] From the above overview of the existing microservice scheduling methods, it can be seen that the current service scheduling methods basically consider the high availability of self-services and the high performance of services alone, and cannot effectively take into account the high availability of sub-services and the overall business application. high performance

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A service scheduling method and its implementation system based on microservice architecture
  • A service scheduling method and its implementation system based on microservice architecture
  • A service scheduling method and its implementation system based on microservice architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] A service scheduling method based on a microservice architecture. The physical resource environment implemented by the method includes several host computers. The business application to be scheduled includes several copies to be scheduled. Each copy includes several services. Includes several sub-services; specifically, figure 1 As shown, the physical resource environment includes M hosts, and the resources that each host can provide are different. Gray represents resources that have been used, and white represents resources that can be provided. The business application to be scheduled includes N service copies to be scheduled, and each copy contains the same service and sub-services, and there is an invocation relationship between the sub-services.

[0048] Including the following steps:

[0049] (1) First-level scheduling: According to the resource conditions of several host machines and the basic information of the business applications to be scheduled, the sub-se...

Embodiment 2

[0053] According to the service scheduling method based on the microservice architecture described in Embodiment 1, the difference is that:

[0054] Before step (1) is executed, initialize host information and service information of business applications;

[0055] Initialize the host machine information, including the host machine set PH and the resource amount set R that each host machine can provide, PH={PH 1 ,PH 2 ,PH 3 ,...,PH m ...,PH M}, a total of M hosts, PH m refers to the mth host computer; R indicates the quantity of quantifiable standard resources that the host computer can provide, R={R 1 , R 2 , R 3 ,...,R m ..., R M},R m refers to the amount of resources that the mth host can provide;

[0056] Initialize the service information of the business application, including the number N of copies of the business application to be scheduled, the service set S included in the business application to be scheduled, and the sub-service set S included in each servi...

Embodiment 3

[0058] According to a service scheduling method based on a microservice architecture described in Embodiment 2, the difference is that:

[0059] In step (1), according to the resource conditions of several host machines and the basic information of the business application to be scheduled, the sub-services that have calling relationships between different replicas are scheduled to the same host machine, such as figure 2 As shown, the scheduler completes the scheduling process of business application services based on information such as the resources that the host can provide, the calling relationship of each sub-service in the business application service, and the resources occupied by each sub-service, including the following steps:

[0060] Step a: Determine whether the total amount of resources that all hosts can provide can carry the business application services of all copies. If not, the scheduling fails and ends; otherwise, start scheduling and go to step b;

[0061] ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention relates to a service scheduling method based on microservice architecture and its implementation system, including: (1) First-level scheduling: according to the resource conditions of several host computers and the basic information of the business application to be scheduled, the (2) Second-level scheduling: During the operation of the business application, the calling relationship between each sub-service is counted, and periodically checked and migrated according to the calling relationship coefficient Eligible sub-services, migrate frequently called sub-services to the same host. After the two-level scheduling, the present invention ensures that the sub-services of business application services are dispatched to a suitable host machine, and finally achieves that the sub-services with calling relationships are scheduled to the same host machine as much as possible under the premise of meeting the high availability of business application services , reduce the time delay caused by cross-server and cross-region calls, and improve the performance of calls between sub-services.

Description

technical field [0001] The present invention relates to a service scheduling method of a micro-service architecture and its implementation system, more specifically, to a scheduling method and its implementation system for improving the performance of multi-service collaborative work under the premise of satisfying high availability of services under the micro-service architecture . Background technique [0002] With the continuous maturity of container virtualization technology represented by Docker and the rise of DevOps culture, the concept of microservices continues to gain popularity and is widely used in various fields. The architecture of microservices realizes the decoupling of functions and solutions by splitting traditional monolithic application services into a set of sub-services. Each sub-service can be deployed independently and with multiple copies, occupies a separate process and only completes a specific business function. By processing single application ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/455
CPCG06F9/45558
Inventor 张虎厉承轩郭莹
Owner 山东睿创教育科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products