An elastic computing power dynamic allocation cloud platform operation and maintenance system and method

By using microarchitecture telemetry and near-core tuning technology, combined with hardware performance counter data, we can accurately identify hardware contention and instruction retirement pauses in multi-tenant virtualized computing clusters. This solves the problem of scheduling instability in existing technologies and improves resource utilization efficiency and scheduling stability.

CN123157463APending Publication Date: 2026-11-24JIANGSU VOCATIONAL COLLEGE OF BUSINESS
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies struggle to promptly distinguish between hardware contention and instruction retirement pauses in computing resource scheduling within multi-tenant virtualized computing clusters, leading to instability in the scheduling process. Conventional software scheduling strategies are prone to misjudging concurrent expansion during sudden high concurrency or storage resource contention, resulting in cascading incorrect expansion and scheduling oscillations.

Method used

The microarchitecture telemetry module reads hardware performance counter data, combines the number of L3 cache misses and memory bus transaction volume to calculate the comprehensive stress index and stress change slope, the near-core tuning module adjusts memory node binding and core affinity, the cross-node orchestration module performs elastic scaling, and the admission control module prevents erroneous scaling, thus achieving accurate resource scheduling.

Benefits of technology

It reduces the response lag of resource scheduling, avoids unnecessary cross-node expansion, stabilizes the switching between single-machine tuning and cluster resource orchestration, alleviates allocation blockage caused by insufficient memory resources and fragmentation, and improves the utilization efficiency of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157463A_ABST
    Figure CN123157463A_ABST
Patent Text Reader

Abstract

This invention relates to the field of virtualized computing resource scheduling technology, and discloses an elastic computing power dynamic allocation cloud platform operation and maintenance system and method, including: a microarchitecture telemetry module for reading hardware physical indicators and ready queue queuing time; a stress assessment module for calculating the comprehensive stress index and stress change slope; a near-core tuning module for adjusting local resources and outputting a tuning flag signal when the comprehensive stress index is within a preset range; a cross-node orchestration module for outputting expansion instructions when the comprehensive stress index exceeds the limit and the slope is positive; an admission control module for intercepting shrinkage actions during the cooling period; and a stress assessment module that responds to the tuning flag signal and sets the stress change slope to zero within a transient filtering window. This invention eliminates the false excitation of cross-node orchestration by local tuning transient pauses, avoiding cascaded expansion and topology oscillation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of virtualized computing resource scheduling technology, and in particular relates to a cloud platform operation and maintenance system and method for dynamic allocation of elastic computing power. Background Technology

[0002] In multi-tenant virtualized computing clusters, the supply of computing resources is usually determined based on time slice data statistically collected by the operating system kernel. The cluster operation and maintenance platform periodically collects the CPU utilization and memory allocation of virtualized instances. When the average value exceeds the set threshold, the instance is expanded or shrunk. The physical host machine usually adopts a symmetric multiprocessing architecture and a non-uniform memory access topology. Internally, it includes physical computing cores, integrated memory controllers, and shared caches. The execution efficiency of computing tasks is not only related to whether instructions can be continuously retired, but also affected by the data transmission latency in the storage structure.

[0003] Under sudden high concurrency or batch processing conditions, the average utilization rate obtained through time slice statistics has a certain lag and cannot reflect instruction retirement pauses in a timely manner. Even if the average utilization rate is still within a safe range, bus transaction congestion may occur when multiple tasks contend for L3 cache or access memory across slots, significantly reducing the number of instructions retired per cycle and increasing queuing latency in the ready queue. Conventional techniques cannot determine whether the performance degradation is caused by insufficient computing power or hardware contention, thus outputting reconfiguration instructions that do not match the actual bottleneck. When the host adjusts memory binding or rebinds core affinity locally, cross-core communication will trigger translation backstop refresh and cache cold invalidation, causing short-term execution pauses. If the free physical memory of the target node is below the low watermark, or the consecutive free page blocks in the buddy system are zero, the memory allocation subsystem will enter the direct memory reclamation process, which intensifies spinlock contention, increases kernel-mode time, and further affects instruction flow. Waterline pauses not only make it difficult to detect microarchitectural contention at the hardware level in a timely manner, but existing software elastic scheduling and control strategies also have limitations at the processing mechanism level. For example, Chinese invention patent application CN117076106A discloses an elastic scaling method and system for cloud server resource management. It judges the microservice load status by constructing a load pressure line and uses time series difference or machine learning prediction models to implement vertical and horizontal scaling. However, this solution relies solely on historical load data and time series fitting algorithms at the macro level, without delving into the underlying chip instruction operation mechanism or combining instruction retirement pauses and multi-level storage contention status reflected by hardware performance counters. When there is a sudden increase in concurrency or storage resource contention, it not only fails to identify the processing throughput drop caused by bus congestion, but also misjudges the short-term microarchitectural blockage caused by local tuning of the host machine as global computing power exhaustion, thus causing cascading false expansion and scheduling oscillations.

[0004] Therefore, the technical problem to be solved by this invention is how to distinguish between the effects of computation scheduling queuing and hardware pipeline contention, and how to maintain stable convergence of the scheduling process under the influence of short-term disturbances caused by single-machine tuning and cross-machine network interruptions. Summary of the Invention

[0005] To address the problems in the background art, the technical solution of the present invention is as follows: A cloud platform operation and maintenance system for dynamic allocation of elastic computing power, comprising: The microarchitecture telemetry module is used to read the number of retired instructions, the number of non-suspended clock cycles, the number of L3 cache misses, and the memory bus transaction volume as physical indicators through hardware performance counters, and to traverse the ready queue to extract the pure queuing time of runnable threads. The pressure assessment module, connected to the microarchitecture telemetry module, is used to calculate the comprehensive pressure index and pressure change slope based on physical indicators and pure queuing time. The near-core tuning module, connected to the stress assessment module, is used to adjust the local memory node binding or rebind the core affinity when the comprehensive stress index is between the first and second preset thresholds, and outputs a tuning flag signal. The cross-node orchestration module connects the pressure assessment module and the near-core tuning module, and is used to output expansion commands when the comprehensive pressure index reaches the second preset threshold and the pressure change slope is positive. The admission control module, connected to the cross-node orchestration module, is used to respond to expansion commands to start a debouncing timer and intercept the shrinkage action before it reaches zero. The pressure assessment module responds to the tuning flag signal and sets the pressure change slope to zero within the transient filtering time window.

[0006] Preferably, the microarchitecture telemetry module includes a fixed-length circular buffer for lock-free recording of physical metrics and pure queuing time; the microarchitecture telemetry module outputs the physical metrics and pure queuing time to the stress assessment module in user space through a memory page mapping channel; when traversing the ready queue, the microarchitecture telemetry module filters out uninterruptible sleep states by reading the status fields of each task control block, extracts the time difference of the computation threads in the ready queue that are in the runnable state, and calculates the arithmetic mean to obtain the pure queuing time.

[0007] Preferably, the algebraic logic for calculating the comprehensive stress index in the stress assessment module includes: ,in, It is a dimensionless comprehensive pressure index; This is the pure queuing time, in milliseconds (ms). A pre-stored baseline constant for the ready queue; The decay rate of the number of decommissioned instructions per cycle is dimensionless; This is the dimensionless L3 cache miss rate; This represents the dimensionless memory bus bandwidth saturation. , and These are the preset queue weight, pipeline decay weight, and multi-level storage contention weight, respectively, and the sum of the three is equal to 1.

[0008] Preferably, the stress assessment module determines the dimensionless parameters according to the following rules: the number of instruction retirements is divided by the number of unsuspended clock cycles to obtain the real-time instruction retirements per cycle; when the real-time instruction retirements per cycle are lower than the baseline instruction retirements per cycle, the difference between the baseline instruction retirements per cycle and the real-time instruction retirements per cycle is divided by the baseline instruction retirements per cycle as the decay rate of the instruction retirements per cycle; when the real-time instruction retirements per cycle are greater than or equal to the baseline instruction retirements per cycle, the decay rate of the instruction retirements per cycle is set to zero; the number of L3 cache misses is divided by the total number of requests originating from the previous level cache to obtain the L3 cache miss rate; the measured memory read / write bus transmission bandwidth is divided by the maximum theoretical throughput bandwidth supported by the host machine's physical memory channels to obtain the memory bus bandwidth saturation.

[0009] Preferably, the near-core tuning module includes a memory ladder admission unit. Before adjusting the local memory node binding, the memory ladder admission unit reads the host operating system area memory information to obtain the amount of free physical memory and the distribution status of consecutive page blocks of the target local non-uniform memory access node. If the amount of free physical memory is lower than the preset low watermark, or the number of consecutive free page blocks with a rank greater than or equal to 3 is zero, the direct migration of physical memory pages to the target local non-uniform memory access node is blocked, and an interleaved memory allocation strategy across non-uniform memory access slots is configured to distribute the memory access transactions of the business container to each physical memory controller channel of the host machine in a round-robin fashion. If the amount of free physical memory is higher than the preset low watermark and the number of consecutive free page blocks with a rank greater than or equal to 3 is greater than zero, the physical memory pages of the blocked business container are migrated in batches through the operating system interface.

[0010] Preferably, when the comprehensive stress index is between the first and second preset thresholds, the near-core tuning module: if the weighted value of the product of multi-level storage contention weight, L3 cache miss rate, and memory bus bandwidth saturation exceeds the product of queue weight and pure queuing time ratio, the physical memory pages of the blocked service container will be diverted to the local non-uniform memory access node or a cross-non-uniform memory access slot interleaved memory strategy will be configured; if the product of pipeline decay weight and instruction retirement decay rate per cycle exceeds the weighted value of multi-level storage contention weight, the concurrently running batch processing container will be bound to a reserved physical core through the control group interface; if the product of queue weight and pure queuing time ratio is dominant, the processor time slice running quota of the blocked service container in the scheduling cycle will be increased through the control group interface.

[0011] Preferably, when the near-core tuning module initiates physical memory page migration, it outputs a tuning flag signal with a set level to the stress assessment module. The stress assessment module has a built-in clock counting unit that starts timing and opens a transient filtering time window when it detects that the tuning flag signal is set. The duration of the transient filtering time window is set to 30ms and covers at least two consecutive telemetry sampling cycles. During the operation of the transient filtering time window, the stress assessment module sets the pressure change slope value calculated by the first-order backward time difference to zero. When the transient filtering time window expires, the zeroing restriction on the pressure change slope is lifted.

