A method and device for gray scale downgrading at the server side

A server-side, gray-scale technology, applied in the network field, can solve problems such as imminent danger threshold, server CPU usage rate surge, website cost surge, etc., to achieve the effect of reducing load and solving the problem of excessive load

Active Publication Date: 2020-11-27
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] For websites, at certain time points, such as holidays, new drama launch days, concert live broadcast days, shopping festivals, etc., due to the sudden massive user visits, the QPS will increase instantly, and most of the data and user Behavior-related, in this case, the cache cannot be used, which puts a huge pressure on the server
In particular, the Servlet layer (page service layer) in the middle of the system not only needs to adjust the back-end interface, but also assembles data and returns it to the client, which leads to a sharp increase in the CPU usage of the server, even approaching the dangerous threshold
The current measure is to achieve load balancing by increasing the number of servers, including permanent or temporary increases, but this will lead to a sharp increase in the cost of the website, which is not good for the operation of the website

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 method and device for gray scale downgrading at the server side
  • A method and device for gray scale downgrading at the server side
  • A method and device for gray scale downgrading at the server side

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] figure 1 It is a flow chart of the steps of a method for downgrading the gray level of the server provided by the embodiment of the present invention.

[0049] refer to figure 1 As shown, the server-side gray scale downgrade method provided in this embodiment is applied to the client of the website, and the client refers to the application program through which the user can request data services from the server of the website, and can also be extended to run the above-mentioned application program. equipment. Here grayscale degradation refers to a scheme for smooth degradation between black and white. The method for downgrading the gray level of the server specifically includes the following steps:

[0050] S101: Determine whether the data returned by the server comes from a cache.

[0051] The data is returned by the server's page service layer according to the data request instruction initiated by the user through the client. The data includes a source identifier ...

Embodiment 2

[0069] Figure 4 It is a flow chart of steps of another method for downgrading the gray level of the server provided by the embodiment of the present invention.

[0070] refer to Figure 4 As shown, the server-side gray scale degradation method provided in this embodiment is applied to the server that provides data services for the client in the previous embodiment, including the page service layer. The method for downgrading the gray level of the server specifically includes the following steps:

[0071] S201: Detect the load when a client request is received.

[0072] When the data request sent by the user through the client is received, the load of the page service layer of the server is detected. The purpose of detecting the load is to determine whether the load exceeds the budgeted load threshold. If it exceeds, it indicates that the current load is relatively large, and the ability to process user requests is reduced accordingly. The preset load threshold is determin...

Embodiment 3

[0082] Figure 5 It is a structural block diagram of an apparatus for downgrading grayscale at a server provided by an embodiment of the present invention.

[0083] refer to Figure 5 As shown, the server-side grayscale degradation device provided by this embodiment is applied to the client of the website. The client refers to the application program through which the user can request data services from the server of the website, and can also be extended to run the above-mentioned application program. equipment. The device for gray level degradation at the server specifically includes a data source judgment module 10 , a first command processing module 20 and a third command processing module 30 .

[0084] The data source judging module 10 is used to judge whether the data returned by the server comes from cache.

[0085] The data is returned by the server's page service layer according to the data request instruction initiated by the user through the client. The data inclu...

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

The embodiments of the invention provide a service end gray scale degrading method and device. The method and device are applied to a client, and the method concretely includes the following steps: determining whether data comes from a cache according to source identification in the data when the data returned by a server is received, and determining update time of the data according to a timestamp in the data; if the data comes from the cache, caching a write operation instruction and the write operation timestamp if the execution of the write operation instruction is successful when a user sends the write operation instruction to the server; and rewriting the data by using the write operation instruction locally cached if the data still comes from the cache and the update time of the data is earlier than the time of the write operation timestamp when the user reads the data repeatedly. Therefore, the load of a page service layer of the server is effectively reduced, and the server does not need to be temporarily or permanently deployed for sudden increases in the load. Therefore, the problem of excessive load under high concurrency condition can be effectively solved without increasing the cost.

Description

technical field [0001] The present invention relates to the field of network technology, in particular to a method and device for gray scale downgrading at a server. Background technique [0002] For websites, at certain time points, such as holidays, new drama launch days, concert live broadcast days, shopping festivals, etc., due to the sudden massive user visits, the QPS will increase instantly, and most of the data and user Behavior-related, in this case, the cache cannot be used, which puts a huge pressure on the server. In particular, the Servlet layer (page service layer) in the middle of the system not only needs to adjust the back-end interface, but also assembles data and returns it to the client, which leads to a sharp increase in the CPU usage of the server, even approaching the dangerous threshold. The current measure is to increase the number of servers to achieve the effect of load balancing, including permanent or temporary increases, but this will lead to a...

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/54G06F9/50
CPCG06F9/5027G06F9/505G06F9/547G06F2209/541
Inventor 李龙泉方学阳
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products