Method and device for processing of server service requests
A business request and processing method technology, applied in the directions of multi-programming devices and resource allocation, can solve the problems of long business request processing delay, reduced server operation efficiency, and server unresponsiveness, etc., to enhance business request processing performance, improve Business request processing performance and the effect of optimizing system resource allocation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] In this embodiment, a pair of search servers that provide data search services are taken as an example, and the server service request processing method of the present invention is used to process the data search service request, so as to illustrate the specific application and beneficial effects of the method of the present invention. After the search server receives the data search service request, it needs to analyze the data search service request to obtain the search keywords, and perform logical operations on the search keywords to obtain the corresponding index conditions, and then read a large number of data indexes stored in the search server Write matching operation, from which the data that meets the index conditions is searched and returned to the requester, and the search service request processing is completed. It can be seen that the specific processing task flow of the search server to perform data search service request processing is relatively complicat...
Embodiment 2
[0060] Since the server usually needs to perform initialization processing on more system data when starting up and running, its initialization itself needs to consume more system resources; When a lot of idle threads are created, system resources will be further consumed, resulting in slow execution of server initialization processing and failure to start to a normal running state for a long time, affecting the startup operation of the server. In order to reduce this adverse effect, this embodiment provides a more optimized server service request processing method. When the server starts to run, first create a part of standby threads, for example, create N idle standby threads, N figure 2 Shown:
[0061] S21, judging whether there is an unprocessed service request in the request queue at the current moment; if so, execute step S22; otherwise, execute step S25;
[0062] S22, judging whether there is an idle standby thread at the current moment; if so, execute step S23; otherwi...
Embodiment 3
[0068] Correspondingly, the present invention also provides a server service request processing device, which can be integrated in the server, or can be used as an independent device outside the server. The structure of the device is as image 3 shown, including:
[0069] Creation module 10 is used to create a limited number of idle idle threads in advance;
[0070] The queuing module 20 is used for queuing the received service requests to form a request queue during the operation of the server;
[0071] Scheduling module 30, is used for distributing and invoking idle threads to process unprocessed business requests in the request queue;
[0072] The state management module 40 is used to release the idle thread that is allocated and invoked to an idle state after the service request processing and execution is completed, for subsequent invocation by the server.
[0073] Specifically, the creation module 10 may include a first creation unit, configured to create Nmax idle st...
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