A bare metal server management and scheduling method based on edge computing

By adopting a managed scheduling method for edge computing, the shortcomings of bare metal servers in terms of architecture, scheduling, and security are addressed, achieving efficient and secure managed scheduling. This improves the automation level and resource utilization efficiency of edge computing and solves the problems of heterogeneous device adaptation and network fluctuations.

CN123164074APending Publication Date: 2026-11-24BEIJING SAISHENG BOCHUANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing bare-metal server management methods struggle to balance centralized control and edge autonomy at the architecture level, cannot achieve multi-objective global optimization at the scheduling level, have low automation and are disconnected from scheduling at the adaptation level, and lack sufficient protection capabilities for edge scenarios at the security level. They are unable to meet the management requirements of high availability, high efficiency, high adaptability, and high security in edge computing scenarios.

Method used

This paper presents a bare-metal server management and scheduling method based on edge computing, including system initialization, device discovery and protocol adaptation optimization, cloud-edge link quality awareness and autonomous dynamic calculation, joint scheduling to maximize management utility, and management task execution and adaptive optimization. The method solves the globally optimal scheduling sequence through an integer programming model and a genetic algorithm to achieve joint optimization of dynamic resource allocation and protocol adaptation paths.

Benefits of technology

It enables efficient and automated management of bare metal servers, improves scheduling efficiency and network robustness, solves the problems of high adaptation costs for heterogeneous devices, resource waste and task interruption caused by network fluctuations, realizes a smooth transition from cloud management to edge autonomy, and improves the security and resource utilization efficiency of edge computing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164074A_ABST
    Figure CN123164074A_ABST
Patent Text Reader

Abstract

This invention provides a bare-metal server management and scheduling method based on edge computing, comprising the following steps: A) initialization of system and edge node basic configurations; B) device discovery and protocol adaptation optimization; C) cloud-edge link quality awareness and dynamic calculation of autonomy; D) joint scheduling to maximize management utility; E) management task execution and adaptive optimization. This invention overcomes the shortcomings of existing technologies and improves scheduling efficiency, network robustness, and device adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of software engineering and artificial intelligence technology, and in particular to a bare metal server management and scheduling method based on edge computing. Background Technology

[0002] With the rapid deployment of 5G, industrial internet, and smart cities, edge computing has become an important supplement to cloud computing architecture due to its advantages of low latency, data localization, and low bandwidth costs. Bare metal servers combine the performance exclusivity and security isolation of physical servers with the elastic management capabilities of cloud resources, making them the core computing power carrier for edge computing sites. They are widely deployed in various edge nodes such as parks, factories, and base stations, carrying critical services such as real-time data processing, local business forwarding, and edge AI inference. Automated, standardized, and highly available management of the massive heterogeneous bare metal servers distributed across various sites is the core foundation for ensuring the stable operation of edge infrastructure, improving operational efficiency, and reducing operating costs.

[0003] Existing bare-metal server management methods struggle to balance centralized control and edge autonomy at the architecture level, cannot achieve multi-objective global optimization at the scheduling level, have low automation and are disconnected from scheduling at the adaptation level, and lack sufficient protection capabilities for edge scenarios at the security level. They cannot simultaneously meet the management requirements of high availability, high efficiency, high adaptability, and high security in edge computing scenarios. Summary of the Invention

[0004] To overcome the shortcomings of existing technologies, the purpose of this invention is to provide a bare metal server management and scheduling method based on edge computing, which can solve the problems of existing technologies and improve scheduling efficiency, network robustness and device adaptability.

[0005] To achieve the above objectives, the present invention provides the following solution: A bare-metal server management and scheduling method based on edge computing includes the following steps: A. Initialization of system and edge node basic configuration: Initialize the hardware resource baseline, scheduling time parameters and algorithm baseline parameters of the edge nodes; establish the initial connection between the edge nodes and the cloud, and synchronize the global management strategy, protocol adaptation template library and historical business load curves; B. Device discovery and protocol adaptation optimization: Search for bare metal servers within the effective area, collect the protocol fingerprint of the device and generate an initial protocol feature vector, transform the management task into a requirement vector, calculate the matching degree between the device's native protocol and the task requirements, and when the matching degree is lower than the matching degree threshold, use dynamic programming to solve the minimum cost adaptation path to meet the requirements. C. Cloud-edge link quality perception and dynamic calculation of autonomy: Real-time perception of cloud-edge link quality, dynamic calculation of edge autonomy in combination with task urgency, and smooth division of decision boundaries between cloud and edge; D. Joint scheduling that maximizes the utility of management: Generate management scheduling schemes based on maximizing management utility and solve for the globally optimal scheduling sequence; E. Managed Task Execution and Adaptive Optimization: Based on the optimal scheduling sequence, a token bucket mechanism is used for resource allocation and task execution. Adaptive optimization is performed based on the execution results after each scheduling cycle.

