Heterogeneous container cloud platform resource management method, system and storage medium

By inserting monitoring nodes into the heterogeneous container cloud platform and using neural network models to predict task processing speeds and construct virtual blocks, it solves the problem of users having difficulty understanding task progress and improves the information transparency and user experience of the cloud platform.

CN118656176BActive Publication Date: 2024-10-29LANYUN NET
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411132079.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-10-29
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

The existing container cloud platform is difficult to meet diverse application scenarios and user needs. It is difficult for users to understand the progress of task completion, and the information transparency is low, which affects the user experience.

Method used

Insert monitoring nodes into the heterogeneous container cloud platform, obtain the operating parameters and factory parameters of the container, build virtual blocks, predict task processing speed through the neural network model, adjust the virtual blocks to improve information transparency, and display the working status of the cloud platform.

Benefits of technology

Through the combination of monitoring nodes and neural network models, accurate and intuitive display of the working status of the cloud platform is achieved, information transparency is improved, and user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656176B_ABST
    Figure CN118656176B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of cloud platform management, and specifically discloses a heterogeneous container cloud platform resource management method, system and storage medium. The method comprises obtaining operating parameters of heterogeneous containers based on the monitoring node, and constructing virtual blocks according to the operating parameters and factory parameters of the containers; obtaining local task processing speeds of heterogeneous containers based on the monitoring node, and adjusting virtual blocks according to the local task processing speeds; counting virtual blocks corresponding to all heterogeneous containers, and when a cloud task sent by any container is received, selecting and displaying a marking area in the counted virtual blocks based on the cloud task, and feeding back to the container sending the cloud task; the present invention inserts a monitoring node into each component container of the cloud platform, and the monitoring node obtains the operating parameters of the container and displays them in the form of a matrix. In addition, the task processing speed of the container is also obtained, and the display content is adjusted, so as to accurately and intuitively display the working status of the cloud platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cloud platform management, and in particular to a heterogeneous container cloud platform resource management method, system and storage medium. Background Art

[0002] Containers are a lightweight virtualization technology that aims to create an "isolated environment" just like virtual machines. Containers allow developers to encapsulate the various applications and application dependency files they need into image files, and then install and run them on any physical device (Linux devices or Windows devices, etc.) to achieve virtualization, completely separating applications from underlying devices, and allowing them to be flexibly migrated and deployed between physical machines, freeing operation and maintenance engineers from tedious environment deployment, greatly improving work efficiency, and reducing potential risks during deployment.

[0003] With the popularity of containers, cloud platforms composed of containers have gradually become a more common cloud computing task processing solution. The current container cloud platforms often only support a single container engine, which is difficult to meet diverse application scenarios and user needs. Heterogeneous container cloud platforms can support a variety of different container engines, including Docker and Rocket, and can provide users with more flexible and reliable cloud services.

[0004] After the heterogeneous cloud platform receives the cloud computing tasks uploaded by the user, it will split the tasks and assign them to different containers for processing. In this process, the working status of each container belongs to the underlying information. It is difficult for users to understand the progress of their task completion, and the information transparency is not high. How to improve the information transparency of the cloud service process and optimize the user experience is the technical problem that the technical solution of the present invention aims to solve. Summary of the invention

[0005] The purpose of the present invention is to provide a heterogeneous container cloud platform resource management method, system and storage medium to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A heterogeneous container cloud platform resource management method, the method comprising:

[0008] When receiving a cloud service request, it sends a node insertion request to the heterogeneous container. When receiving the authorization information of the container response, it inserts the monitoring node into the container.

[0009] Acquire the operating parameters of the heterogeneous container based on the monitoring node, and construct a virtual block according to the operating parameters and the factory parameters of the container; the virtual block is two-dimensional data;

[0010] Acquiring a local task processing speed of the heterogeneous container based on the monitoring node, and adjusting the virtual block according to the local task processing speed;

[0011] Count the virtual blocks corresponding to all heterogeneous containers. When receiving a cloud task sent by any container, select and display the marked area in the counted virtual blocks based on the cloud task, and feed it back to the container that sent the cloud task.

[0012] Among them, the adjustment process of the virtual block is proportional to the prediction accuracy of the local task processing speed; the prediction process of the local task processing speed is realized by a trained neural network model, the input of the neural network model is the task amount, and the output is the processing speed.

