System partition management methods, devices, electronic equipment, and storage media

By setting up shared memory and proxy services in the system partition, the problem of business service latency caused by frequent RPC calls was solved, and more efficient system partition management and performance calculation were achieved.

CN115586864BActive Publication Date: 2026-06-30TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2021-07-05
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In the field of cloud computing, when a system partitions process business services, frequent calls to RPC interfaces lead to increased service latency and a decreased user experience.

Method used

By setting up a first shared memory and a proxy service in the system partition, the business service writes statistical data to the shared memory, the proxy service is responsible for reading from the shared memory and reporting to the management service, and the management service calculates performance based on the statistical data and manages it, reducing additional communication connections and centralized database search transactions.

Benefits of technology

It reduced the time spent processing data in business services, improved the processing efficiency of management services, and achieved more efficient system partition management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115586864B_ABST
    Figure CN115586864B_ABST
Patent Text Reader

Abstract

This application provides a system partition management method, apparatus, electronic device, and storage medium. The method includes: establishing communication with a preset proxy service in the system partition and obtaining statistical data read by the proxy service from a first shared memory in the system partition, wherein the first shared memory is used for business services in the system partition to write the statistical data, and the statistical data is used to describe the processing actions of the system partition for business services in a time dimension; calculating the performance of the system partition in processing business services based on the statistical data; and managing the system partition based on the performance. In this embodiment, the time spent by business services in processing data is reduced, and the processing efficiency of management services is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing, specifically to a system partitioning management method, apparatus, electronic device, and storage medium. Background Technology

[0002] In the field of cloud computing, system partitioning is used to process business services that meet users' business needs. In existing technologies, to ensure excellent performance of system partitioning in processing business services, these services often need to frequently call RPC (Remote Procedure Call) interfaces for communication, leading to increased service latency and a degraded user experience. Summary of the Invention

[0003] One objective of this application is to provide a system partitioning management method, apparatus, electronic device, and storage medium that can reduce the time spent processing data for business services and improve the processing efficiency of management services.

[0004] According to one aspect of the embodiments of this application, a method for managing system partitions is disclosed, the method comprising:

[0005] Establish communication with a preset proxy service in the system partition and obtain statistical data read by the proxy service from the first shared memory in the system partition. The first shared memory is used for business services in the system partition to write the statistical data, and the statistical data is used to describe the processing actions of the system partition for the business services in the time dimension.

[0006] The performance of the system partition processing business service is calculated based on the statistical data.

[0007] The system partitions are managed based on the aforementioned performance.

[0008] According to one aspect of the embodiments of this application, a method for managing system partitions is disclosed, the method comprising:

[0009] The system monitors statistical data stored in the first shared memory of the system partition, wherein the first shared memory is used for business services in the system partition to write the statistical data, and the statistical data is used to describe the processing actions of the system partition for business services in the time dimension.

[0010] Establish communication with the management service and report the statistical data to the management service. The management service calculates the performance of the business service in the system partition based on the statistical data and manages the system partition based on the performance.

[0011] According to one aspect of the embodiments of this application, a system partition management device is disclosed, the device comprising:

[0012] The first communication module is configured to establish communication with a preset proxy service in the system partition and obtain statistical data read by the proxy service from the first shared memory in the system partition. The first shared memory is used for business services in the system partition to write the statistical data, and the statistical data is used to describe the processing actions of the system partition for the business services in the time dimension.

[0013] The calculation module is configured to calculate the performance of the system partition processing business service based on the statistical data;

[0014] The management module is configured to manage system partitions based on the aforementioned performance.

[0015] In one exemplary embodiment of this application, the management module is configured as follows:

[0016] The statistical data is mapped to discrete points to obtain the set of discrete points corresponding to the statistical data;

[0017] The set of discrete points is processed using a preset outlier algorithm to detect outliers in the set of discrete points.

[0018] Extract the distribution characteristics of the outliers along the time dimension;

[0019] The performance characteristics are calculated based on the aforementioned distribution features.

[0020] In one exemplary embodiment of this application, the management module is configured as follows:

[0021] The density of outliers in the time dimension is extracted from the distribution characteristics;

