Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Request control method and device and electronic equipment

A technology of request control and electronic equipment, applied in the computer field, can solve problems such as error-prone, resource waste, load imbalance, etc., and achieve the effects of not being easy to waste resources, making full use of resources, and improving reliability

Active Publication Date: 2020-11-20
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method relies on the experience threshold. For the request control in the cluster, the experience threshold needs to be manually maintained, which is prone to errors. Moreover, this method of implementing request control based on the experience threshold will cause unbalanced load, so it cannot be fully utilized. Cluster performance, resulting in waste of resources

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
  • Request control method and device and electronic equipment
  • Request control method and device and electronic equipment
  • Request control method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] Please see figure 2 , which is a schematic flowchart of a request control method according to an embodiment. The request control method provided by this embodiment can be applied to the working nodes in the cluster, for example, it can be applied to figure 1 Server 1000 is shown. Such as figure 2 As shown, the method may include the following steps S2100-S2300:

[0068] Step S2100, obtaining the query rate per second of the working node processing requests.

[0069] The query rate per second is a measure of how much traffic a specific query server handles within a specified time, that is, the number of requests a server can respond to per second. The server is, for example, a working node in the cluster. Specifically, the working node can be figure 1 Server 1000A, server 1000B, and server 1000C are shown. It can be understood that each working node in the cluster may have the same query rate per second, or may have different query rates per second, which is not ...

Embodiment 2

[0110] Please see Figure 4 , which is a schematic flowchart of a request control method according to another embodiment. The request control method provided in this embodiment can be applied to a management server, and the management server can be a RAFT server. For the introduction of the RAFT server, refer to the method embodiment 1 above, and this embodiment will not repeat it here. For example, the request control method of this embodiment can be applied to figure 1The shown server 2000A can also be applied to figure 1 The server 2000B or 2000C is shown. Such as Figure 4 As shown, the method may include the following steps S4100-S4300:

[0111] Step S4100, receiving the query rate per second of the working nodes reported by the working nodes in the cluster.

[0112] The worker node can be, for example, figure 1 Any one of the server 1000a, the server 1000b, and the server 1000c shown. refer to figure 1 For example, the server 2000a may receive its own query rate ...

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 embodiment of the invention discloses a request control method, which is applied to a working node in a cluster, the working node is used for processing a request, and the method comprises the following steps: obtaining a query rate per second of the working node for processing the request; reporting the per-second query rate of the working node to a management server, so that the management server determines whether to trigger a control instruction or not according to the per-second query rate of the working node; and receving the control instruction issued by the management server, processing the current to-be-processed request according to the control instruction, wherein the control instruction is an instruction determined to be triggered by the management server according to the query rate per second of the working node. The method in the embodiment of the invention can give full play to the cluster performance, and does not cause resource waste.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and more specifically, to a request control method, device and electronic equipment. Background technique [0002] With the development of business, in order to quickly respond to user requests, it is usually to build a cluster and process each request based on the working nodes in the cluster to improve the processing speed of each request. However, due to the fact that the requests arriving at any time are often random and uncontrollable However, the ability of working nodes to process requests is limited. Therefore, requests need to be controlled according to the processing capabilities of working nodes to ensure normal service operation. [0003] In related technologies, an experience threshold is configured for working nodes, and when the experience threshold is exceeded, the flow is limited, for example, new requests are directly rejected. However, this method relies on the expe...

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): H04L29/08
CPCH04L67/1008H04L67/101H04L67/60
Inventor 李江伟
Owner BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products