[0013] As a further solution of the present invention: when receiving a cloud service request, sending a node insertion request to a heterogeneous container, and when receiving authorization information of a container response, inserting a monitoring node into the container comprises:

[0014] Opening a service access port, and receiving a cloud service request based on the service access port;

[0015] Send a node insertion request containing the monitoring scope to the container that sends the cloud service request;

[0016] When receiving the authorization information of the container response, insert the monitoring node into the container and synchronously establish a monitoring database corresponding to the monitoring node;

[0017] Open the data reading permission of the monitoring database to the container;

[0018] During the operation of the monitoring node, the monitoring data is backed up in real time to the monitoring database. The container constructs an address distribution map according to the addresses of each monitoring data in the monitoring database, compares the address distribution map with the monitoring range, determines whether to revoke the authority and generates a warning message.

[0019] As a further solution of the present invention: the step of acquiring the operating parameters of the heterogeneous container based on the monitoring node and constructing a virtual block according to the operating parameters and the factory parameters of the container includes:

[0020] Obtaining a model of a heterogeneous container, and querying factory parameters according to the model; the factory parameters include the number of thread blocks and the number of thread warps in each thread block;

[0021] constructing a matrix according to the number of thread blocks and the number of thread warps in each thread block;

[0022] Randomly select a thread warp, obtain an operation signal of the thread warp selected in a unit time based on a monitoring node, and determine a filling value according to the operation signal;

[0023] The fill values ​​are randomly filled into the constructed matrix to obtain virtual blocks per unit time.

[0024] As a further solution of the present invention, the step of randomly selecting a thread warp, obtaining an operation signal of the thread warp selected within a unit time based on a monitoring node, and determining a fill value according to the operation signal comprises:

[0025] Randomly select a thread bundle, and obtain the resource consumption of various resources by each thread in the thread bundle within a preset time period based on the monitoring node;

[0026] Convert all resource consumptions into a format to obtain a comprehensive consumption, and determine a filling value based on the comprehensive consumption;

[0027] The step of randomly filling the fill value into the constructed matrix comprises:

[0028] Randomly select a fill position in the matrix, read the fill value, fill it to the selected fill position, and select repeatedly until all fill values ​​are filled in the matrix.

[0029] As a further solution of the present invention: the step of obtaining the local task processing speed of the heterogeneous container based on the monitoring node and adjusting the virtual block according to the local task processing speed includes:

[0030] Acquire a processing task package of a container in real time based on the monitoring node;

[0031] Get the data volume of each task unit in the processing task package and get the data volume array;

[0032] Get the input time and output time of the processing task package, calculate the total data volume from the data volume array, calculate the time difference between the output time and the input time, and divide the total data volume by the time difference to get the local task processing speed;

[0033] Pre-count the data volume array of the processing task package and the local task processing speed under normal conditions, create a sample set, and train the neural network model;

[0034] Input the data volume array of the current processing task package into the trained neural network model to obtain the predicted processing speed;

[0035] The difference between the predicted processing speed and the local task processing speed is calculated, and the virtual block is adjusted according to the difference.

[0036] As a further solution of the present invention: the calculating the difference between the predicted processing speed and the local task processing speed, and adjusting the content of the virtual block according to the difference comprises:

[0037] ; In the formula, is the row and column position in the virtual block The adjusted value at and The default row and column positions The size of the rectangle centered at is the value at any row or column position in the rectangle, is the difference between the predicted processing speed and the local task processing speed; yes The exponential function of .

[0038] As a further solution of the present invention, the step of counting virtual blocks corresponding to all heterogeneous containers, and when receiving a cloud task sent by any container, selecting and displaying a marked area in the counted virtual blocks based on the cloud task, and feeding back to the container sending the cloud task includes:

[0039] Count the virtual blocks corresponding to all heterogeneous containers at the same time;

[0040] Obtain and count the rated resources of all heterogeneous containers to obtain the rated virtual blocks;

[0041] When receiving a cloud task sent by any container, the resource consumption per unit time is calculated according to the total data volume and required processing time of the cloud task, and the calculated resource consumption is converted into the required value;

[0042] Calculate the difference virtual block between the rated virtual block and the virtual block, traverse the difference virtual block according to the required value, select and display the marked area, and feed it back to the container that sends the cloud task.

[0043] The technical solution of the present invention also provides a heterogeneous container cloud platform resource management system, the system comprising:

[0044] The node insertion module is used to send a node insertion request to the heterogeneous container when receiving a cloud service request, and insert a monitoring node into the container when receiving authorization information responded by the container;