[0012] Preferably, the cross-node orchestration module includes an orthogonal matching unit. When the overall stress index crosses the second preset threshold and the slope of the stress change is greater than zero, the cross-node orchestration module reads the currently allocated virtual core quota and the target security operation index of the target service, calculates the additional elastic virtual core quota, and the additional elastic virtual core quota is equal to the currently allocated virtual core quota multiplied by the difference between the overall stress index and the target security operation index, and then divided by the target security operation index and rounded up. The orthogonal matching unit reads the various sub-indicators of the source host. If the weighted component of the L3 cache miss rate and memory bus bandwidth saturation in the source host is higher than the queue weighted component, when screening nodes with an overall stress index lower than 0.40 in the candidate host pool of the entire cluster, nodes with a memory bus bandwidth saturation higher than 0.30 are removed, and the additional elastic virtual core quota is deployed on the target host with the smallest network topology interconnection hop count.

[0013] Preferably, the cross-node orchestration module also includes a network interrupt decoupling unit. When deploying a new instance container on the target host, the network interrupt decoupling unit reads the multi-queue configuration and interrupt vector table of the target host's network interface card (NIC), rewrites the kernel interrupt affinity mask register, and binds the processing cores of the target host's NIC data packet reception hard interrupt and network soft interrupt daemon to the preset auxiliary physical core set in the first slot of the target host; it binds the virtual cores of the newly deployed instance container to the independent computing core set in the second slot of the target host. The service mesh agent first imports 10% of the total input traffic into the new instance container as trial traffic. When it detects that the decay rate of the number of instructions retired per cycle in the new instance container within a 100ms statistical window is less than or equal to 0.20 and the soft interrupt clock cycle occupancy ratio of the preset auxiliary physical core set is low, the service mesh agent will then proceed with the deployment. At 5%, full traffic splitting is allowed, and the access control module includes a socket emptying unit. When the expansion command is issued, the access control module starts a debouncing timer with a duration of 180 seconds and locks the scaling-down arbitration path before the debouncing timer reaches its full value. When the debouncing timer reaches zero and the host machine's overall stress index is lower than the preset safety release threshold for five consecutive sampling periods, the socket emptying unit sends a one-way traffic backoff signal to the target service instance and polls the number of bytes not sent in the operating system kernel socket write queue and the proportion of dirty pages not written back to physical memory on the host machine. When the number of bytes not sent in the socket write queue is zero and the proportion of dirty pages not written back to physical memory is less than 5%, 50% of the additional elastic virtual core quota is reclaimed. After waiting for 30 seconds and monitoring that the physical indicators do not rebound, the remaining 50% of the additional elastic virtual core quota is cancelled.

[0014] A method for operating and maintaining a cloud platform with dynamic allocation of elastic computing power, used to run an operation and maintenance system for a cloud platform with dynamic allocation of elastic computing power, includes the following steps: Step S1: Read the number of retired instructions, the number of unsuspended clock cycles, the number of L3 cache misses, and the number of memory bus transactions as microarchitecture physical indicators through the hardware performance counter of the microarchitecture telemetry module, and traverse the ready queue to extract the pure queuing time of runnable threads. Step S2: The stress assessment module calculates the comprehensive stress index and the slope of stress change based on the microarchitecture physical indicators and the pure queuing time. Step S3: When the comprehensive pressure index is between the first preset threshold and the second preset threshold, adjust the local memory node binding or rebind the core affinity through the near-core tuning module, and output the tuning flag signal. Step S4: When the comprehensive pressure index reaches the second preset threshold and the pressure change slope is positive, the expansion command is output through the cross-node orchestration module. Step S5: In response to the expansion command, the anti-shake timer is started through the admission control module, and the reduction action is intercepted before the anti-shake timer returns to zero; wherein, in response to the tuning flag signal, the pressure change slope is set to zero within the transient filtering time window through the pressure assessment module.

[0015] Compared with existing technologies, the present invention, a cloud platform operation and maintenance system and method for dynamic allocation of elastic computing power, has the following advantages: 1. In the operation and maintenance of a cloud platform with dynamic allocation of elastic computing power, by distinguishing between the pure queuing time of runnable threads and the waiting time caused by uninterruptible sleep, and combining physical indicators such as instruction retirement, L3 cache miss, and memory bus transactions, the interference of external block device read / write blocking on the judgment of computing pressure can be reduced. This allows the system to more accurately distinguish between scheduling queuing, instruction execution pauses, and hardware shared resource contention. Compared with the method of judging solely based on the average utilization of the central processing unit, this method can reduce the response lag caused by statistical smoothing and make resource scheduling more timely reflect the actual computing resource needs of the host machine.

[0016] 2. The near-core tuning module and the stress assessment module work together through tuning flag signals and transient filtering time windows to isolate short-term performance fluctuations that occur during local memory node binding and core affinity adjustment from cross-node expansion judgment. Temporary instruction retirement caused by local adjustments such as cross-core processor interrupts and translation backup buffer refreshes are reduced, avoiding being misjudged as continuously increasing computing power pressure. This reduces unnecessary cross-node expansion and the resulting cascading expansion, making the switch between single-machine tuning and cluster resource orchestration more stable.

[0017] 3. Before performing physical memory page migration, the memory ladder admission unit judges the amount of free physical memory and the status of contiguous free page blocks of the target non-uniform memory access node. When the target node is not suitable for direct migration, an interleaved memory allocation strategy is adopted to avoid forced migration from further triggering direct memory reclamation and cross-core spinlock contention. This reduces the additional processor time occupied by the memory adjustment process, alleviates allocation blocking caused by insufficient or fragmented local memory resources, and keeps the memory access load relatively balanced among multiple physical memory controllers. Attached Figure Description

[0018] Figure 1 This is a flowchart of the computing power load assessment and tiered scheduling process of the present invention; Figure 2 This is a diagram of the network interruption decoupling and computation core binding structure of the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0020] An elastic computing power dynamic allocation cloud platform operation and maintenance system includes: The microarchitecture telemetry module is used to read the number of retired instructions, the number of non-suspended clock cycles, the number of L3 cache misses, and the memory bus transaction volume as physical indicators through hardware performance counters, and to traverse the ready queue to extract the pure queuing time of runnable threads. The pressure assessment module, connected to the microarchitecture telemetry module, is used to calculate the comprehensive pressure index and pressure change slope based on physical indicators and pure queuing time. The near-core tuning module, connected to the stress assessment module, is used to adjust the local memory node binding or rebind the core affinity when the comprehensive stress index is between the first and second preset thresholds, and outputs a tuning flag signal. The cross-node orchestration module connects the pressure assessment module and the near-core tuning module, and is used to output expansion commands when the comprehensive pressure index reaches the second preset threshold and the pressure change slope is positive. The admission control module, connected to the cross-node orchestration module, is used to respond to expansion commands to start a debouncing timer and intercept the shrinkage action before it reaches zero. The pressure assessment module responds to the tuning flag signal and sets the pressure change slope to zero within the transient filtering time window.

[0021] Preferably, the microarchitecture telemetry module includes a fixed-length circular buffer for lock-free recording of physical metrics and pure queuing time; the microarchitecture telemetry module outputs the physical metrics and pure queuing time to the stress assessment module in user space through a memory page mapping channel; when traversing the ready queue, the microarchitecture telemetry module filters out uninterruptible sleep states by reading the status fields of each task control block, extracts the time difference of the computation threads in the ready queue that are in the runnable state, and calculates the arithmetic mean to obtain the pure queuing time.

[0022] Preferably, the algebraic logic for calculating the comprehensive stress index in the stress assessment module includes: ,in, It is a dimensionless comprehensive pressure index; This refers to the time spent queuing. This is a pre-stored baseline constant for the ready queue; the unit is milliseconds (ms). The decay rate of the number of decommissioned instructions per cycle is dimensionless; This is the dimensionless L3 cache miss rate; This represents the dimensionless memory bus bandwidth saturation. , and These are the preset queue weight, pipeline decay weight, and multi-level storage contention weight, respectively, and the sum of the three is equal to 1.

[0023] Preferably, the stress assessment module determines the dimensionless parameters according to the following rules: the number of instruction retirements is divided by the number of unsuspended clock cycles to obtain the real-time instruction retirements per cycle; when the real-time instruction retirements per cycle are lower than the baseline instruction retirements per cycle, the difference between the baseline instruction retirements per cycle and the real-time instruction retirements per cycle is divided by the baseline instruction retirements per cycle as the decay rate of the instruction retirements per cycle; when the real-time instruction retirements per cycle are greater than or equal to the baseline instruction retirements per cycle, the decay rate of the instruction retirements per cycle is set to zero; the number of L3 cache misses is divided by the total number of requests originating from the previous level cache to obtain the L3 cache miss rate; the measured memory read / write bus transmission bandwidth is divided by the maximum theoretical throughput bandwidth supported by the host machine's physical memory channels to obtain the memory bus bandwidth saturation.

[0024] Preferably, the near-core tuning module includes a memory ladder admission unit. Before adjusting the local memory node binding, the memory ladder admission unit reads the host operating system area memory information to obtain the amount of free physical memory and the distribution status of consecutive page blocks of the target local non-uniform memory access node. If the amount of free physical memory is lower than the preset low watermark, or the number of consecutive free page blocks with a rank greater than or equal to 3 is zero, the direct migration of physical memory pages to the target local non-uniform memory access node is blocked, and an interleaved memory allocation strategy across non-uniform memory access slots is configured to distribute the memory access transactions of the business container to each physical memory controller channel of the host machine in a round-robin fashion. If the amount of free physical memory is higher than the preset low watermark and the number of consecutive free page blocks with a rank greater than or equal to 3 is greater than zero, the physical memory pages of the blocked business container are migrated in batches through the operating system interface.

