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

Machine learning-based DNS thread management method and apparatus, and server

A DNS server and thread management technology, applied in the Internet field, can solve problems such as poor DNS server efficiency, and achieve the effects of avoiding wasting computing resources, improving efficiency, and avoiding insufficient threads.

Active Publication Date: 2018-08-24
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention provides a DNS thread management method, device and server based on machine learning to solve the current problem of poor efficiency of the DNS server due to the fixed number of threads

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
  • Machine learning-based DNS thread management method and apparatus, and server
  • Machine learning-based DNS thread management method and apparatus, and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] figure 1 It is a flow chart of steps of a machine learning-based DNS thread management method provided by an embodiment of the present invention.

[0043] refer to figure 1 As shown, the DNS thread management method provided by this embodiment is applied to a DNS server, and the DNS server is set up on a physical server running a Linux operating system. The DNS thread management method specifically includes steps:

[0044] S101: Obtain the number of requests processed by all threads on the DNS server.

[0045] When the DNS server starts, only a small number of threads are started and the corresponding CPUs are bound. During the request processing process of the DNS server, the number of requests being processed by all threads on the DNS server is detected, that is, the number of requests.

[0046] Specifically, each thread can be controlled to count the number of requests processed by itself in real time, and then report the number of requests obtained through statis...

Embodiment 2

[0074] figure 2 A structural block diagram of a DNS thread management device based on machine learning provided by an embodiment of the present invention.

[0075] refer to figure 2 As shown, the DNS thread management device provided by this embodiment is applied to a DNS server, and the DNS server is built on a physical server running a Linux operating system. The DNS thread management device specifically includes a request quantity acquisition module 10 and an optimal thread calculation module 20 , the first thread maintenance module 30 and the second thread maintenance module 40 .

[0076] The request quantity obtaining module is used to obtain the request quantity of requests processed by all threads on the DNS server.

[0077] When the DNS server starts, only a small number of threads are started and the corresponding CPUs are bound. During the request processing process of the DNS server, the number of requests being processed by all threads on the DNS server is det...

Embodiment 3

[0106] This embodiment also provides a server, the server runs a Linux operating system, and is configured with a corresponding DNS server, the DNS server is provided with the DNS thread management device provided in the previous embodiment, and the device is used for Get the number of requests processed by all threads in the DNS server for the preset duration; use the preset thread control model to calculate the number of requests to get the optimal number of threads; if the current number of threads is less than the optimal number of threads, add a thread; if If the current number of threads is greater than the optimal number of threads, reduce one thread. By dynamically adjusting the number of threads of the DNS server, it is possible to avoid insufficient threads during traffic peaks and to avoid waste of computing resources during low traffic periods, thereby improving the efficiency of the DNS server.

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

Embodiments of the invention provide a machine learning-based DNS thread management method and apparatus, and a server. The method and the apparatus are applied to a DNS server established based on aLinux operation system. The method specifically comprises the steps of obtaining a request quantity of requests processed by all threads in the DNS server every a preset duration; calculating the request quantity by utilizing a preset thread control model to obtain an optimal thread number; if a current thread number is smaller than the optimal thread number, adding a thread; and if the current thread number is greater than the optimal thread number, reducing a thread. Through dynamic adjustment of the thread number of the DNS server, thread shortage in a flow peak state can be avoided, and computing resource waste during flow valley can be avoided, so that the efficiency of the DNS server is improved.

Description

technical field [0001] The present invention relates to the field of Internet technologies, in particular to a machine learning-based DNS thread management method, device and server Background technique [0002] DNS (Domain Name System, Domain Name System) refers to a set of systems that map domain names to IP addresses on the Internet, enabling users to use domain names that are easier to remember to access the Internet, instead of having to remember difficult to remember The IP number string. DNS can be said to be the basis of almost all current online services. In DNS, domain name managers need to build DNS servers to handle DNS query requests. Usually, when the DNS server program is started, a certain number of threads are opened to process query requests in parallel, and each thread is bound to a CPU core to perform related computing tasks. [0003] However, the inventors of the present application have found in practice that since the query volume of DNS services is...

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): G06F9/48G06N99/00H04L29/12
CPCG06F9/4881G06N20/00H04L61/4511
Inventor 丁浩吴岩石磊胡文
Owner BEIJING QIYI CENTURY SCI & 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