[0045] A virtual block construction module, used to obtain the operating parameters of the heterogeneous container based on the monitoring node, and to construct a virtual block according to the operating parameters and the factory parameters of the container; the virtual block is two-dimensional data;

[0046] A virtual block adjustment module, configured to obtain a local task processing speed of a heterogeneous container based on the monitoring node, and adjust the virtual block according to the local task processing speed;

[0047] The marking feedback module is used to count the virtual blocks corresponding to all heterogeneous containers. When receiving a cloud task sent by any container, the marking area is selected and displayed in the counted virtual blocks based on the cloud task, and the marking area is fed back to the container that sent the cloud task.

[0048] Among them, the adjustment process of the virtual block is proportional to the prediction accuracy of the local task processing speed; the prediction process of the local task processing speed is realized by a trained neural network model, the input of the neural network model is the task amount, and the output is the processing speed.

[0049] As a further solution of the present invention: the node insertion module includes:

[0050] A request receiving unit, configured to open a service access port and receive a cloud service request based on the service access port;

[0051] A request sending unit, used to send a node insertion request containing a monitoring range to a container sending a cloud service request;

[0052] An insertion execution unit is used to insert a monitoring node into the container and synchronously establish a monitoring database corresponding to the monitoring node when receiving authorization information responded by the container;

[0053] A permission granting unit, used to grant data reading permission to the container for monitoring database;

[0054] During the operation of the monitoring node, the monitoring data is backed up in real time to the monitoring database. The container constructs an address distribution map according to the addresses of each monitoring data in the monitoring database, compares the address distribution map with the monitoring range, determines whether to revoke the authority and generates a warning message.

[0055] The technical solution of the present invention also provides a storage medium, in which at least one program code is stored. When the program code is loaded and executed by a processor, the heterogeneous container cloud platform resource management method is implemented.

[0056] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention inserts a monitoring node into each component container of a heterogeneous cloud platform, synchronously configures and inserts a data processing model according to the distribution information of the heterogeneous containers, and after unifying the computer tasks, the monitoring node obtains the operating parameters of the container and displays them in the form of a matrix. On this basis, the task processing speed of the container is also obtained, and the display content is adjusted, so as to accurately and intuitively display the working status of the cloud platform and greatly improve transparency. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.

[0058] Figure 1 The overall flow chart of the resource management method for heterogeneous container cloud platform is as follows.

[0059] Figure 2 This is a structural block diagram of the heterogeneous container cloud platform resource management system. DETAILED DESCRIPTION

[0060] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0061] Figure 1 The following is a general flow chart of a heterogeneous container cloud platform resource management method. In an embodiment of the present invention, a heterogeneous container cloud platform resource management method includes:

[0062] Step S100: When receiving a cloud service request, a node insertion request is sent to a heterogeneous container, and when authorization information of a container response is received, a monitoring node is inserted into the container;

[0063] Step S200: acquiring the operating parameters of the heterogeneous container based on the monitoring node, and constructing a virtual block according to the operating parameters and the factory parameters of the container; the virtual block is two-dimensional data;

[0064] Step S300: obtaining a local task processing speed of a heterogeneous container based on the monitoring node, and adjusting a virtual block according to the local task processing speed;

[0065] Step S400: Count the virtual blocks corresponding to all heterogeneous containers. When receiving a cloud task sent by any container, select and display a marked area in the counted virtual blocks based on the cloud task, and feed it back to the container that sent the cloud task.

[0066] Among them, the adjustment process of the virtual block is proportional to the prediction accuracy of the local task processing speed; the prediction process of the local task processing speed is realized by a trained neural network model, the input of the neural network model is the task amount, and the output is the processing speed.

[0067] The technical solution of the present invention is a cloud computing platform for providing services to multiple containers, which are also components of the cloud computing platform; specifically, when a container uploads a task that needs to be processed in the cloud, the application will select some idle containers from the containers connected to the cloud computing platform and provide feedback to the container that sent the task.

[0068] In the above process, to determine whether the container is idle, it is necessary to monitor its process, which involves the running information of the container and can only be performed with permission. The permission acquisition process generally occurs in the access stage. When a cloud service request is received (indicating that it is willing to be a member of the cloud service platform and can use cloud computing services in subsequent processes), a node insertion request is sent to the container. When the authorization information of the container response is received, the monitoring node is inserted into the container.