[0022] The performance is calculated based on the density level.

[0023] In one exemplary embodiment of this application, the computing module is configured as follows:

[0024] The statistical data is written to a second shared memory shared by at least two local machines, and the statistical data is provided to each machine through the second shared memory;

[0025] The performance of the system partition processing business service is calculated by each machine based on the statistical data.

[0026] In an exemplary embodiment of this application, each machine is associated with at least one business service, and the computing module is configured to: calculate the performance of the associated business service for each system partition based on the statistical data through each machine;

[0027] The management module is configured to filter system partitions that process associated business services based on the performance of each system partition in processing the associated business services.

[0028] In an exemplary embodiment of this application, each machine is associated with at least one system partition, and the computing module is configured to: calculate the performance of the associated partition's processing business services based on the statistical data by each machine.

[0029] In one exemplary embodiment of this application, the device is configured as follows:

[0030] Monitor the working status of the proxy service;

[0031] If the working status of the proxy service is abnormal, a restart command is sent to the proxy service.

[0032] According to one aspect of the embodiments of this application, a system partition management device is disclosed, the device comprising:

[0033] The monitoring module is configured to monitor statistical data stored in the first shared memory of the system partition in which it is located. The first shared memory is used for business services in the system partition to write the statistical data. The statistical data is used to describe the processing actions of the system partition for business services in the time dimension.

[0034] The second communication module is configured to establish communication with the management service and report the statistical data to the management service. The management service calculates the performance of the business service of the system partition based on the statistical data and manages the system partition based on the performance.

[0035] In an exemplary embodiment of this application, the second communication module is configured to report the statistical data to the management service using an atomic type data structure provided by C++11.

[0036] In an exemplary embodiment of this application, the second communication module is configured to report the statistical data to the management service using a consistent hashing routing algorithm.

[0037] According to one aspect of the embodiments of this application, an electronic device is disclosed, comprising: a memory storing computer-readable instructions; and a processor reading the computer-readable instructions stored in the memory to perform the method described in any of the preceding claims.

[0038] According to one aspect of the embodiments of this application, a computer program medium is disclosed, on which computer-readable instructions are stored, which, when executed by a computer's processor, cause the computer to perform the method described in any of the preceding claims.

[0039] According to one aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described above.

[0040] In this embodiment, through the setup of a first shared memory and a proxy service, during the management of system partitions, business services write their respective statistical data into the first shared memory of their respective system partitions. The proxy service then reads the statistical data from the first shared memory and reports it to the management service, which then manages the system partitions based on the received statistical data. This method ensures that the reporting of statistical data is handled by the proxy service. Business services implementing business functions only need to write their respective statistical data into the first shared memory during system partition management, eliminating the need for additional communication connections and reducing the time spent processing data. Furthermore, the management service, in managing each system partition based on the received statistical data, does not need to handle data search transactions related to a centralized database, improving the processing efficiency of the management service.

[0041] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.

[0042] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description

[0043] The above and other objectives, features and advantages of this application will become more apparent from a detailed description of exemplary embodiments thereof with reference to the accompanying drawings.

[0044] Figure 1 A schematic diagram of an exemplary system architecture according to an embodiment of the present application is shown.

[0045] Figure 2 A detailed architectural diagram of the internal structure of the execution body of a system partition management method according to an embodiment of this application is shown.

[0046] Figure 3A flowchart illustrating a system partition management method according to an embodiment of this application is shown.

[0047] Figure 4 A detailed architectural diagram of the internal structure of the execution body of a system partition management method according to an embodiment of this application is shown.

[0048] Figure 5 A flowchart illustrating a system partition management method according to an embodiment of this application is shown.

[0049] Figure 6 A block diagram of a system partition management device according to an embodiment of this application is shown.

[0050] Figure 7 A block diagram of a system partition management device according to an embodiment of this application is shown.

[0051] Figure 8 A hardware diagram of an electronic device according to an embodiment of this application is shown. Detailed Implementation

[0052] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided to make the description of this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. The drawings are merely illustrative of this application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted.

