主权项 |
1. A method for controlling the processing of requests for web resources from a web server, the method comprising:
assigning a different run level value for each of the web resources, the run level value comprising a numerical value and denoting a level of importance for each web resource in relation to other web resources; monitoring, by the web server, a run level of the web server, the run level of the web server comprising a numerical value and indicating a load on the web server; receiving, by the web server, a request for one of the web resources; comparing, by the web server, the assigned run level value of the requested one of the web resources with the current run level of the web server upon determining the level of importance of the requested one of the web resources and a current load of the web server; determining, by the web server, a priority of the received request based on the comparison by determining whether the numerical value corresponding to the assigned run level value is less than, greater than, or equal to the numerical value corresponding to the current run level of the web server, allocating a low priority to the request upon determining that the numerical value corresponding to the assigned run level value is greater than the numerical value corresponding to the current run level of the web server, but allocating a high priority to the request upon determining that the numerical value corresponding to the assigned run level value is less than or equal to the numerical value corresponding to the current run level of the web server; and processing, by the web server, the received request by the web server according to the determined priority. |