[0069] The monitoring node obtains the operating parameters of the container in real time. The operating parameters are generally the operating parameters per unit time, which represent the resource occupancy rate of the container, and then it can be determined how much workload can be completed. These workloads are the available resources to complete the cloud computing tasks. The existing operating parameters are some percentage values, which are not intuitive. The present application provides a more intuitive solution, which converts the operating parameters into two-dimensional data based on the factory parameters of the container, called virtual blocks. The two-dimensional data can be understood as an image, which is very intuitive.

[0070] Furthermore, the above content provides a virtual block construction solution based on container operating parameters, which is a microscopic operating parameter display process, and is more susceptible to underlying fluctuations. For this, the present application also introduces a macro judgment solution, that is, obtaining the processing speed of the container when processing local tasks. The processing speed can reflect the performance of the container from a macro perspective (the performance of the container will decrease slightly after working for a long time), and then adjust the virtual block.

[0071] After converting the running status of each container into two-dimensional data (virtual blocks), the virtual blocks are spliced ​​together to reflect the running status of all containers. When a cloud task sent by any container is received, the spliced ​​virtual blocks can quickly query the free area, read the container corresponding to the free area, and send the cloud task to the read container.

[0072] It should be noted that the commonly used scenario of this application is the image processing cloud platform, in which the containers are mostly processors for image processing, such as virtualized GPUs. For ease of understanding, the container can be limited to GPUs.

[0073] In some examples of the technical solution of the present invention, step S100 is specifically defined, and when a cloud service request is received, a node insertion request is sent to a heterogeneous container, and when authorization information of a container response is received, the step of inserting a monitoring node in the container includes:

[0074] Opening a service access port, and receiving a cloud service request based on the service access port;

[0075] Send a node insertion request containing the monitoring scope to the container that sends the cloud service request;

[0076] When receiving the authorization information of the container response, insert the monitoring node into the container and synchronously establish a monitoring database corresponding to the monitoring node;

[0077] Allow the container to read data from the monitoring database.

[0078] The above content specifically limits the permission acquisition process, opens the service access port, and receives a cloud service request based on the service access port, indicating that a container service provider wants to use the cloud service provided by this application. At this time, the execution subject of this method sends a node insertion request containing a monitoring range to the container, asking whether the monitoring node can be inserted. When the authorization information of the container response is received, it means that the monitoring node can be inserted. At this time, the monitoring node is inserted into the container, and a monitoring database corresponding to the monitoring node is established.

[0079] It should be noted that during the working process of the monitoring node, the container has the authority to obtain, that is, during the working process of the monitoring node, the monitoring data is backed up to the monitoring database in real time. The container builds an address distribution map according to the address of each monitoring data in the monitoring database, compares the address distribution map with the monitoring range, determines whether to revoke the authority and generates a warning message.

[0080] The meaning of the above content is that the monitoring process of the monitoring node must be guaranteed to be within the monitoring range. If it exceeds the range, the authority will be revoked and a warning message will be generated. The method for judging whether the monitoring process is within the monitoring range is to use the address comparison method to count all addresses and obtain an address distribution map. The address distribution map is similar to a histogram. It is sufficient to judge whether the horizontal axis in the address distribution map exceeds the monitoring range.

[0081] The advantage of using an address distribution map is that some allowable amounts can be set. For example, if the monitoring behavior exceeds the monitoring range very rarely, it can be considered as not exceeding the range.

[0082] In an example of the technical solution of the present invention, the step of acquiring the operating parameters of the heterogeneous container based on the monitoring node and constructing a virtual block according to the operating parameters and the factory parameters of the container includes:

[0083] Obtaining a model of a heterogeneous container, and querying factory parameters according to the model; the factory parameters include the number of thread blocks and the number of thread warps in each thread block;

[0084] constructing a matrix according to the number of thread blocks and the number of thread warps in each thread block;

[0085] Randomly select a thread warp, obtain an operation signal of the thread warp selected in a unit time based on a monitoring node, and determine a filling value according to the operation signal;

[0086] The fill values ​​are randomly filled into the constructed matrix to obtain virtual blocks per unit time.

[0087] The model of the container is obtained, and the number of thread blocks and the number of thread warps in each thread block are queried according to the model. These are inherent data of the container and can be directly queried.