[0053] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more exemplary embodiments. Numerous specific details are provided in the following description to give a full understanding of exemplary embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced with one or more of the specific details omitted, or other methods, components, steps, etc., can be employed. In other instances, well-known structures, methods, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.

[0054] Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0055] This application provides a method for managing system partitions. System partitioning is a solution to improve system availability by deploying the system within each system partition, isolating system partitions from each other, and improving system availability through redundancy.

[0056] Figure 1 A schematic diagram of an exemplary system architecture of a technical solution according to an embodiment of this application is shown.

[0057] like Figure 1 As shown, the system architecture may include terminal devices (such as...) Figure 1 The device shown includes one or more of a smartphone 101, tablet 102, and portable computer 103 (which could also be a desktop computer, etc.), a network 104, and a server 105. The network 104 serves as a medium for providing a communication link between the terminal device and the server 105. The network 104 can include various connection types, such as wired communication links, wireless communication links, etc.

[0058] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, there can be any number of terminal devices, networks, and servers. For example, server 105 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0059] In this system, server 105 is the main entity responsible for managing the system partitions, while terminal devices primarily serve as the service recipients of the business services within those partitions. By managing the internally configured system partitions, server 105 improves the performance of the system partitions in processing business services, thereby enabling these services to provide better service to the terminal devices.

[0060] It should be noted that this embodiment is merely an exemplary illustration of the system architecture to which this application can be applied, and should not be construed as limiting the functionality and scope of use of this application.

[0061] Figure 2 A detailed architectural diagram of the internal structure of the execution body of a system partition management method according to an embodiment of this application is shown.

[0062] like Figure 2 As shown in this embodiment, the main entities executing the system partition management method include three types of services: management services, business services in the system partition, and proxy services in the system partition.

[0063] Each system partition is isolated from the others, and each has its own system deployed to respond to business services and handle business requests initiated by those services. These system partitions can be centrally located on the same physical device, maintaining only logical isolation; or they can be distributed across different physical devices, maintaining both logical and physical isolation.

[0064] Business services are primarily used to interface with users' terminal devices, fulfilling their business needs by implementing business functions. When a business request initiated by a business service is processed by a system partition, the business service resides within that system partition. If the business request initiated by the business service is no longer processed by that system partition but by another system partition, then the business service resides in the other system partition.

[0065] Each system partition has a first shared memory for business services to share. Different business services within the same system partition can write statistical data into this first shared memory. This statistical data describes the processing actions of the system partition on the business services over time (e.g., the number of processing actions, the duration of each processing action, etc.). Specifically, whenever a business service performs a processing action on its business request by its system partition, the business service can detect the relevant signals fed back by the system partition and identify the corresponding processing action from the signals. Then, the business service writes the statistical data describing the processing actions over time into the first shared memory of its system partition according to a preset statistical data writing algorithm.

[0066] Each system partition also has its own proxy service. The proxy service primarily reads statistical data from the first shared memory within its respective system partition and uploads this data to the management service. The management service then calculates the performance of each system partition's business services based on the statistical data received from the proxy services within each system partition. Finally, the management service manages each system partition based on its performance.

[0067] Therefore, in this embodiment, by setting up a first shared memory and a proxy service, during the management of system partitions, business services write their respective statistical data into the first shared memory of their respective system partitions. The proxy service then reads the statistical data from the first shared memory and reports it to the management service, which then manages the system partitions based on the received statistical data. In this way, the reporting of statistical data is handled by the proxy service. Business services implementing business functions only need to write their respective statistical data into the first shared memory during system partition management, eliminating the need for additional communication connections and reducing the time spent processing data. Furthermore, during the management service's management of each system partition based on the received statistical data, it does not need to handle data search transactions related to a centralized database, improving the processing efficiency of the management service.

[0068] In one embodiment, the service writes statistical data to the first shared memory using the statistical data writing algorithm shown below: obtaining the identifier of the service request; accumulating the number of processing actions of the same identifier service requests within a preset time period to obtain statistical data; and writing the statistical data to the first shared memory of the system partition where it is located.

