Service monitoring method and system based on cloud computing platform
Through the particle swarm optimization algorithm and dynamic adjustment factors, the resource allocation of the cloud computing platform is monitored and optimized in real time, which solves the limitations of monitoring and resource management in the existing technology and improves resource utilization and system stability.
Patent Information
- Application Number
- CN202410884313.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-22
AI Technical Summary
Existing cloud computing platform monitoring methods are difficult to reflect the overall operating status and performance indicators in real time, and there are limitations in resource allocation and optimization, resulting in resource waste and performance bottlenecks.
The particle swarm optimization algorithm and dynamic adjustment factors are used to obtain and analyze the resource and service usage data of the cloud computing platform, monitor the operating status and performance indicators in real time, dynamically adjust the resource allocation plan, and optimize resource configuration.
Significantly improve resource utilization, ensure efficient operation of the platform, enhance system adaptability and flexibility, reduce resource waste and operation and maintenance costs, and provide a more stable and faster service experience.
Smart Images

Figure CN118819843A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a business monitoring method and system based on a cloud computing platform. Background Art
[0002] Cloud computing platforms use virtualization technology to achieve flexible allocation and efficient use of resources, providing powerful computing power and storage space for enterprises and individual users. However, with the continuous expansion of cloud computing platforms and the increasing number of service types, how to effectively monitor and manage these resources has become particularly important.
[0003] For example, traditional cloud computing platform monitoring methods usually focus on monitoring a single resource or service, and may not be able to fully and real-time reflect the operation status and performance indicators of the entire cloud computing platform. In addition, these methods also have certain limitations in resource allocation and optimization, and may not be able to dynamically adjust according to the real-time status of the cloud computing platform and user needs, resulting in resource waste or performance bottlenecks. Summary of the invention
[0004] The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art and provide a business monitoring method and system based on a cloud computing platform, which can not only monitor the operating status of the cloud computing platform in real time, but also perform intelligent resource allocation according to actual needs, thereby improving resource utilization.
[0005] In order to solve the above technical problems, the basic concept of the technical solution adopted by the present invention is:
[0006] In a first aspect, a business monitoring method based on a cloud computing platform includes:
[0007] Obtain usage data of various resources and services on the cloud computing platform;
[0008] Automated analysis of usage data of various resources and services on the cloud computing platform to determine the operating status and performance indicators of the cloud computing platform;
[0009] According to the operation status and performance indicators of the cloud computing platform, a group of particles are initialized, each particle represents a resource allocation scheme;
[0010] Determine dynamic adjustment factors based on usage data of various resources and services on the cloud computing platform;
[0011] Calculate the fitness value of each particle according to the preset optimization goal and dynamic adjustment factor;
[0012] According to the fitness value of each particle and the dynamic adjustment factor, the speed and position of each particle are updated to determine the final resource allocation plan. The particle fitness is evaluated and the particle state is updated repeatedly until the preset number of iterations is reached to obtain the final resource allocation plan.
[0013] According to the final resource allocation plan, the resource configuration of the cloud computing platform is automatically adjusted to obtain the optimized resource configuration and current operating status;
[0014] The optimized resource configuration and current operating status are sent to the user end via monitoring signals.
[0015] Preferably, the usage data of various resources and services on the cloud computing platform are automatically analyzed to determine the operating status and performance indicators of the cloud computing platform, including:
[0016] Filter out relevant features of the cloud computing platform's operating status and performance indicators from the resource and service usage data;
[0017] According to the relevant features, the number of clusters K is determined by the elbow rule;
[0018] Cluster the resource and service usage data according to the number of clusters K. In the clustering process, the resource and service usage data are divided into K clusters, each cluster representing a similar operating state, until a preset number of iterations is reached to obtain a clustering result;
[0019] Based on the clustering results, the operating status and performance indicators of the cloud computing platform are determined, including the average or median of each cluster.
[0020] The dynamic adjustment factor is calculated based on the usage data of various resources and services on the cloud computing platform.
[0021] Resource and service usage data includes CPU usage, memory usage, network bandwidth, and storage usage.
[0022] In a second aspect, a business monitoring system based on a cloud computing platform includes:
[0023] The acquisition module is used to obtain the usage data of various resources and services on the cloud computing platform; automatically analyze the usage data of various resources and services on the cloud computing platform to determine the operating status and performance indicators of the cloud computing platform; initialize a group of particles according to the operating status and performance indicators of the cloud computing platform, each particle represents a resource allocation plan;
[0024] The processing module is used to determine the dynamic adjustment factor according to the usage data of various resources and services on the cloud computing platform; calculate the fitness value of each particle according to the preset optimization target and the dynamic adjustment factor; update the speed and position of each particle according to the fitness value of each particle and the dynamic adjustment factor to determine the final resource allocation plan, repeatedly evaluate the particle fitness and update the particle state until the preset number of iterations is reached to obtain the final resource allocation plan; according to the final resource allocation plan, automatically adjust the resource configuration of the cloud computing platform to obtain the optimized resource configuration and the current operating status; send the optimized resource configuration and the current operating status to the user end through the monitoring signal.
[0025] According to a third aspect, a computing device includes:
[0026] one or more processors;
[0027] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method described.
[0028] In a fourth aspect, a computer-readable storage medium stores a program, and when the program is executed by a processor, the method described is implemented.
[0029] After adopting the above technical solution, the present invention has the following beneficial effects compared with the prior art:
[0030] By acquiring and analyzing the usage data of various resources and services on the cloud computing platform, the overall operation status and performance indicators of the cloud computing platform can be monitored in real time. By setting the particle swarm optimization algorithm and the dynamic adjustment factor, the present invention can dynamically adjust the resource allocation scheme according to the actual situation. This dynamic optimization mechanism can significantly improve the resource utilization of the cloud computing platform, avoid resource waste, and ensure the efficient operation of the platform.
[0031] The fitness value of each particle is calculated according to the preset optimization target and dynamic adjustment factor, so that the resource allocation scheme can be automatically adjusted as the state of the cloud computing platform changes, enhancing the adaptability and flexibility of the system. By continuously optimizing resource allocation, the present invention can ensure that the cloud computing platform is always in the best state, thereby providing users with more stable and faster services, greatly improving the user experience.
[0032] Through real-time monitoring and dynamic adjustment, the present invention can timely discover and solve problems that may arise in the cloud computing platform, such as resource bottlenecks, performance degradation, etc., thereby enhancing the stability and reliability of the system. Through automated resource allocation and optimization, the need for manual intervention is reduced, and the operation and maintenance costs of the cloud computing platform are reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. Some specific embodiments of the present application will be described in detail in an illustrative and non-restrictive manner with reference to the drawings. The same reference numerals in the drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the drawings:
[0034] Figure 1 It is a flow chart of a business monitoring method based on a cloud computing platform of the present invention.
[0035] Figure 2 It is a schematic diagram of a business monitoring system based on a cloud computing platform of the present invention. DETAILED DESCRIPTION
[0036] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0037] The following embodiment of the present application takes the business monitoring method based on the cloud computing platform as an example to explain the solution of the present application in detail, but this embodiment cannot limit the protection scope of the present application.
[0038] like Figure 1 As shown, the present invention provides a business monitoring method based on a cloud computing platform, the method comprising the following steps:
[0039] Step 11, obtaining usage data of various resources and services on the cloud computing platform; the usage data of resources and services includes CPU usage, memory usage, network bandwidth, and storage usage;
[0040] Step 12, automatically analyzing the usage data of various resources and services on the cloud computing platform to determine the operating status and performance indicators of the cloud computing platform;
[0041] Step 13, according to the operation status and performance indicators of the cloud computing platform, a group of particles are initialized, each particle represents a resource allocation scheme;
[0042] Step 14, determining a dynamic adjustment factor based on usage data of various resources and services on the cloud computing platform;
[0043] Step 15, calculating the fitness value of each particle according to the preset optimization target and the dynamic adjustment factor;
[0044] Step 16, according to the fitness value of each particle and the dynamic adjustment factor, the speed and position of each particle are updated to determine the final resource allocation plan, and the particle fitness is evaluated and the particle state is updated repeatedly until the preset number of iterations is reached to obtain the final resource allocation plan;
[0045] Step 17, according to the final resource allocation plan, automatically adjust the resource configuration of the cloud computing platform to obtain the optimized resource configuration and current operating status;
[0046] Step 18: Send the optimized resource configuration and current operation status to the user end via a monitoring signal.
[0047] In an embodiment of the present invention, by acquiring and analyzing the usage data of various resources and services on the cloud computing platform, the overall operation status and performance indicators of the cloud computing platform can be monitored in real time. By setting the particle swarm optimization algorithm and the dynamic adjustment factor, the present invention can dynamically adjust the resource allocation scheme according to the actual situation. This dynamic optimization mechanism can significantly improve the resource utilization of the cloud computing platform, avoid resource waste, and ensure the efficient operation of the platform. The fitness value of each particle is calculated according to the preset optimization target and the dynamic adjustment factor, so that the resource allocation scheme can be automatically adjusted as the state of the cloud computing platform changes, thereby enhancing the adaptability and flexibility of the system. By continuously optimizing resource configuration, the present invention can ensure that the cloud computing platform is always kept in the best state, thereby providing users with more stable and faster services, greatly improving the user experience. Through real-time monitoring and dynamic adjustment, the present invention can timely discover and solve problems that may occur in the cloud computing platform, such as resource bottlenecks, performance degradation, etc., thereby enhancing the stability and reliability of the system. Through automated resource allocation and optimization, the need for manual intervention is reduced, and the operation and maintenance cost of the cloud computing platform is reduced.
[0048] In another preferred embodiment of the present invention, a set of data collection interfaces is designed or existing monitoring tools (such as Zabbix, Prometheus, etc.) are used to collect the required data; these interfaces should be closely integrated with various components of the cloud computing platform (such as virtual machines, containers, physical servers, etc.) so that resource usage can be obtained in real time and accurately. The CPU usage of each computing node is collected regularly (such as every second or every minute) through the monitoring tool or interface. The CPU usage is usually expressed as the ratio of the time the CPU is occupied in a certain time period to the total time of the time period; the collected data may include user-state CPU time, system-state CPU time, and idle time, etc., so as to more comprehensively analyze the CPU usage. The monitoring tool will regularly record the memory usage of each computing node, including used memory, free memory, cache memory, etc. These data are helpful for analyzing the efficiency of memory usage and whether there is memory leakage or overuse.
[0049] The network bandwidth usage is collected through the network interface card (NIC) or other network monitoring tools, including key indicators such as inbound and outbound data traffic, network latency, packet loss rate, etc. Monitoring of network bandwidth helps identify network bottlenecks and optimize data transmission efficiency. The monitoring tool records the capacity, used space, remaining space, and I / O performance (such as read and write speed, IOPS, etc.) of the storage device. The collected resource usage data will be integrated and stored in a central database or time series database. This data can be indexed by timestamp for subsequent data analysis and visualization. When collecting and using this data, it is necessary to ensure the security and privacy of the data, and appropriate access control and encryption measures should be implemented to prevent data leakage or unauthorized access.
[0050] In a preferred embodiment of the present invention, the usage data of various resources and services on the cloud computing platform are automatically analyzed to determine the operating status and performance indicators of the cloud computing platform, including:
[0051] Filter out relevant features of the cloud computing platform's operating status and performance indicators from the resource and service usage data;
[0052] According to the relevant features, the number of clusters K is determined by the elbow rule;
[0053] Cluster the resource and service usage data according to the number of clusters K. In the clustering process, the resource and service usage data are divided into K clusters, each cluster representing a similar operating state, until a preset number of iterations is reached to obtain a clustering result;
[0054] Based on the clustering results, the operating status and performance indicators of the cloud computing platform are determined, including the average or median of each cluster.
[0055] In the embodiment of the present invention, the collected resource and service usage data are preprocessed, including data cleaning, deduplication, outlier processing, etc. Then, the features related to the operation status and performance indicators of the cloud computing platform are screened out from these data, including CPU usage, memory occupancy, network bandwidth utilization, storage I / O performance, etc. The clustering costs (such as WSS, Within-Cluster Sum of Squares) curve, find the "elbow point" of the curve (that is, the point where the cost reduction rate suddenly slows down), and the K value corresponding to this point is the optimal number of clusters. According to the K value determined in the previous step, the K-means clustering algorithm is used to cluster the resource and service usage data. During the clustering process, the algorithm randomly selects K initial centroids, and then assigns each data point to the nearest centroid to form K clusters; recalculates the centroid of each cluster and repeats the data point assignment process until the position of the centroid no longer changes significantly or reaches the preset number of iterations. After clustering is completed, each cluster represents a similar operating state. For each cluster, the average or median of its internal data points can be calculated to represent the performance indicators under the operating state. For example, the average CPU usage and average memory occupancy of each cluster can be calculated to obtain the performance of the cloud computing platform under different operating states. According to the clustering results, several typical operating states of the cloud computing platform can be determined (such as idle state, light load state, heavy load state, etc.). For each operating state, by calculating the statistical characteristics of the data points in the cluster (such as the average value, median, etc.), the specific performance indicators in the state are obtained. These performance indicators can be used to evaluate the performance of the cloud computing platform. Through the above steps, the automatic analysis of the usage data of various resources and services on the cloud computing platform can be realized, and then the operating state and performance indicators of the cloud computing platform can be determined.
[0056] In a preferred embodiment of the present invention, a group of particles are initialized according to the operating status and performance indicators of the cloud computing platform, each particle represents a resource allocation scheme, including:
[0057] Each particle will contain two main attributes: position (representing the resource allocation plan) and speed. The position can be a multidimensional vector, and each dimension represents the allocation amount of a resource, such as the number of CPU cores, memory capacity, network bandwidth, etc. The speed is also a multidimensional vector, indicating the adjustment direction and rate of the particle in each resource dimension.
[0058] The number of particles to be initialized is determined based on the complexity of the problem and the required search accuracy. The more particles there are, the wider the search space is, but the higher the computational cost is. Based on the current operating status and performance indicators of the cloud computing platform, the position vector of each particle is given an initial value. These initial values can be generated based on historical data, empirical rules or randomly, but they must be ensured to be within a reasonable resource allocation range. For example, if the current CPU usage is high, the position of the initialized particle may be in an area where more CPU resources are allocated. The initial velocity of the particle can be set to zero or randomly generated according to a certain distribution (such as uniform distribution or normal distribution). The initialization of the velocity should take into account the scale of the search space and the characteristics of the problem to avoid premature convergence or deviation of the particle from the search space. For each initialized particle (i.e., resource allocation scheme), a predetermined evaluation criterion (such as cost, performance, resource utilization, etc.) is used for evaluation. This evaluation will serve as the basis for particle update and selection in subsequent iterations. After completing the initialization and evaluation of the particles, the system is ready to enter the iteration process to search for the optimal resource allocation scheme by continuously updating the position and velocity of the particles. Through this step, an initial solution space is provided for the subsequent particle swarm optimization algorithm, and each particle represents a possible resource allocation scheme. In the following iterations, the algorithm will adjust the position and speed of each particle according to its performance and fitness to find the optimal resource allocation strategy.
[0059] In a preferred embodiment of the present invention, the dynamic adjustment factor is determined based on the usage data of various resources and services on the cloud computing platform, including:
[0060] Based on the usage data of various resources and services on the cloud computing platform,
[0061] Calculate dynamic adjustment factors;
[0062] Where DAF is the dynamic adjustment factor; γ, α, β, δ and ∩ are weight coefficients, satisfying 0≤γ, α, β, δ,∈≤1, and α+β=1, δ+∈=1; n is the number of resource types; w i is the weight of the i-th resource; U i is the utilization rate of the i-th resource; R i is the current request or demand for the i-th resource; R max is the maximum request or capacity of the i-th resource; m is the number of service types considered; L j is the load index of the jth service; S j is the current concurrency or number of sessions of the jth service; S max is the maximum number of concurrent sessions or sessions of the jth service; p is the number of time periods; T kis the average response time or delay in the kth time period; q is the number of user feedbacks; V l is the rating or satisfaction of the lth user feedback; i, j, l and k are indexes.
[0063] In an embodiment of the present invention, the dynamic adjustment factor (DAF) comprehensively considers the usage of multiple resources and services, including resource utilization, service load, response time, and user feedback, so as to more comprehensively and accurately reflect the actual operation status and demand of the cloud computing platform. Since DAF is calculated based on real-time resource and service usage data, it can dynamically adapt to changes in the cloud computing platform. When resource demand, service load or user feedback changes, DAF will adjust accordingly to provide timely guidance for resource allocation. The weight coefficients in the formula (such as γ, α, β, δ and ε) can be adjusted according to actual conditions, which makes DAF more flexible and customizable. By incorporating user feedback (such as ratings or satisfaction), DAF can more directly reflect the user's feelings about cloud computing services. By dynamically adjusting the resource allocation scheme, the optimization strategy based on DAF can help the cloud computing platform improve resource utilization efficiency, reduce resource waste, and enhance system stability while ensuring performance.
[0064] In a preferred embodiment of the present invention, the fitness value of each particle is calculated according to the preset optimization target and the dynamic adjustment factor, including:
[0065] According to the preset optimization goals and dynamic adjustment factors, Calculate the fitness value of each particle, where Fit i is the fitness value of the ith particle; DAF i is the dynamic adjustment factor calculated according to the position of the i-th particle; DAF t Cost is the dynamic adjustment factor value expected to be achieved in the preset optimization goal; i is the cost associated with the ith particle.
[0066] In an embodiment of the present invention, the design of the fitness function takes into account the preset optimization goal (i.e., the dynamic adjustment factor value expected to be achieved). This ensures that the optimization process is goal-oriented and can focus on improving the particles that are most critical to achieving the optimization goal. The calculation of the fitness value not only takes into account the proximity of the dynamic adjustment factor to the goal, but also balances the relationship between performance improvement and resource cost through the introduction of the cost term. This helps to avoid excessive investment of resources in pursuit of performance improvement, thereby achieving a balance between economic benefits and performance optimization. Since the dynamic adjustment factor is calculated in real time based on the position of each particle, the fitness value can also dynamically reflect the pros and cons of the particle in the current environment. This dynamic adaptability helps the algorithm to continuously and effectively optimize resource allocation in a changing cloud computing environment. The fitness function adopts a smooth transition form (implemented in a fractional form), which avoids mutations or jumps during the optimization process and helps the stable convergence of the algorithm. The calculation scheme of the fitness value is not only applicable to specific cloud computing environments or application scenarios, but also can be flexibly applied to a variety of different cloud computing resource allocation problems by adjusting the preset optimization goals and cost functions. By comprehensively considering the dynamic adjustment factor and cost, the fitness function helps guide the particle swarm algorithm to search for the optimal solution globally instead of just falling into the local optimum.
[0067] In a preferred embodiment of the present invention, when updating the speed and position of each particle according to the fitness value of each particle and the dynamic adjustment factor, the speed update formula is:
[0068]
[0069] in, and are the velocities of the i-th particle at time t and t+1 respectively; w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers between 0 and 1; p i is the optimal position of the ith particle; gb is the global optimal position of all particles.
[0070] In an embodiment of the present invention, the inertia weight w helps to balance the capabilities of global search and local search. A larger w value is conducive to global search, while a smaller w value is more inclined to local search. By adjusting the size of w, the exploration and development capabilities of particles in the search space can be controlled. The learning factor c1 determines the extent to which the particle learns from its own historical optimal position. The random number r1 introduces randomness to this learning, which helps the particles to explore more widely in the search space. The learning factor c2 determines the extent to which the particle learns from the global optimal position. The random number r2 also introduces randomness to this learning, which helps to share information between particles and promote the convergence of the entire particle swarm to the global optimal solution. The coefficient c3 introduces the difference between the dynamic adjustment factor and the preset target to affect the speed update of the particle, which enables the particle to adjust its search direction and speed according to the gap between the current dynamic adjustment factor value and the target value, so as to move more directly towards the optimization goal.
[0071] In a preferred embodiment of the present invention, when updating the speed and position of each particle according to the fitness value of each particle and the dynamic adjustment factor, the updating formula of the position is:
[0072]
[0073] in, and are the positions of the i-th particle at time t and t+1 respectively.
[0074] In the embodiment of the present invention, due to the speed It is calculated based on multiple factors such as the individual optimal position of the particle, the global optimal position, and the dynamic adjustment factor. Therefore, it reflects the dynamic behavior of the particle in the search space, which enables the position update to adapt to the progress of the search process and helps the particle move to a better position. The position update formula provides continuous movement of particles in the search space. This continuity helps the algorithm maintain stability and smoothness during the search process, avoid mutations or jumps, and thus helps find a better solution. By considering the individual optimal and global optimal positions of the particles, as well as the influence of the dynamic adjustment factor, the position update formula enables the particle to adaptively adjust its movement direction and step size according to the progress of the search process. This adaptability helps the algorithm adopt different strategies at different search stages, thereby better balancing exploration and development capabilities.
[0075] Step 17, after the previous optimization algorithm (such as particle swarm optimization algorithm) runs, a final resource allocation plan will be obtained. This plan details how much resources (such as the number of CPU cores, memory size, storage capacity, network bandwidth, etc.) should be allocated to each computing node or service; before the resource allocation plan is actually applied, the system will perform a series of verification checks to ensure the rationality and feasibility of the plan. For example, check whether the total amount of resources exceeds the actual carrying capacity of the cloud platform and whether it meets the requirements of various service level agreements (SLAs); once the plan is verified, the management system of the cloud computing platform (such as Kubernetes, OpenStack, etc.) will start to execute resource adjustment commands, which include starting or shutting down virtual machines, adjusting container resource quotas, reallocating network bandwidth, etc.; during the resource adjustment process, the system will monitor the changes of various indicators in real time, such as resource utilization, service response time, etc., to ensure that the adjustment process is carried out smoothly and without adverse effects on the service; after the adjustment is completed, the system will record the new resource configuration and update the operating status of the cloud computing platform.
[0076] In step 18, the system will collect detailed information about the optimized resource configuration, including the specific amount of resources allocated to each node or service, and the current operating status data of the cloud computing platform (such as CPU usage, memory occupancy, network throughput, etc.); the collected data will be formatted into reports or charts that are easy for users to understand. This helps users intuitively understand the effect of resource optimization and the operating status of the cloud platform; according to user preferences and system configuration, select the appropriate communication protocol and method to send data to the user end, which may be through email, SMS notification, Web interface update, API call or other customized communication methods; send the formatted data to the user end as a monitoring signal. Users can evaluate the effect of resource optimization and the current performance and health of the cloud platform based on this information; after receiving the monitoring signal, users can provide feedback based on the actual situation, and may need to fine-tune the resource allocation plan to better meet business needs or performance requirements. These feedback and adjustments will serve as input for a new round of optimization to continuously improve the resource configuration of the cloud computing platform.
[0077] Figure 2 As shown, an embodiment of the present invention further provides a business monitoring system 20 based on a cloud computing platform, comprising:
[0078] The acquisition module 21 is used to acquire the usage data of various resources and services on the cloud computing platform; automatically analyze the usage data of various resources and services on the cloud computing platform to determine the operation status and performance indicators of the cloud computing platform; initialize a group of particles according to the operation status and performance indicators of the cloud computing platform, each particle represents a resource allocation scheme;
[0079] The processing module 22 is used to determine the dynamic adjustment factor according to the usage data of various resources and services on the cloud computing platform; calculate the fitness value of each particle according to the preset optimization target and the dynamic adjustment factor; update the speed and position of each particle according to the fitness value of each particle and the dynamic adjustment factor to determine the final resource allocation plan, repeatedly evaluate the particle fitness and update the particle state until the preset number of iterations is reached to obtain the final resource allocation plan; according to the final resource allocation plan, automatically adjust the resource configuration of the cloud computing platform to obtain the optimized resource configuration and the current operating status; send the optimized resource configuration and the current operating status to the user end through the monitoring signal.
[0080] It should be noted that the system is a system corresponding to the above method, and all implementation methods in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0081] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0082] The embodiment of the present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0083] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0084] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0085] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0086] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0087] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0088] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0089] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using basic programming skills after reading the description of the present invention.
[0090] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.
[0091] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A business monitoring method based on a cloud computing platform, characterized in that: include: Obtain usage data of various resources and services on the cloud computing platform; Automated analysis of usage data of various resources and services on the cloud computing platform to determine the operating status and performance indicators of the cloud computing platform; According to the operation status and performance indicators of the cloud computing platform, a group of particles are initialized, each particle represents a resource allocation scheme; Determine dynamic adjustment factors based on usage data of various resources and services on the cloud computing platform; Calculate the fitness value of each particle according to the preset optimization goal and dynamic adjustment factor; According to the fitness value of each particle and the dynamic adjustment factor, the speed and position of each particle are updated to determine the final resource allocation plan. The particle fitness is evaluated and the particle state is updated repeatedly until the preset number of iterations is reached to obtain the final resource allocation plan. According to the final resource allocation plan, the resource configuration of the cloud computing platform is automatically adjusted to obtain the optimized resource configuration and current operating status; The optimized resource configuration and current operating status are sent to the user end via monitoring signals.
2. The business monitoring method based on the cloud computing platform according to claim 1 is characterized in that: Automatically analyze the usage data of various resources and services on the cloud computing platform to determine the operating status and performance indicators of the cloud computing platform, including: Filter out relevant features of the cloud computing platform's operating status and performance indicators from the resource and service usage data; According to the relevant features, the number of clusters K is determined by the elbow rule; Cluster the resource and service usage data according to the number of clusters K. In the clustering process, the resource and service usage data are divided into K clusters, each cluster representing a similar operating state, until a preset number of iterations is reached to obtain a clustering result; Based on the clustering results, the operating status and performance indicators of the cloud computing platform are determined, including the average or median of each cluster.
3. The business monitoring method based on cloud computing platform according to claim 2 is characterized in that: Based on the usage data of various resources and services on the cloud computing platform, dynamic adjustment factors are determined, including: The dynamic adjustment factor is calculated based on the usage data of various resources and services on the cloud computing platform.
4. The business monitoring method based on the cloud computing platform according to claim 3 is characterized in that: Resource and service usage data includes CPU usage, memory usage, network bandwidth, and storage usage.
5. A business monitoring system based on a cloud computing platform, characterized in that: include: An acquisition module is used to obtain usage data of various resources and services on the cloud computing platform; Automatically analyze the usage data of various resources and services on the cloud computing platform to determine the operating status and performance indicators of the cloud computing platform; initialize a group of particles based on the operating status and performance indicators of the cloud computing platform, each particle represents a resource allocation plan; The processing module is used to determine the dynamic adjustment factor according to the usage data of various resources and services on the cloud computing platform; calculate the fitness value of each particle according to the preset optimization target and the dynamic adjustment factor; update the speed and position of each particle according to the fitness value of each particle and the dynamic adjustment factor to determine the final resource allocation plan, and repeatedly evaluate the particle fitness and update the particle state until the preset number of iterations is reached to obtain the final resource allocation plan; According to the final resource allocation plan, the resource configuration of the cloud computing platform is automatically adjusted to obtain the optimized resource configuration and the current operating status; the optimized resource configuration and the current operating status are sent to the user end through monitoring signals.
6. A computing device, characterized in that include: one or more processors; A storage device, used for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, which, when executed by a processor, implements the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Cloud system utilization rate maximized resource distributing method based on energy consumption requirements
CN104618269A
Cloud software service resource allocation method based on QoS model self-correction
CN110138612A
Cloud virtualization resource dynamic optimization adjustment method
CN113742049A
Cloud resource optimal allocation method for multi-cloud management scene
CN114490093A
Cloud resource cost optimization method and system
CN117057840A
Cited By
Connection resource scheduling method, cloud platform and electronic equipment
CN119697234A
Hierarchical real-time scheduling robot operation control and sensing system resource isolation method
CN122008182A
Hierarchical real-time scheduling robot operation and control and perception system resource isolation method
CN122008182B