[0025] Preferably, when the comprehensive stress index is between the first and second preset thresholds, the near-core tuning module: if the weighted value of the product of multi-level storage contention weight, L3 cache miss rate, and memory bus bandwidth saturation exceeds the product of queue weight and pure queuing time ratio, the physical memory pages of the blocked service container will be diverted to the local non-uniform memory access node or a cross-non-uniform memory access slot interleaved memory strategy will be configured; if the product of pipeline decay weight and instruction retirement decay rate per cycle exceeds the weighted value of multi-level storage contention weight, the concurrently running batch processing container will be bound to a reserved physical core through the control group interface; if the product of queue weight and pure queuing time ratio is dominant, the processor time slice running quota of the blocked service container in the scheduling cycle will be increased through the control group interface.

[0026] Preferably, when the near-core tuning module initiates physical memory page migration, it outputs a tuning flag signal with a set level to the stress assessment module. The stress assessment module has a built-in clock counting unit that starts timing and opens a transient filtering time window when it detects that the tuning flag signal is set. The duration of the transient filtering time window is set to 30ms and covers at least two consecutive telemetry sampling cycles. During the operation of the transient filtering time window, the stress assessment module sets the pressure change slope value calculated by the first-order backward time difference to zero. When the transient filtering time window expires, the zeroing restriction on the pressure change slope is lifted.

[0027] Preferably, the cross-node orchestration module includes an orthogonal matching unit. When the overall stress index crosses the second preset threshold and the slope of the stress change is greater than zero, the cross-node orchestration module reads the currently allocated virtual core quota and the target security operation index of the target service, calculates the additional elastic virtual core quota, and the additional elastic virtual core quota is equal to the currently allocated virtual core quota multiplied by the difference between the overall stress index and the target security operation index, and then divided by the target security operation index and rounded up. The orthogonal matching unit reads the various sub-indicators of the source host. If the weighted component of the L3 cache miss rate and memory bus bandwidth saturation in the source host is higher than the queue weighted component, when screening nodes with an overall stress index lower than 0.40 in the candidate host pool of the entire cluster, nodes with a memory bus bandwidth saturation higher than 0.30 are removed, and the additional elastic virtual core quota is deployed on the target host with the smallest network topology interconnection hop count.

[0028] Preferably, the cross-node orchestration module also includes a network interrupt decoupling unit. When deploying a new instance container on the target host, the network interrupt decoupling unit reads the multi-queue configuration and interrupt vector table of the target host's network interface card (NIC), rewrites the kernel interrupt affinity mask register, and binds the processing cores of the target host's NIC data packet reception hard interrupt and network soft interrupt daemon to the preset auxiliary physical core set in the first slot of the target host; it binds the virtual cores of the newly deployed instance container to the independent computing core set in the second slot of the target host. The service mesh agent first imports 10% of the total input traffic into the new instance container as trial traffic. When it detects that the decay rate of the number of instructions retired per cycle in the new instance container within a 100ms statistical window is less than or equal to 0.20 and the soft interrupt clock cycle occupancy ratio of the preset auxiliary physical core set is low, the service mesh agent will then proceed with the deployment. At 5%, full traffic splitting is allowed, and the access control module includes a socket emptying unit. When the expansion command is issued, the access control module starts a debouncing timer with a duration of 180 seconds and locks the scaling-down arbitration path before the debouncing timer reaches its full value. When the debouncing timer reaches zero and the host machine's overall stress index is lower than the preset safety release threshold for five consecutive sampling periods, the socket emptying unit sends a one-way traffic backoff signal to the target service instance and polls the number of bytes not sent in the operating system kernel socket write queue and the proportion of dirty pages not written back to physical memory on the host machine. When the number of bytes not sent in the socket write queue is zero and the proportion of dirty pages not written back to physical memory is less than 5%, 50% of the additional elastic virtual core quota is reclaimed. After waiting for 30 seconds and monitoring that the physical indicators do not rebound, the remaining 50% of the additional elastic virtual core quota is cancelled.

[0029] A method for operating and maintaining a cloud platform with dynamic allocation of elastic computing power, used to run an operation and maintenance system for a cloud platform with dynamic allocation of elastic computing power, includes the following steps: Step S1: Read the number of retired instructions, the number of unsuspended clock cycles, the number of L3 cache misses, and the number of memory bus transactions as microarchitecture physical indicators through the hardware performance counter of the microarchitecture telemetry module, and traverse the ready queue to extract the pure queuing time of runnable threads. Step S2: The stress assessment module calculates the comprehensive stress index and the slope of stress change based on the microarchitecture physical indicators and the pure queuing time. Step S3: When the comprehensive pressure index is between the first preset threshold and the second preset threshold, adjust the local memory node binding or rebind the core affinity through the near-core tuning module, and output the tuning flag signal. Step S4: When the comprehensive pressure index reaches the second preset threshold and the pressure change slope is positive, the expansion command is output through the cross-node orchestration module. Step S5: In response to the expansion command, the anti-shake timer is started through the admission control module, and the reduction action is intercepted before the anti-shake timer returns to zero; wherein, in response to the tuning flag signal, the pressure change slope is set to zero within the transient filtering time window through the pressure assessment module.

[0030] Example 1: In a multi-tenant cloud computing cluster consisting of multiple interconnected dual-socket rack-mount symmetric multiprocessor servers, each host machine hardware includes two multi-core CPU chips, an integrated memory controller, a 32MB shared L3 cache, and non-unified memory access nodes 0 and 1 communicating via a hyperpath interconnect bus. This hosts a production cluster containing online distributed index retrieval and high-concurrency transaction processing containers. When a sudden surge of network retrieval requests occurs, coupled with the concurrent startup of neighboring batch processing containers, a microarchitecture telemetry module resident in the host operating system kernel mode initiates monitoring. This module is allocated a fixed-length, non-intrusive, lightweight circular buffer of 64KB. Through configuration of the performance monitoring unit hardware registers, it... The 0ms period is defined by the total number of instruction retirements recorded in the lock-free read instruction retirement register, the number of clock cycles recorded in the non-suspended clock cycle register, the miss event count recorded in the L3 cache miss register, and the total number of read / write requests recorded in the memory controller transaction register. Simultaneously, the microarchitecture telemetry module traverses the ready queue red-black tree of the Completely Fair Scheduler, extracts the status fields from each task control block to identify the causes of thread waiting, and removes threads in an uninterruptible sleep state waiting for external block device input / output or socket communication. Only the pure queuing time of threads in a runnable state waiting for a processing time slice in the run queue red-black tree is accumulated, and the arithmetic mean is calculated to obtain the pure queuing time. The microarchitecture telemetry module combines the physical metrics recorded in the circular buffer with the pure queuing time. The stress assessment module is directly output to the user space via a pre-established physical memory page mapping channel, without the need to initiate a context switching system call.

[0031] The stress assessment module receives these physical metrics and pure queuing time in 10ms increments. The comprehensive pressure index is calculated by decoupling from the standard operating state. : ,in, It is a dimensionless comprehensive pressure index; The pure queuing time for the kernel scheduling ready queue. This is a preset baseline constant for the ready queue, used to characterize the baseline tolerance time of the ready queue, with a value of 20ms. The decay rate of the number of decommissioned instructions per cycle is dimensionless; The level 3 cache miss rate is a dimensionless value, calculated by dividing the level 3 cache miss count by the total number of requests originating from the previous level cache. The dimensionless memory bus bandwidth saturation is obtained by dividing the measured read / write bus transmission bandwidth by the theoretical maximum throughput bandwidth of dual-channel physical memory, which is 100GB / s. , , These are the preset queue weights, pipeline decay weights, and multi-level storage contention weights, respectively, and satisfy the following conditions: The values ​​are 0.40, 0.35, and 0.25 respectively; the decay rate of the number of decommissioned instructions per cycle. Follow the following relationship: ,in, The baseline is the number of commands decommissioned per cycle, with a value of 2; The real-time instruction retirement count per cycle is calculated by dividing the total number of retired instructions by the number of unsuspended clock cycles within the current statistics window. When the real-time instruction retirement count per cycle is greater than or equal to the baseline value, The value is set to 0; the pressure assessment module saves the comprehensive pressure index of the three most recent consecutive sampling periods and calculates the pressure change slope using first-order backward time difference: Within the near-core tuning range of the overall stress index, between the first preset threshold of 0.50 and the second preset threshold of 0.75, the numerical range of each sub-indicator is within the preset effective value range in engineering terms. Within this controlled tuning range, the pure queuing time of the ready queue is limited by the pre-emptive state before a backlog of business occurs, and the ratio of its queuing time to the ready queue baseline constant is between 0.50 and 1.0 under actual working conditions, with the corresponding queue weighted contribution within a limited range of 0.20 to 0.40. At the same time, when multiple tasks contend for the memory bus, the product of the L3 cache miss rate and the memory bus bandwidth saturation rapidly rises to above 0.4, and the multi-level storage contention weighting term can rise to above 0.1, becoming the core driver for the overall stress index to cross the 0.5 threshold. In terms of quantity and pressure assessment, when comparing the sub-item dominance, the queue wait time ratio is saturated and normalized with a maximum limit of 1.5. This ensures that within the sensitive range triggered by computing power tuning, the storage hierarchy contention component is not unilaterally masked by the queue queuing item. This allows the branch criteria for multi-level storage contention dominance and pipeline decay dominance to be accurately executed in a closed loop at the same magnitude. In multi-tenant mixed deployment scenarios, when neighboring batch processing containers start concurrently and heavily occupy memory controller channels, the operating system time slice statistics remain in the median range of 50% to 60% for several seconds, failing to detect pipeline stalls. However, this system directly captures L3 cache failures and bus transaction congestion by instantaneously increasing the product of the instruction retirement decay rate and memory bus bandwidth saturation, thus reducing the overall pressure index. The value jumped from the baseline of 0.3755 to 0.501875, accurately crossing the first preset threshold. And below the second preset threshold This allows for the identification of nodes where computing power supply and demand are limited to the initial stage of chip pipeline stagnation.

