A server performance tuning method based on edge computing

By constructing a load profile bucketing and residual topology bottleneck identification network, a counterfactual performance benchmark is generated and the bottleneck contribution is identified, which solves the bottleneck identification and optimization problem in edge server performance tuning and realizes accurate tuning and continuous optimization in dynamic business scenarios.

CN123178222APending Publication Date: 2026-11-27TODAY ZHILIAN (WUHAN) INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611285735.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to distinguish between normal increases in business load and server performance bottlenecks in edge server performance tuning, leading to inaccurate tuning criteria and a lack of closed-loop tuning mechanisms for dynamic business scenarios.

Method used

By constructing a load profile bucketing, counterfactual performance benchmark, and residual topology bottleneck identification network, system resources and business log records of edge servers are collected to generate counterfactual performance benchmarks. The residual topology bottleneck identification network is used to identify the bottleneck contribution, generate tuning suggestions, and update feedback records after tuning.

Benefits of technology

It enables accurate bottleneck identification and optimization in dynamic business scenarios, provides actionable optimization suggestions, and forms an engineering closed-loop process based on load benchmarks and feedback updates, thereby improving the accuracy of server performance tuning and continuous optimization capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178222A_ABST
    Figure CN123178222A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on edge computing's server performance tuning method, it is related to edge computing and server performance optimization technical field, including the following steps: generating edge performance state data frame;Equal load bucket and benchmark sample set are established based on historical performance baseline and load portrait rule;According to current load portrait, match only equal load bucket and generate counterfactual performance benchmark;Generate counterfactual load stripping residual sequence;Residual sequence, service constraint features and container resource constraint features are input into residual topology bottleneck identification network, and the bottleneck contribution degree of each bottleneck type is generated;According to bottleneck contribution degree, mapping tuning parameter and generating tuning suggestion;Collect the performance feedback record after tuning and update counterfactual performance benchmark and network parameter.The application can strip load variation influence, improve edge server bottleneck identification accuracy and tuning suggestion executability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of edge computing and server performance optimization technology, and in particular to a method for server performance tuning based on edge computing. Background Technology

[0002] With the continued application of edge computing, containerized deployment, and low-latency services, edge servers need to simultaneously handle multiple workloads such as video analytics, industrial data acquisition, and intelligent inference, making server performance tuning technology a focus of widespread attention. Among existing technologies, Kubernetes is publicly available for the deployment, scaling, and management of containerized applications; HPA can adjust the number of Pods based on CPU, memory, custom metrics, or external metrics; VPA can adjust Pod resource requests and resource limits; Google's SRE system also publicly uses latency, traffic, errors, and saturation as important signals for service monitoring; furthermore, multivariate temporal anomaly detection methods based on topology-enhanced graph attention, such as TopoGDN, have been publicly used for modeling complex temporal variable relationships.

[0003] However, in actual edge server operation and maintenance, existing technologies generally use fixed thresholds, single resource indicators, or coarse-grained historical averages as the basis for optimization, making it difficult to distinguish between changes in indicators caused by "normal increase in business load" and "server performance bottlenecks." Different business types, request volumes, concurrent connections, network retransmissions, inference task batches, and container instance counts all affect performance status. If a benchmark is not established under the same load profile, misjudgments are likely to occur. At the same time, there is a transmission relationship between CPU, memory, disk I / O, network, container resources, and hardware frequency reduction. Traditional threshold alarms or ordinary scaling methods are difficult to provide the bottleneck contribution and executable optimization parameters. The feedback records after optimization are usually only used for manual review and are not written back to the same load benchmark to participate in model parameter updates, resulting in insufficient optimization loop for edge servers in dynamic business scenarios.

[0004] Therefore, how to provide a server performance tuning method based on edge computing is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] One objective of this invention is to propose a server performance tuning method based on edge computing. This invention fully utilizes load profiling and binning, counterfactual performance benchmarks, and residual topology bottleneck identification networks. It describes in detail the closed-loop tuning process of edge server performance status collection, load stripping, bottleneck contribution identification, tuning suggestion generation, and feedback updates. It has the advantages of high bottleneck identification accuracy, strong load adaptability, high executability of tuning suggestions, and strong continuous optimization capability.

[0006] A server performance tuning method based on edge computing according to an embodiment of the present invention includes the following steps: Step 1: Collect system resource records, business log records, container operation records, and hardware status records from the edge server, preprocess the collected records, and generate edge performance status data frames; Step 2: Based on historical performance baselines and load profile rules, perform feature discretization and multi-dimensional binning on historical normal operation samples, write historical normal operation samples with consistent load profiles into the same load bucket, and establish a benchmark sample set for each load bucket. Step 3: Match a unique equal-load bucket based on the load profile of the current edge performance status data frame, and perform statistical benchmark generation processing on the benchmark sample set in the unique equal-load bucket to generate a counterfactual performance benchmark. Step 4: Calculate the benchmark difference, normalize the residuals, and smooth the sliding window between the current edge performance status data frame and the counterfactual performance benchmark to generate a counterfactual load stripping residual sequence; Step 5: Input the residual sequence, business constraint features and container resource constraint features stripped from the counterfactual load into the residual topology bottleneck identification network. The residual topology bottleneck identification network includes a residual variable topology construction layer, a residual topology enhancement attention layer based on TopoGDN, a constraint feature fusion layer and a bottleneck contribution output layer to generate the bottleneck contribution degree of each bottleneck type. Step 6: Based on the comparison results of the bottleneck contribution degree of each bottleneck type with the preset contribution threshold, and in conjunction with the adjustable parameter table, perform the mapping from bottleneck type to tuning parameters, determine the current adjustable bottleneck type, and generate corresponding tuning suggestions; Step 7: Collect performance feedback records after the optimization suggestions are implemented, write the valid feedback records back to the corresponding equal load bucket, and update the counterfactual performance benchmark and residual topology bottleneck identification network parameters.

[0007] Optionally, step one specifically includes: A data collection agent is deployed locally on the edge server. The data collection agent acquires system resource records, business log records, container operation records, and hardware status records according to a preset sampling period. System resource records include CPU, memory, disk I / O, and network-related metrics; business log records include business type, request volume, response latency, error rate, concurrent connections, and inference task batches; container operation records include container identifier, resource limits, number of instances, resource utilization, and number of restarts; hardware status records include CPU temperature, power consumption status, and hardware throttling status. The acquisition agent uses the sampling timestamp as a reference to merge acquisition records from different sources into the same sampling window; for continuous records with inconsistent sampling frequencies, linear interpolation is used for resampling; for discrete records, one-hot encoding is used to convert them into discrete feature vectors. For abnormal values ​​in the collected records, box plot method is used to identify and remove them; for short-term missing values ​​formed after removal, forward filling method is used to fill them; for records with continuous missing values ​​exceeding the preset sampling window number, the corresponding sampling window is written into the low confidence mark. The association between system resource records, business log records, container operation records, and hardware status records is established based on business identifiers, interface identifiers, and container identifiers. The data is then structured and spliced ​​according to sampling window, business identifier, business type, system resource characteristics, business access characteristics, container resource characteristics, hardware status characteristics, and data trust tags to generate edge performance status data frames.

