Business request adjusting method and device

A technology of business request and adjustment method, applied in the field of communication, can solve problems such as increasing thread resources and bottlenecks in server performance, and achieve the effect of improving resource utilization.

Inactive Publication Date: 2017-03-01
ALIBABA GRP HLDG LTD
View PDF5 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It is also unrealistic to blindly increase thread resources, after all, the performance of the server has a bottleneck after all.

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
  • Business request adjusting method and device
  • Business request adjusting method and device
  • Business request adjusting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In view of the problems in the background technology, this application proposes a business request processing method, which mainly solves the problem of ensuring that jobs with high priority in the queue are executed in the first time when thread resources are tight, and when thread resources are idle. Ensure that low-priority jobs can also be effectively executed.

[0042] In order to achieve the above purpose, this application sets up a first queue and a second queue respectively in a business request processing system, wherein the number of threads opened in the first queue is higher than the number of threads opened in the second queue, for the sake of resource utilization From a perspective, the number of threads opened by the first queue can be much higher than the number of threads opened by the second queue, and the number of threads opened by the second queue can even be set to 0. At the same time, technicians can also set priority thresholds for different prio...

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 business request adjusting method and device. In a business request processing system, a first queue and a second queue are pre-created. The number of threads opened by the first queue is higher than the number of threads opened by the second queue; and the priority of the business request in the first queue is higher than the priority of the business request in the second queue; when the adjustment time arrives, it is confirmed whether the number of business requests currently being threaded in the first queue is less than a processing threshold, and if so, the business requests in the second queue are transferred to the first queue according to a preset adjustment strategy so as to dynamically adjust the resources allocated to the service requests in the queues according to the usage of the resources, to ensure that the business requests with higher priority are executed in time, and to ensure that the business requests with lower priority are processed as quickly as possible when the resources are idle enough. Therefore, the resource utilization efficiency is increased.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a service request adjustment method. The present application also relates to a service request processing device. Background technique [0002] In the current data processing technology, the queue is a special linear table, which is special in that it only allows deletion operations at the front end of the table (front), and insertion operations at the back end (rear) of the table, and the stack Similarly, a queue is a linear list with restricted operations. The end of the insertion operation is called the tail of the queue, and the end of the deletion operation is called the head of the queue. When there are no elements in the queue, it is called an empty queue. A thread is the smallest unit of program execution flow. [0003] Since the characteristic of the queue is first-in-first-out (requests that enter the queue first will be executed by the thread f...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/865H04L12/873H04L12/877H04L47/36H04L47/6275H04L47/52H04L47/525
CPCH04L47/525H04L47/527H04L47/6295
Inventor 范茸陈磊解敏
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products