[0088] A matrix is ​​constructed according to the number of thread blocks and the number of thread warps in each thread block. The specific process is: for each thread block, a matrix is ​​determined by the number of thread warps in the thread block, and then the matrices corresponding to multiple thread blocks are concatenated to obtain an overall matrix as the final constructed matrix.

[0089] Then, a thread bundle is randomly selected, and the running signal of the thread bundle selected in the unit time is obtained based on the monitoring node. The filling value is determined according to the running signal, and the filling value is randomly filled into the constructed matrix to obtain the virtual block in the unit time. This is a two-step random process, and its purpose is to fill the value in the matrix. The function of randomly selecting thread bundles is to reduce the monitoring amount, and the function of random filling is to improve data security (the running status of each thread of the container cannot be restored from the matrix).

[0090] Specifically, the step of randomly selecting a thread warp, obtaining a running signal of the thread warp selected in a unit time based on a monitoring node, and determining a filling value according to the running signal includes:

[0091] Randomly select a thread bundle, and obtain the resource consumption of various resources by each thread in the thread bundle within a preset time period based on the monitoring node;

[0092] Convert all resource consumptions into a format to obtain a comprehensive consumption, and determine a filling value based on the comprehensive consumption;

[0093] The above content describes in detail the generation process of the filling value. A thread bundle is randomly selected, and the resource consumption of various resources of each thread in the thread bundle within a preset time period is obtained based on the monitoring node, such as video memory occupancy, container operating frequency and fan speed. The data formats of different resource consumptions are different. They can only be superimposed after the format is unified. The simplest format unification solution is: determine the unit price of each resource in advance, convert all resource consumptions into prices as comprehensive consumption, and determine the filling value based on the comprehensive consumption; the filling value is proportional to the comprehensive consumption, and the specific relationship is not limited. What needs to be limited is that once determined, it must be unified. The execution subject of this method has only one relationship.

[0094] The step of randomly filling the fill value into the constructed matrix comprises:

[0095] Randomly select a fill position in the matrix, read the fill value, fill it to the selected fill position, and select repeatedly until all fill values ​​are filled in the matrix.

[0096] The value filling process is also a random process. A filling position is randomly selected in the matrix, the filling value is read, and the filling is performed to the selected filling position. The process is executed in a loop until all randomly determined filling values ​​are randomly inserted into the matrix.

[0097] In an example of the technical solution of the present invention, the step of acquiring the local task processing speed of the heterogeneous container based on the monitoring node and adjusting the virtual block according to the local task processing speed includes:

[0098] Acquire a processing task package of a container in real time based on the monitoring node;

[0099] Get the data volume of each task unit in the processing task package and get the data volume array;

[0100] Get the input time and output time of the processing task package, calculate the total data volume from the data volume array, calculate the time difference between the output time and the input time, and divide the total data volume by the time difference to get the local task processing speed;

[0101] Pre-count the data volume array of the processing task package and the local task processing speed under normal conditions, create a sample set, and train the neural network model;

[0102] Input the data volume array of the current processing task package into the trained neural network model to obtain the predicted processing speed;

[0103] The difference between the predicted processing speed and the local task processing speed is calculated, and the virtual block is adjusted according to the difference.

[0104] The working process of the above content is not complicated. When processing tasks, the container processes them in the form of processing task packages, for example, a set of images. Based on the monitoring node, the processing task packages of the container are obtained in real time, the data volume of each task unit in the processing task package is obtained, and a data volume array is obtained. The input time and output time of the processing task package are obtained, and the total data volume is calculated from the data volume array. The time difference between the output time and the input time is calculated, and the local task processing speed is obtained by dividing the total data volume by the time difference.

[0105] Pre-count the data volume array of the processing task package under normal conditions and the local task processing speed, create a sample set, and train the neural network model. Based on the neural network model, the processing speed under normal conditions can be predicted. The local task processing speed and the predicted processing speed under normal conditions are compared, and the difference is calculated. The virtual block can be adjusted according to the difference.

[0106] Further, the calculating the difference between the predicted processing speed and the local task processing speed, and adjusting the content of the virtual block according to the difference comprises:

[0107] ; In the formula, is the row and column position in the virtual block The adjusted value at and The default row and column positions The size of the rectangle centered at is the value at any row or column position in the rectangle, is the difference between the predicted processing speed and the local task processing speed; yes The exponential function of .

