Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for dynamically setting connection parameters

A connection parameter and dynamic technology, applied in the Internet field, can solve problems such as poor connection parameter setting, resource waste, and connection pool parameter setting too high

Active Publication Date: 2019-12-03
NEUSOFT CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In related technologies, it is necessary to manually set the parameters of the database connection pool. For example, by manually writing the parameters into a configuration file, the database connection pool loads the configuration file to set the parameters. The parameters of the database connection pool cannot be dynamically adjusted according to the load of the server where the database is located. If the connection pool parameter setting is too high, it will easily cause waste of resources; if the setting is too small, it will affect the number of concurrent accesses, and the setting effect of connection parameters will be poor

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
  • Method and device for dynamically setting connection parameters
  • Method and device for dynamically setting connection parameters
  • Method and device for dynamically setting connection parameters

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate 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 only for explaining the present invention and should not be construed as limiting the present invention. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.

[0045] figure 1 It is a schematic flowchart of a method for dynamically setting connection parameters proposed by an embodiment of the present invention.

[0046] This method is used in the database connection pool.

[0047] In some application scenarios, such as a web application system, the application server generally opens an independent thread for each client (ie, a...

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 present invention proposes a method and device for dynamically setting connection parameters. The method for dynamically setting connection parameters includes obtaining the current connection value of the connection parameter of the database connection pool and the current time point; obtaining at least one time point before the current time point The actual connection value of the upper connection parameter, and calculate the estimated connection value of the connection parameter according to at least one actual connection value; obtain the load index of the server where the database is located at the current point in time; according to the load index, current connection value and estimated connection value to the database The connection parameters of the connection pool are set dynamically. The invention can dynamically set the connection parameters of the database connection pool in combination with the estimated connection value of the connection parameters and the load index, effectively avoiding the overload of the server where the database is located, and improving the setting effect of the connection parameters.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and device for dynamically setting connection parameters. Background technique [0002] In some application scenarios, such as a web application system, the application server generally opens an independent thread for each client (ie, a session, session) access, so as to improve the performance of the application system. At this time, if the database access is established, used, and closed by a single thread, it will seriously block the efficiency of multi-threaded execution, and the establishment of a database access will consume large system resources and time. If the database is frequently established and closed Access will greatly reduce system performance, therefore, the database connection pool came into being. [0003] Generally, when the database connection pool is established, several data connections are initialized and wait for the application program to...

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): H04L29/08
CPCH04L67/02H04L67/141H04L67/1001
Inventor 谢新强
Owner NEUSOFT CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products