[0032] When the overall pressure index When the value is between the first preset threshold of 0.50 and the second preset threshold of 0.75, the near-core tuning module initiates multi-dimensional decoupling tuning; the memory ladder admission unit retrieves the host operating system's regional memory information and checks the amount of free physical memory and the distribution status of contiguous page blocks of the target local non-uniform memory access node. When it detects that the free physical memory of the target node is lower than the preset low watermark, or that the number of contiguous free page blocks of order greater than or equal to 3 in the buddy system is zero, it is determined that direct migration of memory pages will induce kernel direct memory reclamation and cross-core spinlock contention. At this time, forced migration of physical pages to a single target node is blocked, and instead, interleaved memory distribution across non-uniform memory access slots is dynamically configured. The allocation strategy distributes memory access transactions of blocked service containers across the host machine's dual physical memory controller channels in a round-robin fashion, avoiding abnormal time slice overhead in the operating system kernel. When executing the interleaved memory allocation strategy across non-uniform memory access slots, the memory ladder admission unit rewrites the task memory node mask file of the control group to which the blocked service container belongs via the memory node control interface of the control group subsystem, updating the node mask that allows memory allocation to a bitmap containing both node 0 and node 1. For subsequent new memory pages requested by the blocked service container, the kernel page fault handler alternately allocates physical pages between the two non-uniform memory access nodes according to the interleaved allocation mode. For containers with blocked services that already have allocated running physical memory pages, the near-core tuning module calls the online page migration system interface to remap the existing physical pages to the opposite node in batches, using pages as the granularity and following an alternating polling order between node 0 and node 1. After remapping, it updates page table entries at all levels and refreshes the translation backup buffers of the relevant cores, thereby evenly distributing the container's memory bus read / write access to the two integrated memory controllers. Under conditions with sufficient contiguous free page blocks, the near-core tuning module calls the kernel page migration interface to smoothly migrate physical memory in batches of no more than 256 physical pages at a time. Simultaneously, for situations where pipeline stalls are dominant, it... The control group interface binds concurrently running low-priority batch processing containers to reserved physical cores with isolation settings. For scenarios where the waiting time in the ready queue is dominant, the processor running quota of the blocked service container during the scheduling cycle is temporarily increased by 15%. Specifically, in the coordination of the aforementioned kernel-mode tuning and stress assessment modules, the tuning flag signal is transmitted at high speed without locks by relying on the pre-established physical memory page mapping channel between the kernel space and user space. At the same time as initiating memory page migration or core binding, the tuning transient flow control unit calls the memory barrier instruction to directly write the value 1 to the fixed offset shared memory byte corresponding to the mapping channel, forming a logic level set.

[0033] At the start of each 10ms calculation cycle, the user-space stress assessment module polls the shared byte status via lock-free memory addressing. When it detects that the byte value has flipped from 0 to 1, it immediately determines that a tuned flag signal has been received and starts the clock counting unit. The entire process requires no soft interrupts or system call context switches. Simultaneously with initiating the local tuning action, the tuning transient flow control unit outputs a tuned flag signal to the stress assessment module. The stress assessment module responds to the tuned flag signal by starting clock counting and opening a 30ms transient filtering time window, covering three consecutive telemetry sampling cycles. During this window, the pressure change slope calculated by the first-order backward time difference is forcibly set to zero, actively absorbing transient pipeline pauses caused by cross-core processor interrupts and translation backup buffer refreshes. This prevents the positive slope change caused by local tuning from being transmitted to the cross-node orchestration module, avoiding invalid cascading expansion of the cluster topology. Specifically, at the physical implementation level, non- During the unified memory access node memory rebinding and core affinity adjustment process, the hardware physical time for cross-core processor interrupt broadcasting and translation backup buffer refresh is objectively between 15ms and 25ms, which is an inherent transient pause at the hardware chip microarchitecture level. The aforementioned process of setting the pressure change slope to zero within the transient filtering time window is not used to eliminate the physical clock cycles occupied by interrupt and refresh actions at the underlying hardware level. Instead, it uses the transient dead zone filtering mechanism of the software control plane to block the transmission of the false positive slope of the monitoring indicators due to the brief throughput drop during hardware reorganization to the orchestration scheduling path. Within the transient filtering time window with a duration of 30ms, the underlying hardware completes the physical failure of all translation backup buffers and multi-stage pipeline reload. After the underlying hardware state has fully recovered to a stable state, the slope zeroing restriction is lifted, and the local tuning is determined by the real steady-state physical indicators. This achieves logical decoupling between the transient physical reorganization of a single machine and the macro-orchestration decision of the cluster in terms of control timing.

[0034] Under conditions where high-concurrency surges cause rigid overload of the host machine's physical computing resources, when the transient filtering time window expires and the overall pressure index remains above the second preset threshold of 0.75, and the pressure change slope... When this occurs, it indicates that the local tuning of a single machine has reached its physical capacity limit, and the system triggers the cross-node orchestration module; this module retrieves the virtual core quota allocated to the current service container. With the target safe operation index The additional elastic virtual core quota is calculated based on the following model. : ,in, This indicates the rounding up operation. The unit is the number of virtual cores; in actual operation, the additional elastic virtual core quota model is based on the assumption of linear computing power expansion of remote uncontested nodes; when the comprehensive stress index exceeds the target safe operation index, the relative ratio of the excess reflects the computing power deficit ratio of the business in the current clock cycle; if cores are blindly added locally on the source host, due to the existence of L3 cache misses and memory bus contention, the addition of computing threads will exacerbate bus lock contention and cache cold failure, and will not be able to obtain effective pipeline retirement throughput; therefore, the quota calculation result works in conjunction with the orthogonal matching unit, that is, the additional elastic virtual core quota derived from the linear expansion formula is only allocated to lightly loaded target hosts with a comprehensive stress index of less than 0.4 and a memory bus bandwidth saturation of less than 0.3. On the host, the newly added computing flow is carried by the target node's completely independent physical L3 cache and memory controller, so that the added cores can restore instruction retirement efficiency in an environment without local memory contention, thereby compensating for the computing power gap of the source node and satisfying the physical boundary of the linear expansion model. The orthogonal matching unit extracts the physical constraint dominant component of the source host. Since the memory contention weighted component formed by the product of L3 cache miss rate and memory bus bandwidth saturation is higher than the queue weighted component, the orthogonal matching unit applies orthogonal hard constraints when screening idle nodes with a comprehensive pressure index of less than 0.4 in the cluster candidate host pool, and removes physical nodes with a memory bus bandwidth saturation higher than 0.3. The additional elastic virtual core quota is deployed on the target host with the smallest network topology interconnection hop number.

[0035] When deploying a new container instance, the network interrupt decoupling unit reads the target host's network interface card (NIC) multi-queue configuration and interrupt vector table, rewrites the kernel interrupt affinity mask register, and binds the target host's data packet reception hardware interrupt and network soft interrupt daemon processing core to the preset auxiliary physical core set of the first physical slot. It also binds the virtual core of the new container instance to the independent computing core set of the second physical slot, cutting off the preemptive path of surging network data flow on the business computing clock cycle. Specifically, in the network protocol stack physical isolation mechanism, by rewriting the NIC receiver's scaling multi-queue interrupt affinity mask, the NIC hardware interrupt and the bottom-half data packet parsing soft interrupt daemon are bound to the preset auxiliary physical core set of the first slot, ensuring that high-concurrency data packet reception, frame filtering, and checksum calculation are completed by the kernel network reception soft interrupt. All operations run on the cores within the preset auxiliary physical core set; the independent computing cores on the second slot only perform lightweight data copying when the business container actively initiates a system call to read the socket receive buffer, thereby effectively suppressing the soft interrupt clock cycle occupancy ratio on the computing core to below 5%, avoiding large-scale network card soft interrupt context preemption of the business computing pipeline caused by sudden data flow. The service mesh agent first imports 10% of the total input traffic as trial traffic into the new container instance. When the target host microarchitecture telemetry module detects that the decay rate of the number of instructions retired per cycle in the new instance within a 100ms statistical window is less than or equal to 0.2 and the soft interrupt clock cycle occupancy ratio of the preset auxiliary physical core set is less than 5%, the full incremental business traffic is allowed to be split, so that the injected elastic computing power quota is fully converted into effective instruction retirement throughput.

[0036] At the moment the cross-node expansion command is issued, the admission control module records the current timestamp and starts a debouncing timer with a duration set to 180 seconds. Before the timer reaches its full value, it locks the scaling-down arbitration path, intercepting all reverse scaling-down actions triggered by a sudden drop in traffic. When the debouncing timer reaches zero and the host's overall stress index remains below the preset safe release threshold of 0.35 and the sample variance is below the stability threshold of 0.02 for five consecutive telemetry sampling periods, the socket backoff unit sends a one-way traffic avoidance signal to the target service container and periodically polls the number of bytes not sent in the operating system kernel socket write queue and the proportion of dirty pages not written back by the host in physical memory. The sample variance calculation for the five consecutive telemetry sampling periods is based on the most recent five consecutive 10ms sampling periods. The discrete comprehensive pressure index sequence of the sample period is used as input, and the statistical window covers a physical duration of 50ms. During the calculation, the arithmetic mean of the five sampled values ​​is first calculated. Then, the sum of the squares of the differences between each sampled value and the arithmetic mean is accumulated, and the sample variance is calculated using an unbiased division method with 4 degrees of freedom. The engineering basis for setting the stability threshold of 0.02 is that when the mean of the comprehensive pressure index is below 0.35, the upper limit of variance of 0.02 constrains the dispersion of adjacent fluctuations, ensuring that the maximum peak value in the five sets of samples will not exceed the first preset threshold of 0.5. This determines that the system is in a steady state of actual load reduction, avoiding premature scaling down under false load conditions. This is achieved when the number of unsent bytes in the socket write queue drops to zero and the proportion of unwritten dirty pages in physical memory is confirmed. When the load falls below 5%, the system first reclaims 50% of the newly added elastic virtual core quota, maintaining the remaining 50% quota for 30 seconds. After the microarchitecture telemetry module detects no rebound in physical indicators, the remaining 50% of the newly added elastic virtual core quota is cancelled. This eliminates the forced network connection termination and centralized disk flushing caused by instantaneous container cancellation, avoiding instantaneous contention on the input / output bus and frequent oscillations in the scheduling context. This allows the physical cluster to achieve stable convergence of computing power during the decline of business peaks. In this scaling-down admission control procedure, the engineering selection of various parameters has definite physical boundaries and anti-oscillation basis: the anti-jitter timer is set to 180 seconds, which is based on the statistical recurrence period of distributed cluster traffic troughs and secondary pulses. Tests show that if... If the cooldown period is less than 60 seconds, instantaneous traffic spikes will induce control oscillations after scaling down and then scaling up again. If it is longer than 300 seconds, it will cause idle and wasted cluster computing power. The proportion of unwritten dirty pages in physical memory is set at a 5% threshold, which is aligned with the lower limit of the background write-back refresh level of the operating system kernel. When the proportion of unwritten dirty pages in physical memory is higher than 5%, forcibly deregistering the instance will trigger kernel synchronous blocking and disk flushing, causing the disk I / O bus to lock up instantaneously. The tiered mechanism of reclaiming 50% of the additional elastic virtual core quota in the first phase and keeping the remaining 50% running for 30 seconds can ensure the smooth migration of residual long connections and pending transactions on the retreated instances. The full reclamation is completed only after 30 seconds of no rebound monitoring and confirmation, avoiding the connection reset storm caused by a one-time full shutdown.

