Distributed database automatic expansion system and method based on real-time performance monitoring

Through real-time performance monitoring and automatic expansion system, the problem of response lag and resource waste caused by manual expansion of distributed databases is solved, efficient resource management and system stability are achieved, operating costs and error risks are reduced, and it is suitable for various scales and type of distributed database.

CN118643099AInactive Publication Date: 2024-09-13成都虚谷伟业科技有限公司

Patent Information

Application Number
CN202410848253.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing distributed database expansion relies on administrators to manually monitor performance indicators, resulting in delayed response, resource waste, service interruption, high cost, insufficient flexibility, high error rate and data security risks, and cannot effectively respond to load changes and performance bottlenecks.

Method used

Design an automatic expansion system based on real-time performance monitoring, including performance monitoring module, decision engine, expansion executor, visualization and reporting module and comprehensive management module, by collecting and preprocessing performance indicator data in real time, using predefined rules or machine learning models Make automatic resource adjustments, generate reports and optimize system status.

Benefits of technology

It realizes automated database resource management, reduces administrator dependence, improves response speed and system stability, optimizes resource utilization, reduces operating costs, reduces the risk of manual operation errors, supports flexible expansion strategies, and is suitable for various applications. Size and type of distributed database systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643099A
    Figure CN118643099A
Patent Text Reader

Abstract

The invention discloses a distributed database automatic expansion system and method based on real-time performance monitoring. The system comprises a performance monitoring module, a decision engine, an expansion actuator, a visualization and report module and a comprehensive management module. The method comprises the following steps: S1, collecting database performance index data and preprocessing the database performance index data; s2, analyzing the preprocessed data, and evaluating and judging according to an analysis result; s3, performing expansion or reduction operation on the database resources, and monitoring an execution effect; and S4, generating an execution report and pushing the execution report to the user. According to the method, the system performance is automatically monitored, and the expansion operation is triggered based on the preset rule or through the mode obtained by learning, so that the dependence on a database administrator is reduced, and the automation degree and efficiency of database system maintenance are improved; the system can respond to performance fluctuation in real time, quickly adjust resources, ensure the stability and response speed of database service, and avoid delay possibly introduced by manual expansion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of database expansion, and in particular to a distributed database automatic expansion system and method based on real-time performance monitoring. Background Art

[0002] As data volume increases and access requirements change, distributed databases need to dynamically adjust resources to cope with load changes in order to maintain performance and availability. Currently, the expansion of distributed databases mostly relies on administrators to manually monitor performance indicators and adjust resources based on experience, which is not only time-consuming and labor-intensive, but also may lag in response, resulting in temporary service unavailability or performance degradation.

[0003] 1. Increased human resources and time costs: Database administrators (DBAs) need to manually check performance indicators and evaluate system resource usage on a regular basis. This process is very time-consuming and may lead to delayed identification of problems due to human negligence. In addition, manual scaling of database resources requires delicate operations, which increases the complexity and workload of daily maintenance.

[0004] 2. Possible service interruption: During high-load periods, such as sales peaks, large promotions, or other critical events, manual expansion may not respond quickly enough, resulting in unstable or complete service interruption. Service interruptions have a long-term negative impact on customer experience and company reputation.

[0005] 3. Performance bottleneck: In data-intensive applications, failure to scale database resources in a timely manner can lead to performance bottlenecks, which in turn prolongs loading times, increases query latency, and ultimately leads to user dissatisfaction and reduced conversion rates.

[0006] 4. Low cost-effectiveness: Due to the lack of accurate performance monitoring and automated expansion strategies, enterprises may choose to over-configure resources to cope with possible performance peaks, which leads to resource waste and unnecessary costs. Similarly, if resources are insufficiently allocated, it may cause insufficient performance and difficulty in coping with sudden traffic.

[0007] 5. Insufficient flexibility and scalability: In a fast-growing business environment, data volume and user load often change. Without the support of an automated system, it becomes challenging to adjust the system in real time to meet these changes, limiting the agility and growth potential of the business.

[0008] 6. Increased error rate: Manually executing expansion decisions and operations is prone to errors. Errors may lead to data inconsistency or even data loss. In addition, security issues may also arise due to misoperation.

[0009] 7. Data integrity and security risks: During manual intervention, if there is no proper process and tool guarantee, database expansion may introduce data integrity issues and even security risks such as data leakage. Summary of the invention

[0010] In order to solve the above problems, the present invention provides a distributed database automatic expansion system based on real-time performance monitoring, including a performance monitoring module, a decision engine, an expansion executor, a visualization and reporting module, and a comprehensive management module; the performance monitoring module is used to monitor and collect various performance indicator data, and pre-process the collected data; the decision engine is used to analyze and evaluate the pre-processed performance indicator data; the expansion executor is used to automatically adjust database resources for expansion; the visualization and reporting module is used to monitor the system status and generate performance and expansion operation reports; the comprehensive management module coordinates all modules to ensure stable operation of the system.