[0069] In this embodiment, the business service divides and accumulates statistical data by using the identifier of the business request and the time period, thereby generating statistical data, and writes the statistical data into the first shared memory of the system partition where the business service is located.

[0070] Specifically, the process of writing statistical data into the first shared memory is illustrated by referring to the data structure of the statistical data in Table 1 below.

[0071]

[0072] Table 1. Data Structure of Statistics in the First Shared Memory

[0073] Type is the identifier of the business service, Stage is the identifier of the interface called by the business service, Time is a certain time period, Total_num is the total number of business requests initiated by the business service within the time period, Succ_num is the total number of business requests successfully processed within the time period, Logic_err is the total number of logic failures of the business service within the time period, Sys_err is the total number of system partition failures within the time period, and Pro_time is the preset time period.

[0074] In this embodiment, the statistical data writing algorithm for the business service to write statistical data to the first shared memory is as follows:

[0075] 1. Retrieve the Time of the statistical data for the current record based on Type+Stage.

[0076] 2. If Type+Stage is empty, insert a new statistical data record, and the Time of the new statistical data record is equal to the business time.

[0077] 3. If the Time+10 of the retrieved statistical data is less than or equal to the business time, then insert a new statistical data record with the Time equal to the business time.

[0078] 4. If the Time+10 of the retrieved statistical data is greater than the business time, then the statistical data will be added to the statistical data of the current record, and the Time will remain unchanged.

[0079] Wherein, business time is the time point when the corresponding business request is processed; 10 is the preset time period, for example: 10 seconds.

[0080] In this embodiment, the data structure of the statistical data stored by the management service is shown in Table 2.

[0081]

[0082] Table 2. Data Structure of Statistical Data in Management Services

[0083] Sectid is the identifier of the system partition, Type is the identifier of the business service, Stage is the identifier of the interface called by the business service, Time is a certain time period, Total_num is the total number of business requests initiated by the business service within the time period, Succ_num is the total number of business requests successfully processed within the time period, Logic_err is the total number of logic failures of the business service within the time period, Sys_err is the total number of failures of the system partition within the time period, and Pro_time is the preset time period.

[0084] In one embodiment, when the management service calculates performance based on the received statistical data, if there is no statistical data within the time period shown in Table 2, it is considered that there is an anomaly in the corresponding system partition, and an alarm is issued while processing the system partition anomaly.

[0085] In one embodiment, when calculating the performance of each system partition, the management service horizontally compares the total number of requests (Total_num) shown in Table 2 for all system partitions. If the total number of requests for one system partition is lower than the total number of requests for other system partitions, and the deviation exceeds a certain threshold, it is considered that the statistical data reporting for that system partition is incomplete. An alarm is issued while handling this data incompleteness anomaly.

[0086] Figure 3A flowchart of a system partition management method according to an embodiment of this application is shown. The executor of this method is executorically... Figure 2 The management service shown includes the following method:

[0087] Step S210: Establish communication with the preset proxy service in the system partition and obtain the statistical data read by the proxy service from the first shared memory in the system partition. The first shared memory is used for the business services in the system partition to write statistical data. The statistical data is used to describe the processing actions of the system partition for the business services in the time dimension.

[0088] Step S220: Calculate the performance of the system partition processing business service based on statistical data;

[0089] Step S230: Manage system partitions based on performance.

[0090] In one embodiment, the management service uses a method of detecting outliers to calculate the performance of the system partition processing business service.

[0091] In this embodiment, statistical data is mapped to discrete points, resulting in a set of discrete points corresponding to the statistical data. A preset outlier algorithm is used to process the set of discrete points to detect outliers. The distribution characteristics of the outliers over the time dimension are extracted. Performance is calculated based on these distribution characteristics.

[0092] Specifically, after receiving statistical data from the proxy services of each system partition, the management service maps the statistical data of each system partition to the various dimensions contained in the data structure according to the data structure of the statistical data, and obtains a set of discrete points composed of the discrete points corresponding to each statistical data.

[0093] Then, a pre-defined outlier algorithm is used to process the obtained set of discrete points to detect outliers. Outliers are points that are identified as isolated anomalies under certain conditions; therefore, outliers can also be called anomalous points.