[0008] Optionally, step two specifically includes: Based on historical performance baselines, the distribution of various indicators during historical stable operating periods is statistically analyzed according to business type. Samples whose response latency, error rate, CPU status, memory status, disk I / O status, network status, container restart status, temperature status, and hardware frequency reduction status are all within the historical stable range are identified as historical normal operating samples. Extract the following features from historical normal operation samples: business type, request volume, number of concurrent connections, number of network retransmissions, batch size of inference tasks, CPU temperature, and number of container instances as load profile features; According to the load profiling rules, continuous features in the load profiling features are binned at equal frequencies according to the feature value distribution to generate corresponding levels; for business types, one-hot encoding is used to generate business type feature vectors. The business type feature vector is concatenated with each load profile level in a fixed field order to generate a load profile key value. The MurmurHash algorithm is used to perform hash calculation on the load profile key value, and the load bucket number is generated by taking the remainder according to the preset bucket table capacity. When different load profile key values ​​are mapped to the same load bucket number, consistency verification is performed using the original load profile key value in the load bucket index table. If the consistency verification passes, historical normal operation samples are written to the corresponding load bucket. If the consistency verification fails, a conflict count field is appended to the load profile key value, and hash calculation and consistency verification are re-executed to determine a new load bucket number. Historical normal operation samples are then written to the new load bucket. Each load equalization bucket uses a sliding queue to establish a baseline sample set and saves the bin boundary configuration table, service type encoding table, and load equalization bucket index table.

[0009] Optionally, step three specifically includes: Extract the service type, request volume, concurrent connection count, network retransmission count, inference task batch, CPU temperature, and container instance count from the current edge performance status data frame to generate the current load profile features; Based on the binning boundary configuration table, the continuous features in the current load profile are converted into the corresponding levels, and the service types are one-hot encoded according to the service type encoding table to generate the current load profile key value. Following the hash mapping rules, an index query is performed in the equal load bucket index table based on the current load profile key value, and a unique equal load bucket is determined through load profile key value consistency verification. Obtain the benchmark sample set within the unique equal-load bucket, remove samples with low confidence labels, and determine whether the statistical benchmark generation conditions are met based on the number of valid samples and the confidence status of the samples in the benchmark sample set. When the statistical baseline generation conditions are not met, a fallback counterfactual performance baseline is generated using the global historical performance baseline under the same business type, and the current edge performance status data frame is written into the set of samples to be observed; when the samples in the set of samples to be observed meet the conditions of historical normal operation samples, the corresponding samples are written into the baseline sample set of the corresponding equal load bucket. When the statistical benchmark generation conditions are met, an exponentially weighted moving average with a forgetting factor is applied to the CPU characteristics, memory characteristics, disk I / O characteristics, network characteristics, response latency characteristics, error rate characteristics, container resource characteristics, and hardware status characteristics in the benchmark sample set. Based on the distribution statistics, a counterfactual performance benchmark corresponding to the current load profile is generated.

[0010] Optionally, the process of generating the equal load bucket and the counterfactual performance benchmark specifically includes: Match the current load profile key value with the load profile key value in the equal load bucket index table to determine the unique equal load bucket that matches the current load profile; Historical normal operation samples are extracted from the benchmark sample set of the unique equal load bucket. Statistical benchmark generation processing is performed on the CPU characteristics, memory characteristics, disk I / O characteristics, network characteristics, response latency characteristics, error rate characteristics, container resource characteristics, and hardware status characteristics in the historical normal operation samples to generate CPU benchmark, memory benchmark, disk I / O benchmark, network benchmark, response latency benchmark, error rate benchmark, container resource benchmark, and hardware status benchmark. By concatenating CPU benchmarks, memory benchmarks, disk I / O benchmarks, network benchmarks, response latency benchmarks, error rate benchmarks, container resource benchmarks, and hardware status benchmarks, a counterfactual performance benchmark is generated. The counterfactual performance benchmark characterizes the normal performance state of the edge server under the current load profile and serves as reference data for calculating the benchmark difference.

[0011] Optionally, step four specifically includes: Establish a mapping relationship between metrics based on CPU, memory, disk I / O, network, response latency, error rate, container resources, and hardware status; The difference analysis method is used to calculate the benchmark difference between each indicator in the current edge performance status data frame and the corresponding indicator in the counterfactual performance benchmark, so as to obtain the resource residual, service access residual, container resource residual and hardware status residual. Bucket-level normalization parameters are generated using the residual distribution of the historical benchmark sample set within the corresponding equal-load bucket. When the number of samples within the corresponding equal-load bucket is insufficient, the global historical residual distribution under the same business type is used to generate fallback normalization parameters. When the normalization parameter is null, zero, or cannot participate in the normalization calculation, a smoothing constant is used as a substitute. RobustScaler standardization method is used in combination with bucket-level normalization parameters or fallback normalization parameters to perform residual normalization processing on resource residuals, service access residuals, container resource residuals and hardware state residuals; The normalized residual data is filtered based on the data confidence label, and sampling windows with low confidence labels are removed, while residual data within the valid sampling windows are retained. The sliding window length and sliding step size are set according to the sampling period, preset bottleneck propagation delay and residual sequence continuity requirements, and the residual data within the effective sampling window are sorted by sliding window. The resource residuals, service access residuals, container resource residuals, and hardware status residuals within each sliding window are serialized and concatenated in chronological order to generate a counterfactual load stripping residual sequence.

[0012] Optionally, step five specifically includes: The counterfactual load is stripped and the residual sequence is input into the residual topology bottleneck identification network, and business constraint features and container resource constraint features are obtained simultaneously. The residual variable topology construction layer uses historical counterfactual load to strip residual sequences and calculates the directed transmission strength between different residual variable nodes offline or periodically. The directed transmission strength is calculated using transfer entropy. The residual variable nodes include CPU residuals, memory residuals, disk I / O residuals, network residuals, business access residuals, container resource residuals, and hardware status residuals. The residual variable adjacency matrix is ​​generated and cached based on the directed propagation strength, and weakly associated edges are filtered according to the preset propagation strength threshold to obtain the residual variable topology. During the real-time inference stage, the cached residual variable adjacency matrix is ​​directly loaded, and the current residual variable node features in the residual sequence are extracted by combining the counterfactual load for calculation. The residual topology-enhanced attention layer based on TopoGDN takes the residual variable topology and residual variable node features as input to generate residual topology-enhanced features; The constraint feature fusion layer performs fully connected embedding processing on business constraint features and container resource constraint features, and uses the FiLM feature modulation mechanism to perform affine modulation on residual topology enhancement features to generate bottleneck discrimination features that integrate business constraints, container resource constraints and residual topology relationships. The bottleneck contribution output layer sets the output nodes according to the pre-established bottleneck type label set. The bottleneck type label set is consistent with the bottleneck types in the adjustable parameter table, including computing resource bottlenecks, storage I / O bottlenecks, network transmission bottlenecks, container resource constraint bottlenecks, and hardware frequency reduction bottlenecks. The bottleneck discrimination features are input into the multilayer perceptron, and the bottleneck contribution corresponding to each bottleneck type label is output using the Sigmoid activation function.

[0013] Optionally, the residual topology-enhanced attention layer based on TopoGDN specifically includes: One-dimensional convolution is performed on the residual sequences of each residual variable node within the sliding window to extract the temporal features of the residuals. The in-degree, out-degree, mean edge weight, and maximum propagation strength of the residual variable adjacency matrix are embedded into the residual time series features to generate residual topological node features; The directed transmission intensity is used as the topological bias term for graph attention propagation. According to the preset topological bias table, the first topological bias coefficient is configured for residual variable edges that reach the preset transmission intensity threshold, and the second topological bias coefficient is configured for residual variable edges that do not reach the preset transmission intensity threshold. Write the first or second topological bias coefficient into the graph attention weight calculation process to generate attention weights with topological bias. Based on the edge directions in the adjacency matrix of the residual variables, the residual topological node features are weighted and aggregated using attention weights with topological bias to generate residual topological enhancement features.