[0108] The above content defines the adjustment process of the virtual block. It is the difference between the predicted processing speed and the local task processing speed. During the working process of the container, the speed is almost always lower than the speed in the normal state. Therefore, It indicates the speed reduction. The greater the speed reduction, The larger this item is, and the value of this item is in the range of 0 to 1, add 1 to it to get a coefficient greater than 1, which is used to amplify the filling value in the virtual block (which is proportional to the resource consumption); further, the filling value in the virtual block adopts the average value within a range, which can make the position with a value of zero also have a value after adjustment, making the amplification effect more obvious. That is, for a container, if the speed is reduced, the filling value in the corresponding virtual area will be amplified (even if it is zero, it will be amplified), and it will hardly be selected when processing cloud computing tasks in the future.

[0109] In some examples of the technical solution of the present invention, the step of counting virtual blocks corresponding to all heterogeneous containers, and when receiving a cloud task sent by any container, selecting and displaying a marked area in the counted virtual blocks based on the cloud task, and feeding back to the container sending the cloud task includes:

[0110] Count the virtual blocks corresponding to all heterogeneous containers at the same time;

[0111] Obtain and count the rated resources of all heterogeneous containers to obtain the rated virtual blocks;

[0112] When receiving a cloud task sent by any container, the resource consumption per unit time is calculated according to the total data volume and required processing time of the cloud task, and the calculated resource consumption is converted into the required value;

[0113] Calculate the difference virtual block between the rated virtual block and the virtual block, traverse the difference virtual block according to the required value, select and display the marked area, and feed it back to the container that sends the cloud task.

[0114] The above content is a specific application process. The rated resource volume of all containers is obtained, the rated resource volume of all containers is counted, and the rated resource volume is converted into a numerical value using the same calculation process as the filling numerical value calculation process. The rated resource volume is filled into the matrix to obtain the rated virtual block. The difference between the rated virtual block and the virtual block at the current moment is calculated. The obtained difference virtual block indicates how much free resources each container has. When a cloud task sent by any container is received, the resource consumption per unit time is calculated according to the total data volume of the cloud task and the required processing time. The calculated resource consumption is converted into a required value. The required value is used to mark the satisfied row and column positions in the difference virtual block. The marked row and column positions are the marking area, which is fed back to the container that sent the cloud task. The provider can know at a glance which containers are idle.

[0115] Figure 2 1 is a structural block diagram of a heterogeneous container cloud platform resource management system. In a preferred embodiment of the technical solution of the present invention, a heterogeneous container cloud platform resource management system is also provided. The system 10 includes:

[0116] The node insertion module 11 is used to send a node insertion request to the heterogeneous container when receiving a cloud service request, and insert a monitoring node into the container when receiving authorization information responded by the container;

[0117] A virtual block construction module 12 is used to obtain the operating parameters of the heterogeneous container based on the monitoring node, and to construct a virtual block according to the operating parameters and the factory parameters of the container; the virtual block is two-dimensional data;

[0118] A virtual block adjustment module 13, configured to obtain a local task processing speed of a heterogeneous container based on the monitoring node, and adjust the virtual block according to the local task processing speed;

[0119] The marking feedback module 14 is used to count the virtual blocks corresponding to all heterogeneous containers. When receiving a cloud task sent by any container, the marking area is selected and displayed in the counted virtual blocks based on the cloud task, and the marking area is fed back to the container sending the cloud task.

[0120] Among them, the adjustment process of the virtual block is proportional to the prediction accuracy of the local task processing speed; the prediction process of the local task processing speed is realized by a trained neural network model, the input of the neural network model is the task amount, and the output is the processing speed.

[0121] Furthermore, the node insertion module 11 includes:

[0122] A request receiving unit, configured to open a service access port and receive a cloud service request based on the service access port;

[0123] A request sending unit, used to send a node insertion request containing a monitoring range to a container sending a cloud service request;

[0124] An insertion execution unit is used to insert a monitoring node into the container and synchronously establish a monitoring database corresponding to the monitoring node when receiving authorization information responded by the container;

[0125] A permission granting unit, used to grant data reading permission to the container for monitoring database;

[0126] During the operation of the monitoring node, the monitoring data is backed up in real time to the monitoring database. The container constructs an address distribution map according to the addresses of each monitoring data in the monitoring database, compares the address distribution map with the monitoring range, determines whether to revoke the authority and generates a warning message.

[0127] The functions that can be implemented by the heterogeneous container cloud platform resource management method are all completed by a computer device, and the computer device includes one or more processors and one or more memories, and at least one program code is stored in the one or more memories. The program code is loaded and executed by the one or more processors to implement the heterogeneous container cloud platform resource management method.