[0006] Preferably, in step B, the protocol fingerprint of the device is collected and an initial protocol feature vector is generated. The management task is transformed into a requirement vector, and the matching degree between the device's native protocol and the task requirements is calculated. Specifically: Send LLDP broadcast packets to obtain the MAC addresses, device names, and port information of all devices in the Layer 2 network. Probe the discovered devices sequentially using Redfish, IPMI, SNMP, and SSH protocols, collect the response message characteristics of each protocol, extract the protocol fingerprint of each device, and generate a 7-dimensional protocol feature vector. , Where i is the device number, i∈[1,N], and N is the total number of devices discovered; p i1 ~p i7 These are configuration management capability, status acquisition capability, firmware upgrade capability, user management capability, security protection capability, response latency factor, and resource consumption factor, all with values ​​of [0,1]. Transform the j-th management task into a 7-dimensional requirement vector: , Where, d j1 ~d j7 These correspond to the task requirement intensity of the seven capability dimensions, with values ​​ranging from [0,1]. Cosine similarity is used to calculate the matching degree between the device's native protocol and task requirements. , Among them, M i,j P represents the protocol matching degree between the i-th device and the j-th task, with a value range of [0,1]. i ·D j The dot product of two vectors; |P i |、|D j | represents the magnitudes of the two vectors.

[0007] Preferably, when M i,j Less than the matching threshold M th At that time, initiate adaptation path optimization: The state transition equation is, , Where, d p [m][s] represents the minimum total cost to achieve an overall capability value of s after combining the first m adaptable components.

[0008] The cost of single-component adaptation is, , Where, Δ sm Cost represents the overall capability improvement brought by the m-th adapting component. m c represents the total cost of the m-th adapting component; m,cpu c m,time c m,error λ1, λ2, and λ3 are the relative values ​​of CPU consumption, additional latency, and instruction translation error rate of the m-th component, respectively, with a value range of [0,1]; λ1, λ2, and λ3 are the weight coefficients of the three types of costs, satisfying λ1 + λ2 + λ3 = 1; Iterate through all cases where s ≥ s demand Given the state of (demand capability threshold), the optimal path k is selected based on the combination of adaptable components with the minimum cost, corresponding to a total adaptation cost of Cost. i,k .

[0009] Preferably, in step C, the edge node collects three core indicators of the cloud-edge link at a fixed period and calculates the overall link quality score. , Where Q is the overall quality score of the cloud-edge link, with a value range of [0,1]; d is the one-way latency of the cloud-edge link, in milliseconds; d max The maximum tolerable latency for management; l is the packet loss rate of the cloud-edge link, with a value range of [0,1]; b is the available bandwidth of the cloud-edge link; b max The baseline bandwidth is defined as the bandwidth for management; k1, k2, and k3 are the weighting coefficients for latency, packet loss rate, and bandwidth, satisfying k1 + k2 + k3 = 1.

[0010] Preferably, in step C, the Sigmoid function is used to calculate the basic degree of autonomy, and then the task urgency factor is introduced to correct it to obtain the final degree of autonomy, so as to achieve a smooth and continuous transition; The basic level of autonomy is, , Where A0 is the basic degree of autonomy, with a value range of [0,1], where 0 represents complete cloud-based control and 1 represents complete edge autonomy; Q0 ​​is the threshold for switching the degree of autonomy; α is the smoothing coefficient, which controls the steepness of the transition. Then adjust the task urgency level. , Where A is the final edge autonomy, and its value ranges from [0,1]; Emax β represents the highest urgency among the tasks currently pending execution, with a value range of [0,1]; β is the urgency influence coefficient, with a value range of [0,1], representing the adjustment range of urgency on autonomy.