[0014] Optionally, step six specifically includes: Compare the bottleneck contribution corresponding to each bottleneck type label with the preset contribution threshold; Bottleneck type labels that reach the preset contribution threshold are written into the candidate bottleneck set and sorted in descending order of bottleneck contribution; when the candidate bottleneck set is empty, an unadjustable bottleneck label is generated. Based on the sorting results of the candidate bottleneck set, the mapping from bottleneck type to tuning parameters is executed sequentially in conjunction with the adjustable parameter table. The adjustable parameter table includes bottleneck type, tuning parameters, parameter adjustment direction, parameter adjustment range, and safety boundary. Computing resource bottlenecks correspond to CPU weight adjustments, CPU affinity adjustments, and background task resource usage limits; storage I / O bottlenecks correspond to log write rate limits, cache refresh cycle adjustments, and disk queue parameter adjustments; network transmission bottlenecks correspond to connection pool size adjustments, TCP buffer adjustments, and network queue parameter adjustments; container resource constraint bottlenecks correspond to container CPU limit adjustments, container memory limit adjustments, and container instance number adjustments; hardware frequency reduction bottlenecks correspond to non-core task migration, inference batch adjustments, and temperature control strategy adjustments. By combining business constraint characteristics and container resource constraint characteristics, the executability of the mapped tuning parameters is verified. The verification content includes business priority, response latency limit, error rate limit, resource adjustment permission status, and hardware security boundary. When the tuning parameters pass the executability check, the corresponding bottleneck type is identified as the current tunable bottleneck type, and corresponding tuning suggestions are generated based on the parameter adjustment direction and magnitude. When the tuning parameters fail the executability check, the next candidate bottleneck type is matched until a corresponding tuning suggestion is generated or an untunable bottleneck is marked.

[0015] Optionally, step seven specifically includes: After the optimization suggestions are implemented, system resource records, business log records, container running records and hardware status records will continue to be collected in the preset feedback observation window, and performance feedback records will be generated according to the generation rules of edge performance status data frames. The performance feedback records are compared with the edge performance status data frames before the optimization suggestions are implemented. Changes in response latency, error rate, resource usage, container status, and hardware status are extracted to generate optimization effect evaluation results. The performance feedback record is determined as a valid feedback record based on the evaluation results of the optimization effect. When the positive difference between the core business response latency before and after the optimization suggestion reaches the preset improvement threshold, the error rate change does not exceed the preset error rate fluctuation threshold, the resource usage change does not exceed the preset resource fluctuation threshold, the container does not trigger a memory overflow alarm or CPU rate limiting alarm, and the hardware does not enter a frequency reduction state, the performance feedback record is determined as a valid feedback record. Based on the load profile characteristics corresponding to the performance feedback records, the corresponding equal load buckets are determined using the pre-formed discretization rules and hash mapping rules, and the valid feedback records are written back to the benchmark sample set of the corresponding equal load buckets. The write-back benchmark sample set is reprocessed with an exponentially weighted moving average with a forgetting factor, and the counterfactual performance benchmark of the corresponding equal-load bucket is updated in combination with the distribution statistics. When the performance feedback record does not meet the feedback validity judgment condition, the performance feedback record is written into the abnormal feedback sample set, and the matching weight between the corresponding bottleneck type label and the tuning parameter is updated to the negative feedback matching weight. Feedback samples are formed based on the valid feedback records and the set of abnormal feedback samples, and the bottleneck contribution output layer parameters in the residual topology bottleneck identification network are updated according to the negative feedback matching weight.

[0016] The beneficial effects of this invention are: (1) By constructing edge performance status data frames and combining historical performance baselines, load profile rules and equal load buckets, load factors such as business type, request volume, number of concurrent connections, number of network retransmissions, batch of inference tasks, CPU temperature and number of container instances are discretized into buckets, so that the current performance status can be compared with historical normal operation samples under the same load profile. This solves the problem that existing fixed threshold or global average methods cannot distinguish between "load change" and "real performance abnormality", thus making the counterfactual performance benchmark closer to the current business scenario and providing a reusable and interpretable benchmark reference for edge server performance tuning; (2) By calculating the benchmark difference, normalizing the residuals and organizing the sliding window between the current edge performance status data frame and the counterfactual performance benchmark, a counterfactual load stripping residual sequence is generated. This sequence is then input into the residual topology bottleneck identification network. The residual variable topology construction layer and the residual topology enhancement attention layer based on TopoGDN are used to characterize the transmission relationship between CPU, memory, disk I / O, network, service access, container resources and hardware status. This solves the problem that traditional single-index alarms are difficult to locate the source of composite bottlenecks, enabling the system to output the bottleneck contribution of each bottleneck type, providing a clear basis for subsequent optimization parameter selection. (3) By combining business constraint features, container resource constraint features and adjustable parameter tables, the bottleneck contribution is mapped to executable optimization suggestions such as CPU weight adjustment, connection pool size adjustment, container resource limit adjustment, and temperature control strategy adjustment. After the optimization suggestions are executed, performance feedback records are collected and effective feedback records are written back to the corresponding load bucket. At the same time, the bottleneck contribution output layer parameters are updated based on the feedback samples. This solves the problem of insufficient closed loop of "alarm - manual judgment - manual parameter adjustment" in the existing edge operation and maintenance. It transforms server performance optimization from experience-based processing to an engineering closed loop process based on load benchmark, topology bottleneck and feedback update. It has important application value for the continuous operation of edge intelligent services. Attached Figure Description

[0017] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1This is a flowchart of a server performance tuning method based on edge computing proposed in this invention; Figure 2 This is a schematic diagram of a server performance tuning method based on edge computing proposed in this invention; Figure 3 This is a framework diagram of the residual topology bottleneck identification network in the server performance tuning method based on edge computing proposed in this invention. Detailed Implementation

[0018] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.

[0019] refer to Figures 1-3 A server performance tuning method based on edge computing includes the following steps: Step 1: Collect system resource records, business log records, container operation records, and hardware status records from the edge server, preprocess the collected records, and generate edge performance status data frames; Step 2: Based on historical performance baselines and load profile rules, perform feature discretization and multi-dimensional binning on historical normal operation samples, write historical normal operation samples with consistent load profiles into the same load bucket, and establish a benchmark sample set for each load bucket. Step 3: Match a unique equal-load bucket based on the load profile of the current edge performance status data frame, and perform statistical benchmark generation processing on the benchmark sample set in the unique equal-load bucket to generate a counterfactual performance benchmark. Step 4: Calculate the benchmark difference, normalize the residuals, and smooth the sliding window between the current edge performance status data frame and the counterfactual performance benchmark to generate a counterfactual load stripping residual sequence; Step 5: Input the residual sequence, business constraint features and container resource constraint features stripped from the counterfactual load into the residual topology bottleneck identification network. The residual topology bottleneck identification network includes a residual variable topology construction layer, a residual topology enhancement attention layer based on TopoGDN, a constraint feature fusion layer and a bottleneck contribution output layer to generate the bottleneck contribution degree of each bottleneck type. Step 6: Based on the comparison results of the bottleneck contribution degree of each bottleneck type with the preset contribution threshold, and in conjunction with the adjustable parameter table, perform the mapping from bottleneck type to tuning parameters, determine the current adjustable bottleneck type, and generate corresponding tuning suggestions; Step 7: Collect performance feedback records after the optimization suggestions are implemented, write the valid feedback records back to the corresponding equal load bucket, and update the counterfactual performance benchmark and residual topology bottleneck identification network parameters.

