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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com