[0037] Example 2: This example uses four dual-socket rack-mounted symmetric multiprocessing physical servers interconnected to build an experimental cluster. Each server is equipped with two physical computing chips, each chip integrating 16 physical computing cores, 32MB shared L3 cache, and a dual-channel integrated memory controller. The nodes are interconnected via a hyperpath bus to form a non-uniform memory access physical topology. The maximum theoretical throughput bandwidth of the dual-channel physical memory is rated at 100GB / s. The network side uses a network interface card with a receiver-scaled multi-queue configuration. The host machine runs an enterprise-level operating system based on the Linux 5.15 kernel. The microarchitecture telemetry module is resident in the kernel state. The performance monitoring unit periodically reads the total number of instruction retirements, the number of unsuspended clock cycles, the L3 cache miss count, and the total number of memory controller transactions through hardware registers. At the same time, it traverses the red-black tree of the ready queue of the Completely Fair Scheduler, removes the time of threads in an uninterruptible sleep state waiting for external block device input / output, and only extracts the pure queuing time of the computing threads in the scheduling ready queue that are in a runnable state. After calculating the arithmetic mean, the results, along with the physical parameters, are transmitted to the stress assessment module in user space via a 64KB fixed-length non-intrusive lightweight circular buffer and a memory page mapping channel.

[0038] The trial operation employed a distributed online retrieval container with eight virtual cores, overlaid with a non-stationary random batch processing computing container to form a multi-tenant, over-provisioned mixed load. An external traffic generator continuously injected high-concurrency query packets with a Poisson distribution jitter of 15% mean square deviation into the tested cluster via a gigabit network interface. The baseline concurrent request rate for idle and steady-state tests was 5,000 requests per second, which increased to 25,000 requests per second during high-concurrency peak periods. The data packet length of the query packets followed a normal distribution with a mean of 1,024 bytes and a range of 512 to 2,048 bytes. A pseudo-random memory pressure injection process runs concurrently in the background, operating on a pulse cycle of 100ms run and 200ms sleep. A dedicated 64MB memory test block is allocated in non-unified memory access node 0, which is twice the physical capacity of the 32MB L3 cache. Within the test block, cross-line pseudo-random out-of-order read and write operations are performed in 64-byte steps to continuously generate L3 cache capacity failure and bus transaction congestion. In each round of testing, 100,000 transaction response times are continuously collected. After sorting the times in ascending order, the 99,000th sampling point is taken as the 99th percentile latency from the end to the business.

[0039] The telemetry sampling period is jointly calibrated based on the real-time performance of data acquisition and the host machine's computing resource consumption. When the sampling period is shorter than 5ms, the performance monitoring unit register reads are too intensive, and the kernel time slice occupancy rate exceeds 1.5%. When the sampling period is longer than 20ms, transient pipeline pauses caused by sudden loads cannot be promptly entered into the stress assessment process. Therefore, the sampling cycle is set to 10ms, corresponding to a stable limit of monitoring resource consumption below 0.1%, and the ready queue baseline constant. The value of 20ms is based on the 50ms service level protocol end-to-end latency limit for online retrieval services. After deducting network round trip and data serialization time, the maximum safety tolerance of kernel scheduling queuing is set to 40% of the total latency budget. After the pure queuing time exceeds 20ms, the 99th percentile latency of the service begins to increase non-linearly.

[0040] Queue weights in the comprehensive stress index model Pipeline decay weight Competition for weights with multi-level storage Using values ​​of 0.4, 0.35, and 0.25 respectively, a three-factor, three-level orthogonal experiment was conducted to determine the sensitivity contribution of each index to the instance service level agreement (SSPA) default rate. The variance contributions of queuing time, instruction decommissioning decay, and memory bus contention to scheduling response deviation were 41.2%, 34.6%, and 24.2%, respectively. Based on these, the weights were normalized. The transient flow control unit in the near-core tuning module determined the transient filtering time window based on the physical delay distribution of inter-core processor interrupts and translation backup buffer refreshes. The measured pipeline hang lasted 15ms to 25ms, spanning 2 to 3 sampling cycles; therefore, the transient filtering time window was set to 30ms and covered 3 consecutive sampling cycles. The cross-node orchestration module used 0.65 as the target safe operation index. The orthogonal matching unit sets the upper limit of the memory bus bandwidth saturation of the candidate nodes to 0.3, and the anti-jitter timer of the admission control module is set to 180s.

[0041] Pressure change slope at each stage A sliding time window formed by three consecutive sampling cycles is used to extract the representative transient change rate during the state evolution process, rather than the instantaneous change amount within a single sampling tick. During local tuning, the translation backup buffer refresh and multi-stage pipeline overload continuously span multiple sampling cycles. After the tuning flag signal is set, the pressure assessment module forces the calculated pressure change slope to 0 within the transient filtering time window. The positive and negative slopes used in the flood peak impact and steady-state recovery stages are taken from the first-order change results in the continuous steady-state sampling interval after the transient filtering time window ends.

[0042] Under no-load baseline conditions, the test group measured the pure queuing time. The time is 1.2ms, representing the number of instructions decommissioned per cycle in real time. The L3 cache miss rate is 2. The memory bus bandwidth saturation is 0.08. The value is 0.12, from which the stress assessment module obtains the comprehensive stress index. The slope of the pressure change is 0.0264. 0 The system does not trigger resource reconfiguration and maintains basic operation. The end-to-end 99th percentile latency is 4.2ms. After entering steady-state online retrieval mode, Increased to 11.6ms It dropped to 1.52. It is 0.28. The value was 0.62, obtained through the same pressure assessment process. It is 0.3594. It is 0.25 Since the overall stress index is still below the first preset threshold of 0.5, the system continues to maintain the original resource configuration. The end-to-end 99th percentile latency is 14.8ms. During the above test group phase, the number of cluster oscillations per hour is 0.

[0043] After the neighboring batch processing containers start concurrently, the test group Increased to 14.2ms It dropped to 1.38. It rose to 0.56. It rose to 0.82, of which and The product is 0.4592, corresponding to a multi-level memory contention weighted contribution of 0.1148. The above input makes... It rose to 0.5073. It is 14.79 When the overall pressure index exceeds the first preset threshold, the near-core tuning module starts working. After the memory ladder admission unit detects that there are not enough consecutive free pages in the target local non-uniform memory access node, it blocks the direct migration of physical memory pages to a single target node and switches to an interleaved memory allocation strategy across non-uniform memory access slots. During this stage, the end-to-end 99th percentile latency is 22.4ms, and the number of cluster oscillations per hour is 0.

[0044] During the local interleaving and tuning transient phase It takes 15.8ms. It is 1.16. It is 0.52. It is 0.78, corresponding to The value is 0.5644. The transient disturbance caused by local resource rebinding causes an increase in the original pressure change, but the tuning flag signal has already been set, and the transient filtering time window takes effect immediately. The pressure assessment module will... Keep it at 0 It also intercepts cross-node expansion triggers; during this phase, the end-to-end 99th percentile latency is 25.1ms, and the cluster oscillation count per hour is 0.

[0045] After the interleaved memory allocation policy across non-uniform memory access slots takes effect, memory access transactions are redistributed among physical memory controllers, in the test group. It dropped back to 8.4ms. Restored to 1.78. It dropped to 0.22. The value dropped to 0.46, as determined by stress assessment. It is 0.2318. -33.26 At this point, the overall stress index returned to the safe range, local resources were tuned and maintained steady operation, the end-to-end 99th percentile latency dropped to 15.2ms, and the number of cluster oscillations per hour remained 0.

[0046] After further increasing the number of external concurrent requests, the test group entered a sudden surge of high-concurrency requests. Increased to 37.6ms It dropped to 0.84. It is 0.64. It is 0.91, from which we obtain For 1.1006, 86.88 The overall stress index has exceeded the second preset threshold and the slope of the stress change is positive. The cross-node orchestration module has started expansion. The current business container is allocated 8 virtual cores. and Calculate the additional elastic virtual core quota: The orthogonal matching unit filters candidate nodes according to the storage contention dominance state of the source host, eliminates physical nodes with memory bus bandwidth saturation higher than 0.3, and finally locks the idle node with memory bus bandwidth saturation of 0.21. It then deploys additional elastic virtual core quotas on the target host with the smallest network topology interconnection hop count. When the expansion is triggered, the end-to-end 99th percentile latency reaches 48.6ms, and the number of cluster oscillations per hour is 0 during this stage.

[0047] After the new instance on the target host is deployed, the network interrupt decoupling unit binds the network interface card (NIC) receive hard interrupt and network soft interrupt daemons to a preset auxiliary physical core set, and binds the service containers to an independent computing core set. The service mesh proxy first imports test traffic, and after the admission conditions are met, it switches to full service traffic. At the same time, the admission control module starts the debouncing timer and locks the scaling-down arbitration path. After entering the orthogonal orchestration flow switching ready state, the test group measured... It takes 10.4ms. It is 1.82. It is 0.2. It is 0.42, corresponding to 0.2605 -84.01 The end-to-end 99th percentile latency converged to 21.3ms, and the number of cluster oscillations per hour remained at 0.

[0048] Control group 1 retains the same load state as the test group's local interleaving tuning transient, but does not employ a transient filtering mechanism. Under this condition... It takes 15.8ms. It is 1.16. It is 0.52. It is 0.78. The value is also 0.5644; since the slope of the pressure change was not suppressed, It is 5.71 The system continues to transmit the transient changes generated by local tuning to the cross-node orchestration module and trigger cascading expansion. The end-to-end 99th percentile latency of the service increases to 68.4ms, and the cluster oscillates 8 times per hour.

