Unlock instant, AI-driven research and patent intelligence for your innovation.

Calculation method for CPU utilization rate of load balancing equipment

A technology of load balancing equipment and computing methods, applied in computing, program control design, resource allocation, etc.

Pending Publication Date: 2021-05-07
上海弘积信息科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the infinite loop polling and receiving method, even if there is no data packet on the network card, the program still needs to poll continuously

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Calculation method for CPU utilization rate of load balancing equipment
  • Calculation method for CPU utilization rate of load balancing equipment
  • Calculation method for CPU utilization rate of load balancing equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] A method for calculating the CPU utilization rate of a load balancing device according to the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0028] The specific implementation process of the calculation method of a kind of load balancing equipment CPU usage rate of the present invention is as follows:

[0029] Record the current time value time start at the beginning of each cycle, and record the current time value time end at the end of each cycle; the time of a single cycle is time pass, then you can use the formula time pass=time end–time start Calculate the time value of a single cycle; set the data packet detection point as packet exist, and if the network card has received packets detected in this cycle, packet exist will be true, otherwise it will be false; set the cumulative total time variable time all, the cumulative network card has received packets The total time variable time work for package hou...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for calculating the CPU utilization rate of load balancing equipment. The method comprises the following steps: calculating a time value of a single cycle according to a formula: time pass = time end-time start; obtaining a time all value and a time work value which are continuously changed according to calculation; when each time of circulation is finished, accumulating the time pass, wherein the time all is equal to the sum of the time all and the time pass; when the circulation is finished each time, if the packet list is true, calculating according to a formula that time work is equal to time work + time pass, and if the packet list is true, performing calculating according to a formula that time work is equal to time work + time pass; and calculating the CPU utilization rate according to the data. According to the CPU calculation method provided by the invention, for a polling packet receiving load balancing system, the CPU busy degree within a period of time can be accurately and quantitatively reflected.

Description

technical field [0001] The present invention relates to the technical field of CPU utilization rate, in particular to a method for calculating the CPU utilization rate of a load balancing device. Background technique [0002] Load balancing is a key component of highly available network infrastructure, and it is usually used to distribute workloads to multiple servers to improve the performance and reliability of websites, applications, databases or other services. [0003] In a webpage (web) architecture without load balancing, users are directly connected to the web server. If the server goes down, users will naturally have no way to access it. Also, if there are too many users trying to access the server at the same time, more than it can handle, you will experience slow loading or no connection at all. [0004] This failure can be mitigated by introducing a load balancer and multiple additional web servers. Typically, all backend servers are guaranteed to serve the sam...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/50
CPCG06F9/505
Inventor 王晓凡
Owner 上海弘积信息科技有限公司