[0128] The processor takes out instructions from the memory one by one, analyzes the instructions, and then completes the corresponding operations according to the instruction requirements, generating a series of control commands, so that the various parts of the computer can automatically, continuously and coordinately move to become an organic whole, realize the input of programs, the input of data, and the calculation and output of results. The arithmetic operations or logical operations generated in this process are all completed by the operator; the memory includes a read-only memory (ROM), which is used to store computer programs, and a protection system is provided outside the memory.

[0129] Exemplarily, the computer program may be divided into one or more modules, one or more modules are stored in a memory and executed by a processor to implement the present invention. One or more modules may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in a terminal device.

[0130] Those skilled in the art will understand that the description of the above service equipment is merely an example and does not constitute a limitation on the terminal equipment. It may include more or fewer components than described above, or a combination of certain components, or different components, for example, it may include input and output devices, network access equipment, buses, etc.

[0131] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire staff terminal.

[0132] The above-mentioned memory can be used to store computer programs and / or modules. The above-mentioned processor realizes various functions of the above-mentioned terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as an information collection template display function, a product information release function, etc.), etc.; the data storage area can store data created according to the use of the berth status display system (such as product information collection templates corresponding to different product types, product information that different product providers need to release, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0133] If the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable medium. Based on this understanding, the present invention implements all or part of the modules / units in the above-mentioned embodiment system, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable medium, and the computer program can realize the functions of the above-mentioned various system embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or system that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0134] It should be noted that, in this article, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0135] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A heterogeneous container cloud platform resource management method, characterized in that: The method comprises: When receiving a cloud service request, it sends a node insertion request to the heterogeneous container. When receiving the authorization information of the container response, it inserts the monitoring node into the container. Acquire the operating parameters of the heterogeneous container based on the monitoring node, and construct a virtual block according to the operating parameters and the factory parameters of the container; the virtual block is two-dimensional data; Acquiring a local task processing speed of the heterogeneous container based on the monitoring node, and adjusting the virtual block according to the local task processing speed; Count the virtual blocks corresponding to all heterogeneous containers. When receiving a cloud task sent by any container, select and display the marked area in the counted virtual blocks based on the cloud task, and feed it back to the container that sent the cloud task. The adjustment process of the virtual block is proportional to the prediction accuracy of the local task processing speed; the prediction process of the local task processing speed is realized by a trained neural network model, the input of the neural network model is the task amount, and the output is the processing speed; When receiving a cloud service request, sending a node insertion request to a heterogeneous container, and when receiving authorization information of a container response, inserting a monitoring node into the container comprises: Opening a service access port, and receiving a cloud service request based on the service access port; Send a node insertion request containing the monitoring scope to the container that sends the cloud service request; When receiving the authorization information of the container response, insert the monitoring node into the container and synchronously establish a monitoring database corresponding to the monitoring node; Open the data reading permission of the monitoring database to the container; During the working process of the monitoring node, the monitoring data is backed up in real time to the monitoring database. The container builds an address distribution map according to the addresses of each monitoring data in the monitoring database, compares the address distribution map with the monitoring range, determines whether to revoke the authority and generates a warning message; The step of obtaining the local task processing speed of the heterogeneous container based on the monitoring node and adjusting the virtual block according to the local task processing speed includes: Acquire a processing task package of a container in real time based on the monitoring node; Get the data volume of each task unit in the processing task package and obtain the data volume array; Get the input time and output time of the processing task package, calculate the total data volume from the data volume array, calculate the time difference between the output time and the input time, and divide the total data volume by the time difference to get the local task processing speed; Pre-count the data volume array of the processing task package and the local task processing speed under normal conditions, create a sample set, and train the neural network model; Input the data volume array of the current processing task package into the trained neural network model to obtain the predicted processing speed; Calculating a difference between a predicted processing speed and a local task processing speed, and adjusting the virtual block according to the difference; The calculating the difference between the predicted processing speed and the local task processing speed, and adjusting the content of the virtual block according to the difference comprises: ; In the formula, is the row and column position in the virtual block The adjusted value at and The default row and column positions The size of the rectangle centered at is the value at any row or column position in the rectangle, is the difference between the predicted processing speed and the local task processing speed; yes The exponential function of .