[0011] As a preferred approach, the division of responsibilities between the cloud and the edge is dynamically adjusted from four dimensions based on the final degree of autonomy A: Decision-making authority allocation: the number of tasks that can make independent decisions at the periphery. Where N is the total number of tasks, and P is the priority ranking. local The tasks are scheduled directly at the edge, and the remaining tasks need to be reported to the cloud for approval. Data synchronization frequency, ;where f sync f is the actual synchronization frequency. base The reference synchronization frequency; Data synchronization granularity Among them, G full For full synchronization granularity, G inc Incremental synchronization granularity; Cloud-based intervention threshold , among which Th intervene This is the risk threshold for proactive intervention in the cloud.

[0012] As a preferred option, in step D, for each managed task, the management value per unit task and the total resource cost are calculated. Task management value: Among them, V i Let Imp be the management value for the i-th task, with a value ranging from [0,1]. i The value ranges from [0,1] to represent the service importance of the corresponding device; Sec i The value is the safety risk value of the corresponding equipment, and the range is [0,1]; w1 and w2 are the weights of importance and safety risk, satisfying w1 + w2 = 1; Total resource cost of the task: , where C i The basic resource cost for task execution, Cost i,k The optimal fit cost output by the HPACM algorithm, CPU i mem i net i These represent the relative CPU, memory, and bandwidth usage required for task execution, respectively, with values ​​ranging from [0,1]. cpu c mem c net The unit cost weights for the three types of resources.

[0013] As a preferred option, in step D, a 0-1 integer programming model is constructed to solve for the globally optimal scheduling sequence; Decision variables: , Where t is the time slice number, t∈[1,T]; T is the total number of time slices within the scheduling period; Objective function: , Where U is the total utility of the scheduling period; f(t) is the time value coefficient of the t-th time slice, with a value range of [0,1]; g(t) is the resource cost coefficient of the t-th time slice, with a value range of [1,+∞); Single-task execution constraints: ; Resource capacity constraints: , , , Among them, CPU avail(t) MEM avail(t) NET avail(t) The proportion of CPU, memory, and bandwidth available at the edge node of time slice t; Time window constraints: , Among them, S high For a set of high-priority tasks; t i,dead This is the latest execution time slice for the i-th task; Autonomous authority constraints: , Among them, S local A set of tasks that can be autonomously scheduled at the edge; t approve,i This is the cloud approval completion time slice for the i-th task.

[0014] Preferably, in step D, the globally optimal scheduling sequence is solved based on a genetic algorithm.

[0015] Preferably, in step E, after each scheduling cycle, adaptive optimization is performed based on the execution results, including: Based on feedback from the success rate of inclusion in management, business impact rate, and resource utilization rate, the weighting coefficients w1 and w2 and the smoothing coefficient α of PASNQ are dynamically adjusted. Update the adaptation threshold M based on the protocol adaptation success rate and error rate. th .

[0016] The present invention has the following technical effects: 1. To address the problem that traditional two-stage serial scheduling of "priority sorting + resource allocation" can only yield suboptimal solutions, this method incorporates task value, resource cost, time window, and business load into a unified integer programming model to solve for the globally optimal scheduling sequence in one go.

[0017] 2. By jointly optimizing the protocol adaptation path selection and task scheduling, the problem of high cost and long cycle of multi-vendor heterogeneous bare metal pipe adaptation is solved, and the plug-and-play pipe integration of heterogeneous devices is realized.

[0018] 3. To address the issues of frequent switching between traditional binary modes, lag in weak networks, and shutdown due to network outages, this invention designs a progressive autonomous scheduling algorithm to achieve a smooth and continuous transition from cloud-based control to edge autonomy. This solves the problems of lagging cloud control and lag in managed tasks under weak network conditions, as well as task interruptions caused by frequent mode switching during network fluctuations.

[0019] 4. To address the issues of limited resources at edge nodes and the potential for overload or resource waste due to fixed concurrency, this invention embeds resource capacity constraints into a joint scheduling model and combines this with a token-based execution mechanism to achieve dynamic and precise resource allocation. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram of the present invention. Detailed Implementation

[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] This method adopts a distributed architecture of cloud-based full-domain control, edge intelligent scheduling, and device-local execution, forming a closed-loop scheduling system that covers the entire process from device discovery, protocol adaptation, permission allocation, task scheduling to execution control.

[0024] I. Initialization of System and Edge Node Basic Configuration. By completing the basic parameter configuration, policy synchronization, and template library loading after the edge nodes start up, a baseline input is provided for subsequent scheduling and adaptation.