[0094] After detecting outliers, their distribution characteristics over time are extracted. Based on these characteristics, the performance of the corresponding system partition is calculated. The distribution characteristics of outliers over time primarily describe the distribution of anomaly handling actions within the corresponding system partition over time. Furthermore, it can describe the frequency, intensity, and other distribution characteristics of these anomaly handling actions over time.

[0095] The advantage of this embodiment is that by calculating performance through outlier detection, it can more comprehensively reflect whether the processing actions of the system partition are abnormal, thereby improving the accuracy of the obtained performance data.

[0096] In one embodiment, the density of outliers over time is extracted from the distribution characteristics. Performance is then calculated based on this density.

[0097] Specifically, the density of outliers over time can reflect whether their occurrence is normal or accidental.

[0098] If outliers are evenly distributed over time, it indicates that their appearance is normal for the system partition, suggesting that they are caused by inherent properties or factors of the system partition. It can be expected that more outliers will continue to appear in the system partition over time. These outliers are valuable and can accurately reflect the performance of the system partition; therefore, the frequency of these outliers can be used to calculate the system partition's performance.

[0099] If outliers are too concentrated over time, it suggests that their appearance is likely accidental due to system partitioning (e.g., network fluctuations at a certain time cause the system partition to fail to process any business services during that time, resulting in a concentration of outliers). Since these concentrated outliers are accidental and have little reference value, they cannot accurately reflect the performance of the system partition. Therefore, these concentrated outliers can be removed, and the performance of the system partition can be calculated using the frequency, distribution characteristics, or other features of the remaining outliers.

[0100] The advantage of this embodiment is that it calculates performance based on the density of outliers in the time dimension, which can eliminate outliers with little reference value, thereby further improving the accuracy of the obtained performance.

[0101] In one embodiment, the management service includes multiple machines, each of which independently calculates the performance of the system partition processing business services.

[0102] In this embodiment, the management service writes statistical data into a second shared memory shared by at least two local machines, and then provides the statistical data to each machine through the second shared memory. Each machine then calculates the performance of the system partition processing service based on the statistical data.

[0103] Specifically, such as Figure 4 As shown, the management service has multiple machines, as well as a second shared memory shared by all machines.

[0104] The statistical data reported by the agent service is stored in the second shared memory by the management service, allowing each machine to read the statistical data of all system partitions from the second shared memory. Each machine then independently calculates the performance of each system partition based on the statistical data stored in the second shared memory.

[0105] The advantage of this embodiment is that by calculating performance independently on multiple machines, the dependence on a centralized central node is eliminated, thereby improving the availability of the performance calculation process.

[0106] In one embodiment, each machine is associated with at least one business service. The management service calculates the performance of each system partition in processing the associated business service based on statistical data from each machine. Based on the performance of each system partition in processing the associated business service, the system partitions processing the associated business service are selected.

[0107] Specifically, the machines in the management service are mainly distinguished by their associated business services. The machines are primarily used to calculate the performance of each system partition in processing its associated business services. Based on the processing of associated business services, the management service can remove system partitions with poor performance in processing associated business services, and those system partitions will no longer process the associated business services.

[0108] For example, machine 1 is associated with service 1. After obtaining statistical data from the second shared memory, machine 1 calculates the performance of each system partition in processing service 1. If the performance of system partition 1 in processing service 1 does not meet the requirements, system partition 1 is removed from the list of service 1 processing and will no longer process service 1.

[0109] It should be noted that in this embodiment, the removal of system partitions is limited to business services whose performance does not meet the requirements, and does not mean that the removed system partitions can no longer process other business services. For example, if the performance of system partition 1 in processing business service 1 does not meet the requirements, system partition 1 will be removed from business service 1, and system partition 1 will no longer process business service 1. However, if the performance of system partition 1 in processing business service 2 meets the requirements, system partition 2 can still continue to process business service 2.

[0110] In one embodiment, each machine is associated with at least one system partition, and the performance of the associated partition in processing business services is calculated by each machine based on statistical data.

