CN112631680A - Micro-service container scheduling system, method, device and computer equipment - Google Patents

Micro-service container scheduling system, method, device and computer equipment Download PDF

Info

Publication number
CN112631680A
CN112631680A CN202011583130.4A CN202011583130A CN112631680A CN 112631680 A CN112631680 A CN 112631680A CN 202011583130 A CN202011583130 A CN 202011583130A CN 112631680 A CN112631680 A CN 112631680A
Authority
CN
China
Prior art keywords
node
node operation
container
target
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011583130.4A
Other languages
Chinese (zh)
Inventor
冯国聪
黄翔
莫剑峰
宋云奎
张乾坤
赵磊
陈英达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN202011583130.4A priority Critical patent/CN112631680A/en
Publication of CN112631680A publication Critical patent/CN112631680A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a micro-service container scheduling system, a method, a device, a computer device and a storage medium, comprising: responding to a node transfer request sent by a temporary node, and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request; acquiring node operation information of a plurality of target nodes, and acquiring node operation parameters corresponding to each target node from the node operation information; matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result. According to the method and the system, the demand information of the micro service container to be transferred on the node operation parameters is acquired from the temporary node respectively, the demand information is matched with the actual operation condition of each target node, complex operation is not required to be carried out manually, the system can automatically carry out dynamic transfer of the micro service container according to the request, and the scheduling efficiency of the micro service container is improved.

Description