[0049] Control group 2 does not employ memory-based tiered access control and network interruption isolation mechanisms. Under peak flood conditions, its... Reached 44.2ms It dropped to 0.56. It is 0.72. The stress assessment result was 0.96. 1.3088, It is 98.42 Because the local physical memory page migration did not go through tiered admission, the tuning process triggered direct kernel memory reclamation and spinlock contention; after the new instance was deployed, network soft interrupts continued to occupy the business operation clock cycle, the end-to-end 99th percentile latency of the business increased to 112.6ms, and the cluster oscillated 3 times per hour.

[0050] Control group 3 uses an operating system-level time slice average utilization polling mechanism under peak flood conditions. Reached 58.4ms It dropped to 0.48. It is 0.68. It is 0.94, corresponding to 1.5938, It is 12.4 The polling method has a 7.8-second delay in monitoring and sampling peak load. Expansion is only initiated after the existing instance ready queue has already accumulated. The cold start of new instances further prolongs the queuing process, and the end-to-end 99th percentile latency reaches 146.2ms. After the peak load recedes, due to the lack of anti-jitter timers and socket emptying unit for scaling down admission control, the system experiences reverse scaling down oscillations, with the cluster oscillating 14 times per hour.

[0051] The above data sets correspond to the same physical test platform and background disturbance conditions. After the microarchitecture telemetry module sends the physical indicators and the pure queuing time of the Completely Fair Scheduler into the stress assessment module, the perception timing of computing resource congestion is more than 7 seconds earlier than the polling of the average utilization of time slices. The near-core tuning module controls the transient filtering time window through memory ladder admission and tuning flag signals, so the transient pressure changes caused by local resource rebinding no longer directly trigger cross-node expansion. The cross-node orchestration module further combines orthogonal matching and network interrupt decoupling to complete the deployment of new instances. The admission control module combines the debouncing timer, socket emptying and dirty page write-back status to control the shrinkage during the resource release phase. In the corresponding test results, the service tail latency was reduced by more than 80% under sudden working conditions, and the cluster control oscillation remained at 0.

[0052] Example 3: In a cloud computing cluster composed of dual-socket rack-mounted symmetric multiprocessing servers operating under multi-tenant oversubscription conditions, two multi-core CPU chips manage non-uniform memory access node 0 and non-uniform memory access node 1, respectively. Each chip integrates a 32MB shared L3 cache and a dual-channel integrated memory controller. When the cluster nodes simultaneously handle high-load distributed retrieval services with 16 concurrent threads and low-priority random batch processing tasks, the microarchitecture telemetry module, resident in the host operating system kernel, reads physical indicators. This module allocates a fixed-length, non-intrusive lightweight memory segment of 64KB within the kernel memory space. A circular buffer is configured, and a counting unit in the microarchitecture performance monitoring unit, which exists in the form of a hardware performance event register, directly reads the unsuspended clock cycle register, instruction retirement register, L3 cache miss register, and memory controller read / write transaction request register with a fixed sampling interval of 10ms. The above reading operations are completed through register direct addressing instructions without interruption overhead, suppressing the single-core monitoring computing power loss to within 0.1%. When collecting scheduling queuing indicators, the microarchitecture telemetry module traverses the ready queue red-black tree structure of the Completely Fair Scheduler in a lock-free reading manner, reading the status of each ready task descriptor. For threads in an uninterruptible sleep state that have voluntarily yielded their processing cores while waiting for underlying disk I / O or network socket data packets, the status flag is used to directly eliminate their idle time. Only the pure queuing time of threads whose status flag is runnable and which are waiting for scheduling to allocate physical time slices in the run queue red-black tree is accumulated. The arithmetic mean of the pure queuing time is then output. This pure queuing time, along with the physical metrics in the circular buffer, is output to the user-space stress assessment module through a pre-mapped lock-free shared channel of physical memory pages. During the process of converting the total number of memory controller read / write transaction requests into measured transmission bandwidth, due to physical... The standard transmission granularity of each bus transaction of the host dual-channel memory controller is a complete 64-byte cache line. After the microarchitecture telemetry module extracts the total number of requests recorded in the memory controller read and write transaction register within the current 10ms sampling window, it multiplies it by 64 bytes to obtain the total amount of memory read and write data within the statistical window. Then, it divides it by the 10ms sampling duration, i.e., 0.01s, to obtain the amount of data transmitted per second, and then converts it into the measured read and write bus transmission bandwidth value. This measured value is then compared with the theoretical maximum throughput bandwidth of 100GB / s of dual-channel physical memory to obtain the dimensionless memory bus bandwidth saturation.

[0053] To address clock reference drift caused by the CPU's dynamic voltage and frequency adjustment mechanism, the stress assessment module directly extracts the actual physical clock cycles consumed by the physical core in a non-shutdown state when reading the number of unsuspended clock cycles. This ensures that scaling distortion caused by dynamic frequency adjustment is eliminated when calculating the number of instructions retired per cycle in real time, and limits the value of the attenuation rate of the number of instructions retired per cycle to between 0 and 1.

[0054] After receiving the aforementioned physical indicators and pure queuing time, the stress assessment module calculates the comprehensive stress index and stress change slope based on a preset mathematical model. It then works in conjunction with the near-core tuning module to handle direct memory reclamation pauses that occur during local resource allocation. In the specific calibration process, the ready queue baseline constant is calibrated to 20ms based on the tail latency boundary set by the Interactive Service Level Agreement (ISLA), the queue weight is calibrated to 0.40, the pipeline decay weight is calibrated to 0.35, and the multi-level memory contention weight is calibrated to 0.25. When the comprehensive stress index crosses the first preset threshold but does not reach the second preset threshold, the memory ladder admission unit within the near-core tuning module is activated. This unit reads the host operating system's regional memory information and traverses the free list of buddy system page blocks of the target local non-uniform memory access node. If the amount of free physical memory detected in the target local node is lower than the preset low-water mark, or if there are free page blocks in the buddy system with an order greater than or equal to 3 and corresponding contiguous space of not less than 32KB... If the number is zero, it is determined that the target local node has a risk of buddy system fragmentation. Forcibly migrating physical memory pages will trigger direct kernel memory reclamation and cross-core spinlock deadlock. At this time, the memory ladder admission unit blocks unidirectional physical memory page migration to a single target local node. Instead, it configures an interleaved memory allocation strategy across non-uniform memory access slots through system calls. The memory allocation requests of the blocked business containers are distributed in a round-robin fashion to the physical channels of the dual-channel memory controller of non-uniform memory access node 0 and non-uniform memory access node 1 at the granularity of physical pages. Only when the free physical memory of the target local node is higher than the preset low watermark and there are enough consecutive free page blocks of order greater than or equal to 3, unidirectional physical page migration based on controlled discrete page batches is allowed. The size of a single migration is limited by the remaining physical bandwidth of the memory controller and is limited to a block range of no more than 256 standard physical pages. This avoids the engineering risk of system-level spinlock caused by local tuning actions from the underlying memory physical allocation path.

[0055] To address the clock pause disturbances caused by inter-core processor interrupts and translation backup buffer refreshes accompanying near-core tuning, the near-core tuning module's built-in tuning transient flow control unit and stress assessment module establish a filtering offset loop. When initiating non-uniform memory access node memory binding adjustment or control group core affinity rebinding, the tuning transient flow control unit sends a level-set tuning flag signal to the stress assessment module. The stress assessment module responds to the tuning flag signal by activating the clock counting unit and opening a transient filtering time window with a duration of 30ms. This window covers three consecutive telemetry sampling cycles, and its value is determined based on the measured physical time limit of inter-core processor interrupt broadcasting and multi-stage pipeline overload. During the operation of the transient filtering time window... Even if the number of command retirements measured by the microarchitecture telemetry module in the immediate period drops due to the refresh of the translation backup buffer, causing the original slope calculated by the first-order backward time difference to show a positive surge, the pressure assessment module still sets the pressure change slope to zero and intercepts the output expansion trigger signal to the cross-node orchestration module. When the transient filtering time window expires, the pressure assessment module removes the zeroing restriction on the pressure change slope and enters the steady-state re-examination stage. Only when the measured comprehensive pressure index in the continuous sampling period is still greater than or equal to the second preset threshold of 0.75, and the recalculated pressure change slope is greater than 0, will the expansion trigger condition be transmitted to the cross-node orchestration module to eliminate cross-node false expansion caused by local tuning transient engineering overhead.

[0056] When the overall stress index crosses the second preset threshold of 0.75 and the slope of the stress change is greater than 0, the cross-node orchestration module initiates orthogonal screening, protocol stack interruption physical isolation, and resource backoff processes. The cross-node orchestration module extracts the virtual core quota allocated to the current business container and the target security operation index, performs up-rounding based on the additional quota model, and obtains the additional elastic virtual core quota. The orthogonal matching unit extracts the storage contention weighted component in the source host machine, which is composed of the product of the L3 cache miss rate and the memory bus bandwidth saturation. After confirming that this component is dominant, nodes with an overall stress index lower than 0.40 are selected from the candidate host machine pool. The system identifies and eliminates nodes with memory bus bandwidth saturation higher than 0.30, and deploys additional elastic virtual core quotas on the target host with the lowest network topology interconnection hop count. When deploying new container instances on the target host, the network interrupt decoupling unit rewrites the network card interrupt affinity register, binding the processing cores of the network packet receiving hard interrupt and the kernel soft interrupt daemon to the preset auxiliary physical core set of the first physical slot of the target host. At the same time, the virtual cores of the newly deployed instances are bound to the independent computing core set of the second physical slot through the control group core set interface, avoiding the soft interrupt message parsing from preempting the service instruction retirement clock cycle.

[0057] After the peak traffic subsides, the access control module, under the condition that the 180s anti-jitter timer returns to zero and the comprehensive pressure index is less than the preset safety release threshold of 0.35 and the sample variance is less than 0.02 for five consecutive sampling cycles, polls the number of unsent bytes in the kernel socket and the proportion of unwritten dirty pages in physical memory through the socket emptying unit. When the number of unsent bytes in the socket is zero and the proportion of unwritten dirty pages in physical memory is less than 5%, 50% of the additional elastic virtual core quota is reclaimed first, and the remaining 50% quota continues to run for 30 seconds. After monitoring that the physical indicators do not rebound, the remaining 50% of the additional elastic virtual core quota is cancelled, completing the resource reclamation.