[0111] Specifically, the machines in the management service are primarily distinguished by their associated system partitions. These machines are mainly used to calculate the overall performance of the business services processed by their respective system partitions. The management service then manages these system partitions based on their overall performance.

[0112] For example, machine 1 is associated with system partition 1. After obtaining statistical data from the second shared memory, machine 1 calculates the overall performance of system partition 1 in handling various business services (overall processing speed, overall success rate, etc.). Then, the management service can manage system partition 1 based on its overall performance to optimize its overall processing speed or overall success rate.

[0113] In one embodiment, such as Figure 4 As shown, a partition selection service is also provided, which can be part of the management service. This partition selection service is mainly used to receive the performance data calculated by each machine from the management service, and then use a preset partition routing algorithm to select the system partition for processing specific business services.

[0114] In one embodiment, the management service is also used to handle exceptions that occur in the proxy service.

[0115] In this embodiment, the management service monitors the working status of the proxy service. If the working status of the proxy service becomes abnormal, causing the proxy service to be unable to report statistical data normally, a restart command is sent to the proxy service.

[0116] The advantage of this embodiment is that when the proxy service encounters an anomaly, the management service handles it, eliminating the need for the business service to deal with situations where statistical data cannot be reported normally, thus reducing costs on the business side.

[0117] Figure 5 A flowchart of a system partition management method according to an embodiment of this application is shown. The executor of this method is executorically... Figure 2 The proxy service shown includes the following method:

[0118] Step S310: Monitor the statistical data stored in the first shared memory in the system partition where it is located. The first shared memory is used to write statistical data to the business services in the system partition where it is located. The statistical data is used to describe the processing actions of the system partition for the business services in the time dimension.

[0119] Step S320: Establish communication with the management service and report statistical data to the management service. The management service calculates the performance of the business service of the system partition based on the statistical data and manages the system partition based on the performance.

[0120] In one embodiment, the proxy service reports statistical data to the management service using atomic type data structures provided by C++11.

[0121] Specifically, the proxy service uses the atomic data type provided at the language level in C++11 to read statistical data from the first shared memory of the system partition, and then reports the statistical data to the management service.

[0122] Understandably, reading and reporting statistical data involves queue management. The common practice is to use mutexes or critical sections to implement queue management, but this requires a significant amount of work from developers. However, by using atomic data structures provided by C++11, the need for mutexes or critical sections is hidden from developers. Without adding mutexes or critical sections, the proxy service can still manage queues and complete the reporting of statistical data.

[0123] In one embodiment, the proxy service uses a consistent hashing routing algorithm to report statistical data to the management service.

[0124] Specifically, when the proxy service reports statistical data to the management service, it uses a consistent hashing routing algorithm to process the statistical data. Through the consistent hashing routing algorithm, the statistical data stored in the second shared memory of the management service can be accurately routed to each machine, thereby ensuring that each machine can obtain the statistical data of all system partitions.

[0125] In one embodiment, the proxy service determines the partition ID of the business service based on the partition information in the cookie field of the framework used by the business service, thereby determining which system partition the business service belongs to.

[0126] Specifically, all business services are implemented using the same framework, which has a pre-defined cookie field that stores the partition ID of the business service, describing which system partition the business service belongs to.

[0127] Figure 6 A system partition management apparatus according to an embodiment of this application is shown, the apparatus comprising:

[0128] The first communication module 410 is configured to establish communication with a preset proxy service in the system partition and obtain statistical data read by the proxy service from the first shared memory in the system partition. The first shared memory is used for business services in the system partition to write the statistical data, and the statistical data is used to describe the processing actions of the system partition for the business services in the time dimension.

[0129] The calculation module 420 is configured to calculate the performance of the system partition processing business service based on the statistical data.

[0130] Management module 430 is configured to manage system partitions based on the aforementioned performance.

[0131] In one exemplary embodiment of this application, the management module is configured as follows:

[0132] The statistical data is mapped to discrete points to obtain the set of discrete points corresponding to the statistical data;

[0133] The set of discrete points is processed using a preset outlier algorithm to detect outliers in the set of discrete points.

[0134] Extract the distribution characteristics of the outliers along the time dimension;