Micro-service container scheduling system, method, device and computer equipment
Technical Field
The present application relates to the field of cloud and native container scheduling technologies, and in particular, to a micro-service container scheduling system, method, apparatus, computer device, and storage medium.
Background
With the development of cloud native technology, micro-services and container arrangement technology mainly based on kubernets are widely applied.
However, when containers are managed using kubernets, there are several disadvantages as follows: 1. the configuration is complex: appropriate labels need to be manually configured for all nodes in the cluster by using related commands provided by kubernets, and a large amount of tedious manual operation needs to be performed; 2. cannot be dynamically adjusted according to the service: the adjustment mode of Kubernetes is irrelevant to service and can not be dynamically changed in the operation process; 3. the configuration is single: matching can only be done through label on the node.
Therefore, with the increase of cluster scale, it is more and more difficult to use the method of manually configuring the nodes operated by the containers using kubernets, and the default scheduling algorithm cannot provide strong support for the service, so that a micro-service container scheduling mode capable of being updated more flexibly and dynamically is needed.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a micro service container scheduling system, a method, an apparatus, a computer device and a storage medium for solving the above technical problems.
A microservice container scheduling system, the system comprising: a service registration center and a container scheduling center; the service registration center is in communication connection with the container scheduling center;
the service registration center is used for receiving a node transfer request sent by a micro service container in the temporary node; acquiring a node operation demand parameter corresponding to the micro service container from the node transfer request; sending the node operation demand parameters to the container scheduling center;
the container scheduling center is used for acquiring node operation information of a plurality of target nodes; acquiring node operation parameters corresponding to the target nodes from the node operation information; and matching the node operation demand parameters with the node operation parameters, and transferring the micro service container from the temporary node to a matched target node according to a matching result.
In one embodiment, the system further comprises: a plurality of monitoring agent units; the monitoring agent unit corresponds to the target node; the monitoring agent unit is in communication connection with the container scheduling center and the target node;
the monitoring agent unit is used for acquiring the operation parameters of the target node; generating the node operation information corresponding to the target node according to the operation parameters of the target node; and sending the node operation information to the container scheduling center.
In one embodiment, the monitoring agent unit is further configured to acquire a preset node operation information reporting policy file; determining parameter items to be acquired and a reporting period according to the node operation information reporting strategy file; acquiring operation parameters corresponding to the parameter items from the target node and generating node operation information; and sending the node operation information to the container scheduling center according to the reporting period.
In one embodiment, the parameter entry includes: CPU utilization rate, memory utilization rate, disk utilization rate, node host names and node environment variables.
In one embodiment, the service registry sends the node operation demand parameter to the container scheduling center through a message queue.
A micro-service container scheduling method, the method comprising:
responding to a node transfer request sent by a temporary node, and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request;
acquiring node operation information of a plurality of target nodes, and acquiring node operation parameters corresponding to each target node from the node operation information;
matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result.
In one embodiment, the matching the node operation demand parameter with the plurality of node operation parameters to obtain a matching result includes:
calculating matching coefficients between the node operation demand parameters and the plurality of node operation parameters according to a preset weight mapping table;
and taking the target node corresponding to the node operation parameter with the highest matching coefficient as a matching result.
A microservice container scheduling apparatus, the apparatus comprising:
the request response module is used for responding to a node transfer request sent by a temporary node and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request;
the system comprises a parameter acquisition module, a parameter selection module and a parameter selection module, wherein the parameter acquisition module is used for acquiring node operation information of a plurality of target nodes and acquiring node operation parameters corresponding to each target node from the node operation information;
the parameter matching module is used for matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
responding to a node transfer request sent by a temporary node, and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request;
acquiring node operation information of a plurality of target nodes, and acquiring node operation parameters corresponding to each target node from the node operation information;
matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
responding to a node transfer request sent by a temporary node, and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request;
acquiring node operation information of a plurality of target nodes, and acquiring node operation parameters corresponding to each target node from the node operation information;
matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result.
The micro-service container scheduling system, method, device, computer equipment and storage medium comprises: responding to a node transfer request sent by a temporary node, and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request; acquiring node operation information of a plurality of target nodes, and acquiring node operation parameters corresponding to each target node from the node operation information; matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result. According to the method and the system, the demand information of the micro service container to be transferred on the node operation parameters is acquired from the temporary node respectively, the demand information is matched with the actual operation condition of each target node, the micro service container is transferred to the appropriate target node, the manual operation is not needed, the system can automatically carry out dynamic transfer of the micro service container according to the request, and the efficiency of micro service container scheduling is improved.
Drawings
FIG. 1 is a diagram of an application environment for a microservice container scheduling system in one embodiment;
FIG. 2 is a flow diagram that illustrates a method for microservice container scheduling in accordance with one embodiment;
FIG. 3 is a flowchart illustrating the matching of a node operational requirement parameter with a plurality of node operational parameters according to one embodiment;
FIG. 4 is a block diagram of an embodiment of a microservice container scheduler;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The micro-service container scheduling system provided by the application can be applied to the application environment shown in fig. 1. Wherein the service registry 11 communicates with the container scheduling center 12 via a network. The service registration center 11 is used for receiving the node transfer request sent by the micro service container 131 in the temporary node 13; the service registration center 11 acquires a node operation demand parameter corresponding to the micro service container from the node transfer request; the service registration center 11 sends the node operation requirement parameters to the container scheduling center 12; the container scheduling center 12 is used for acquiring node operation information of a plurality of target nodes 14; the container scheduling center 12 acquires node operation parameters corresponding to each target node 14 from the node operation information; the container scheduling center 12 matches the node operation demand parameters with the node operation parameters, and transfers the micro service container 131 from the temporary node 13 to the matched target node 14 according to the matching result.
The service registry 11 and the container scheduling center 12 may be implemented by separate servers or a server cluster composed of a plurality of servers.
In one embodiment, the service registry is used for receiving a node transfer request sent by a micro service container in the temporary node; acquiring a node operation demand parameter corresponding to the micro service container from the node transfer request; and sending the node operation demand parameters to a container scheduling center.
The temporary node is a node for temporarily storing and operating the micro-service container in the system; the temporary nodes correspond to target nodes, the target nodes are nodes capable of normally operating the micro service container, and the number of the temporary nodes is generally smaller than that of the target nodes. The temporary node may be time-efficient, i.e., temporarily operating for a certain time and losing effectiveness, disconnecting from the service registry.
The service registration center is responsible for information maintenance of the micro-service container, such as micro-service name, micro-service state and the like. The service registry is a key component when the micro-service architecture is applied to perform micro-service administration, and generally has functions including: service registration and discovery, distributed configuration, etc. Service registries typically employ highly available cluster deployments. The method for scheduling the micro-service container and the scheduling system multiplex the capacity of the service registration center, utilize the distributed configuration function in the service registration center, when the service is registered in the registration center, store the requirement of the service on the node operation parameter, namely the node operation demand parameter, in the distributed configuration of the service registration center in the form of Key-Value, and dynamically modify the operation parameters by calling REST API (representation layer state transfer-application program interface) of the service registration center.
Specifically, the node transfer request carries identification information of the micro service container to be transferred, and the service registration center can determine the micro service container object to be transferred, the temporary node where the micro service container is located, the operating parameter requirement of the target node, and the like according to the identification information.
The node operation demand parameters, for example, require that the target node CPU utilization should be lower than 20%, the memory utilization should be lower than 50%, and the like, and also include the logical relationship and priority between rule items; if the node transfer request does not contain the node operation requirement parameter, the container scheduling center selects the target node by using a default scheduling algorithm.
In addition, after the micro service container of the temporary node is registered, the state is "pre-boot", and the micro service container cannot be discovered by other services. Since these services are first deployed in the system, there is no information for the service in the container scheduling center. And persistently storing the node operation parameter requirement information of the service configuration into a service and node parameter requirement mapping table.
In one embodiment, the container scheduling center is used for acquiring node operation information of a plurality of target nodes; acquiring node operation parameters corresponding to each target node from the node operation information; and matching the node operation demand parameters with the node operation parameters, and transferring the micro-service container from the temporary node to the matched target node according to the matching result.
The container scheduling center is used for acquiring the node operation demand parameters of each micro-service container from the service registration center in real time through REST API; specifically, a message is sent to a message queue in an active polling mode or by expanding the capability of a service registration center every time when the operation parameters of the nodes are added or modified, and a container scheduling center is used as a message consumer to asynchronously obtain the message. The container scheduling center needs to persist the information obtained from the registry, and mainly maintains a mapping table serving the operation parameters of the corresponding nodes, and a requirement of the operation parameters of each service with version information. To improve access efficiency, the container scheduling center may cache such persistent information. If the service is found not to set the corresponding node operation parameter requirement, the container scheduling center uses a kubernets (application for managing containerization on a plurality of hosts in the cloud platform) default scheduling algorithm to complete node selection. On the other hand, the container scheduling center receives the current operation parameters of the nodes reported by the monitoring agents on the target nodes. The container scheduling center may issue configurations, such as parameters to be collected and collection periods, to the monitoring agent. The operation parameters reported by the monitoring agent can be stored in the container dispatching center without persistence.
The step of transferring the micro service container from the temporary node to the matching target node may be to move the micro service container from the original temporary node to the selected target node after determining the matching target node. The container dispatching center can configure a migration strategy, the strategy can be divided into a global strategy and a multi-stage strategy aiming at a single service, and the final strategy is selected by using priority. Migration policies include, but are not limited to: and stopping the old container, rolling the container migration and the like after the new container is started, so as to ensure the continuity of the service and the availability of the service. After deployment is completed, the service in the service registry is updated to a "started" state, and the service can be discovered by other services.
The above-mentioned micro-service container scheduling system includes: responding to a node transfer request sent by a temporary node, and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request; acquiring node operation information of a plurality of target nodes, and acquiring node operation parameters corresponding to each target node from the node operation information; matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result. According to the method and the system, the demand information of the micro service container to be transferred on the node operation parameters is acquired from the temporary node respectively, the demand information is matched with the actual operation condition of each target node, the micro service container is transferred to the appropriate target node, the manual operation is not needed, the system can automatically carry out dynamic transfer of the micro service container according to the request, and the efficiency of micro service container scheduling is improved.
In one embodiment, the system further comprises: a plurality of monitoring agent units; the monitoring agent unit corresponds to the target node; the monitoring agent unit is in communication connection with the container scheduling center and the target node; the monitoring agent unit is used for acquiring the operation parameters of the target node; generating node operation information corresponding to the target node according to the operation parameters of the target node; and sending the node operation information to a container scheduling center.
Specifically, the monitoring agent unit may be a client installed on all target nodes, and is responsible for acquiring and collecting relevant configuration information from the container scheduling center, performing parameter collection according to the configuration information, and reporting relevant parameter information of the target nodes in a period to the container scheduling center according to a collection period.
In one embodiment, the monitoring agent unit is further configured to acquire a preset node operation information reporting policy file; determining parameter items to be acquired and a reporting period according to the node operation information reporting strategy file; acquiring operation parameters corresponding to the parameter items from the target node and generating node operation information; and sending the node operation information to a container scheduling center according to the reporting period.
In one embodiment, the parameter entry includes: CPU utilization rate, memory utilization rate, disk utilization rate, node host names and node environment variables.
The CPU utilization rate refers to the CPU resource occupied by the running service on the target node, and the higher the utilization rate is, the more busy the target node is; the memory usage rate refers to the memory consumed by the running service on the target node; the disk utilization rate refers to a storage space occupied by a service running on a target node; the host name of the node, the environment variable of the node and the self attribute of the target node are related.
It should be noted that the CPU utilization, the memory utilization, the disk utilization, the node host name, and the node environment variable are only a part of the parameter entries, and do not represent all of the parameter entries. Besides the above parameter entries, node running time, node starting time, node exception information, etc. may be included.
In one embodiment, the service registry sends the node operation requirement parameters to the container scheduling center through a message queue.
Specifically, the node operation information reporting policy file is a specific specification for reporting the node operation information by the monitoring single unit, and includes a reported parameter type, a reported frequency, a reported mode, a data format of the reported information, and the like.
In one embodiment, the container scheduling center obtains the parameter requirements of all services for the node from the service registry. If the active polling acquisition method is used, all the service information needs to be acquired. If a change event acquisition mode based on the message center is used, only the changed configuration information needs to be pushed from the registration center.
In one embodiment, as shown in fig. 2, a micro service container scheduling method applied to a micro service container scheduling system is provided, including:
step 21, responding to a node transfer request sent by the temporary node, and acquiring a node operation demand parameter corresponding to the micro service container to be transferred from the node transfer request;
step 22, acquiring node operation information of a plurality of target nodes, and acquiring node operation parameters corresponding to each target node from the node operation information;
step 23, matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result.
Specifically, the demand information of the micro service container to be transferred on the node operation parameters is obtained from the temporary node, the demand information is matched with the actual operation condition of each target node, the micro service container is transferred to the appropriate target node, manual complex operation is not needed, the system can automatically dynamically transfer the micro service container according to the request, and the efficiency of micro service container scheduling is improved.
In one embodiment, as shown in fig. 3, matching the node operation demand parameter with a plurality of node operation parameters to obtain a matching result includes:
step 31, calculating matching coefficients between the node operation demand parameters and the plurality of node operation parameters according to a preset weight mapping table;
and step 32, taking the target node corresponding to the node operation parameter with the highest matching coefficient as a matching result.
The preset weight mapping table records the node operation demand parameters and the weight calculation values of all parameter entries in the node operation parameters. For example, the weight calculation value of the operating parameter A is 5, the weight calculation value of the operating parameter B is 3, and the like; the weight calculation scores of all the parameter items can be calculated through a preset weight mapping table, the weight calculation scores are added, and the score or the ratio of the weight sum is used as a matching coefficient to be matched with the target node.
Compared with the kubernets scheduling method which is widely used at present, the micro-service container scheduling method can parameterize the requirement of micro-service on the nodes and add the parameterized requirement to the registration center by utilizing the service registration center in the micro-service management technology. And simultaneously dividing the nodes in the cluster into a small number of temporary nodes and other target nodes. The container scheduling center compares the operation parameters reported by each target node with the requirements of each service in the service registration center on the node parameters, and then moves the container from one node to the target node meeting the requirements. The method is simple in configuration, can be dynamically adjusted, has a certain management function, and provides powerful support for the micro-service architecture deployed by using the container.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 4, there is provided a micro service container scheduling apparatus including: a request response module 41, a parameter obtaining module 42 and a parameter matching module 43, wherein:
a request response module 41, configured to respond to a node transfer request sent by a temporary node, and obtain a node operation requirement parameter corresponding to a micro service container to be transferred from the node transfer request;
a parameter obtaining module 42, configured to obtain node operation information of a plurality of target nodes, and obtain node operation parameters corresponding to each target node from the node operation information;
the parameter matching module 43 is configured to match the node operation demand parameter with a plurality of node operation parameters to obtain a matching result; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result.
For specific limitations of the micro service container scheduling apparatus, reference may be made to the above limitations of the micro service container scheduling method, which is not described herein again. The modules in the micro service container scheduling apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is for storing microservice container scheduling data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a microservice container scheduling method.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
responding to a node transfer request sent by a temporary node, and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request;
acquiring node operation information of a plurality of target nodes, and acquiring node operation parameters corresponding to each target node from the node operation information;
matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: calculating matching coefficients between the node operation demand parameters and the plurality of node operation parameters according to a preset weight mapping table; and taking the target node corresponding to the node operation parameter with the highest matching coefficient as a matching result.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
responding to a node transfer request sent by a temporary node, and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request;
acquiring node operation information of a plurality of target nodes, and acquiring node operation parameters corresponding to each target node from the node operation information;
matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result.
In one embodiment, the computer program when executed by the processor further performs the steps of: calculating matching coefficients between the node operation demand parameters and the plurality of node operation parameters according to a preset weight mapping table; and taking the target node corresponding to the node operation parameter with the highest matching coefficient as a matching result.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A microservice container scheduling system, the system comprising: a service registration center and a container scheduling center; the service registration center is in communication connection with the container scheduling center;
the service registration center is used for receiving a node transfer request sent by a micro service container in the temporary node; acquiring a node operation demand parameter corresponding to the micro service container from the node transfer request; sending the node operation demand parameters to the container scheduling center;
the container scheduling center is used for acquiring node operation information of a plurality of target nodes; acquiring node operation parameters corresponding to the target nodes from the node operation information; and matching the node operation demand parameters with the node operation parameters, and transferring the micro service container from the temporary node to a matched target node according to a matching result.
2. The microservice container scheduling system of claim 1, further comprising: a plurality of monitoring agent units; the monitoring agent unit corresponds to the target node; the monitoring agent unit is in communication connection with the container scheduling center and the target node;
the monitoring agent unit is used for acquiring the operation parameters of the target node; generating the node operation information corresponding to the target node according to the operation parameters of the target node; and sending the node operation information to the container scheduling center.
3. The micro-service container scheduling system of claim 2, wherein the monitoring agent unit is further configured to obtain a preset node operation information reporting policy file; determining parameter items to be acquired and a reporting period according to the node operation information reporting strategy file; acquiring operation parameters corresponding to the parameter items from the target node and generating node operation information; and sending the node operation information to the container scheduling center according to the reporting period.
4. The microservice container scheduling system of claim 3, wherein the parameter entry comprises: CPU utilization rate, memory utilization rate, disk utilization rate, node host names and node environment variables.
5. The micro-service container scheduling system of claim 1, wherein the service registry sends the node operational requirement parameter to the container scheduling center through a message queue.
6. A method for scheduling microservice containers, the method comprising:
responding to a node transfer request sent by a temporary node, and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request;
acquiring node operation information of a plurality of target nodes, and acquiring node operation parameters corresponding to each target node from the node operation information;
matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result.
7. The method of claim 6, wherein said matching said node operational requirement parameter to a plurality of said node operational parameters to obtain a matching result comprises:
calculating matching coefficients between the node operation demand parameters and the plurality of node operation parameters according to a preset weight mapping table;
and taking the target node corresponding to the node operation parameter with the highest matching coefficient as a matching result.
8. A microservice container scheduling apparatus, the apparatus comprising:
the request response module is used for responding to a node transfer request sent by a temporary node and acquiring a node operation demand parameter corresponding to a micro service container to be transferred from the node transfer request;
the system comprises a parameter acquisition module, a parameter selection module and a parameter selection module, wherein the parameter acquisition module is used for acquiring node operation information of a plurality of target nodes and acquiring node operation parameters corresponding to each target node from the node operation information;
the parameter matching module is used for matching the node operation demand parameters with a plurality of node operation parameters to obtain matching results; and transferring the micro service container to be transferred from the temporary node to the matched target node according to the matching result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 6 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 6 to 7.
CN202011583130.4A 2020-12-28 2020-12-28 Micro-service container scheduling system, method, device and computer equipment Pending CN112631680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011583130.4A CN112631680A (en) 2020-12-28 2020-12-28 Micro-service container scheduling system, method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011583130.4A CN112631680A (en) 2020-12-28 2020-12-28 Micro-service container scheduling system, method, device and computer equipment