[0011] Furthermore, the various performance indicator data collected by the performance monitoring module specifically include: CPU usage, memory consumption, disk I / O, network latency, and query response time.

[0012] Furthermore, the performance monitoring module preprocesses the collected data, specifically including: data cleaning, data normalization, feature extraction, data aggregation, and anomaly detection.

[0013] Furthermore, the decision engine analyzes the preprocessed performance indicator data by performing analysis and prediction through predefined rules or established machine learning models.

[0014] Furthermore, the predefined rules include: threshold rules and time-based rules; the threshold rules specifically define performance thresholds, and when the monitored performance indicators exceed or fall below the set thresholds, the expansion or reduction of database resources is triggered; the time-based rules specifically set peak and off-peak hours for daily operating time, and expand or reduce database resources when entering the time period.

[0015] Furthermore, the established machine learning model is specifically: establishing a machine learning model, and using historical performance indicator data for training, predicting resource demand in a future period of time, and expanding or reducing database resources based on the prediction results.

[0016] Furthermore, it also includes a feedback and optimization module, which is used to monitor the effect of the database resource expansion operation and adjust the decision engine based on the monitoring effect.

[0017] Furthermore, the visualization and reporting module includes a user interface submodule, and the user interface submodule is used to provide an interactive front-end interface for users to view the current status of the database, manually trigger expansion operations, or adjust the execution process.

[0018] The distributed database automatic expansion method based on real-time performance monitoring includes the following steps: S1. Collecting database performance indicator data and preprocessing it; S2. Analyzing the preprocessed data and making evaluations based on the analysis results; S3. Expanding or reducing database resources and monitoring the execution effect; S4. Generating an execution report and pushing it to the user.

[0019] Furthermore, the evaluation and judgment based on the analysis results in step S2 includes the following sub-steps: when it is determined that the current database resources do not need to be expanded, the current execution process is terminated; when it is determined that the current database resources need to be expanded, step S3 is executed.

[0020] The present invention provides a distributed database automatic expansion system and method based on real-time performance monitoring, which has the following beneficial effects: The present invention reduces dependence on database administrators and improves the automation and efficiency of database system maintenance by automatically monitoring system performance and triggering expansion operations based on preset rules or patterns obtained through learning; the system can respond to performance fluctuations in real time, quickly adjust resources, ensure the stability and response speed of database services, and avoid delays that may be introduced by manual expansion; through intelligent resource allocation and expansion, the system can optimize resource utilization, avoid over-investment in unnecessary resources, and thus reduce operating costs; the automated processing mechanism can better manage and predict system loads, reduce risks caused by manual operation errors, and improve the overall stability and reliability of the system; it is suitable for distributed database systems of various sizes and types, supports horizontal and vertical expansion, and can be flexibly adjusted according to business needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] 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 will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0022] Figure 1 A schematic diagram of the system structure provided by the present invention; Figure 2 The present invention provides a flow chart of the method. DETAILED DESCRIPTION

[0023] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0024] The following is a detailed description of the implementation method of the present invention in conjunction with the accompanying drawings. Only some embodiments are described, not all embodiments. For the purpose of clarity, representations and descriptions that are not related to the present invention are omitted in the drawings and descriptions.

[0025] In order to have a clearer understanding of the technical features, purposes and beneficial effects of the present invention, the technical solution of the present invention is now described in detail below. Obviously, the implementation cases described are part of the embodiments of the present invention, not all of the embodiments, and cannot be understood as limiting the scope of the implementation of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.

[0026] like Figure 1 As shown, the present invention provides a distributed database automatic expansion system based on real-time performance monitoring, including a performance monitoring module, a decision engine, an expansion executor, a visualization and reporting module, and a comprehensive management module.

[0027] The performance monitoring module is used to monitor and collect various performance indicator data and pre-process the collected data. The performance indicator data collected by the performance monitoring module specifically include: CPU usage, memory consumption, disk I / O, network latency, and query response time. The monitoring agent is deployed on the database node to collect performance data, determine which performance indicators are critical and need to be monitored, regularly collect and record the data of these performance indicators, and perform necessary pre-processing on the collected raw data to facilitate subsequent analysis.

[0028] The performance monitoring module preprocesses the collected data, including: data cleaning, data normalization, feature extraction, data aggregation, and anomaly detection.

[0029] Data cleaning: Remove or correct corrupted, erroneous or inconsistent data records. For example, remove invalid performance indicator values, correct timestamp errors, etc.

[0030] Data normalization: Scale the data of different indicators to a unified range to avoid comparison bias caused by different dimensions. For example, normalize CPU utilization and memory usage to a range of 0 to 1.