[0020] In this embodiment, step one specifically includes: A data collection agent is deployed locally on the edge server. The data collection agent acquires system resource records, business log records, container running records, and hardware status records according to a preset sampling period. Specifically, the sampling period is obtained by statistically analyzing the business log refresh interval, container status refresh interval, and hardware status reporting interval. The maximum refresh interval among the three is taken and rounded up to the sampling granularity supported by the data collection agent. The sampling period is set to 5 seconds. System resource records include CPU utilization, CPU scheduling wait time, memory utilization, disk I / O throughput, disk I / O wait time, network throughput, and network retransmission count; business log records include business type, request volume, response latency, error rate, concurrent connections, and inference task batches; container operation records include container identifier, container CPU limit, container memory limit, number of container instances, container CPU utilization, container memory utilization, and container restart count; hardware status records include CPU temperature, fan speed, power consumption status, and hardware throttling status. The acquisition agent uses the sampling timestamp as a reference to merge acquisition records from different sources into the same sampling window; for continuous records with inconsistent sampling frequencies, linear interpolation is used to resample to a 5-second interval; for discrete records corresponding to service type, container identifier, power consumption status, and hardware frequency reduction status, one-hot encoding is used to convert them into discrete feature vectors. For abnormal values ​​in the collected records, box plot method is used for identification, and abnormal sampled values ​​exceeding the interquartile range are removed; for short-term missing values ​​formed after removal, forward filling method is used to fill them in; specifically, the low confidence judgment threshold is obtained by dividing the business status change tolerance time by the sampling period and rounding up. When the business status change tolerance time is 15 seconds and the sampling period is 5 seconds, records that are missing for more than 3 consecutive sampling windows are written into the low confidence mark. After completing the above processing, the association between system resource records, business log records, container operation records and hardware status records is established based on the business identifier, interface identifier and container identifier. The data is then structurally spliced ​​according to the sampling window, business identifier, business type, system resource characteristics, business access characteristics, container resource characteristics, hardware status characteristics and data trust tags to generate edge performance status data frames.

[0021] In this embodiment, step two specifically includes: Read historical edge performance status data frames and statistically analyze the distribution of various indicators during historical stable runtime periods according to business type. Take the P95 quantile or status marker of the historical data corresponding to response latency, error rate, CPU utilization, memory utilization, disk I / O wait time, network retransmission count, container restart count, CPU temperature, and hardware throttling status as response latency threshold, error rate threshold, CPU status threshold, memory status threshold, disk I / O status threshold, network status threshold, container restart threshold, temperature threshold, and hardware throttling judgment condition. Historical edge performance status data frames that meet the following criteria are identified as historical normal operation samples: response latency does not exceed the response latency threshold, error rate does not exceed the error rate threshold, CPU utilization does not exceed the CPU state threshold, memory utilization does not exceed the memory state threshold, disk I / O wait time does not exceed the disk I / O state threshold, network retransmission count does not exceed the network state threshold, container restart count does not exceed the container restart threshold, CPU temperature does not exceed the temperature threshold, and the hardware has not entered a frequency reduction state. Extract the following features from historical normal operation samples: business type, request volume, number of concurrent connections, number of network retransmissions, batch size of inference tasks, CPU temperature, and number of container instances as load profile features; For request volume, concurrent connections, network retransmission count, inference task batch, CPU temperature, and container instance count, the sample size is sorted from smallest to largest according to the feature value, and the sample size is evenly divided into the first level, the second level, and the third level using the equal frequency binning method to obtain the request volume level, concurrent connection level, network retransmission level, inference task batch level, temperature level, and container instance level. For each business type, one-hot encoding is used to generate a business type feature vector. The business type feature vector, request volume level, concurrent connection level, network retransmission level, inference task batch level, temperature level, and container instance level are then concatenated in a fixed field order to generate a load profile key value. The MurmurHash algorithm is used to perform hash calculation on the load profile key value to obtain the hash value, and the modulo of the hash value is taken according to the preset bucket table capacity to generate equal load bucket numbers; When different load profile key values ​​are mapped to the same load bucket number, the original load profile key value in the load bucket index table is read for consistency verification. If the consistency verification passes, the historical normal operation sample is written to the corresponding load bucket. If the consistency verification fails, the conflict count field is appended to the load profile key value, and the hash calculation and consistency verification are re-executed to determine the new load bucket number. The historical normal operation sample is then written to the new load bucket. Each load bucket uses a sliding queue to establish a baseline sample set. When the number of written samples exceeds the preset capacity, the earliest written sample is deleted according to the first-in-first-out rule, and the latest historical normal operation sample is retained. The equal-frequency binning boundary values ​​of each load profile feature are persistently saved as a binning boundary configuration table, and the service type encoding table is saved synchronously for use when the current edge performance status data frame is used for real-time load profile matching. After completing the above processing, an equal load bucket index table and a baseline sample set corresponding to each equal load bucket are generated. The equal load bucket index table includes the load profile key value, hash value, equal load bucket number, collision count field, and baseline sample set address.

[0022] In this embodiment, step three specifically includes: Read the current edge performance status data frame, extract the service type, request volume, concurrent connection count, network retransmission count, inference task batch, CPU temperature, and container instance count, and generate the current load profile features; Based on the pre-persisted bin boundary configuration table, the request volume, concurrent connection count, network retransmission count, inference task batch, CPU temperature and container instance count are converted into corresponding levels, and the business type is one-hot encoded according to the pre-formed business type encoding table to generate the current load profile key value. Using the pre-established hash mapping rules, an index query is performed in the equal load bucket index table based on the current load profile key value, and a unique equal load bucket is determined by the load profile key value consistency check. The benchmark sample set within the unique equal-load bucket is read, samples with low-confidence labels are removed, and a minimum sample number threshold is set based on the statistical stability requirements of the counterfactual performance benchmark and the degree of sample volatility within the equal-load bucket. Specifically, the minimum sample number threshold is obtained by convergence judgment of the mean volatility of the benchmark index within the same equal-load bucket. When the change amplitude of the statistical benchmark does not exceed the preset volatility limit for multiple consecutive times after adding a new sample, the corresponding sample number is used as the minimum sample number threshold, which is set to 30. When the number of valid samples is lower than the minimum number of samples threshold, a fallback counterfactual performance benchmark is generated using the global historical performance baseline under the same business type, and the current edge performance status data frame is written into the set of samples to be observed; when the samples in the set of samples to be observed meet the conditions of historical normal operation samples, the corresponding samples are written into the benchmark sample set of the corresponding equal load bucket, and the counterfactual performance benchmark is generated based on the benchmark sample set in the equal load bucket. When the number of valid samples reaches the minimum sample size threshold, an exponentially weighted moving average with a forgetting factor is applied to the CPU characteristics, memory characteristics, disk I / O characteristics, network characteristics, response latency characteristics, error rate characteristics, container resource characteristics, and hardware status characteristics in the benchmark sample set, and the P50 quantile and P95 quantile are calculated. The exponentially weighted moving average, P50 quantile, and P95 quantile results are concatenated according to CPU benchmarks, memory benchmarks, disk I / O benchmarks, network benchmarks, response latency benchmarks, error rate benchmarks, container resource benchmarks, and hardware status benchmarks to generate a counterfactual performance benchmark corresponding to the current load profile.