[0025] Initialize the hardware resource baseline, scheduling time parameters, and algorithm baseline parameters of the edge nodes. Then, establish the initial connection between the edge nodes and the cloud, and synchronize the global management strategy, protocol adaptation template library, and historical business load curves.

[0026] 2. Search for bare metal servers within the valid area and dynamically select the optimal protocol adaptation path.

[0027] First, send LLDP broadcast packets to obtain the MAC addresses, device names, and port information of all devices in the Layer 2 network. Then, sequentially probe the discovered devices using Redfish (port 443), IPMI (port 623), SNMP (port 161), and SSH (port 22) protocols, collecting the characteristics of the response messages for each protocol.

[0028] Then, the protocol fingerprint of each device is extracted to generate an initial protocol feature vector: , Where i is the device number, i∈[1,N], and N is the total number of devices discovered; p i1 ~p i7 These are configuration management capability, status acquisition capability, firmware upgrade capability, user management capability, security protection capability, response latency factor, and resource consumption factor, all with values ​​of [0,1].

[0029] For each device's management task requirements, the protocol matching degree is calculated, and the minimum cost adaptation path that meets the requirements is dynamically selected. The j-th management task is transformed into a 7-dimensional requirement vector. , Where, d j1 ~d j7 These correspond to the task requirement intensity of each of the seven capability dimensions, with values ​​ranging from [0,1].

[0030] Cosine similarity is used to calculate the matching degree between the device's native protocol and task requirements. , Among them, M i,j P represents the protocol matching degree between the i-th device and the j-th task, with a value range of [0,1]. i ·D j The dot product of two vectors; |P i |、|D j | represents the magnitudes of the two vectors.

[0031] If M i,j <M th If the matching threshold is reached, then the adaptation path optimization will be initiated: The state transition equation is, , Where, d p [m][s] represents the minimum total cost to achieve an overall capability value of s after combining the first m adaptable components.

[0032] The cost of single-component adaptation is, , Where, Δ sm Cost represents the overall capability improvement brought by the m-th adapting component. m c represents the total cost of the m-th adapting component; m,cpu c m,time c m,error λ1, λ2, and λ3 are the relative values ​​of CPU consumption, additional latency, and instruction translation error rate of the m-th component, respectively, with a value range of [0,1]. λ1, λ2, and λ3 are the weight coefficients of the three types of costs, satisfying λ1 + λ2 + λ3 = 1, with preset values ​​of 0.4, 0.35, and 0.25, respectively.

[0033] Iterate through all cases where s ≥ s demand Given the state of (demand capability threshold), the optimal path k is selected based on the combination of adaptable components with the minimum cost, corresponding to a total adaptation cost of Cost. i,k .

[0034] Third, the quality of the cloud-edge link is perceived in real time, and the edge autonomy is dynamically calculated in combination with the urgency of the task, so as to smoothly delineate the decision boundary between the cloud and the edge.

[0035] Edge nodes collect three core metrics of the cloud-edge link at fixed intervals (preset value is 1 second) and calculate the overall link quality score. , Where Q is the overall quality score of the cloud-edge link, ranging from [0,1], with higher scores indicating better link quality; d is the one-way latency of the cloud-edge link, in milliseconds; d max The maximum tolerable latency for management is 1000ms (ms), with l representing the cloud-edge link packet loss rate (range [0,1]). b represents the available bandwidth of the cloud-edge link (Mbps). max The baseline bandwidth for management is Mbps, with a default value of 100Mbps; k1, k2, and k3 are the weighting coefficients for latency, packet loss rate, and bandwidth, satisfying k1 + k2 + k3 = 1, with default values ​​of 0.5, 0.3, and 0.2 respectively.

[0036] The basic degree of autonomy is calculated using the Sigmoid function, and then the final degree of autonomy is obtained by introducing a task urgency factor, thus achieving a smooth and continuous transition.

[0037] The basic level of autonomy is, , Where A0 is the basic degree of autonomy, with a value range of [0,1], where 0 represents complete cloud-based control and 1 represents complete edge autonomy; Q0 ​​is the threshold for switching the degree of autonomy, with a preset value of 0.5; α is the smoothness coefficient, which controls the steepness of the transition, with a preset value of 6, and the larger the value, the steeper the transition.