[0135] The performance characteristics are calculated based on the aforementioned distribution features.

[0136] In one exemplary embodiment of this application, the management module is configured as follows:

[0137] The density of outliers in the time dimension is extracted from the distribution characteristics;

[0138] The performance is calculated based on the density level.

[0139] In one exemplary embodiment of this application, the computing module is configured as follows:

[0140] The statistical data is written to a second shared memory shared by at least two local machines, and the statistical data is provided to each machine through the second shared memory;

[0141] The performance of the system partition processing business service is calculated by each machine based on the statistical data.

[0142] In an exemplary embodiment of this application, each machine is associated with at least one business service, and the computing module is configured to: calculate the performance of the associated business service for each system partition based on the statistical data through each machine;

[0143] The management module is configured to filter system partitions that process associated business services based on the performance of each system partition in processing the associated business services.

[0144] In an exemplary embodiment of this application, each machine is associated with at least one system partition, and the computing module is configured to: calculate the performance of the associated partition's processing business services based on the statistical data by each machine.

[0145] In one exemplary embodiment of this application, the device is configured as follows:

[0146] Monitor the working status of the proxy service;

[0147] If the working status of the proxy service is abnormal, a restart command is sent to the proxy service.

[0148] Figure 7 A system partition management apparatus according to an embodiment of this application is shown, the apparatus comprising:

[0149] The monitoring module 510 is configured to monitor statistical data stored in the first shared memory of the system partition in which it is located, wherein the first shared memory is used for business services in the system partition to write the statistical data, and the statistical data is used to describe the processing actions of the system partition for business services in the time dimension.

[0150] The second communication module 520 is configured to establish communication with the management service and report the statistical data to the management service. The management service calculates the performance of the system partition processing business services based on the statistical data and manages the system partition based on the performance.

[0151] In an exemplary embodiment of this application, the second communication module is configured to report the statistical data to the management service using an atomic type data structure provided by C++11.

[0152] In an exemplary embodiment of this application, the second communication module is configured to report the statistical data to the management service using a consistent hashing routing algorithm.

[0153] The following is for reference. Figure 8 To describe an electronic device 60 according to an embodiment of this application. Figure 8 The electronic device 60 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0154] like Figure 8 As shown, the electronic device 60 is manifested in the form of a general-purpose computing device. The components of the electronic device 60 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, and a bus 630 connecting different system components (including storage unit 620 and processing unit 610).

[0155] The storage unit stores program code that can be executed by the processing unit 610, causing the processing unit 610 to perform the steps described in the exemplary method description section of this specification according to various exemplary embodiments of the present invention. For example, the processing unit 610 can perform actions such as... Figure 3 or Figure 5 The steps shown are as follows.

[0156] Storage unit 620 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 6201 and / or cache memory 6202, and may further include a read-only memory (ROM) 6203.

[0157] Storage unit 620 may also include a program / utility 6204 having a set (at least one) program module 6205, such program module 6205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.

[0158] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0159] Electronic device 60 can also communicate with one or more external devices 700 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 60, and / or with any device that enables electronic device 60 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 650. Input / output (I / O) interface 650 is connected to display unit 640. Furthermore, electronic device 60 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 660. As shown, network adapter 660 communicates with other modules of electronic device 60 via bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 60, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0160] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the method according to the embodiments of this application.

[0161] In an exemplary embodiment of this application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored, which, when executed by a computer's processor, cause the computer to perform the methods described in the above method embodiments.

[0162] According to one embodiment of this application, a program product for implementing the methods in the above-described method embodiments is also provided. This product may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of this invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0163] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0164] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.

[0165] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0166] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as JAVA and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0167] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0168] Furthermore, although the steps of the method in this application are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.

[0169] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the method according to the embodiments of this application.

[0170] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the appended claims.

Claims

