Platform-as-a-service self-management method and device, equipment and storage medium
By collecting and analyzing the key parameters of the PAAS service and performing upgrade or downgrade operations, the performance degradation problem caused by the PAAS service operating parameters exceeding the service portrait indicator value is solved, and the performance and throughput of business applications are improved.
Patent Information
- Application Number
- CN202410684294.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-29
AI Technical Summary
The operating parameters of the PAAS service exceed the service portrait indicator value, causing the performance of business applications to decline.
By collecting key parameters within the target period, such as CPU usage, memory usage, and service portrait parameters, it is determined whether the predefined alarm threshold is exceeded, and upgrade or downgrade operations are performed based on the comprehensive score to adjust the resource parameter configuration.
It effectively avoids performance degradation caused by unreasonable configuration of resource parameters, improves the performance and throughput of the platform as a service, and reduces the delay in processing requests.
Smart Images

Figure CN118659982A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a platform as a service self-management method, device, equipment and storage medium. Background Art
[0002] In the era of container technology, a large number of business application scenarios are put on the cloud through Kubernetes container orchestration technology. Some of these applications need to rely on some PAAS (Platform as a Service) service deployment in order to quickly deploy and provide services. In order to lower the threshold for using PAAS services, some empirical parameters are provided. These parameters are called PAAS service configuration items. Each configuration item will be tested to precipitate the optimal processing capacity of the service corresponding to the configuration item. The parameters corresponding to the optimal processing capacity summarized from this experience are called the service portrait indicator value of the PAAS service.
[0003] As the volume of business application visits changes, the ability of the PAAS service to handle business may become a bottleneck that affects the performance of business applications. For example, as the volume of business application visits increases, the PAAS service can no longer carry the previous business volume. At this time, the operating parameters of the PAAS service exceed the service profile indicator value of the PAAS service, causing the PAAS service's ability to handle business to decline, which in turn causes the performance of business applications to decline. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a self-management method, device, equipment and storage medium of a platform as a service, so as to solve the problem that the operating parameters of the current PAAS service exceed the service profile index value of the PAAS service, thereby causing the PAAS service to have a reduced ability to process business, and thus causing the performance of business applications to be reduced. The specific technical solution is as follows:
[0005] In a first aspect of the present invention, a platform as a service self-management method is provided, wherein the method comprises:
[0006] Collect key parameters of the platform as a service within the target period, wherein the key parameters include CPU usage, memory usage, and service profile parameters, and the service profile parameters include at least one type of parameter among response time, throughput index, number of concurrent users, and mean time between failures index;
[0007] When it is determined that the CPU usage rate or the memory usage rate is greater than a predefined alarm threshold, performing an upgrade operation on the platform as a service;
[0008] When it is determined that the CPU usage rate and the memory usage rate are both less than the predefined alarm threshold, a comprehensive score of the service profile parameters within the target period and an actual score corresponding to each type of service profile parameters are generated according to preset rules;
[0009] When it is determined that the comprehensive score is less than a predefined service profile threshold, upgrading the platform as a service;
[0010] When it is determined that the actual score of the throughput indicator is less than a predefined target threshold, the platform as a service is downgraded.
[0011] Optionally, before collecting the key parameters of the platform as a service within the target period, the method further includes:
[0012] Obtain the type and service performance level of the platform as a service under the target specifications;
[0013] Determine the target specification file name of the platform as a service under the target specification by the type of the platform as a service and the service performance level, wherein a larger value of the service performance level indicates that the service performance supported by the corresponding platform as a service is better;
[0014] defining target parameters for the platform as a service under the target specification, the target parameters including resource parameters,
[0015] System parameters, extended parameters and target service profile parameters, the target parameters are all array type structures, wherein the array structures of the resource parameters, system parameters and extended parameters include fields for specifying parameter names, fields for specifying parameter values and fields for describing parameter functions, and the array structure of the target service profile parameters includes fields for specifying parameter names, fields for specifying parameter values, fields for specifying parameter target weights and fields for describing parameter functions;
[0016] Determine alarm thresholds of CPU, memory and storage usage of the platform as a service under target specifications through the resource parameters;
[0017] The system parameters are used to ensure the normal startup and operation of the platform as a service under the target specifications, and the extended parameters are used to ensure the normal use of the target functions of the platform as a service under the target specifications;
[0018] Generate a service profile threshold of the platform as a service under the target specification through the target service profile parameter;
[0019] Create a target resource instance of the corresponding specification in the target cluster using the target specification file name and target parameters defined under the target specification;
[0020] The target resource instance is used to complete the deployment of the platform as a service of the target specification in the target cluster.
[0021] Optionally, when it is determined that both the CPU usage rate and the memory usage rate are less than a predefined alarm threshold, generating a comprehensive score of the service profile parameters within the target period and an actual score corresponding to each type of service profile parameter according to a preset rule includes:
[0022] When it is determined that the CPU usage rate and the memory usage rate are both less than a predefined alarm threshold, obtaining a predefined target service profile parameter, a floating parameter, an indicator difference parameter and a target weight for each type of target service profile parameter;
[0023] Determine a target score interval for each type of target service profile parameter according to the target service profile parameter, the floating parameter and the index difference parameter;
[0024] After searching the service profile parameters in the target score interval, determining the actual score corresponding to each type of service profile parameter within the target period;
[0025] Weighting the actual score corresponding to each type of service profile parameter by the target weight;
[0026] The weighted actual scores are summed up to obtain the comprehensive score of the service profile parameters within the target period.
[0027] Optionally, the predefined target service profile parameters include at least one type of parameter among target response time, target throughput index, target number of concurrent users and target mean time between failures index;
[0028] The step of determining a target score interval for each target service profile parameter according to the target service profile parameter, the floating parameter and the index difference parameter includes:
[0029] For any of the target service profile parameters, determining a first score interval by using the target service profile parameter and the floating parameter;
[0030] For any of the target service profile parameters, determining a second score interval by using the target service profile parameter, the floating parameter and the indicator difference parameter;
[0031] A target score interval for any target service profile parameter is determined based on the first score interval and the second score interval.
[0032] Optionally, after searching the service portrait parameter in the target score interval, determining the actual score corresponding to each type of service portrait parameter in the target period includes:
[0033] Divide the target score interval according to the type of the target service profile parameter, wherein each target score interval under each division range corresponds to a target service profile parameter type;
[0034] Adding a type tag to the partition interval, wherein the type tag is used to indicate the type of the target service profile parameter in the current partition interval;
[0035] Selecting a first type of service profile parameter from the service profile parameters;
[0036] Retrieving the first type in the type tag to determine a target partition interval;
[0037] The service portrait parameters of the first type are compared in the target division interval to determine the actual score corresponding to the service portrait parameters of the first type.
[0038] Optionally, after downgrading the platform as a service when it is determined that the actual score of the throughput indicator is less than a predefined target threshold, the process further includes:
[0039] Get the replica information and upgrade / downgrade operation mode of the running services in the platform as a service;
[0040] If it is determined that there is a single copy running service in the platform as a service and the upgrade / downgrade operation mode is a manual mode, a prompt message is sent to the user;
[0041] Obtaining strategies for scaling up / downgrading workloads in Platform as a Service;
[0042] When it is determined that the upgrade / downgrade operation strategy is not a rolling update and the upgrade / downgrade operation mode is a manual mode, a prompt message is sent to the user.
[0043] Optionally, when determining that the comprehensive score is less than a predefined service profile threshold, performing an upgrade operation on the platform as a service further includes:
[0044] In the case where it is determined that the comprehensive score is less than a predefined service profile threshold, determining a first resource parameter of the platform as a service that needs to be reconfigured;
[0045] Get the name of the first specification file of the resource instance corresponding to the current platform as a service;
[0046] Searching the target specification file by the name of the first specification file to determine a second resource parameter corresponding to the resource instance;
[0047] An upgrade operation is performed on the platform as a service based on the first resource parameter and the second resource parameter.
[0048] In a second aspect of the present invention, there is also provided a platform as a service self-management device, characterized in that it includes:
[0049] A collection module, used to collect key parameters of the platform as a service within a target period, wherein the key parameters include CPU usage, memory usage, and service profile parameters, and the service profile parameters include at least one type of parameter among response time, throughput index, number of concurrent users, and mean time between failures index;
[0050] A first upgrade module, configured to upgrade the platform as a service when determining that the CPU usage rate or the memory usage rate is greater than a predefined alarm threshold;
[0051] A first generating module is used to generate a comprehensive score of the service profile parameters within a target period and an actual score corresponding to each type of service profile parameter according to a preset rule when it is determined that the CPU usage rate and the memory usage rate are both less than a predefined alarm threshold;
[0052] A second upgrade module is used to upgrade the platform as a service when it is determined that the comprehensive score is less than a predefined service profile threshold;
[0053] The first downgrading module is used to downgrade the platform as a service when it is determined that the actual score of the throughput indicator is less than a predefined target threshold.
[0054] In a third aspect of the implementation of the present invention, there is also provided a communication device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor;
[0055] The processor is used to read the program in the memory to implement any of the above-mentioned platform as a service self-management methods.
[0056] In a fourth aspect of the implementation of the present invention, there is also provided a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium is run on a computer, the computer executes any of the above-mentioned platform as a service self-management methods.
[0057] The self-management method of Platform as a Service provided by the embodiment of the present invention collects key parameters of Platform as a Service within a target period, wherein the key parameters include CPU utilization, memory utilization, and service profile parameters, and the service profile parameters include at least one type of parameters among response time, throughput index, number of concurrent users, and mean time between failures index; when it is determined that the CPU utilization or memory utilization is greater than a predefined alarm threshold, the Platform as a Service is upgraded; by judging the CPU utilization or memory utilization, it is determined whether the performance of the Platform as a Service is reduced due to unreasonable resource parameter configuration, and then after determining that it is in a bottleneck period, the problem is solved by upgrading the operation; when it is determined that both the CPU utilization and the memory utilization are less than the predefined alarm threshold, an alarm is generated according to preset rules. The comprehensive score of the service profile parameters within the target period and the actual score corresponding to each type of service profile parameters; when it is determined that the comprehensive score is less than the pre-defined service profile threshold, the platform as a service is upgraded; when it is determined that the actual score of the throughput indicator is less than the pre-defined target threshold, the platform as a service is downgraded. These operations avoid the problems of platform as a service performance degradation, throughput indicator degradation, and high latency in processing requests due to unreasonable resource parameter configuration. The embodiments of the present invention determine from different dimensions whether the platform as a service has performance degradation due to unreasonable resource parameter configuration by judging the CPU utilization rate, memory utilization rate, throughput indicator, and service profile parameters, and then modify the resource parameter configuration through upgrade or downgrade operations to improve the performance of the platform as a service. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0059] Figure 1 A flowchart of the steps of a platform as a service self-management method provided by an embodiment of the present invention;
[0060] Figure 2 for Figure 1 The flowchart of step 103 in a platform as a service self-management method provided by an embodiment of the present invention is shown;
[0061] Figure 3 A schematic diagram of data flow in a platform as a service self-management method provided by an embodiment of the present invention;
[0062] Figure 4 is an operation flow chart of self-management of a platform as a service provided by an embodiment of the present invention;
[0063] Figure 5It is a structural diagram of a platform as a service self-management device provided by an embodiment of the present invention;
[0064] Figure 6 It is a structural diagram of a communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0065] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0066] Reference Figure 1 , showing a flow chart of the steps of a platform as a service self-management method provided by an embodiment of the present invention, the method may include:
[0067] Step 101, collect key parameters of the platform as a service within the target period, wherein the key parameters include CPU utilization, memory utilization, service profile parameters, and the service profile parameters include at least one type of parameter among response time, throughput index, number of concurrent users and mean time between failures index.
[0068] The target cycle of the embodiment of the present invention can be any cycle of the platform as a service operation, but in order to determine the current operation status of the platform as a service, the target cycle is determined to be a cycle closest to the current moment. Because the embodiment of the present invention triggers the operation of PAAS service lifecycle management (i.e., upgrade or downgrade) when it is determined that the platform as a service PAAS deployed on the Kubernetes cluster has reached a service bottleneck, it is necessary to obtain the key parameters of the platform as a service within a cycle, and use these key parameters to determine whether the service bottleneck has been reached.
[0069] It should be noted that PAAS service refers to the provision of some basic software services, such as databases and message middleware, to support users to better focus on business applications. In the PAAS service environment, CRD (Custom Resource Definition) and CR (Custom Resource) can be used to better manage and deploy applications. CRD is a feature of Kubernetes, which allows users to customize resources by extending the Kubernetes API. Through CRD, users can define their own API objects. CR is a specific resource instance created based on CRD. Once the CRD is defined, multiple CR instances of this type can be created. Each CR instance contains specific user-defined data and behaviors. Therefore, when deploying PAAS services, you need to first declare and define the CR related to the CRD resource that sets the relevant information of the parameters that can be used by the PAAS service. The code is as follows:
[0070]
[0071]
[0072] Among them, the rolloutInfo attribute defined in the annotations on the code is used to specify the name of the specification file to be used when the PAAS service is upgraded or downgraded; the specification name definition rule is system-xxx-level1-flavor, xxx is: PAAS service type; level+number: the larger the number, the better the service performance supported by the corresponding PAAS service; the paasFlavorType field is used to indicate the PAAS service type adapted to the current specification; flavorInfos is mainly used to describe the specification parameters set for the current specification, mainly composed of five parameters: resourceParamsInfo, systemParamsInfo, extenderParamsInfo, servicePortrait, and thresholdScore. Among them, resourceParamsInfo is used to define Define the resource parameters required for the PAAS service under the current specification. These parameters are used to determine the upper and lower limits of resources such as the central processing unit, memory, and storage, or the size that can be used normally. They can be used to judge the alarm thresholds of the central processing unit, memory, and storage in the future. SystemParamsInfo is used to define the built-in system parameters of the PAAS service under the current specification. These parameters vary greatly due to different PAAS services. They are used to ensure the normal startup and operation of the PAAS service. ExtenderParamsInfo is used to define some extended parameters to assist in the implementation of PAAS service functions, mainly to facilitate expansion, and can also be used to ensure the normal use of some specific functions in the platform as a service. ServicePortrait is used to define the service portrait parameters of the PAAS service under the current specification, including response time, throughput index, number of concurrent users, and mean time between failures index. It also sets weights for each type of service portrait parameters. Threshol dScore is a service portrait threshold automatically generated according to the set service portrait parameters. It is used to judge whether the service portrait parameters have reached a bottleneck in the future. If it is lower than this threshold, the upgrade operation of the PAAS service life cycle will be triggered. After defining the specifications of each PAAS service, create it on the k8s cluster to generate resources of corresponding specifications. Get the defined specification resources, convert them into YAML parameters, system parameters and extended parameters for deploying PAAS services, and complete the deployment of PAAS services. The specific steps include:
[0073] Obtain the type and service performance level of the platform as a service under the target specifications;
[0074] The target specification file name of the platform as a service under the target specification is determined by the type of the platform as a service and the service performance level, wherein a larger value of the service performance level indicates that the service performance supported by the corresponding platform as a service is better;
[0075] Define target parameters for the platform as a service under the target specification. The target parameters include resource parameters, system parameters, extended parameters and target service profile parameters. The target parameters are all array-type structures. The array structures of resource parameters, system parameters and extended parameters include fields for specifying parameter names, fields for specifying parameter values and fields for describing parameter functions. The array structure of target service profile parameters includes fields for specifying parameter names, fields for specifying parameter values, fields for specifying parameter target weights and fields for describing parameter functions.
[0076] Determine the alarm thresholds for CPU, memory, and storage usage of the platform as a service under the target specifications through resource parameters;
[0077] Ensure the normal startup and operation of the platform as a service under the target specifications through system parameters, and ensure the normal use of the target functions of the platform as a service under the target specifications through extended parameters;
[0078] Generate the service profile threshold of the platform as a service under the target specification through the target service profile parameter;
[0079] Create a target resource instance of the corresponding specification in the target cluster using the target specification file name and target parameters defined under the target specification;
[0080] The target resource instance is used to complete the deployment of the platform as a service of the target specification in the target cluster.
[0081] Among them, resourceParamsInfo, systemParamsInfo, extenderParamsInfo and servicePortrait are all parameters of array type, and the array elements are parameter objects. The structure code defined by the resourceParam sInfo parameter is selected for explanation:
[0082] "propertyKey":"cpu", / / parameter type
[0083] "propertyValue":"1", / / parameter value
[0084] "description":"Recommended CPU resource size" / / Parameter description
[0085] The propertyKey field is used to specify the parameter name, the propertyValue field is used to specify the parameter value, and the description field is used to indicate the function of the parameter. The structures of the systemParamsInfo, extenderParamsInfo, and resourceParamsInfo parameters are consistent, but the structure of the servicePortrait parameter also includes weight settings, for example: "Weights":"10".
[0086] By setting various parameters in the platform as a service of the target specification in advance, it is convenient to judge whether the parameters in actual operation have reached the service bottleneck of the platform as a service in the subsequent process, and then determine whether an upgrade or downgrade operation is required.
[0087] Step 102: When it is determined that the CPU usage or the memory usage is greater than a predefined alarm threshold, an upgrade operation is performed on the Platform as a Service.
[0088] In the embodiment of the present invention, the CPU usage or memory usage is monitored to determine whether to perform an upgrade operation. Because these indicators are directly related to the performance and stability of the application, these data can be monitored using monitoring tools such as Prometheus, Grafana, Datadog, etc., and alarm rules are set in the monitoring tools to trigger an alarm when the CPU usage or memory usage exceeds a preset threshold. The alarm rules include an alarm threshold, which is determined by the resource parameters set when defining the specifications of the platform as a service. For example, it is set to trigger an alarm when the CPU usage exceeds 80% or the memory usage exceeds 70%. The specific parameter settings are determined according to the specifications of the platform as a service, and the present invention does not make specific limitations here. After the alarm is triggered, an upgrade operation to the platform as a service will be triggered.
[0089] Step 103, when it is determined that both the CPU usage and the memory usage are less than the predefined alarm thresholds, a comprehensive score of the service profile parameters within the target period and an actual score corresponding to each type of service profile parameters are generated according to preset rules.
[0090] In the embodiment of the present invention, when it is determined that the CPU usage rate and the memory usage rate are both less than the predefined alarm threshold, it is considered that the CPU usage rate or the memory usage rate has not reached the service bottleneck of the Platform as a Service. At this time, the parameters of other dimensions can be judged. The judgment performed here is on the service profile parameters. Because when defining the parameters of the Platform as a Service of the target specification, the service profile parameter threshold is pre-set, which is a score threshold. Therefore, a score value must be calculated for the currently collected service profile parameters. For this reason, a score generation rule is set in the embodiment of the present invention. According to this rule, the actual score corresponding to each type of service profile parameter and the comprehensive score of the service profile parameters within the target period can be generated.
[0091] Step 104: When it is determined that the comprehensive score is less than a predefined service profile threshold, the platform as a service is upgraded.
[0092] When the embodiment of the present invention determines that the comprehensive score is less than a predefined service profile threshold, it is considered that the performance of the platform as a service at this time is low, which may be because a service bottleneck has been reached and an upgrade operation is required.
[0093] When performing an upgrade operation, it is necessary to determine the resource parameters that need to be reconfigured during the upgrade operation, and then determine the target resource instance that needs to be upgraded. From the target resource instance, determine the resource parameter configuration of the platform as a service under the current specification, and update it to achieve the upgrade. The specific steps include:
[0094] When it is determined that the comprehensive score is less than a predefined service profile threshold, determining a first resource parameter that the platform as a service needs to reconfigure;
[0095] Get the name of the first specification file of the resource instance corresponding to the current platform as a service;
[0096] Searching the target specification file by the name of the first specification file to determine the second resource parameter corresponding to the resource instance;
[0097] An upgrade operation is performed on the platform as a service based on the first resource parameter and the second resource parameter.
[0098] The above steps can realize the automation of operations and real-time monitoring, reduce human errors and improve the efficiency of service management.
[0099] Among them, the first resource parameter can be the new configuration parameters of the central processing unit, memory and storage. The name of the first specification file corresponds to the "system-xxx-level1-flavor" mentioned in the above code. When performing the upgrade operation, the update operation is first performed according to the resource parameter information obtained during the upgrade and the resource parameter information (CR information) of the platform as a service under the current specification. Then the PAAS Operator service monitors the changes in the corresponding CR information and starts to update the corresponding resources.
[0100] It should be noted that the steps when performing the downgrade operation can be implemented by referring to the above steps, except that the downgrade operation is performed last.
[0101] Step 105 : When it is determined that the actual score of the throughput indicator is less than a predefined target threshold, the platform as a service is downgraded.
[0102] When calculating the actual score of the service portrait parameters in the embodiment of the present invention, one situation is that the platform as a service has reached a service bottleneck, resulting in performance degradation and a low comprehensive score. Another situation is that the platform as a service currently used provides very few services, which is far less than the service bottleneck. At this time, the calculated comprehensive score is also low. If an upgrade operation is performed, it will not solve this problem but aggravate this problem. Therefore, a comparison will be made based on the actual score of the throughput indicator. If the actual score of the throughput indicator is less than the pre-defined target threshold, it is considered that the service resources provided by the platform as a service are too many and need to be reduced, so a downgrade operation is required.
[0103] It should be noted that before performing the upgrade and downgrade operations, it is crucial to conduct sufficient inspections and preparations to ensure the stability and reliability of the service. The inspection content includes: checking whether the current PAAS service running services are all multiple copies. If not all multiple copies, that is, there is a single copy, then it is necessary to continue to determine whether it is in manual mode. If so, a warning will be issued to the user, and the user will continue to perform subsequent operations after confirmation. Because multiple copies can improve the availability and fault tolerance of the service, a single copy will cause interruption of the running service during upgrade and downgrade operations, so a warning is required (the warning content should include the risks that may be caused by upgrading operations in manual mode, such as service interruption, data loss, etc.); the upgrade operation strategy of the current PAAS service corresponding to the workload will also be checked. If it is not a rolling update and it is in manual mode, a warning needs to be issued to the user (the warning should explain that the non-rolling update strategy may result in the direct replacement of all Pod copies, which may cause service interruption). After the user confirms, continue to perform subsequent operations. The specific steps include:
[0104] Get the replica information and upgrade / downgrade operation mode of the running services in the platform as a service;
[0105] If it is determined that there is a single copy running service in the platform as a service and the upgrade / downgrade operation mode is a manual mode, a prompt message is sent to the user;
[0106] Obtaining strategies for scaling up / downgrading workloads in Platform as a Service;
[0107] When it is determined that the upgrade / downgrade operation strategy is not a rolling update and the upgrade / downgrade operation mode is a manual mode, a prompt message is sent to the user.
[0108] Furthermore, if the service is running in automatic mode, that is, the upgrade policy is automatically executed, then the user should be explicitly informed of the risks of performing PAAS service lifecycle operations (upgrade and downgrade operations) under this policy. Users should be informed that they may not be able to control every step of the upgrade in automatic mode, so they need to be prepared for possible problems. Users should clearly indicate that they understand and accept the risks of performing upgrade operations in automatic mode. This can be achieved through a confirmation button on the user interface, command line input, or other forms of interaction.
[0109] Through the above inspection steps, users can ensure that they fully understand the risks of the operation and make wise decisions before performing PAAS service upgrades and downgrades, which will help reduce unexpected situations during the operation and improve the overall stability of the service.
[0110] The self-management method of Platform as a Service provided by the embodiment of the present invention collects key parameters of Platform as a Service within a target period, wherein the key parameters include CPU utilization, memory utilization, and service profile parameters, and the service profile parameters include at least one type of parameters among response time, throughput index, number of concurrent users, and mean time between failures index; when it is determined that the CPU utilization or memory utilization is greater than a predefined alarm threshold, the Platform as a Service is upgraded; by judging the CPU utilization or memory utilization, it is determined whether the performance of the Platform as a Service is reduced due to unreasonable resource parameter configuration, and then after determining that it is in a bottleneck period, the problem is solved by upgrading the operation; when it is determined that both the CPU utilization and the memory utilization are less than the predefined alarm threshold, an alarm is generated according to preset rules. The comprehensive score of the service profile parameters within the target period and the actual score corresponding to each type of service profile parameters; when it is determined that the comprehensive score is less than the pre-defined service profile threshold, the platform as a service is upgraded; when it is determined that the actual score of the throughput indicator is less than the pre-defined target threshold, the platform as a service is downgraded. These operations avoid the problems of platform as a service performance degradation, throughput indicator degradation, and high latency in processing requests due to unreasonable resource parameter configuration. The embodiments of the present invention determine from different dimensions whether the platform as a service has performance degradation due to unreasonable resource parameter configuration by judging the CPU utilization rate, memory utilization rate, throughput indicator, and service profile parameters, and then modify the resource parameter configuration through upgrade or downgrade operations to improve the performance of the platform as a service.
[0111] Reference Figure 2 , showing Figure 1 The flowchart of step 103 in a platform as a service self-management method provided by an embodiment of the present invention shown in FIG. 1 may include:
[0112] Step 1031, when it is determined that the CPU usage and the memory usage are both less than the predefined alarm thresholds, obtain the predefined target service profile parameters, floating parameters, indicator difference parameters and target weights for each type of target service profile parameters.
[0113] In an embodiment of the present invention, when it is determined that both the CPU usage rate and the memory usage rate are less than the predefined alarm thresholds, the comprehensive score of the service portrait parameters within the target period and the actual score corresponding to each type of service portrait parameters are generated according to preset rules. The preset rules here refer to determining the comprehensive score of the service portrait parameters and the actual score corresponding to each type of service portrait parameters based on predefined target service portrait parameters, floating parameters, indicator difference parameters and target weights for each type of target service portrait parameters.
[0114] Step 1032, determining the target score range of each type of target service profile parameter according to the target service profile parameter, the floating parameter and the index difference parameter.
[0115] The target service profile parameters predefined in the embodiment of the present invention include at least one type of parameter among target response time, target throughput index, target number of concurrent users and target mean time between failures index. The target score interval of each type of target service profile parameter is determined according to the target service profile parameter, the floating parameter and the index difference parameter. For example, the target response time, target throughput index, target number of concurrent users and target mean time between failures index set in the target service profile parameter are represented by a s 、b s 、c s d s Identifier, floating parameters use λ a , b , c , d , index difference parameter β a , β b , β c , β d , set the score interval of 100 points to: [a s -λ a ,a s +λ a ],[b s -λ b ,b s +λ b ],[c s -λ c ,c s +λ c ],[d s -λ d ,d s +λ d ], the service profile parameter score in this range is 100 points, and the score range of 90 points is set as:
[0116] [a s -λ a -β a ,a s -λ a ), [b s -λ b -β b ,b s -λ b ), [c s -λ c -β c ,c s -λ c ),
[0117] [d s -l d -b d ,d s -l d ). s -l a -2*b a ,a s -l a -b a ),[b s -l b -2*b b ,b s -l b -b b ),[c s -l c -2*b c ,c s -l c -b c ),[d s -l d -2*b d ,d s -l d -b d ). s -l a -3*b a ,a s -l a -2*b a ),
[0118] [b s -l b -3*b b ,b s -l b -2*b b ),[c s -l c -3*b c ,c s -l c -2*b c ),
[0119] [d s -l d -3*b d ,d s -l d -2*b d ). s -l a -4*b a ,
[0120] a s -λ a -3*β a ), [b s -λ b -4*β b ,b s -λ b -3*β b ), [c s -λ c -4*β c ,
[0121] c s -λ c -3*β c ), [d s -λ d -4*β d ,d s -λ d -3*β d ), and other score intervals may be set according to the above rules later, which is not specifically limited in the present invention.
[0122] It can be seen that when the target service portrait parameter floats near the floating parameter, the performance of the platform as a service is not affected, so the score is set to full marks at this time, and the interval determined by the target service portrait parameter and the floating parameter is the first score interval. When it exceeds the range of the floating parameter, the index difference parameter is set to increase in sequence. The farther from the target service portrait parameter, the lower the score. The interval determined by the target service portrait parameter, the floating parameter and the index difference parameter is the second score interval. The specific steps include:
[0123] For any target service profile parameter, a first score interval is determined by the target service profile parameter and the floating parameter;
[0124] For any target service profile parameter, a second score interval is determined by the target service profile parameter, the floating parameter and the indicator difference parameter;
[0125] A target score interval for any target service profile parameter is determined according to the first score interval and the second score interval.
[0126] According to the above example, it can be seen that the second score interval includes a 90-point interval, an 80-point interval, a 70-point interval and a 60-point interval, and the first score interval only includes a 100-point interval.
[0127] The above rules can be used to set target score ranges for different types of service profile parameters. These score ranges can not only determine the actual scores for the collected service profile parameters, but also set target thresholds for the determination of throughput indicators. The specific steps include:
[0128] Obtain the first throughput indicator in the target service profile parameters;
[0129] Obtain a second throughput indicator of the platform as a service in each target score range;
[0130] Determine a ratio of the second throughput indicator to the first throughput indicator within each target score interval;
[0131] When it is determined that the proportion is less than or equal to the preset value, the corresponding maximum score in the corresponding target score interval is used as the target threshold for the throughput indicator.
[0132] Referring to the above example content, in the 100-minute interval, the second throughput indicator accounts for 90% of the first throughput indicator, in the 90-minute interval, the second throughput indicator accounts for 80% of the first throughput indicator, in the 80-minute interval, the second throughput indicator accounts for 70% of the first throughput indicator, in the 70-minute interval, the second throughput indicator accounts for 60% of the first throughput indicator, and in the 60-minute interval, the second throughput indicator accounts for 50% of the first throughput indicator. The preset value is set to 60%. It can be seen that the proportions of the 70-minute interval and the 60-minute interval are less than or equal to the preset value, and 70 points are greater than 60 points, so 70 points is used as the target threshold for the throughput indicator.
[0133] Step 1033, after searching the service profile parameters in the target score range, determine the actual score corresponding to each type of service profile parameter within the target period.
[0134] After determining the target score interval, the embodiment of the present invention needs to determine the actual score corresponding to each type of service profile parameter in the service profile according to these score intervals, because when setting the score interval, it is also set according to the type of the target service profile parameter. Different types of target service profile parameters, floating parameters and index difference parameters may be different (for example, the target service profile parameter of the response time is 2s, the floating parameter is 0.3s, and the index difference parameter is 0.15s, the target service profile parameter of the concurrent number of users is 5, the floating parameter is 2, and the index difference parameter is 1.)
[0135] Then the obtained interval ranges are not the same. At this time, the target score interval can be divided according to the type of target service portrait parameters, and marks can be added to the divided intervals. Then, when comparing the service portrait parameters, the type of service portrait parameters can be directly compared with the added marks to determine the score interval that needs to be compared with this type of service portrait parameters. This type of service portrait parameters can be compared in this interval to determine the actual score corresponding to this type of service portrait parameters.
[0136] It should be noted that the target score interval is divided according to the type of target service profile parameter.
[0137] Among them, the target score interval under each division range corresponds to a target service profile parameter type;
[0138] Add a type tag to the partition interval, where the type tag is used to indicate the type of the target service profile parameter in the current partition interval;
[0139] Selecting a first type of service profile parameter from the service profile parameters;
[0140] Searching the first type in the type tags to determine the target division interval;
[0141] The service profile parameters of the first type are compared in the target partition interval to determine the actual scores corresponding to the service profile parameters of the first type.
[0142] Divide the score range by type to narrow the comparison scope and increase the speed when determining the actual score later.
[0143] Step 1034, weighting the actual score corresponding to each type of service portrait parameter by the target weight.
[0144] In the embodiment of the present invention, after obtaining the actual score corresponding to each type of service portrait parameter, the actual score corresponding to each type of service portrait parameter will be weighted. Because the service portrait threshold defined when defining the target parameters of the platform as a service is the comprehensive score of all target service portrait parameters, the actual score corresponding to each type of service portrait parameter also needs to be converted into a comprehensive score when performing comparison here. The embodiment of the present invention obtains it through weighted summation, so the actual score corresponding to each type of service portrait parameter is weighted first.
[0145] Step 1035, sum the weighted actual scores to obtain a comprehensive score of the service profile parameters within the target period.
[0146] In the embodiment of the present invention, the scoring formula is set as: Score = Score a *weight a +Score b *weight b +Score c *weight c +Score d *weight d Therefore, in the above process, the actual scores corresponding to each type of service portrait parameters are weighted, and the weighted results are added together. The sum obtained is the comprehensive score of the service portrait parameters within the target period.
[0147] Through the above process, we can obtain the comprehensive score of the service profile parameters of the platform as a service within the target period. This score can help us evaluate the overall performance and health of the service.
[0148] It should be noted that the platform as a service self-management method provided in the embodiment of the present invention can be implemented by three devices, for example, Figure 3 As shown, it includes a PAAS service parameter setting device, a PAAS service detection and alarm device, and a PAAS service lifecycle management device. The PAAS service parameter setting device is used to set the resource parameters of the PAAS service to describe the size of the specific resources required by the PAAS service; system parameters, PAAS service parameters themselves, are used to ensure the normal startup and operation of the service; extended parameters are used to support user-defined parameters to ensure other characteristics and functions of the service; service portrait parameters are used to support user-defined parameters to ensure other characteristics and functions of the service, service portrait thresholds, etc. These parameter values are derived from business practice tests and industry data comparisons, and solidified experience parameters; these parameters will be used by the deployed PAAS service. The PAAS service detection and alarm device is used to generate alarm messages according to the built-in alarm threshold, compare the service portrait threshold, and generate operation suggestions. The PAAS service lifecycle management device is used to update the read PAAS service update parameter values to the new PAAS service in a rolling update manner.
[0149] Furthermore, the above platform-as-a-service self-management process can also be achieved through Figure 4 It means that the PAAS service parameter setting device defines the PAAS service specification parameters according to the design, creates the PAAS service specification resources, and queries the PAAS service specification resources. The PAAS service detection and alarm device generates upgrade suggestions according to the PAAS service specification resources and the built-in algorithm. After receiving and establishing, the PAAS service lifecycle management device first determines whether it is a manual mode. If so, it checks the PAAS service workload, checks the number of copies of the PAAS service workload and the upgrade strategy. After the user confirms, it obtains the currently used specification information and parses out the specification name required for subsequent operations. If it is not a manual mode, it directly obtains the currently used specification information and parses out the specification name required for subsequent operations. According to the specification name required for subsequent operations, the specification information is obtained to organize the CR resources of the PAAS service, detects changes in the PAAS service CR, and performs relevant update operations.
[0150] Reference Figure 5 , showing a schematic diagram of the structure of a platform as a service self-management device provided by an embodiment of the present invention, such as Figure 5 As shown, the device may include:
[0151] The collection module 201 is used to collect key parameters of the platform as a service within the target period, wherein the key parameters include CPU utilization, memory utilization, service profile parameters, and the service profile parameters include at least one type of parameter among response time, throughput index, number of concurrent users and mean time between failures index.
[0152] The first upgrade module 202 is used to upgrade the platform as a service when it is determined that the CPU usage rate or the memory usage rate is greater than a predefined alarm threshold.
[0153] The first generation module 203 is used to generate a comprehensive score of the service profile parameters within the target period and an actual score corresponding to each type of service profile parameter according to preset rules when it is determined that the CPU usage rate and the memory usage rate are both less than a predefined alarm threshold.
[0154] The second upgrade module 204 is used to upgrade the platform as a service when it is determined that the comprehensive score is less than a predefined service profile threshold.
[0155] The first downgrading module 205 is configured to downgrade the platform as a service when it is determined that the actual score of the throughput indicator is less than a predefined target threshold.
[0156] Optionally, the self-managed device of Platform as a Service also includes:
[0157] The first acquisition module is used to acquire the type and service performance level of the platform as a service under the target specification.
[0158] The first determination module is used to determine the target specification file name in the platform as a service under the target specification according to the type of the platform as a service and the service performance level, wherein the larger the value of the service performance level is, the better the service performance supported by the corresponding platform as a service is.
[0159] The first definition module is used to define target parameters for the platform as a service under the target specifications. The target parameters include resource parameters, system parameters, extended parameters and target service profile parameters. The target parameters are all array type structures. The array structures of resource parameters, system parameters and extended parameters include fields for specifying parameter names, fields for specifying parameter values and fields for describing the functions of the parameters. The array structure of target service profile parameters includes fields for specifying parameter names, fields for specifying parameter values, fields for specifying target weights of the parameters and fields for describing the functions of the parameters.
[0160] The second determination module is used to determine the alarm thresholds of the use of the central processing unit, memory and storage by the platform as a service under the target specifications through resource parameters.
[0161] The first guarantee module is used to ensure the normal startup and operation of the platform as a service under the target specifications through system parameters, and to ensure the normal use of the target functions of the platform as a service under the target specifications through extended parameters.
[0162] The second generation module is used to generate a service profile threshold of the platform as a service under the target specification through the target service profile parameters.
[0163] The first creation module is used to create a target resource instance of a corresponding specification in a target cluster according to the target specification file name and target parameters defined under the target specification.
[0164] The first deployment module is used to complete the deployment of the platform as a service of the target specification in the target cluster through the target resource instance.
[0165] Optionally, the first generating module 203 specifically includes:
[0166] The first acquisition submodule is used to obtain predefined target service profile parameters, floating parameters, indicator difference parameters and target weights for each type of target service profile parameters when it is determined that both the CPU usage and the memory usage are less than predefined alarm thresholds.
[0167] The first determination submodule is used to determine the target score range of each type of target service profile parameter according to the target service profile parameter, the floating parameter and the indicator difference parameter.
[0168] The second determination submodule is used to determine the actual score corresponding to each type of service portrait parameter within the target period after searching the service portrait parameter in the target score range.
[0169] The first weighted submodule is used to weight the actual score corresponding to each type of service portrait parameter by the target weight.
[0170] The first summing submodule is used to sum the weighted actual scores to obtain a comprehensive score of the service profile parameters within the target period.
[0171] Optionally, the predefined target service profile parameters include at least one type of parameter among target response time, target throughput index, target number of concurrent users and target mean time between failures index.
[0172] The first determination submodule specifically includes:
[0173] The first determination unit is used to determine a first score interval for any target service profile parameter by using the target service profile parameter and a floating parameter.
[0174] The second determination unit is used to determine a second score interval for any target service portrait parameter through the target service portrait parameter, the floating parameter and the indicator difference parameter.
[0175] The third determination unit is used to determine a target score interval of any target service profile parameter according to the first score interval and the second score interval.
[0176] The second determination submodule specifically includes:
[0177] The division submodule is used to divide the target score interval according to the type of the target service portrait parameter, wherein the target score interval under each division range corresponds to a target service portrait parameter type.
[0178] The add tag submodule is used to add a type tag to the partition interval, and the type tag is used to indicate the type of the target service profile parameter in the current partition interval.
[0179] The selection submodule is used to select a first type of service profile parameter from the service profile parameters.
[0180] The retrieval submodule is used to retrieve the first type in the type tags to determine the target division interval.
[0181] The comparison submodule is used to compare the first type of service portrait parameters in the target division interval to determine the actual score corresponding to the first type of service portrait parameters.
[0182] Optionally, the self-managed device of Platform as a Service also includes:
[0183] The second acquisition module is used to obtain the copy information and upgrade / downgrade operation mode of the running service in the platform as a service.
[0184] The first prompt sending module is used to send a prompt message to the user when it is determined that there is a single copy running service in the platform as a service and the upgrade / downgrade operation mode is a manual mode.
[0185] The third acquisition module is used to obtain the upgrade / downgrade operation strategy of the workload in the platform as a service.
[0186] The second prompt sending module is used to send a prompt message to the user when it is determined that the upgrade / downgrade operation strategy is not a rolling update and the upgrade / downgrade operation mode is a manual mode.
[0187] Optionally, the second upgrading module 204 specifically includes:
[0188] The third determination submodule is used to determine a first resource parameter that needs to be reconfigured for the platform as a service when it is determined that the comprehensive score is less than a predefined service profile threshold.
[0189] The second acquisition submodule is used to obtain the name of the first specification file of the resource instance corresponding to the current platform as a service.
[0190] The fourth determination submodule is used to search the target specification file by the name of the first specification file to determine the second resource parameter corresponding to the resource instance.
[0191] The upgrade submodule is used to perform an upgrade operation on the platform as a service based on the first resource parameter and the second resource parameter.
[0192] The self-management method of Platform as a Service provided by the embodiment of the present invention collects key parameters of Platform as a Service within a target period, wherein the key parameters include CPU utilization, memory utilization, and service profile parameters, and the service profile parameters include at least one type of parameters among response time, throughput index, number of concurrent users, and mean time between failures index; when it is determined that the CPU utilization or memory utilization is greater than a predefined alarm threshold, the Platform as a Service is upgraded; by judging the CPU utilization or memory utilization, it is determined whether the performance of the Platform as a Service is reduced due to unreasonable resource parameter configuration, and then after determining that it is in a bottleneck period, the problem is solved by upgrading the operation; when it is determined that both the CPU utilization and the memory utilization are less than the predefined alarm threshold, an alarm is generated according to preset rules. The comprehensive score of the service profile parameters within the target period and the actual score corresponding to each type of service profile parameters; when it is determined that the comprehensive score is less than the pre-defined service profile threshold, the platform as a service is upgraded; when it is determined that the actual score of the throughput indicator is less than the pre-defined target threshold, the platform as a service is downgraded. These operations avoid the problems of platform as a service performance degradation, throughput indicator degradation, and high latency in processing requests due to unreasonable resource parameter configuration. The embodiments of the present invention determine from different dimensions whether the platform as a service has performance degradation due to unreasonable resource parameter configuration by judging the CPU utilization rate, memory utilization rate, throughput indicator, and service profile parameters, and then modify the resource parameter configuration through upgrade or downgrade operations to improve the performance of the platform as a service.
[0193] The embodiment of the present invention also provides a communication device, such as Figure 6 As shown, it includes a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304.
[0194] Memory 303, used for storing computer programs;
[0195] The processor 301 is used to execute the program stored in the memory 303 to implement the following steps:
[0196] Collect key parameters of the platform as a service within the target period, wherein the key parameters include CPU usage, memory usage, and service profile parameters, wherein the service profile parameters include response time,
[0197] At least one type of parameter among throughput indicator, number of concurrent users and mean time between failures indicator;
[0198] When it is determined that the CPU usage rate or the memory usage rate is greater than a predefined alarm threshold, performing an upgrade operation on the platform as a service;
[0199] When it is determined that the CPU usage rate and the memory usage rate are both less than the predefined alarm threshold, a comprehensive score of the service profile parameters within the target period and an actual score corresponding to each type of service profile parameters are generated according to preset rules;
[0200] When it is determined that the comprehensive score is less than a predefined service profile threshold, upgrading the platform as a service;
[0201] When it is determined that the actual score of the throughput indicator is less than a predefined target threshold, the platform as a service is downgraded.
[0202] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0203] The communication interface is used for communication between the above terminal and other devices.
[0204] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0205] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0206] The present invention also provides a readable storage medium, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the platform as a service self-management method of the aforementioned embodiment.
[0207] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0208] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. According to the above description, it is obvious that the structure required for constructing this type of device is. In addition, the present invention is not directed to any specific programming language. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific language is to disclose the best mode of the present invention.
[0209] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0210] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in less than all of the features of the individual embodiments disclosed above. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.
[0211] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0212] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the sorting device according to the present invention. The present invention may also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0213] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
[0214] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, apparatuses and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0215] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0216] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0217] It should be noted that the various data-related processes in the embodiments of the present application are all carried out in compliance with the corresponding data protection laws and policies of the country where the device is located, and with the authorization given by the owner of the corresponding device.
Claims
1. A platform as a service self-management method, characterized in that: The method comprises: Collect key parameters of the platform as a service within the target period, wherein the key parameters include CPU usage, memory usage, and service profile parameters, and the service profile parameters include at least one type of parameter among response time, throughput index, number of concurrent users, and mean time between failures index; When it is determined that the CPU usage rate or the memory usage rate is greater than a predefined alarm threshold, performing an upgrade operation on the platform as a service; When it is determined that the CPU usage rate and the memory usage rate are both less than the predefined alarm threshold, a comprehensive score of the service profile parameters within the target period and an actual score corresponding to each type of service profile parameters are generated according to preset rules; When it is determined that the comprehensive score is less than a predefined service profile threshold, upgrading the platform as a service; When it is determined that the actual score of the throughput indicator is less than a predefined target threshold, the platform as a service is downgraded.
2. The method according to claim 1, characterized in that Before collecting the key parameters of the platform as a service within the target period, it also includes: Obtain the type and service performance level of the platform as a service under the target specifications; Determine the target specification file name of the platform as a service under the target specification by the type of the platform as a service and the service performance level, wherein a larger value of the service performance level indicates that the service performance supported by the corresponding platform as a service is better; defining target parameters for the platform as a service under the target specification, the target parameters including resource parameters, System parameters, extended parameters and target service profile parameters, the target parameters are all array type structures, wherein the array structures of the resource parameters, system parameters and extended parameters include fields for specifying parameter names, fields for specifying parameter values and fields for describing parameter functions, and the array structure of the target service profile parameters includes fields for specifying parameter names, fields for specifying parameter values, fields for specifying parameter target weights and fields for describing parameter functions; Determine alarm thresholds of CPU, memory and storage usage of the platform as a service under target specifications through the resource parameters; The system parameters are used to ensure the normal startup and operation of the platform as a service under the target specifications, and the extended parameters are used to ensure the normal use of the target functions of the platform as a service under the target specifications; the service profile threshold of the platform as a service under the target specifications is generated through the target service profile parameters; Create a target resource instance of the corresponding specification in the target cluster using the target specification file name and target parameters defined under the target specification; The target resource instance is used to complete the deployment of the platform as a service of the target specification in the target cluster.
3. The method according to claim 1, characterized in that When it is determined that the CPU usage rate and the memory usage rate are both less than the predefined alarm threshold, generating a comprehensive score of the service profile parameters within the target period and an actual score corresponding to each type of service profile parameter according to a preset rule, including: When it is determined that the CPU usage rate and the memory usage rate are both less than a predefined alarm threshold, obtaining a predefined target service profile parameter, a floating parameter, an indicator difference parameter and a target weight for each type of target service profile parameter; Determine a target score interval for each type of target service profile parameter according to the target service profile parameter, the floating parameter and the index difference parameter; After searching the service profile parameters in the target score interval, determining the actual score corresponding to each type of service profile parameter within the target period; Weighting the actual score corresponding to each type of service profile parameter by the target weight; The weighted actual scores are summed up to obtain the comprehensive score of the service profile parameters within the target period.
4. The method according to claim 3, characterized in that The predefined target service profile parameters include at least one type of parameter among target response time, target throughput index, target number of concurrent users and target mean time between failures index; The step of determining a target score interval for each target service profile parameter according to the target service profile parameter, the floating parameter and the index difference parameter includes: For any of the target service profile parameters, determining a first score interval by using the target service profile parameter and the floating parameter; For any of the target service profile parameters, determining a second score interval by using the target service profile parameter, the floating parameter and the indicator difference parameter; A target score interval for any target service profile parameter is determined based on the first score interval and the second score interval.
5. The method according to claim 4, characterized in that After searching the service profile parameter in the target score interval, determining the actual score corresponding to each type of service profile parameter in the target period includes: Divide the target score interval according to the type of the target service profile parameter, wherein each target score interval under each division range corresponds to a target service profile parameter type; Adding a type tag to the partition interval, wherein the type tag is used to indicate the type of the target service profile parameter in the current partition interval; Selecting a first type of service profile parameter from the service profile parameters; Retrieving the first type in the type tag to determine a target partition interval; The service portrait parameters of the first type are compared in the target division interval to determine the actual score corresponding to the service portrait parameters of the first type.
6. The method according to claim 1, characterized in that After downgrading the platform as a service when it is determined that the actual score of the throughput indicator is less than a predefined target threshold, the further step further includes: Get the replica information and upgrade / downgrade operation mode of the running services in the platform as a service; If it is determined that there is a single copy running service in the platform as a service and the upgrade / downgrade operation mode is a manual mode, a prompt message is sent to the user; Obtaining strategies for scaling up / downgrading workloads in Platform as a Service; When it is determined that the upgrade / downgrade operation strategy is not a rolling update and the upgrade / downgrade operation mode is a manual mode, a prompt message is sent to the user.
7. The method according to claim 2, characterized in that In the case where it is determined that the comprehensive score is less than a predefined service profile threshold, performing an upgrade operation on the platform as a service also includes: In the case where it is determined that the comprehensive score is less than a predefined service profile threshold, determining a first resource parameter of the platform as a service that needs to be reconfigured; Get the name of the first specification file of the resource instance corresponding to the current platform as a service; Searching the target specification file by the name of the first specification file to determine a second resource parameter corresponding to the resource instance; An upgrade operation is performed on the platform as a service based on the first resource parameter and the second resource parameter.
8. A platform as a service self-management device, characterized in that: include: A collection module, used to collect key parameters of the platform as a service within a target period, wherein the key parameters include CPU usage, memory usage, and service profile parameters, and the service profile parameters include at least one type of parameter among response time, throughput index, number of concurrent users, and mean time between failures index; A first upgrade module, configured to upgrade the platform as a service when determining that the CPU usage rate or the memory usage rate is greater than a predefined alarm threshold; A first generating module is used to generate a comprehensive score of the service profile parameters within a target period and an actual score corresponding to each type of service profile parameter according to a preset rule when it is determined that the CPU usage rate and the memory usage rate are both less than a predefined alarm threshold; A second upgrade module is used to upgrade the platform as a service when it is determined that the comprehensive score is less than a predefined service profile threshold; The first downgrading module is used to downgrade the platform as a service when it is determined that the actual score of the throughput indicator is less than a predefined target threshold.
9. A communication device, characterized in that: include: A transceiver, a memory, a processor, and a program stored on the memory and executable on the processor; The processor is used to read the program in the memory to implement the steps in the self-management method of Platform as a Service as described in any one of claims 1-7.
10. A readable storage medium for storing a program, characterized in that: When the stored program is executed by a processor, the steps in the platform as a service self-management method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Service grade management method and system
CN104660436A
Network service management method and device, server and storage medium
CN108173698A
Block chain system adaptive service degradation method and device, and storage medium
CN113138853A
Automatic weighting load balancing method and system, electronic equipment and storage medium
CN116016533A
Container running state monitoring method, intelligent computing cloud operating system and computing platform
CN118012719A