[0038] Then adjust the task urgency level. , Where A is the final edge autonomy, and its value ranges from [0,1]; E max The highest urgency level among the currently pending tasks is [0,1], calculated by combining the task time window and importance; β is the urgency influence coefficient, with a value range of [0,1] and a preset value of 0.6, representing the adjustment range of urgency on autonomy.

[0039] Based on the final degree of autonomy A, the division of responsibilities between cloud and edge will be dynamically adjusted from four dimensions: 1. Decision-making authority allocation: The number of tasks that can make independent decisions at the periphery. Where N is the total number of tasks, and P is the priority ranking. local Tasks are scheduled directly at the edge, while remaining tasks need to be reported to the cloud for approval.

[0040] 2. Data synchronization frequency, Where f sync f is the actual synchronization frequency. base The reference synchronization frequency (the default value is 1 time / minute).

[0041] 3. Data synchronization granularity, Among them, G full For full synchronization granularity, G inc This is the incremental synchronization granularity.

[0042] 4. Cloud-based intervention threshold, , among which Th intervene This represents the risk threshold for proactive intervention by the cloud; the higher the degree of autonomy, the more difficult it is for the cloud to intervene.

[0043] IV. Generating a management scheduling scheme based on maximizing the utility of management.

[0044] For each managed task, calculate the managed value of the unit task and the total resource cost.

[0045] Task management value: Among them, V i Let Imp be the management value for the i-th task, with a value ranging from [0,1]. i The value ranges from [0,1] to represent the service importance of the corresponding device; Sec iThe value is the safety risk value of the corresponding equipment, with a range of [0,1]. The higher the risk, the greater the value. w1 and w2 are the weights of importance and safety risk, satisfying w1 + w2 = 1, with preset values ​​of 0.6 and 0.4 respectively.

[0046] Total resource cost of the task: , where C i The basic resource cost for task execution, Cost i,k The optimal fit cost output by the HPACM algorithm, CPU i mem i net i These represent the relative CPU, memory, and bandwidth usage required for task execution, respectively, with values ​​ranging from [0,1]. cpu c mem c net The unit cost weights for the three types of resources are preset to 0.4, 0.3, and 0.3, respectively.

[0047] Construct a 0-1 integer programming model to solve for the globally optimal scheduling sequence.

[0048] Decision variables: , Where t is the time slice number, t∈[1,T]; T is the total number of time slices within the scheduling period.

[0049] Objective function: , Where U is the total utility of the scheduling period; f(t) is the time value coefficient of the t-th time slice, with a value range of [0,1]; g(t) is the resource cost coefficient of the t-th time slice, with a value range of [1,+∞).

[0050] Single-task execution constraint (each task is executed exactly once): .

[0051] Resource capacity constraints (resource consumption per time slice does not exceed the available limit): , , , Among them, CPU avail(t) MEM avail(t) NET avail(t) The proportion of CPU, memory, and bandwidth available to the edge node at time slice t is determined by the degree of autonomy and the real-time load of the node.

[0052] Time window constraints (high-priority tasks must be executed before the deadline): , Among them, S high For a set of high-priority tasks; t i,dead This represents the latest execution time slice for the i-th task.

[0053] Autonomous authority constraints (tasks requiring cloud approval can only be executed after confirmation in the cloud): , Among them, S local A set of tasks that can be autonomously scheduled at the edge; t approve,i This is the cloud approval completion time slice for the i-th task.

[0054] The optimal scheduling sequence is output through iterative calculation using a genetic algorithm.

[0055] Based on the optimal scheduling sequence, a token bucket mechanism is used for resource allocation and task execution. After each scheduling cycle, adaptive optimization is performed based on the execution results. 1. Based on feedback from management success rate, business impact rate, and resource utilization rate, dynamically adjust the weighting coefficients w1 and w2 and the smoothing coefficient α of PASNQ; 2. Update the adaptation threshold M based on the protocol adaptation success rate and error rate. th .

[0056] To verify the performance of this method, a simulated edge computing nano-management test environment was set up, configured as follows: Edge computing node: 1 server with a 16-core Xeon Gold 5218 CPU, 32GB of memory, and a gigabit Ethernet port, serving as a management, scheduling, and execution node; Simulated bare-metal server cluster: 60 servers in total, simulating heterogeneous devices from 3 mainstream manufacturers. Specific configurations are as follows: Dell PowerEdge series: 20 units, supporting standard Redfish protocol; Huawei TaiShan series: 20 units, supporting IPMI+Redfish hybrid protocol; Inspur NF series: 20 units, supporting SNMP v3+IPMI protocol.

