System throttling method and device

A cache and database technology, applied in the computer field, can solve problems such as high system service pressure and crash, and achieve the effect of maintaining normal operation.

Pending Publication Date: 2019-08-20
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the embodiment of the present invention provides a method and device for system current limiting, which can at least solve the phenomenon in the prior art that when the cache fails, the system service pressure is high and the system crashes

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
  • System throttling method and device
  • System throttling method and device
  • System throttling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043]Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0044] It should be noted that the cache mode provided by the embodiment of the present invention includes but is not limited to the redis cache mode, and may also be any other distributed cache. The embodiment of the present invention takes the redis cache mode as an example for illustration.

[0045] In addition, the caching mode and non-caching mode provided by the embod...

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 invention discloses a system throttling method and device, and relates to the technical field of computers. A specific embodiment of the system throttling method comprises the following steps: receiving a data request, and obtaining a current cache mode; according to the current cache mode, obtaining the maximum concurrency of the corresponding cache and / or database, and determining the concurrency currently supported by the cache and / or database; and obtaining data corresponding to the data request in the cache and / or the database according to the maximum concurrency number of the cache and / or the database and the currently supported concurrency number. According to the embodiment, the on-off state of the current cache mode is combined; different throttling measures are adopted for conducting throttling respectively, and the system can normally provide services to the outside no matter whether the cache mode is normal or not.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for system current limiting. Background technique [0002] For the database query interface of the service system, because the call volume is relatively large, the data cache is added, and the cache is set to be refreshed after expiration. However, the system relies heavily on the cache. If there is no cache or the cache expires, a large number of requests will pass through the cache and query the database directly, which will put great pressure on the database, especially during peak business periods, which may cause an avalanche effect. [0003] For this situation, the existing technology usually adopts independent deployment of multiple computer rooms, that is, different caches are used in different computer rooms. For example, two computer rooms in different places are deployed independently. When one computer room fails, the other computer room can be ...

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
IPC IPC(8): G06F16/957G06F11/07
CPCG06F11/0754G06F16/2308
Inventor 干天星
Owner BEIJING JINGDONG SHANGKE INFORMATION 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