Publications (1)

Publication Number Publication Date
CN112631680A true CN112631680A (en) 2021-04-09

Family

ID=75325966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011583130.4A Pending CN112631680A (en) 2020-12-28 2020-12-28 Micro-service container scheduling system, method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN112631680A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783570A (en) * 2021-01-19 2021-05-11 中原银行股份有限公司 Application migration method, system and medium based on service grid
CN113382077A (en) * 2021-06-18 2021-09-10 广西电网有限责任公司 Micro-service scheduling method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677983A (en) * 2012-09-20 2014-03-26 三亚中兴软件有限责任公司 Scheduling method and device of application
CN105959138A (en) * 2016-04-29 2016-09-21 深圳前海大数点科技有限公司 Micro-service dynamic disposition system and method based on cloud calculation
CN109656723A (en) * 2019-03-13 2019-04-19 联想(北京)有限公司 Container resource regulating method and device
CN111309447A (en) * 2020-03-16 2020-06-19 优刻得科技股份有限公司 Container scheduling method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677983A (en) * 2012-09-20 2014-03-26 三亚中兴软件有限责任公司 Scheduling method and device of application
CN105959138A (en) * 2016-04-29 2016-09-21 深圳前海大数点科技有限公司 Micro-service dynamic disposition system and method based on cloud calculation
CN109656723A (en) * 2019-03-13 2019-04-19 联想(北京)有限公司 Container resource regulating method and device
CN111309447A (en) * 2020-03-16 2020-06-19 优刻得科技股份有限公司 Container scheduling method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783570A (en) * 2021-01-19 2021-05-11 中原银行股份有限公司 Application migration method, system and medium based on service grid
CN113382077A (en) * 2021-06-18 2021-09-10 广西电网有限责任公司 Micro-service scheduling method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10713080B1 (en) Request-based virtual machine memory transitioning in an on-demand network code execution system
CN112118565B (en) Multi-tenant service gray level publishing method, device, computer equipment and storage medium
CN108418862B (en) Micro-service management method and system based on artificial intelligence service cloud platform
CN115328663B (en) Method, device, equipment and storage medium for scheduling resources based on PaaS platform
US20200364608A1 (en) Communicating in a federated learning environment
US11231955B1 (en) Dynamically reallocating memory in an on-demand code execution system
US8104038B1 (en) Matching descriptions of resources with workload requirements
CN109150987B (en) Two-layer container cluster elastic expansion method based on host layer and container layer
CN111880936A (en) Resource scheduling method and device, container cluster, computer equipment and storage medium
US20050132379A1 (en) Method, system and software for allocating information handling system resources in response to high availability cluster fail-over events
CN112231049A (en) Computing equipment sharing method, device, equipment and storage medium based on kubernets
WO2014101475A1 (en) Cloud platform application deployment method and apparatus
CN112910723B (en) Edge terminal management method, device, equipment and storage medium
CN113645262A (en) Cloud computing service system and method
CN112631680A (en) Micro-service container scheduling system, method, device and computer equipment
CN108900435B (en) Service deployment method, device and computer storage medium
CN112463290A (en) Method, system, apparatus and storage medium for dynamically adjusting the number of computing containers
CN112698952A (en) Unified management method and device for computing resources, computer equipment and storage medium
CN112527507A (en) Cluster deployment method and device, computer equipment and storage medium
CN116708266A (en) Cloud service topological graph real-time updating method, device, equipment and medium
CN113382077B (en) Micro-service scheduling method, micro-service scheduling device, computer equipment and storage medium
CN115167992A (en) Task processing method, system, device, server, medium, and program product
CN113485830A (en) Micro-service automatic capacity expansion method for power grid monitoring system
CN112565475B (en) Ip address allocation method for adding new node in container cluster service layer
CN112532758B (en) Method, device and medium for establishing network edge computing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230817

Address after: 518000 building 501, 502, 601, 602, building D, wisdom Plaza, Qiaoxiang Road, Gaofa community, Shahe street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: China Southern Power Grid Digital Platform Technology (Guangdong) Co.,Ltd.

Address before: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province

Applicant before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

TA01 Transfer of patent application right