[0057] The experimental items and results are as follows:

[0058] Experimental results show that, compared with traditional centralized solutions and ordinary edge computing solutions, the bare metal server management and scheduling method based on edge computing proposed in this invention achieves significant performance improvements in multiple dimensions.

[0059] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A bare-metal server management and scheduling method based on edge computing, characterized in that... Includes the following steps: A. Initialization of system and edge node basic configuration: Initialize the hardware resource baseline, scheduling time parameters and algorithm baseline parameters of the edge nodes; establish the initial connection between the edge nodes and the cloud, and synchronize the global management strategy, protocol adaptation template library and historical business load curves; B. Device discovery and protocol adaptation optimization: Search for bare metal servers within the effective area, collect the protocol fingerprint of the device and generate an initial protocol feature vector, transform the management task into a requirement vector, calculate the matching degree between the device's native protocol and the task requirements, and when the matching degree is lower than the matching degree threshold, use dynamic programming to solve the minimum cost adaptation path to meet the requirements. C. Cloud-edge link quality perception and dynamic calculation of autonomy: Real-time perception of cloud-edge link quality, dynamic calculation of edge autonomy in combination with task urgency, and smooth division of decision boundaries between cloud and edge; D. Joint scheduling that maximizes the utility of management: Generate management scheduling schemes based on maximizing management utility and solve for the globally optimal scheduling sequence; E. Managed Task Execution and Adaptive Optimization: Based on the optimal scheduling sequence, a token bucket mechanism is used for resource allocation and task execution. Adaptive optimization is performed based on the execution results after each scheduling cycle.

2. The bare metal server management and scheduling method based on edge computing according to claim 1, characterized in that: In step B, the device's protocol fingerprint is collected and an initial protocol feature vector is generated. The management task is transformed into a requirement vector, and the matching degree between the device's native protocol and the task requirements is calculated. Specifically: Send LLDP broadcast packets to obtain the MAC addresses, device names, and port information of all devices in the Layer 2 network. Probe the discovered devices sequentially using Redfish, IPMI, SNMP, and SSH protocols, collect the response message characteristics of each protocol, extract the protocol fingerprint of each device, and generate a 7-dimensional protocol feature vector. , Where i is the device number, i∈[1,N], and N is the total number of devices discovered; p i1 ~p i7 These are configuration management capability, status acquisition capability, firmware upgrade capability, user management capability, security protection capability, response latency factor, and resource consumption factor, all with values ​​of [0,1]. Transform the j-th management task into a 7-dimensional requirement vector: , Where, d j1 ~d j7 These correspond to the task requirement intensity of the seven capability dimensions, with values ​​ranging from [0,1]. Cosine similarity is used to calculate the matching degree between the device's native protocol and task requirements. , Among them, M i,j P represents the protocol matching degree between the i-th device and the j-th task, with a value range of [0,1]. i ·D j The dot product of two vectors; |P i |、|D j | represents the magnitudes of the two vectors.

3. The bare metal server management and scheduling method based on edge computing according to claim 2, characterized in that: When M i,j Less than the matching threshold M th At that time, initiate adaptation path optimization: The state transition equation is, , Where, d p [m][s] represents the minimum total cost required to achieve an overall capability value of s after combining the first m adaptable components. The cost of single-component adaptation is, , Where, Δ sm Cost represents the overall capability improvement brought by the m-th adapting component. m c represents the total cost of the m-th adapting component; m,cpu c m,time c m,error λ1, λ2, and λ3 are the relative values ​​of CPU consumption, additional latency, and instruction translation error rate of the m-th component, respectively, with a value range of [0,1]; λ1, λ2, and λ3 are the weight coefficients of the three types of costs, satisfying λ1 + λ2 + λ3 = 1; Iterate through all cases where s ≥ s demand Given the state of (demand capability threshold), the optimal path k is selected based on the combination of adaptable components with the minimum cost, corresponding to a total adaptation cost of Cost. i,k .

4. The bare metal server management and scheduling method based on edge computing according to claim 3, characterized in that: In step C, the edge node collects three core indicators of the cloud-edge link at fixed intervals and calculates the overall link quality score. , Where Q is the overall quality score of the cloud-edge link, with a value range of [0,1]; d is the one-way latency of the cloud-edge link, in milliseconds; d max The maximum tolerable latency for management; l is the packet loss rate of the cloud-edge link, with a value range of [0,1]; b is the available bandwidth of the cloud-edge link; b max The baseline bandwidth is defined as the bandwidth for management; k1, k2, and k3 are the weighting coefficients for latency, packet loss rate, and bandwidth, satisfying k1 + k2 + k3 = 1.

