Dynamic setting method and device for connection parameters

A connection parameter and dynamic technology, applied in the Internet field, can solve problems such as adjusting database connection pool parameters, poor connection parameter setting effect, and connection pool parameter setting too high

Active Publication Date: 2017-01-04
NEUSOFT CORP
View PDF4 Cites 5 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
  • Dynamic setting method and device for connection parameters
  • Dynamic setting method and device for connection parameters
  • Dynamic setting method and device for 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 falling 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, for example, for a web application system, the application server generally opens an independent thread for each cli...

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 proposes a dynamic setting method and device for connection parameters, and the method comprises the steps: obtaining a current connection value of a connection parameter of a database connection pool and the current time point; obtaining the actual connection value of connection parameter at at least one time point before the current time point, and calculating the estimated connection value of the connection parameter according to at least one actual connection value; obtaining the load index of a server where a database is located at the current time point; and carrying out the dynamic setting of the connection parameter of the database connection pool according to the load index, the current connection value and the estimated connection value. According to the invention, the method can achieve a purpose of dynamically setting the connection parameter of the database connection pool through combining the estimated connection value of the connection parameter and the load index, effectively prevents the overloading condition of the server where the database is located, and improves 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 Applications(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products