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

A kind of dns thread management method, device and server based on machine learning

A DNS server and thread management technology, applied in the Internet field, can solve problems such as poor DNS server efficiency, avoid wasting computing resources, improve efficiency, and avoid insufficient threads

Active Publication Date: 2021-06-22
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF3 Cites 0 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
  • A kind of dns thread management method, device and server based on machine learning
  • A kind of dns thread management method, device and server based on machine learning

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

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

[0074] 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 .

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

[0076] 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

[0104] 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 present invention provide a machine learning-based DNS thread management method, device, and server. The method and device are applied to a DNS server built based on a Linux operating system, specifically for acquiring all threads in the DNS server at preset intervals. The number of requests to process requests; 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 the current number of threads is greater than the optimal number of threads, reduce a 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.

Description

technical field [0001] The invention relates to the technical field of the Internet, 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 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 closely related to user beha...

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 Patents(China)
IPC IPC(8): G06F9/48G06N20/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