[0031] Feature extraction: Extracting features from raw performance data that are useful for decision making. For example, extracting sliding averages, trend lines, etc. from time series data.

[0032] Data aggregation: Aggregate high-frequency collected data into summary information with lower frequency to reduce the amount of data and improve processing efficiency. For example, aggregate the CPU utilization collected every second into the average value per minute.

[0033] Anomaly detection: Identify and flag outliers in performance data that may represent system failures or other significant events that require special treatment.

[0034] The decision engine is used to analyze and evaluate the pre-processed performance indicator data. The decision engine analyzes the pre-processed performance indicator data by analyzing and predicting it through pre-defined rules or established machine learning models.

[0035] The predefined rules include: threshold rules and time-based rules.

[0036] Threshold rules are specifically defined by defining performance thresholds. When the monitored performance indicators exceed or fall below the set thresholds, the expansion or reduction of database resources is triggered. For example, if the CPU utilization rate continues to exceed 80%, a database instance is added; if the CPU utilization rate is less than 20%, a database instance is reduced.

[0037] The time-based rule is to set the peak and off-peak periods of daily operation time, and expand or reduce database resources when entering the period.

[0038] The machine learning model established is as follows: establish a machine learning model, use historical performance indicator data for training, predict resource demand in the future, and expand or reduce database resources based on the prediction results. For example, use time series prediction models (such as ARIMA, LSTM, etc.) to predict the query volume in the next 30 minutes, and expand resources in advance based on the prediction results.

[0039] The expansion executor is used to automatically adjust database resources for expansion. Once the expansion instruction is received, the database resources are automatically adjusted, which may be to add more nodes (horizontal expansion) or increase the resources of existing nodes (vertical expansion). According to the performance data and business needs, the correct expansion strategy is selected to achieve the allocation of required resources in the cloud platform or local environment. The newly started nodes or upgraded resources are configured to integrate them into the current database cluster, and the necessary data is synchronized from other nodes after the new nodes are started.

[0040] The Visualization and Reporting module is used to monitor system status and generate performance and expansion operation reports. It displays real-time performance data through charts and dashboards, automatically generates reports on performance and database expansion operations, and sends notifications to administrators when expansion is triggered or performance issues are discovered.

[0041] The visualization and reporting module includes a user interface submodule, which is used to provide an interactive front-end interface for users to view the current status of the database, manually trigger extended operations, or adjust the execution process. The user interface submodule integrates commands and options for manual operation extensions, allowing users to configure parameters such as monitoring time intervals, thresholds, and extended policies, and provides control functions such as system start and stop, monitoring switches, and policy application.

[0042] The integrated management module coordinates all modules to ensure the stable operation of the system. It monitors the status of the entire automated expansion system. When a component fails, it provides the necessary error recovery mechanism, manages the system resources occupied by each component, and optimizes the overall system performance.

[0043] It also includes a feedback and optimization module, which is used to monitor the effect of database resource expansion operations and adjust the decision engine based on the monitoring effect. It collects performance data after expansion and compares it with that before expansion, feeds back the expansion effect to the decision engine, adjusts thresholds and model parameters based on the feedback results, and continuously optimizes the expansion strategy based on historical data and feedback information.

[0044] Distributed database automatic expansion method based on real-time performance monitoring, such as Figure 2 As shown, the following steps are included: S1. Collect database performance indicator data and preprocess it; S2. Analyze the preprocessed data and make evaluations based on the analysis results; S3. Expand or reduce database resources and monitor the execution effect; S4. Generate an execution report and push it to the user.

[0045] Among them, the evaluation and judgment based on the analysis results in step S2 includes the following sub-steps: when it is determined that the current database resources do not need to be expanded, the current execution process is terminated; when it is determined that the current database resources need to be expanded, step S3 is executed.

[0046] Example: During a large-scale promotion, an online retail platform faces huge access pressure on its backend distributed database and needs to dynamically adjust resources to cope with load changes. The following are the steps to automatically handle this situation: Performance monitoring: The performance monitoring module collects database performance indicators in real time and finds that during promotional activities, query response time increases significantly and CPU and I / O usage approaches limits.

[0047] Performance Analysis: The analytics and decision engine analyzes the collected performance data and predicts that the database load will increase further in the next few hours as the promotion continues.

[0048] Automatic scaling decisions: Based on performance analysis and predictions, the decision engine decides to add database nodes to distribute the load and adjusts resource quotas to optimize performance.

[0049] Perform resource adjustments: Resource Manager automatically performs scaling operations, adding database nodes and redistributing the load, while adjusting CPU and memory quotas to accommodate increased demand.