1. A method of managing system partitions, characterized by, The method includes: Establish communication with a preset proxy service in the system partition and obtain statistical data read by the proxy service from the first shared memory in the system partition. The first shared memory is used for business services in the system partition to write the statistical data, and the statistical data is used to describe the processing actions of the system partition for the business services in the time dimension. The statistical data is written to a second shared memory shared by at least two local machines, and the statistical data is provided to each machine through the second shared memory; The performance of the system partition processing business service is calculated by each machine based on the statistical data. Based on the performance of the associated business services processed by each system partition, system partitions whose performance does not meet the requirements are removed from the list of business services.

2. The method of claim 1, wherein, Based on the aforementioned statistical data, the performance of the system's partitioned processing business services is calculated, including: The statistical data is mapped to discrete points to obtain the set of discrete points corresponding to the statistical data; The set of discrete points is processed using a preset outlier algorithm to detect outliers in the set of discrete points. Extract the distribution characteristics of the outliers along the time dimension; The performance characteristics are calculated based on the aforementioned distribution features.

3. The method of claim 2, wherein, The performance characteristics are calculated based on the distribution features, including: The density of outliers in the time dimension is extracted from the distribution characteristics; The performance is calculated based on the density level.

4. The method of claim 1, wherein, Each machine is associated with at least one business service. The performance of the system partition processing business service is calculated by each machine based on the statistical data, including: the performance of the business service associated with each system partition processing is calculated by each machine based on the statistical data.

5. The method of claim 1, wherein, Each machine is associated with at least one system partition. The performance of the system partition processing service is calculated by each machine based on the statistical data, including: the performance of the associated partition processing service is calculated by each machine based on the statistical data.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: Monitor the working status of the proxy service; If the working status of the proxy service is abnormal, a restart command is sent to the proxy service.

7. A method of managing system partitions, characterized by, The method includes: The system monitors statistical data stored in the first shared memory of the system partition, wherein the first shared memory is used for business services in the system partition to write the statistical data, and the statistical data is used to describe the processing actions of the system partition for business services in the time dimension. The system establishes communication with the management service and reports the statistical data to the management service. The management service writes the statistical data into a second shared memory shared by at least two local machines. The statistical data is provided to each machine through the second shared memory. The system calculates the performance of the system partition processing business service based on the statistical data. Based on the performance of the business services associated with each system partition, the system partitions whose performance does not meet the conditions are removed from the list of business services.

8. The method of claim 7, wherein, Reporting the statistical data to the management service includes: reporting the statistical data to the management service using atomic data structures provided by C++11.

9. The method according to claim 8, characterized in that, Reporting the statistical data to the management service includes: using a consistent hashing routing algorithm to report the statistical data to the management service.

10. A system partition management device, characterized in that, The device includes: The first communication module is configured to establish communication with a preset proxy service in the system partition and obtain statistical data read by the proxy service from the first shared memory in the system partition. The first shared memory is used for business services in the system partition to write the statistical data, and the statistical data is used to describe the processing actions of the system partition for the business services in the time dimension. The calculation module writes the statistical data into a second shared memory shared by at least two local machines, and provides the statistical data to each machine through the second shared memory; the performance of the system partition processing business service is calculated by each machine based on the statistical data. The management module is configured to process the performance of associated business services based on the performance of each system partition, and remove system partitions whose performance does not meet the conditions from the list of business services.

11. A system partition management device, characterized in that, The device includes: The monitoring module is configured to monitor statistical data stored in the first shared memory of the system partition in which it is located. The first shared memory is used for business services in the system partition to write the statistical data. The statistical data is used to describe the processing actions of the system partition for business services in the time dimension. The second communication module is configured to establish communication with the management service and report the statistical data to the management service. The management service calculates the performance of the business service of the system partition based on the statistical data and manages the system partition based on the performance.

12. An electronic device, characterized in that, include: Memory, which stores computer-readable instructions; The processor reads computer-readable instructions stored in memory to perform the method described in any one of claims 1-6 or 7-9.

13. A computer-readable storage medium, characterized in that, It stores computer-readable instructions that, when executed by a computer's processor, cause the computer to perform the method described in any one of claims 1-6 or 7-9.

14. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium, a processor of a computer device reading the computer instructions from the computer-readable storage medium, and the processor executing the computer instructions to cause the computer device to perform the system partition management method as described in any one of claims 1-6 or 7-9.