[0058] Example 4: This example combines Figures 1 to 2 This paper describes an operation and maintenance system and method for a cloud platform with dynamic allocation of elastic computing power, such as... Figure 1 As shown, in step S1, the hardware performance counter of the microarchitecture telemetry module reads the number of retired instructions, the number of unsuspended clock cycles, the number of L3 cache misses, and the memory bus transaction volume as microarchitecture physical indicators, and iterates through the ready queue to extract the pure queuing time of runnable threads; in step S2, the stress assessment module calculates the comprehensive stress index and stress change slope based on the microarchitecture physical indicators and pure queuing time; in step S3, when the comprehensive stress index is between the first preset threshold and the second preset threshold, the local memory node binding or rebinding core affinity is adjusted by the near-core tuning module, and a tuning flag signal is output; in step S4, when the comprehensive stress index reaches the second preset threshold and the stress change slope is positive, the expansion instruction is output by the cross-node orchestration module; in step S5, in response to the expansion instruction, the admission control module starts the debouncing timer, and intercepts the shrinkage action before the debouncing timer returns to zero, wherein in response to the tuning flag signal, the stress assessment module sets the stress change slope to zero within the transient filtering time window.

[0059] like Figure 2As shown, the cross-node orchestration module includes a network interrupt decoupling unit. The network interrupt decoupling unit rewrites the kernel interrupt affinity mask register, obtains the multi-queue configuration and interrupt vector table of the network card in the first slot of the target host machine, binds the processing core to a preset auxiliary physical core set in the first slot of the host machine, and interfaces the multi-queue configuration and interrupt vector table of the network card in the first slot of the host machine with the preset auxiliary physical core set. The preset auxiliary physical core set carries the network card data packet reception hard interrupt and network soft interrupt daemon process. The network interrupt decoupling unit binds the virtual core to the independent computing core set in the second slot of the target host machine. The independent computing core set in the second slot of the host machine is configured with a newly added instance container. The newly added instance container contains two virtual cores. The service mesh proxy connects to the newly added instance container in the second slot of the host machine, imports trial traffic into the newly added instance container, and allows the full service traffic splitting to the newly added instance container.

[0060] Example 5: In this example, before the operation and maintenance system deployed on the physical host machine is connected to the production cluster, the initialization boot unit performs the microarchitecture baseline parameter calibration process in an isolated and quiescent environment on the host machine. A standard single-threaded computing load is loaded, and the hardware registers of the microarchitecture performance monitoring unit are configured to continuously collect physical indicators for 100 test cycles. The arithmetic mean of the total number of instruction retirements and the number of unsuspended clock cycles is calculated. When the measured variance of the real-time instruction retirement count per cycle is less than 0.005 and the mean fluctuation over 10 consecutive cycles is less than 0.5%, the stable mean of 2 is solidified as the baseline instruction retirement count per cycle for the current physical chip. Subsequently, continuous read / write data streams were injected into the dual-channel physical memory to determine the theoretical maximum throughput bandwidth of 100GB / s. Combined with the queuing tolerance allowed by the service level agreement, the ready queue baseline constant was set. The calibration is set to 20ms to provide a unified physical reference input for eliminating individual hardware differences in subsequent modules.

[0061] Under normal cluster operation, the microarchitecture telemetry module and stress assessment module perform timeliness checks. When a microcode update, memory hardware change, or cumulative operation reaching the preset maintenance cycle is detected on the host machine, the node is placed in maintenance drain state and the benchmark calibration process is restarted. If the recalibrated benchmark value is different from the previously fixed benchmark... If unidirectional attenuation occurs and the offset is greater than 5%, the baseline in the evaluation model will be automatically updated to eliminate the attenuation rate of instruction retirement per cycle caused by chip aging or firmware patch overhead. Static zero-point drift; at the same time, when the admission control module detects an increase in the bit error rate of the super-path interconnect bus transmission between non-uniform memory access nodes, it dynamically lowers the admission threshold of the memory bus bandwidth saturation of candidate nodes in the orthogonal matching unit, and converges the computing power scheduling bias toward physical nodes with healthy buses, so that the cross-node orchestration action is consistent with the hardware physical characteristics.

[0062] Example 6: The current cloud computing cluster, composed of dual-socket rack-mounted symmetric multiprocessing architecture servers, is operating under multi-tenant oversubscription conditions. Two multi-core CPU chips manage non-uniform memory access node 0 and non-uniform memory access node 1, respectively. Each physical chip integrates a 32MB shared L3 cache and a dual-channel integrated memory controller. Facing operational bottlenecks caused by high-concurrency online retrieval containers and low-priority batch processing containers contending for shared hardware resources, a microarchitecture telemetry module resident in the host operating system kernel periodically reads physical indicators and the pure queuing time in the Completely Fair Scheduler ready queue. This is to eliminate the total memory usage caused by physical page migration. To mitigate secondary overload, the tuning transient flow control unit in the near-core tuning module is configured with discrete batch token bucket rate limiting rules based on the remaining bandwidth of the memory controller. The size of a single migration batch is dynamically adjusted according to the remaining physical bandwidth of the memory controller, limiting the scale of a single migration to a block range of no more than 256 standard physical pages. When the measured read / write memory bus transmission bandwidth is 64GB / s and the theoretical maximum throughput bandwidth of dual-channel physical memory is 100GB / s, the measured memory bus bandwidth saturation is 0.64, corresponding to a remaining available bandwidth ratio of 0.36. Therefore, the single migration batch quota is proportionally reduced to 92 physical pages to avoid sudden page bursts. The migration transaction exhausted the remaining memory bus margin; in the discrete batch token bucket rate limiting rule, the maximum capacity of the token bucket is set to 256 tokens, each token corresponding to the migration of one standard physical memory page of size 4KB. The refresh cycle of the token bucket is synchronized with the 10ms sampling cycle of the microarchitecture telemetry module. At the beginning of each sampling cycle, the tuned transient flow control unit dynamically distributes tokens according to the measured remaining available bandwidth ratio. The specific number of tokens distributed is obtained by multiplying the baseline maximum single migration quota of 256 physical pages by the measured remaining available bandwidth ratio of 0.36. The calculated result 92.16 is rounded down to 92 tokens; the page migration process is adjusted. When using the kernel migration interface, one token is deducted for each physical page migrated. When the tokens in the bucket are exhausted, the page migration is suspended and the system sleeps until the next 10ms cycle to replenish tokens, limiting the instantaneous bus bandwidth occupied by a single migration to within the remaining available margin. Simultaneously, to address queue backlog in the Fully Fair Scheduler's ready queue, when pure queuing time dominates the overall stress index, the near-core tuning module calls the control group interface to perform smooth compensation for the processor running limits of the current service container. The compensation increment ratio is determined based on the relative deviation of pure queuing time from the ready queue baseline constant. When the pure queuing time extracted by the microarchitecture telemetry module is... The ready queue base constant is When the difference exceeds the baseline, it is 23-20=3ms. Dividing by 20ms gives the relative deviation of 3 / 20=0.15. After comparing with the preset compensation limit of 0.15, the compensation increment ratio is determined to be 0.15, or 15%. Based on this, the limit value after the 15% increase is written to the processor time slice limit parameter file of the current business container control group. The backlog of ready threads is cleared within two scheduling cycles. The migration mechanism of 92 physical pages at a time takes the target node passing the tiered admission check as a prerequisite. It is only allowed when the free memory of the target node is higher than the preset low watermark and has a continuous free page block of tier 3 or higher. If the target node does not meet the admission condition, regardless of the remaining bus bandwidth, unidirectional migration is blocked and the interleaved memory allocation strategy across non-uniform memory access slots is switched. The near-core tuning module sets a 20ms batch interval after each migration batch is completed, so that the bus transactions are released during the batch interval, and the instantaneous and cumulative bandwidth occupied by page migration is limited to within 1.5% of the theoretical bus bandwidth.

[0063] When external concurrent requests continue to surge, and the overall pressure index exceeds the second preset threshold of 0.75 with a pressure change slope greater than 0, the cross-node orchestration module retrieves the virtual core quota allocated to the current business container. and target safety operation index When the measured comprehensive pressure index At that time, the difference exceeding the target security operation index is 0.8125 - 0.65 = 0.1625. Multiplying this by the 8 virtual cores currently allocated to the business container gives 8 × 0.1625 = 1.3. Dividing this by the target security operation index of 0.65 gives 1.3 / 0.65 = 2. Rounding up gives the additional elastic virtual core quota. Each virtual core instance is assigned a virtual core. The orthogonal matching unit extracts the storage contention weighted component from the source host, which is the product of the L3 cache miss rate and the memory bus bandwidth saturation. It then filters physical nodes with a comprehensive stress index below 0.4 from the entire cluster's candidate host pool, removing physical nodes with a memory bus bandwidth saturation above 0.3. From the remaining candidate nodes, it selects the target host with the lowest network interconnect hop count. Simultaneously, it issues an interleaved memory allocation strategy across non-uniform memory access slots to the target host, distributing the memory transaction polling of the new instance to the physical channels of the memory controllers of two sets of non-uniform memory access nodes. After deploying two new virtual core instances on the target host, the network interrupt decoupling unit configures the network interface card (NIC) interrupt affinity register to restrict the NIC multi-queue receive interrupt vector and the kernel network soft interrupt daemon to the preset auxiliary physical core set of the first physical slot on the target host. The new virtual core instances are then... The instance is bound to an independent set of computing cores in the second physical slot of the target host machine. This reduces the preemption of business instruction retirement cycles by network packet protocol stack processing. After the external flood subsides, the comprehensive pressure index drops below the preset safe release threshold of 0.35, and the anti-bouncing timer times out to zero after 180 seconds, the socket emptying unit intercepts the instantaneous cancellation operation. It continuously reads the number of unsent bytes in the container network socket write queue and the ratio of unwritten dirty pages in physical memory on the host machine. If the number of unsent bytes in the socket write queue is greater than 0 or the ratio of unwritten dirty pages in physical memory is greater than or equal to 5%, the scaling down action is suspended and a 10-second backoff polling window is started until the number of unsent bytes in the socket write queue drops to 0 and the ratio of unwritten dirty pages in physical memory drops to 2.5%. Then, the virtual cores are cancelled in stages by releasing 50% of the quota each time, avoiding bus congestion caused by abnormal network connection resets and concentrated disk flushing.