[0050] Effect verification and feedback: The performance monitoring module continues to monitor performance indicators to confirm whether performance has improved after the expansion operation. The analysis and decision engine adjusts the expansion strategy based on the actual effect.

[0051] User interface display: The user interface displays the changes in performance indicators, the expansion decisions and execution status made by the system in real time, allowing users to understand the real-time status of the database and the automatic adjustment process of the system.

[0052] Through this embodiment, the system of the present invention can effectively respond to the performance requirements of the distributed database under dynamically changing loads, automatically adjust resource configuration to ensure optimization of performance and cost, reduce the management burden of the DBA, and improve the reliability and availability of the database.

[0053] The present invention reduces dependence on database administrators and improves the automation and efficiency of database system maintenance by automatically monitoring system performance and triggering expansion operations based on preset rules or patterns obtained through learning; the system can respond to performance fluctuations in real time, quickly adjust resources, ensure the stability and response speed of database services, and avoid delays that may be introduced by manual expansion; through intelligent resource allocation and expansion, the system can optimize resource utilization, avoid over-investment in unnecessary resources, and thus reduce operating costs; the automated processing mechanism can better manage and predict system loads, reduce risks caused by manual operation errors, and improve the overall stability and reliability of the system; it is suitable for distributed database systems of various sizes and types, supports horizontal and vertical expansion, and can be flexibly adjusted according to business needs.

[0054] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.

Claims

1. A distributed database automatic expansion system based on real-time performance monitoring, characterized in that: It includes performance monitoring module, decision engine, extended actuator, visualization and reporting module, and integrated management module; The performance monitoring module is used to monitor and collect various performance indicator data and pre-process the collected data; The decision engine is used to analyze and evaluate the preprocessed performance indicator data; The expansion executor is used to automatically adjust database resources for expansion; The visualization and reporting module is used to monitor the system status and generate performance and extended operation reports; The comprehensive management module coordinates all modules to ensure stable operation of the system.

2. The distributed database automatic expansion system based on real-time performance monitoring according to claim 1 is characterized in that: The performance indicator data collected by the performance monitoring module specifically include: CPU usage, memory consumption, disk I / O, network latency, and query response time.

3. The distributed database automatic expansion system based on real-time performance monitoring according to claim 2 is characterized in that: The performance monitoring module preprocesses the collected data, specifically including: data cleaning, data normalization, feature extraction, data aggregation, and anomaly detection.

4. The distributed database automatic expansion system based on real-time performance monitoring according to claim 1 is characterized in that: The decision engine analyzes the preprocessed performance indicator data by performing analysis and prediction through predefined rules or established machine learning models.

5. The distributed database automatic expansion system based on real-time performance monitoring according to claim 4 is characterized in that: The predefined rules include: threshold rules and time-based rules; The threshold rule specifically defines a performance threshold, and when the monitored performance indicator exceeds or falls below the set threshold, the expansion or reduction of database resources is triggered; The time-based rule is specifically to set the peak time period and the off-peak time period of the daily operation time, and to expand or reduce the database resources when entering the time period.

6. The distributed database automatic expansion system based on real-time performance monitoring according to claim 4 is characterized in that: The established machine learning model specifically includes: establishing a machine learning model, and using historical performance indicator data for training, predicting resource demand in a future period of time, and expanding or reducing database resources based on the prediction results.

7. The distributed database automatic expansion system based on real-time performance monitoring according to claim 1 is characterized in that: It also includes a feedback and optimization module, which is used to monitor the effect of the database resource expansion operation and adjust the decision engine based on the monitoring effect.

8. The distributed database automatic expansion system based on real-time performance monitoring according to claim 1 is characterized in that: The visualization and reporting module includes a user interface submodule, which is used to provide an interactive front-end interface for users to view the current status of the database, manually trigger expansion operations, or adjust the execution process.

9. A distributed database automatic expansion method based on real-time performance monitoring, based on the distributed database automatic expansion system based on real-time performance monitoring according to any one of claims 1 to 8, characterized in that: The following steps are involved: S1. Collect database performance indicator data and perform preprocessing; S2. Analyze the preprocessed data and make evaluations based on the analysis results; S3. Expand or reduce database resources and monitor the execution effect; S4. Generate an execution report and push it to the user.

10. The distributed database automatic expansion method based on real-time performance monitoring according to claim 9 is characterized in that: The evaluation and judgment according to the analysis results in step S2 includes the following sub-steps: When it is determined that the current database resources do not need to be expanded, the current execution process ends; When it is determined that the current database resources need to be expanded, step S3 is executed.

Citation Information

Patent Citations

  • Intelligent cloud computing management platform

    CN117891582A

Cited By

  • Database security secrecy system based on storage encryption

    CN119272341A

  • Database security and confidentiality system based on storage encryption

    CN119272341B

  • Database load dynamic management system

    CN120144413A