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

A dns thread management method, device and server

A DNS server and thread management technology, applied in the Internet field, can solve the problems of poor DNS server efficiency and achieve the effects of avoiding waste of computing resources, reducing threads, and improving efficiency

Active Publication Date: 2021-06-22
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF5 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 DNS server 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 dns thread management method, device and server
  • A dns thread management method, device and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] figure 1 A flowchart of a DNS thread management method provided by the embodiment of the present invention.

[0051] The DNS thread management method provided in this embodiment is applied to the DNS server based on Linux system, specifically, the management method in this application is applied only to the Linux system, which is built on the physical server running the Linux system.

[0052] Refer figure 1 As shown, the specific steps of the DNS thread management method provided in the present invention are:

[0053] S101: Quantity of requests for all threads processed in the DNS server in real time.

[0054] That is, during the running of the DNS server, all the threads are monitored, monitor the total request for all threads, the total amount of requests processed by the DNS, to which the DNS server is in the traffic peak or Delivery trough is judged.

[0055] S102: Determine the working status of the DNS server based on the number of requests.

[0056] That is, accordi...

Embodiment 2

[0093] figure 2 A structural block diagram of a DNS thread management apparatus provided by the embodiment of the present invention.

[0094] The DNS thread management apparatus provided in this embodiment is applied to the DNS server based on the Linux system, specifically, the management method in this application is applied to the Linux system, which is built on the physical server running the Linux system.

[0095] Refer figure 2 As shown, specific to the DNS thread management apparatus provided in the present invention includes a request number detection module 10, a working state determination stroke 20, a first thread maintenance module 30, and a second thread maintenance module 40.

[0096] The request quantity detection module is used to detect the number of requests processed by all threads in the DNS server in real time.

[0097] That is, during the running of the DNS server, all the threads are monitored, monitor the total request for all threads, the total amount of ...

Embodiment 3

[0117] This embodiment provides a server that sets a DNS server based on a Linux operating system, which is provided with a DNS thread management device as provided in the above embodiment. The apparatus is specifically used to detect the number of requests processed in all threads in the DNS server in real time during operation of the DNS server; determine the request quantity in accordance with the preset determination rule to determine that the DNS server is in a preset flow rate or The preset flow is low. When the DNS server is in the traffic peak state, the thread is added; when the DNS server is in the flow rate, the thread is reduced. By dynamic adjustment of the number of threads of the DNS server, it can avoid lack of threads during traffic peak state, or avoid calculating the calculation resource waste during traffic, thereby increasing 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 DNS thread management method, device, and server. The method and device are applied to a DNS server built on a Linux system. The DNS thread management method is specifically to detect the DNS server in real time during the running process of the DNS server. The number of requests processed by all threads in the server; the number of requests is judged according to the preset judgment rules to determine that the DNS server is in the preset traffic peak state or the preset traffic trough state; when the DNS server is in the traffic peak state, increase the thread ; When the DNS server is in a state of low traffic, reduce the number of threads. 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 present invention relates to the field of Internet technologies, and more particularly to a DNS thread management method, apparatus, and a server. Background technique [0002] DNS (Domain Name System, Domain Name System), refers to a set of systems that map domain names to IP addresses in the Internet to access the Internet to access the Internet with a domain name that is easier to remember, and don't remember it. IP string. DNS can almost say that it is the foundation of all online services. In DNS, the domain name of the domain name needs to build a DNS server to process DNS query requests. Typically, when the DNS server program is started, a certain number of threads will be turned on with a parallel processing query request, and each thread is bound to the CPU core to perform the relevant computing task. [0003] However, the inventors of the present application find that since the query amount of the DNS service is related to user behavior, there...

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): H04L29/12G06F9/50G06F9/54
CPCG06F9/5016G06F9/544H04L61/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