5. The bare metal server management and scheduling method based on edge computing according to claim 4, characterized in that: In step C, the Sigmoid function is used to calculate the basic degree of autonomy, and then the task urgency factor is introduced to correct it to obtain the final degree of autonomy, thus achieving a smooth and continuous transition. The basic level of autonomy is, , Where A0 is the basic degree of autonomy, with a value range of [0,1], where 0 represents complete cloud-based control and 1 represents complete edge autonomy; Q0 ​​is the threshold for switching the degree of autonomy; α is the smoothing coefficient, which controls the steepness of the transition. Then adjust the task urgency level. , Where A is the final edge autonomy, and its value ranges from [0,1]; E max β represents the highest urgency among the tasks currently pending execution, with a value range of [0,1]; β is the urgency influence coefficient, with a value range of [0,1], representing the adjustment range of urgency on autonomy.

6. The bare metal server management and scheduling method based on edge computing according to claim 5, characterized in that: In step C, based on the final degree of autonomy A, the division of responsibilities between the cloud and the edge is dynamically adjusted from four dimensions: Decision-making authority allocation: the number of tasks that can make independent decisions at the periphery. Where N is the total number of tasks, and P is the priority ranking. local The tasks are scheduled directly at the edge, and the remaining tasks need to be reported to the cloud for approval. Data synchronization frequency, ;where f sync f is the actual synchronization frequency. base The reference synchronization frequency; Data synchronization granularity Among them, G full For full synchronization granularity, G inc Incremental synchronization granularity; Cloud-based intervention threshold , among which Th intervene This is the risk threshold for proactive intervention in the cloud.

7. The bare metal server management and scheduling method based on edge computing according to claim 6, characterized in that: In step D, for each managed task, the managed value and total resource cost of the unit task are calculated. Task management value: ; Among them, V i Let Imp be the management value for the i-th task, with a value ranging from [0,1]. i The value ranges from [0,1] to represent the service importance of the corresponding device; Sec i The value is the safety risk value of the corresponding equipment, and the range is [0,1]; w1 and w2 are the weights of importance and safety risk, satisfying w1 + w2 = 1; Total resource cost of the task: , where C i The basic resource cost for task execution, Cost i,k The optimal fit cost output by the HPACM algorithm, CPU i mem i net i These represent the relative CPU, memory, and bandwidth usage required for task execution, respectively, with values ​​ranging from [0,1]. cpu c mem c net The unit cost weights for the three types of resources.

8. The bare metal server management and scheduling method based on edge computing according to claim 7, characterized in that: In step D, a 0-1 integer programming model is constructed to solve for the globally optimal scheduling sequence; Decision variables: , Where t is the time slice number, t∈[1,T]; T is the total number of time slices within the scheduling period; Objective function: , Where U is the total utility of the scheduling period; f(t) is the time value coefficient of the t-th time slice, with a value range of [0,1]; g(t) is the resource cost coefficient of the t-th time slice, with a value range of [1,+∞); Single-task execution constraints: ; Resource capacity constraints: , , , Among them, CPU avail(t) MEM avail(t) NET avail(t) The proportion of CPU, memory, and bandwidth available at the edge node of time slice t; Time window constraints: , Among them, S high For a set of high-priority tasks; t i,dead This is the latest execution time slice for the i-th task; Autonomous authority constraints: , Among them, S local A set of tasks that can be autonomously scheduled at the edge; t approve,i This is the cloud approval completion time slice for the i-th task.

9. The bare metal server management and scheduling method based on edge computing according to claim 8, characterized in that: In step D, the global optimal scheduling sequence is solved based on a genetic algorithm.

10. The bare metal server management and scheduling method based on edge computing according to claim 9, characterized in that: In step E, after each scheduling cycle, adaptive optimization is performed based on the execution results, including: Based on feedback from the success rate of inclusion in management, business impact rate, and resource utilization rate, the weighting coefficients w1 and w2 and the smoothing coefficient α of PASNQ are dynamically adjusted. Update the adaptation threshold M based on the protocol adaptation success rate and error rate. th .