Unlock instant, AI-driven research and patent intelligence for your innovation.

Implementation method and device of self-adaptive dynamic redis connection pool

An implementation method and connection pool technology, applied in the field of information processing, can solve problems such as increased manual operation and maintenance workload, waste of connection resources, and insufficient connection resources, so as to reduce manual operation and maintenance workload, improve utilization rate, and avoid connection resources wasteful effect

Pending Publication Date: 2022-05-13
新奥新智科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present application provides an implementation method, device, electronic equipment and storage medium of an adaptive dynamic redis connection pool, so as to solve the problem that the number of statically preset redis connection pools in related technologies cannot meet the dynamic connection requirements, which may easily lead to waste of connection resources or connection problems. Insufficient resources, increasing the workload of manual operation and maintenance, reducing the stability of application operation, etc.

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
  • Implementation method and device of self-adaptive dynamic redis connection pool
  • Implementation method and device of self-adaptive dynamic redis connection pool
  • Implementation method and device of self-adaptive dynamic redis connection pool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

[0023] At present, the configuration of the redis connection pool is usually to simulate a specific business scenario with a certain number of concurrent users through a stress test, and adjust the parameters to select the best connection pool configuration. Under the microservice architecture, multiple applications with different functions may use one redis at the same time. The peak access time period of each application user is different, and the maximum concurrent redis connection requirements of each application are also...

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 relates to the technical field of information processing, in particular to an adaptive dynamic redis connection pool implementation method and device.The method comprises the steps that the total number of waiting requests of a redis client, the number of idle connections of a connection pool and the number of all actual connections are obtained, and the number of newly-added connections and the maximum number of connections of the latest connection pool are calculated; if the maximum connection number of the newest connection pool is greater than the maximum connection number of the current connection pool of the redis client, modifying the maximum connection number of the current connection pool to be the maximum connection number of the newest connection pool, and calculating the minimum connection number of the newest connection pool of the redis client according to the concurrent connection number; and if the minimum connection number of the newest connection pool is greater than the minimum connection number of the current connection pool, modifying the minimum connection number of the current connection pool to be the minimum connection number of the newest connection pool. Therefore, the problems that the dynamic connection requirement cannot be met by statically presetting the number of redis connection pools, the manual operation and maintenance workload is increased, the application operation stability is reduced and the like in the related technology are solved.

Description

technical field [0001] The present application relates to the technical field of information processing, in particular to a method and device for realizing an adaptive dynamic redis connection pool. Background technique [0002] The configuration of the redis connection pool is generally to simulate a specific business scenario with a certain number of concurrent users through a stress test, and adjust the parameters to select the best connection pool configuration, that is, to meet the redis connection requirements by statically preset the number of redis connection pools. [0003] However, since the number of connection requirements is a dynamic demand quantity in actual use, if the demand quantity is too small, it will easily lead to waste of connection resources. If the demand quantity is too large, the connection demand cannot be met, and the number of connections needs to be increased manually, which increases manual operation and maintenance work. amount, reducing the...

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): G06F9/50
CPCG06F9/5027G06F9/5011G06F2209/5011
Inventor 毛晨斌汪一鸣丁宜人
Owner 新奥新智科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More