[0023] In this embodiment, step four specifically includes: Read the current edge performance status data frame and counterfactual performance benchmark, and establish a metric mapping relationship according to CPU, memory, disk I / O, network, response latency, error rate, container resources and hardware status; The difference analysis method is used to calculate the benchmark difference between each indicator in the current edge performance status data frame and the corresponding indicator in the counterfactual performance benchmark, so as to obtain the resource residual, service access residual, container resource residual and hardware status residual. The median and interquartile range are pre-calculated using the residual distribution of the historical benchmark sample set within the corresponding equal-load bucket as bucket-level normalization parameters. When the number of samples within the corresponding equal-load bucket is insufficient, the global historical residual distribution under the same business type is used to generate the fallback normalization parameters. When the pre-calculated interquartile range is null or zero, a smoothing constant is used to replace the interquartile range. Specifically, the smoothing constant is determined according to the residual data retention precision, taking the smallest positive number of the lower limit of the residual normalization calculation precision, and the smoothing constant is set to 10^-6. RobustScaler standardization method is used in combination with bucket-level normalization parameters or fallback normalization parameters to perform residual normalization processing on resource residuals, service access residuals, container resource residuals and hardware status residuals, so that residual data of different dimensions can be transformed to a unified scale. The normalized residual data is filtered based on the data confidence label, eliminating consecutive low-confidence sampling windows and retaining the residual data within the valid sampling window. The sliding window length and sliding step size are set according to the sampling period, bottleneck propagation delay and residual sequence continuity requirements. The residual data within the effective sampling window are then processed by the sliding window. Specifically, the sliding window length is obtained by dividing the upper limit of the bottleneck propagation delay by the sampling period and rounding up. When the upper limit of the bottleneck propagation delay is 60 seconds and the sampling period is 5 seconds, the sliding window length is set to 12 sampling windows and the sliding step size is set to 1 sampling window. The resource residuals, service access residuals, container resource residuals, and hardware status residuals within each sliding window are serialized and concatenated in chronological order to generate a counterfactual load stripping residual sequence. This counterfactual load stripping residual sequence is then used as input data for the residual topology bottleneck identification network.

[0024] In this embodiment, step five specifically includes: The counterfactual load stripping residual sequence is input into the residual topology bottleneck identification network, and business constraint features and container resource constraint features are read simultaneously. The residual variable topology construction layer uses historical counterfactual load to strip residual sequences and calculates the directed transmission strength between different residual variable nodes offline or periodically. The residual variable nodes include CPU residuals, memory residuals, disk I / O residuals, network residuals, business access residuals, container resource residuals, and hardware status residuals. The directed transmission strength is calculated using transfer entropy. Specifically, the maximum lag window is obtained by dividing the upper limit of the historical propagation delay between residual variables by the sampling period and rounding up. When the upper limit of the historical propagation delay is 15 seconds and the sampling period is 5 seconds, the maximum lag window is set to 3 sampling windows. The residual variable topology construction layer generates and caches the residual variable adjacency matrix based on the directed transmission strength, and filters weakly associated edges according to a preset transmission strength threshold to obtain the residual variable topology. Specifically, the transmission strength threshold is obtained by statistically analyzing the transfer entropy distribution between residual variable nodes in the historical counterfactual load stripped residual sequence, taking the P75 quantile of the transfer entropy distribution as the transmission strength threshold, and setting the transmission strength threshold to 0.35. During the real-time inference stage, the residual variable topology construction layer directly loads the cached residual variable adjacency matrix and calculates it in conjunction with the current residual variable node characteristics in the counterfactual load stripped residual sequence. The residual topology-enhanced attention layer based on TopoGDN takes the residual variable topology and residual variable node features as input. Based on the topology-enhanced graph attention of TopoGDN, it performs one-dimensional convolution processing on the residual sequence of each residual variable node within the sliding window to extract the residual temporal features. The in-degree, out-degree, mean edge weight and maximum propagation intensity in the residual variable adjacency matrix are embedded into the residual temporal features to generate residual topology node features. The residual topology-enhanced attention layer based on TopoGDN uses the directed propagation intensity as the topology bias term for graph attention propagation. According to the preset topology bias table, a first topology bias coefficient is configured for residual variable edges that reach the preset propagation intensity threshold, and a second topology bias coefficient is configured for residual variable edges that do not reach the preset propagation intensity threshold. The first or second topology bias coefficient is written into the graph attention weight calculation process to generate attention weights with topology bias. According to the edge direction in the residual variable adjacency matrix, the residual topology node features are weighted and aggregated using the attention weights with topology bias to generate residual topology-enhanced features. The constraint feature fusion layer performs fully connected embedding processing on business constraint features and container resource constraint features. Business constraint features include business priority, response latency limit, and error rate limit. Container resource constraint features include container CPU limit, container memory limit, instance number limit, and resource adjustment permission status. The constraint feature fusion layer adopts the FiLM feature modulation mechanism to generate scaling and bias coefficients based on business constraint features and container resource constraint features, and performs affine modulation on the residual topology enhancement features to generate bottleneck discrimination features that fuse business constraints, container resource constraints and residual topology relationships. The bottleneck contribution output layer sets the output nodes according to the pre-established bottleneck type label set. The bottleneck type label set is consistent with the bottleneck types in the adjustable parameter table, including computing resource bottlenecks, storage I / O bottlenecks, network transmission bottlenecks, container resource constraint bottlenecks, and hardware frequency reduction bottlenecks. The bottleneck contribution output layer inputs the bottleneck discrimination features into the multilayer perceptron and uses the Sigmoid activation function to output the bottleneck contribution corresponding to each bottleneck type label.

[0025] In this embodiment, step six specifically includes: Read the bottleneck contribution corresponding to each bottleneck type label and compare the bottleneck contribution with the preset contribution threshold. Specifically, the preset contribution threshold is obtained by statistically analyzing the distribution of the bottleneck contribution corresponding to the correct bottleneck type in the effective samples of historical optimization. The P50 quantile of this distribution is taken as the preset contribution threshold, and the preset contribution threshold is set to 0.6. Bottleneck type labels that reach the preset contribution threshold are written into the candidate bottleneck set and sorted in descending order of bottleneck contribution; when the candidate bottleneck set is empty, an unadjustable bottleneck label is generated. Read the adjustable parameter table, which includes bottleneck type, tuning parameters, parameter adjustment direction, parameter adjustment range, and safety boundary. Based on the ranking of the candidate bottleneck set, the mapping from bottleneck type to tuning parameters is executed sequentially; computing resource bottlenecks correspond to CPU weight adjustment, CPU affinity adjustment, and background task resource usage limits; storage I / O bottlenecks correspond to log write rate limiting, cache refresh cycle adjustment, and disk queue parameter adjustment; network transmission bottlenecks correspond to connection pool size adjustment, TCP buffer adjustment, and network queue parameter adjustment; container resource constraint bottlenecks correspond to container CPU limit adjustment, container memory limit adjustment, and container instance quantity adjustment; hardware throttling bottlenecks correspond to non-core task migration, inference batch adjustment, and temperature control strategy adjustment. By combining business constraint characteristics and container resource constraint characteristics, the executability of the mapped tuning parameters is verified. The verification content includes business priority, response latency limit, error rate limit, resource adjustment permission status, and hardware security boundary. When the tuning parameters pass the executability check, the corresponding bottleneck type is identified as the current tunable bottleneck type, and corresponding tuning suggestions are generated based on the parameter adjustment direction and magnitude. When the tuning parameters fail the executability check, the next candidate bottleneck type is matched until a corresponding tuning suggestion is generated or an untunable bottleneck is marked.