[0064] The embodiments of this application have been described above with reference to the accompanying drawings. Unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other. This application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit of this application and the scope of protection of this invention, and all of these forms are within the protection scope of this application.

Claims

1. A cloud platform operation and maintenance system for dynamic allocation of elastic computing power, characterized in that, include: The microarchitecture telemetry module is used to read the number of retired instructions, the number of non-suspended clock cycles, the number of L3 cache misses, and the memory bus transaction volume as physical indicators through hardware performance counters, and to traverse the ready queue to extract the pure queuing time of runnable threads. The pressure assessment module, connected to the microarchitecture telemetry module, is used to calculate the comprehensive pressure index and pressure change slope based on physical indicators and pure queuing time. The near-core tuning module, connected to the stress assessment module, is used to adjust the local memory node binding or rebind the core affinity when the comprehensive stress index is between the first and second preset thresholds, and outputs a tuning flag signal. The cross-node orchestration module connects the pressure assessment module and the near-core tuning module, and is used to output expansion commands when the comprehensive pressure index reaches the second preset threshold and the pressure change slope is positive. The admission control module, connected to the cross-node orchestration module, is used to respond to expansion commands to start a debouncing timer and intercept the shrinkage action before it reaches zero. The pressure assessment module responds to the tuning flag signal and sets the pressure change slope to zero within the transient filtering time window.

2. The cloud platform operation and maintenance system for dynamic allocation of elastic computing power according to claim 1, characterized in that, The microarchitecture telemetry module includes a fixed-length circular buffer for lock-free recording of physical metrics and pure queuing time. The microarchitecture telemetry module outputs physical metrics and pure queuing time to the stress assessment module in user space through a memory page mapping channel. When traversing the ready queue, the microarchitecture telemetry module filters out uninterruptible sleep states by reading the status fields of each task control block, extracts the time difference of the computation threads in the ready queue that are in the runnable state, and calculates the arithmetic mean to obtain the pure queuing time.

3. The cloud platform operation and maintenance system for dynamic allocation of elastic computing power according to claim 1, characterized in that, The algebraic logic for calculating the overall stress index in the stress assessment module includes: ,in, It is a dimensionless comprehensive pressure index; This refers to the time spent queuing. A pre-stored baseline constant for the ready queue; The decay rate of the number of decommissioned instructions per cycle is dimensionless; This is the dimensionless L3 cache miss rate; This represents the dimensionless memory bus bandwidth saturation. , and These are the preset queue weight, pipeline decay weight, and multi-level storage contention weight, respectively, and the sum of the three is equal to 1.

4. The cloud platform operation and maintenance system for dynamic allocation of elastic computing power according to claim 3, characterized in that, The stress assessment module determines dimensionless parameters according to the following rules: The number of instruction retirements is divided by the number of non-suspended clock cycles to obtain the real-time instruction retirement count per cycle; when the real-time instruction retirement count per cycle is lower than the baseline instruction retirement count per cycle, the difference between the baseline and real-time instruction retirement counts is divided by the baseline instruction retirement count per cycle to obtain the instruction retirement count decay rate per cycle; when the real-time instruction retirement count per cycle is greater than or equal to the baseline instruction retirement count per cycle, the instruction retirement count decay rate is set to zero; the number of L3 cache misses is divided by the total number of requests originating from the previous level cache to obtain the L3 cache miss rate. The memory bus bandwidth saturation is obtained by dividing the measured memory read / write bus bandwidth by the maximum theoretical throughput bandwidth supported by the host machine's physical memory channels.

5. The cloud platform operation and maintenance system for dynamic allocation of elastic computing power according to claim 1, characterized in that, The near-core tuning module includes a memory ladder admission unit. Before adjusting the local memory node binding, the memory ladder admission unit reads the host operating system's regional memory information to obtain the amount of free physical memory and the distribution status of consecutive page blocks of the target local non-uniform memory access node. If the amount of free physical memory is lower than the preset low watermark, or the number of consecutive free page blocks with a rank greater than or equal to 3 is zero, the direct migration of physical memory pages to the target local non-uniform memory access node is blocked, and an interleaved memory allocation strategy across non-uniform memory access slots is configured to distribute the memory access transactions of the business container to each physical memory controller channel of the host machine in a round-robin fashion. If the amount of free physical memory is higher than the preset low watermark and the number of consecutive free page blocks with a rank greater than or equal to 3 is greater than zero, the physical memory pages of the blocked business container are migrated in batches through the operating system interface.

6. The cloud platform operation and maintenance system for dynamic allocation of elastic computing power according to claim 3, characterized in that, When the comprehensive stress index of the near-core tuning module is between the first and second preset thresholds: if the weighted value of the product of multi-level storage contention weight, level 3 cache miss rate and memory bus bandwidth saturation exceeds the product of queue weight and pure queuing time ratio, the physical memory pages of the blocked service container will be diverted to the local non-uniform memory access node or a cross-non-uniform memory access slot interleaved memory strategy will be configured. If the product of pipeline decay weight and the decay rate of instruction retirement per cycle exceeds the weighted value of multi-level storage contention weight, the concurrently running batch processing containers are bound to reserved physical cores through the control group interface; if the product of queue weight and pure queuing time ratio is dominant, the processor time slice running quota of the blocked service containers in the scheduling cycle is increased through the control group interface.

7. The cloud platform operation and maintenance system for dynamic allocation of elastic computing power according to claim 1, characterized in that, When the near-core tuning module initiates a physical memory page migration, it outputs a tuning flag signal with a set level to the stress assessment module. The stress assessment module has a built-in clock counting unit. When it detects that the tuning flag signal is set, it starts timing and opens a transient filtering time window. The duration of the transient filtering time window is set to 30ms and covers at least two consecutive telemetry sampling cycles. During the operation of the transient filtering time window, the stress assessment module sets the pressure change slope value calculated by the first-order backward time difference to zero. When the transient filtering time window expires, the zeroing restriction on the pressure change slope is lifted.

8. The cloud platform operation and maintenance system for dynamic allocation of elastic computing power according to claim 3, characterized in that, The cross-node orchestration module includes an orthogonal matching unit. When the overall stress index crosses the second preset threshold and the slope of the stress change is greater than zero, the cross-node orchestration module reads the currently allocated virtual core quota and the target security operation index of the target service, calculates the additional elastic virtual core quota, and the additional elastic virtual core quota is equal to the currently allocated virtual core quota multiplied by the difference between the overall stress index and the target security operation index, and then divided by the target security operation index and rounded up. The orthogonal matching unit reads the various sub-indicators of the source host. If the weighted component of the L3 cache miss rate and memory bus bandwidth saturation in the source host is higher than the queue weighted component, when screening nodes with an overall stress index lower than 0.40 in the candidate host pool of the entire cluster, nodes with a memory bus bandwidth saturation higher than 0.30 are removed, and the additional elastic virtual core quota is deployed on the target host with the smallest network topology interconnection hop count.

9. The cloud platform operation and maintenance system for dynamic allocation of elastic computing power according to claim 8, characterized in that, The cross-node orchestration module also includes a network interrupt decoupling unit. When deploying a new instance container on the target host, the network interrupt decoupling unit reads the multi-queue configuration and interrupt vector table of the target host's network interface card (NIC), rewrites the kernel interrupt affinity mask register, and binds the processing cores of the target host's NIC packet reception hard interrupt and network soft interrupt daemon to the preset auxiliary physical core set in the first slot of the target host; it binds the virtual cores of the newly deployed instance container to the independent computing core set in the second slot of the target host. The service mesh agent first imports 10% of the total input traffic as probing traffic into the new instance container. When it detects that the decay rate of the number of instructions retired per cycle in the new instance container within a 100ms statistical window is less than or equal to 0.20 and the soft interrupt clock cycle occupancy ratio of the preset auxiliary physical core set is less than 5%, the service mesh agent will then proceed with the deployment. When the percentage is reached, full traffic splitting is allowed, and the access control module includes a socket emptying unit. When the expansion command is issued, the access control module starts a debouncing timer with a duration set to 180s, and locks the scaling-down arbitration path before the debouncing timer reaches its full value. When the debouncing timer reaches zero and the host machine's comprehensive pressure index is lower than the preset safety release threshold for five consecutive sampling periods, the socket emptying unit sends a one-way traffic backoff signal to the target service instance and polls the number of bytes not sent in the operating system kernel socket write queue and the proportion of dirty pages not written back to physical memory on the host machine. When the number of bytes not sent in the socket write queue is zero and the proportion of dirty pages not written back to physical memory is less than 5%, 50% of the additional elastic virtual core quota is reclaimed. After waiting for 30s and monitoring that the physical indicators do not rebound, the remaining 50% of the additional elastic virtual core quota is cancelled.

10. A method for operating and maintaining a cloud platform with dynamic allocation of elastic computing power, used to run the cloud platform operation and maintenance system with dynamic allocation of elastic computing power as described in claim 1, characterized in that, Includes the following steps: Step S1: Read the number of retired instructions, the number of unsuspended clock cycles, the number of L3 cache misses, and the number of memory bus transactions as microarchitecture physical indicators through the hardware performance counter of the microarchitecture telemetry module, and traverse the ready queue to extract the pure queuing time of runnable threads. Step S2: The stress assessment module calculates the comprehensive stress index and the slope of stress change based on the microarchitecture physical indicators and the pure queuing time. Step S3: When the comprehensive pressure index is between the first preset threshold and the second preset threshold, adjust the local memory node binding or rebind the core affinity through the near-core tuning module, and output the tuning flag signal. Step S4: When the comprehensive pressure index reaches the second preset threshold and the pressure change slope is positive, the expansion command is output through the cross-node orchestration module. Step S5: In response to the expansion command, the anti-shake timer is started through the admission control module, and the reduction action is intercepted before the anti-shake timer returns to zero; wherein, in response to the tuning flag signal, the pressure change slope is set to zero within the transient filtering time window through the pressure assessment module.

Citation Information

Patent Citations

  • Elastic scaling method and system for cloud server resource management

    CN117076106A