2. The heterogeneous container cloud platform resource management method according to claim 1 is characterized in that: The step of acquiring the operating parameters of the heterogeneous container based on the monitoring node and constructing a virtual block according to the operating parameters and the factory parameters of the container includes: Obtaining a model of a heterogeneous container, and querying factory parameters according to the model; the factory parameters include the number of thread blocks and the number of thread warps in each thread block; constructing a matrix according to the number of thread blocks and the number of thread warps in each thread block; Randomly select a thread warp, obtain an operation signal of the thread warp selected in a unit time based on a monitoring node, and determine a filling value according to the operation signal; The fill-in values ​​are randomly filled into the constructed matrix to obtain virtual blocks per unit time.

3. The heterogeneous container cloud platform resource management method according to claim 2, characterized in that: The step of randomly selecting a thread warp, obtaining an operation signal of the thread warp selected within a unit time based on a monitoring node, and determining a fill value according to the operation signal comprises: Randomly select a thread bundle, and obtain the resource consumption of various resources by each thread in the thread bundle within a preset time period based on the monitoring node; Convert all resource consumptions into a format to obtain a comprehensive consumption, and determine a filling value based on the comprehensive consumption; The step of randomly filling the fill value into the constructed matrix comprises: Randomly select a fill position in the matrix, read the fill value, fill it to the selected fill position, and select repeatedly until all fill values ​​are filled in the matrix.

4. The heterogeneous container cloud platform resource management method according to claim 1, characterized in that: The step of counting virtual blocks corresponding to all heterogeneous containers, and when receiving a cloud task sent by any container, selecting and displaying a marked area in the counted virtual blocks based on the cloud task, and feeding back to the container sending the cloud task includes: Count the virtual blocks corresponding to all heterogeneous containers at the same time; Obtain and count the rated resources of all heterogeneous containers to obtain the rated virtual blocks; When receiving a cloud task sent by any container, the resource consumption per unit time is calculated according to the total data volume and required processing time of the cloud task, and the calculated resource consumption is converted into the required value; Calculate the difference virtual block between the rated virtual block and the virtual block, traverse the difference virtual block according to the required value, select and display the marked area, and feed it back to the container that sends the cloud task.

5. A heterogeneous container cloud platform resource management system, characterized in that: The system is used to implement the heterogeneous container cloud platform resource management method according to any one of claims 1 to 4, and the system includes: The node insertion module is used to send a node insertion request to the heterogeneous container when receiving a cloud service request, and insert a monitoring node into the container when receiving authorization information responded by the container; A virtual block construction module, used to obtain the operating parameters of the heterogeneous container based on the monitoring node, and to construct a virtual block according to the operating parameters and the factory parameters of the container; the virtual block is two-dimensional data; A virtual block adjustment module, configured to obtain a local task processing speed of a heterogeneous container based on the monitoring node, and adjust the virtual block according to the local task processing speed; The marking feedback module is used to count the virtual blocks corresponding to all heterogeneous containers. When receiving a cloud task sent by any container, the marking area is selected and displayed in the counted virtual blocks based on the cloud task, and the marking area is fed back to the container that sent the cloud task. Among them, the adjustment process of the virtual block is proportional to the prediction accuracy of the local task processing speed; the prediction process of the local task processing speed is realized by a trained neural network model, the input of the neural network model is the task amount, and the output is the processing speed.

6. The heterogeneous container cloud platform resource management system according to claim 5, characterized in that: The node insertion module comprises: A request receiving unit, configured to open a service access port and receive a cloud service request based on the service access port; A request sending unit, used to send a node insertion request containing a monitoring range to a container sending a cloud service request; An insertion execution unit is used to insert a monitoring node into the container and synchronously establish a monitoring database corresponding to the monitoring node when receiving authorization information responded by the container; A permission granting unit, used to grant data reading permission to the container for monitoring database; During the operation of the monitoring node, the monitoring data is backed up in real time to the monitoring database. The container constructs an address distribution map according to the addresses of each monitoring data in the monitoring database, compares the address distribution map with the monitoring range, determines whether to revoke the authority and generates a warning message.

7. A storage medium, characterized in that: At least one program code is stored in the storage medium. When the program code is loaded and executed by the processor, the heterogeneous container cloud platform resource management method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Cloud computing resource management method, device and equipment and computer readable storage medium

    CN109669762A

  • Application management method and device for industrial Internet cloud platform, equipment and medium

    CN112241293A