[0026] In this embodiment, step seven specifically includes: After the optimization suggestions are implemented, system resource records, business log records, container operation records, and hardware status records continue to be collected within the preset feedback observation window, and performance feedback records are generated according to the generation rules of edge performance status data frames. Specifically, the feedback observation window is obtained by summing the effective time of optimization parameters, business request cycle, and performance indicator stabilization time. When the effective time of optimization parameters is 2 minutes, the business request cycle is 3 minutes, and the performance indicator stabilization time is 5 minutes, the feedback observation window is set to 10 minutes. The performance feedback records are compared with the edge performance status data frames before the optimization suggestions are implemented. Changes in response latency, error rate, resource usage, container status, and hardware status are extracted to generate optimization effect evaluation results. The effectiveness of the feedback is determined based on the evaluation results of the tuning effect. Specifically, the preset improvement threshold is obtained by statistically analyzing the positive difference in core business response latency in historical effective tuning records. The P50 quantile of the positive difference distribution is taken and adjusted in conjunction with the upper limit of business response latency. The preset improvement threshold is set to 15%. When the positive difference between the core business response latency before and after the tuning suggestion reaches the preset improvement threshold, the error rate change does not exceed the preset error rate fluctuation threshold, the resource usage change does not exceed the preset resource fluctuation threshold, the container does not trigger a memory overflow alarm or CPU rate limiting alarm, and the hardware does not enter a frequency reduction state, the performance feedback record is determined as a valid feedback record. Based on the load profile characteristics corresponding to the performance feedback records, the corresponding equal load buckets are determined using the pre-formed discretization rules and hash mapping rules, and the valid feedback records are written back to the baseline sample set of the corresponding equal load buckets; when the baseline sample set exceeds the preset capacity, the earliest written sample is replaced according to the first-in-first-out rule. The write-back benchmark sample set is reprocessed with an exponentially weighted moving average with a forgetting factor, and the P50 quantile and P95 quantile are recalculated to update the counterfactual performance benchmark of the corresponding equal-load buckets. When the performance feedback record does not meet the feedback validity judgment condition, the performance feedback record is written into the abnormal feedback sample set, and the matching weight between the corresponding bottleneck type label and the tuning parameter is updated to the negative feedback matching weight. Feedback samples are formed based on the valid feedback records and the set of abnormal feedback samples, and the bottleneck contribution output layer parameters in the residual topology bottleneck identification network are updated according to the negative feedback matching weight.

[0027] Example 1: To verify the feasibility of this invention in practice, it was applied to an edge server performance optimization scenario in an industrial park. The park deployed three edge servers on the production line side to handle video quality inspection, equipment status acquisition, and lightweight inference tasks. Each server was configured with a 16-core CPU, 64GB of memory, a 2TB SSD, and a gigabit network, with 18 to 42 service containers.

[0028] The data acquisition agent obtains system resource records, business log records, container operation records, and hardware status records at a 5-second sampling period, continuously collecting data for 30 days, with the first 23 days used as historical samples and the last 7 days as verification samples. Load profile features include business type, request volume, concurrent connections, network retransmission count, inference task batch size, CPU temperature, and number of container instances. Continuous features are divided into three levels (Level 1, Level 2, and Level 3) using equal-frequency binning. The minimum sample size threshold is set to 30 records, the transmission strength threshold is set to 0.35, the preset contribution threshold is set to 0.6, and the feedback observation window is set to 10 minutes.

[0029] During implementation, the current edge performance status data frame is first matched with a unique equal-load bucket based on the current load profile key value, and a counterfactual performance benchmark is generated from the benchmark sample set. Then, the current state and the counterfactual performance benchmark are compared by benchmark difference calculation, residual normalization, and sliding window arrangement to form a counterfactual load stripping residual sequence. Finally, the residual topology bottleneck identification network is input to output the bottleneck contribution of computing resource bottleneck, storage I / O bottleneck, network transmission bottleneck, container resource constraint bottleneck, and hardware frequency reduction bottleneck, and corresponding tuning suggestions are generated in combination with the adjustable parameter table.

[0030] To verify the effectiveness of the present invention, four sets of comparison methods were set up: Method A is a fixed threshold optimization method, Method B is a global historical baseline optimization method, Method C is a residual identification model without TopoGDN topology bias, and Method D is an ablation model without equal load buckets.

[0031] Table 1 Comparison of Edge Server Performance Tuning Implementation Effects

[0032] As shown in Table 1, Method A has a single decision time of 4.2ms, which is fast in rule judgment and suitable for scenarios with relatively stable load and simple optimization strategies. However, its fixed threshold cannot distinguish between request volume growth and actual performance bottlenecks, resulting in an alarm false positive rate of 28.4%. Method B is based on a global historical baseline, and its average response latency and P95 response latency are improved compared to Method A. The single decision time is still maintained at 9.6ms, indicating that its implementation cost is low. However, since it does not form load buckets according to business type, number of concurrent connections, number of network retransmissions, batch of inference tasks, and number of container instances, the baseline deviation under mixed load can still cause false positives, resulting in an alarm false positive rate of 22.7%.

[0033] Method C employs equal load buckets and a counterfactual performance benchmark, enabling the current edge performance status data frame to be compared with historical normal operation samples under the same load profile. This reduces the alarm false positive rate to 14.6%, demonstrating the significant effect of equal load buckets in stripping away load impact. However, this method does not utilize TopoGDN topology bias, resulting in insufficient expression of directed transmission relationships between residual variables, and the optimization suggestion effectiveness rate is 75.3%. Method D retains the residual topology bottleneck identification network, effectively identifying the correlation between CPU residuals, network residuals, container resource residuals, and hardware status residuals, thus achieving an optimization suggestion effectiveness rate of 78.6%. However, due to the lack of equal load buckets, the counterfactual performance benchmark is still affected by mixed loads, resulting in an alarm false positive rate of 18.9%.

[0034] This method simultaneously employs a counterfactual performance benchmark of equal-load buckets and an enhanced attention layer based on TopoGDN residual topology, enabling seamless integration of load profiling matching, counterfactual load stripping residual sequence generation, and residual topology bottleneck identification. Implementation results show that the average response latency is 142ms, the P95 response latency is 276ms, the alarm false alarm rate is 9.8%, and the optimization suggestion effectiveness rate reaches 86.1%. Although the single decision time of this method is 58.7ms, higher than Method A and Method B, this time is far less than the 5-second sampling period and the 10-minute feedback observation window, and does not affect the generation of edge server optimization suggestions. This demonstrates that this method can balance bottleneck identification accuracy, optimization suggestion executability, and engineering deployment feasibility in edge computing scenarios with multiple parallel services and rapidly changing loads.

[0035] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A server performance tuning method based on edge computing, characterized in that, Includes the following steps: Step 1: Collect system resource records, business log records, container operation records, and hardware status records from the edge server, preprocess the collected records, and generate edge performance status data frames; Step 2: Based on historical performance baselines and load profile rules, perform feature discretization and multi-dimensional binning on historical normal operation samples, write historical normal operation samples with consistent load profiles into the same load bucket, and establish a benchmark sample set for each load bucket. Step 3: Match a unique equal-load bucket based on the load profile of the current edge performance status data frame, and perform statistical benchmark generation processing on the benchmark sample set in the unique equal-load bucket to generate a counterfactual performance benchmark. Step 4: Calculate the benchmark difference, normalize the residuals, and smooth the sliding window between the current edge performance status data frame and the counterfactual performance benchmark to generate a counterfactual load stripping residual sequence; Step 5: Input the residual sequence, business constraint features and container resource constraint features stripped from the counterfactual load into the residual topology bottleneck identification network. The residual topology bottleneck identification network includes a residual variable topology construction layer, a residual topology enhancement attention layer based on TopoGDN, a constraint feature fusion layer and a bottleneck contribution output layer to generate the bottleneck contribution degree of each bottleneck type. Step 6: Based on the comparison results of the bottleneck contribution degree of each bottleneck type with the preset contribution threshold, and in conjunction with the adjustable parameter table, perform the mapping from bottleneck type to tuning parameters, determine the current adjustable bottleneck type, and generate corresponding tuning suggestions; Step 7: Collect performance feedback records after the optimization suggestions are implemented, write the valid feedback records back to the corresponding equal load bucket, and update the counterfactual performance benchmark and residual topology bottleneck identification network parameters.

2. The server performance tuning method based on edge computing according to claim 1, characterized in that, Step one specifically includes: A data collection agent is deployed locally on the edge server. The data collection agent acquires system resource records, business log records, container operation records, and hardware status records according to a preset sampling period. System resource records include CPU, memory, disk I / O, and network-related metrics; business log records include business type, request volume, response latency, error rate, concurrent connections, and inference task batches; container operation records include container identifier, resource limits, number of instances, resource utilization, and number of restarts; hardware status records include CPU temperature, power consumption status, and hardware throttling status. The acquisition agent uses the sampling timestamp as a reference to merge acquisition records from different sources into the same sampling window; for continuous records with inconsistent sampling frequencies, linear interpolation is used for resampling; for discrete records, one-hot encoding is used to convert them into discrete feature vectors. For abnormal values ​​in the collected records, box plot method is used to identify and remove them; for short-term missing values ​​formed after removal, forward filling method is used to fill them; for records with continuous missing values ​​exceeding the preset sampling window number, the corresponding sampling window is written into the low confidence mark. The association between system resource records, business log records, container operation records, and hardware status records is established based on business identifiers, interface identifiers, and container identifiers. The data is then structured and spliced ​​according to sampling window, business identifier, business type, system resource characteristics, business access characteristics, container resource characteristics, hardware status characteristics, and data trust tags to generate edge performance status data frames.

3. The server performance tuning method based on edge computing according to claim 1, characterized in that, Step two specifically includes: Based on historical performance baselines, the distribution of various indicators during historical stable operating periods is statistically analyzed according to business type. Samples whose response latency, error rate, CPU status, memory status, disk I / O status, network status, container restart status, temperature status, and hardware frequency reduction status are all within the historical stable range are identified as historical normal operating samples. Extract the following features from historical normal operation samples: business type, request volume, number of concurrent connections, number of network retransmissions, batch size of inference tasks, CPU temperature, and number of container instances as load profile features; According to the load profiling rules, continuous features in the load profiling features are binned at equal frequencies according to the feature value distribution to generate corresponding levels; for business types, one-hot encoding is used to generate business type feature vectors. The business type feature vector is concatenated with each load profile level in a fixed field order to generate a load profile key value. The MurmurHash algorithm is used to perform hash calculation on the load profile key value, and the load bucket number is generated by taking the remainder according to the preset bucket table capacity. When different load profile key values ​​are mapped to the same load bucket number, consistency verification is performed using the original load profile key value in the load bucket index table. If the consistency verification passes, historical normal operation samples are written to the corresponding load bucket. If the consistency verification fails, a conflict count field is appended to the load profile key value, and hash calculation and consistency verification are re-executed to determine a new load bucket number. Historical normal operation samples are then written to the new load bucket. Each load equalization bucket uses a sliding queue to establish a baseline sample set and saves the bin boundary configuration table, service type encoding table, and load equalization bucket index table.

4. The server performance tuning method based on edge computing according to claim 1, characterized in that, Step three specifically includes: Extract the service type, request volume, concurrent connection count, network retransmission count, inference task batch, CPU temperature, and container instance count from the current edge performance status data frame to generate the current load profile features; Based on the binning boundary configuration table, the continuous features in the current load profile are converted into the corresponding levels, and the service types are one-hot encoded according to the service type encoding table to generate the current load profile key value. Following the hash mapping rules, an index query is performed in the equal load bucket index table based on the current load profile key value, and a unique equal load bucket is determined through load profile key value consistency verification. Obtain the benchmark sample set within the unique equal-load bucket, remove samples with low confidence labels, and determine whether the statistical benchmark generation conditions are met based on the number of valid samples and the confidence status of the samples in the benchmark sample set. When the statistical baseline generation conditions are not met, a fallback counterfactual performance baseline is generated using the global historical performance baseline under the same business type, and the current edge performance status data frame is written into the set of samples to be observed; when the samples in the set of samples to be observed meet the conditions of historical normal operation samples, the corresponding samples are written into the baseline sample set of the corresponding equal load bucket. When the statistical benchmark generation conditions are met, an exponentially weighted moving average with a forgetting factor is applied to the CPU characteristics, memory characteristics, disk I / O characteristics, network characteristics, response latency characteristics, error rate characteristics, container resource characteristics, and hardware status characteristics in the benchmark sample set. Based on the distribution statistics, a counterfactual performance benchmark corresponding to the current load profile is generated.

5. The server performance tuning method based on edge computing according to claim 4, characterized in that, The process of generating the equal load bucket and the counterfactual performance benchmark specifically includes: Match the current load profile key value with the load profile key value in the equal load bucket index table to determine the unique equal load bucket that matches the current load profile; Historical normal operation samples are extracted from the benchmark sample set of the unique equal load bucket. Statistical benchmark generation processing is performed on the CPU characteristics, memory characteristics, disk I / O characteristics, network characteristics, response latency characteristics, error rate characteristics, container resource characteristics, and hardware status characteristics in the historical normal operation samples to generate CPU benchmark, memory benchmark, disk I / O benchmark, network benchmark, response latency benchmark, error rate benchmark, container resource benchmark, and hardware status benchmark. By concatenating CPU benchmarks, memory benchmarks, disk I / O benchmarks, network benchmarks, response latency benchmarks, error rate benchmarks, container resource benchmarks, and hardware status benchmarks, a counterfactual performance benchmark is generated. The counterfactual performance benchmark characterizes the normal performance state of the edge server under the current load profile and serves as reference data for calculating the benchmark difference.

6. The server performance tuning method based on edge computing according to claim 1, characterized in that, Step four specifically includes: Establish a mapping relationship between metrics based on CPU, memory, disk I / O, network, response latency, error rate, container resources, and hardware status; The difference analysis method is used to calculate the benchmark difference between each indicator in the current edge performance status data frame and the corresponding indicator in the counterfactual performance benchmark, so as to obtain the resource residual, service access residual, container resource residual and hardware status residual. Bucket-level normalization parameters are generated using the residual distribution of the historical benchmark sample set within the corresponding equal-load bucket. When the number of samples within the corresponding equal-load bucket is insufficient, the global historical residual distribution under the same business type is used to generate fallback normalization parameters. When the normalization parameter is null, zero, or cannot participate in the normalization calculation, a smoothing constant is used as a substitute. RobustScaler standardization method is used in combination with bucket-level normalization parameters or fallback normalization parameters to perform residual normalization processing on resource residuals, service access residuals, container resource residuals and hardware state residuals; Based on the data confidence label, the normalized residual data is filtered for confidence, the sampling windows with low confidence labels are removed, and the residual data within the valid sampling windows are retained; The sliding window length and sliding step size are set according to the sampling period, preset bottleneck propagation delay and residual sequence continuity requirements, and the residual data within the effective sampling window are sorted by sliding window. The resource residuals, service access residuals, container resource residuals, and hardware status residuals within each sliding window are serialized and concatenated in chronological order to generate a counterfactual load stripping residual sequence.

7. The server performance tuning method based on edge computing according to claim 1, characterized in that, Step five specifically includes: The counterfactual load is stripped and the residual sequence is input into the residual topology bottleneck identification network, and business constraint features and container resource constraint features are obtained simultaneously. The residual variable topology construction layer uses historical counterfactual load to strip residual sequences and calculates the directed transmission strength between different residual variable nodes offline or periodically. The directed transmission strength is calculated using transfer entropy. The residual variable nodes include CPU residuals, memory residuals, disk I / O residuals, network residuals, business access residuals, container resource residuals, and hardware status residuals. The residual variable adjacency matrix is ​​generated and cached based on the directed propagation strength, and weakly associated edges are filtered according to the preset propagation strength threshold to obtain the residual variable topology. During the real-time inference stage, the cached residual variable adjacency matrix is ​​directly loaded, and the current residual variable node features in the residual sequence are extracted by combining the counterfactual load for calculation. The residual topology-enhanced attention layer based on TopoGDN takes the residual variable topology and residual variable node features as input to generate residual topology-enhanced features; The constraint feature fusion layer performs fully connected embedding processing on business constraint features and container resource constraint features, and uses the FiLM feature modulation mechanism to perform affine modulation on residual topology enhancement features to generate bottleneck discrimination features that integrate business constraints, container resource constraints and residual topology relationships. The bottleneck contribution output layer sets the output nodes according to the pre-established bottleneck type label set. The bottleneck type label set is consistent with the bottleneck types in the adjustable parameter table, including computing resource bottlenecks, storage I / O bottlenecks, network transmission bottlenecks, container resource constraint bottlenecks, and hardware frequency reduction bottlenecks. The bottleneck discrimination features are input into the multilayer perceptron, and the bottleneck contribution corresponding to each bottleneck type label is output using the Sigmoid activation function.

8. A server performance tuning method based on edge computing according to claim 7, characterized in that, The residual topology-enhanced attention layer based on TopoGDN specifically includes: One-dimensional convolution is performed on the residual sequences of each residual variable node within the sliding window to extract the temporal features of the residuals. The in-degree, out-degree, mean edge weight, and maximum propagation strength of the residual variable adjacency matrix are embedded into the residual time series features to generate residual topological node features; The directed transmission intensity is used as the topological bias term for graph attention propagation. According to the preset topological bias table, the first topological bias coefficient is configured for residual variable edges that reach the preset transmission intensity threshold, and the second topological bias coefficient is configured for residual variable edges that do not reach the preset transmission intensity threshold. Write the first or second topological bias coefficient into the graph attention weight calculation process to generate attention weights with topological bias. Based on the edge directions in the adjacency matrix of the residual variables, the residual topological node features are weighted and aggregated using attention weights with topological bias to generate residual topological enhancement features.

9. A server performance tuning method based on edge computing according to claim 1, characterized in that, Step six specifically includes: Compare the bottleneck contribution corresponding to each bottleneck type label with the preset contribution threshold; Bottleneck type labels that reach the preset contribution threshold are written into the candidate bottleneck set and sorted in descending order of bottleneck contribution; when the candidate bottleneck set is empty, an unadjustable bottleneck label is generated. Based on the sorting results of the candidate bottleneck set, the mapping from bottleneck type to tuning parameters is executed sequentially in conjunction with the adjustable parameter table. The adjustable parameter table includes bottleneck type, tuning parameters, parameter adjustment direction, parameter adjustment range, and safety boundary. Computing resource bottlenecks correspond to CPU weight adjustments, CPU affinity adjustments, and background task resource usage limits; storage I / O bottlenecks correspond to log write rate limits, cache refresh cycle adjustments, and disk queue parameter adjustments; network transmission bottlenecks correspond to connection pool size adjustments, TCP buffer adjustments, and network queue parameter adjustments; container resource constraint bottlenecks correspond to container CPU limit adjustments, container memory limit adjustments, and container instance number adjustments; hardware frequency reduction bottlenecks correspond to non-core task migration, inference batch adjustments, and temperature control strategy adjustments. By combining business constraint characteristics and container resource constraint characteristics, the executability of the mapped tuning parameters is verified. The verification content includes business priority, response latency limit, error rate limit, resource adjustment permission status, and hardware security boundary. When the tuning parameters pass the executability check, the corresponding bottleneck type is identified as the current tunable bottleneck type, and corresponding tuning suggestions are generated based on the parameter adjustment direction and magnitude. When the tuning parameters fail the executability check, the next candidate bottleneck type is matched until a corresponding tuning suggestion is generated or an untunable bottleneck is marked.

10. A server performance tuning method based on edge computing according to claim 1, characterized in that, Step seven specifically includes: After the optimization suggestions are implemented, system resource records, business log records, container running records and hardware status records will continue to be collected in the preset feedback observation window, and performance feedback records will be generated according to the generation rules of edge performance status data frames. The performance feedback records are compared with the edge performance status data frames before the optimization suggestions are implemented. Changes in response latency, error rate, resource usage, container status, and hardware status are extracted to generate optimization effect evaluation results. The performance feedback record is determined as a valid feedback record based on the evaluation results of the optimization effect. When the positive difference between the core business response latency before and after the optimization suggestion reaches the preset improvement threshold, the error rate change does not exceed the preset error rate fluctuation threshold, the resource usage change does not exceed the preset resource fluctuation threshold, the container does not trigger a memory overflow alarm or CPU rate limiting alarm, and the hardware does not enter a frequency reduction state, the performance feedback record is determined as a valid feedback record. Based on the load profile characteristics corresponding to the performance feedback records, the corresponding equal load buckets are determined using the pre-formed discretization rules and hash mapping rules, and the valid feedback records are written back to the benchmark sample set of the corresponding equal load buckets. The write-back benchmark sample set is reprocessed with an exponentially weighted moving average with a forgetting factor, and the counterfactual performance benchmark of the corresponding equal-load bucket is updated in combination with the distribution statistics. When the performance feedback record does not meet the feedback validity judgment condition, the performance feedback record is written into the abnormal feedback sample set, and the matching weight between the corresponding bottleneck type label and the tuning parameter is updated to the negative feedback matching weight. Feedback samples are formed based on the valid feedback records and the set of abnormal feedback samples, and the bottleneck contribution output layer parameters in the residual topology bottleneck identification network are updated according to the negative feedback matching weight.