CN105488179A - Automatic configuring and connecting method for processing various databases and middleware - Google Patents
Automatic configuring and connecting method for processing various databases and middleware Download PDFInfo
- Publication number
- CN105488179A CN105488179A CN201510862029.5A CN201510862029A CN105488179A CN 105488179 A CN105488179 A CN 105488179A CN 201510862029 A CN201510862029 A CN 201510862029A CN 105488179 A CN105488179 A CN 105488179A
- Authority
- CN
- China
- Prior art keywords
- middleware
- database
- feature
- application environment
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides an automatic configuring and connecting method for processing various databases and middleware. The method comprises the following steps: S1, analyzing the basic information of a target application environment; S2, acquiring characteristics of the databases and the middleware from characteristic libraries; S3, detecting service types of the databases and the middleware according to the characteristics of the databases and the middleware; S4, detecting the service parameter information of the middleware and the databases in the application environment and generating corresponding connection configurations; and S5, realizing the automatic assembly of application environment configurations by utilizing the generated connection configurations. The method provided by the invention has the advantages that the connecting efficiency of the databases and the middleware is increased; the system is high in flexibility and is adapted to the combination of the various databases and the middleware; and the human resource consumption and the misconfiguration risk which are caused by lots of manual configurations are avoided.
Description
Technical field
The present invention relates to cloud computing service platform technology field, particularly, relate to a kind of automatic configuration method of attachment processing multitype database and middleware.
Background technology
Society is in the epoch of internet high speed development, and virtual mode share I T resource becomes mainstream demand, and database and middleware become the important foundation that cloud computing platform provides applied environment to serve.Along with the data structure of enterprise, the continuous change of business demand, database and the middleware services of applied environment also constantly change.Existing database and middleware combine exists following drawback:
1, connect flexibility ratio poor, wide variety, not easily changes;
2, the quite loaded down with trivial details and configuration rule of configuration varies, and needs to spend a lot of time to write configuration file;
3, configuration file needs manually to go to create and dispose.
Therefore, how convenient and building database and middleware efficiently connection, Quick, for service, becomes the important technological problems that a urgent demand and current emergency solve.
Do not find explanation or the report of technology similar to the present invention at present, not yet collect similar data both at home and abroad yet.
Summary of the invention
For above shortcomings in prior art, the object of this invention is to provide a kind of automatic configuration method of attachment processing multitype database and middleware, the method can database and middleware type in automatic detection applied environment, and both connections configuration is applied to this environment, by intended application environment basic analyzing method, signature analysis and matching process, configuration extraction and assembly method, realize the middleware services type in automatic detection applied environment thus determine corresponding data base configuration file position; Database service type in automatic detection applied environment, matched rule, parameter, and revise above-mentioned data base configuration file; The automatic assembling of applied environment configuration.
For achieving the above object, the present invention is achieved by the following technical solutions.
Process an automatic configuration method of attachment for multitype database and middleware, comprise the steps:
Step S1: intended application environment essential information is analyzed;
Step S2: obtain database feature and middleware feature from feature database;
Step S3: according to database feature and middleware feature detection database service type and middleware services type;
Step S4: the middleware service parameter information in detection application environment and database service parameter information, and generate corresponding connection configuration;
Step S5: utilize the connection configuration generated to realize the automatic assembling of applied environment configuration.
Preferably, described step S1 comprises the steps:
Step S1.1: the essential information extracting intended application environment, described essential information comprises following any one or appoints multinomial:
The IP address of-intended application environment;
The OS Type of-intended application environment;
The operating system version of-intended application environment;
The system user name of-intended application environment;
The sshkey of-intended application environment;
Step 1.2: determine to act on behalf of version according to the essential information of intended application environment, and assembling agency is to appointing system.
Preferably, described appointing system specifically refers to: the Service Instance of intended application environment.
Preferably, in step S2, described server feature and middleware feature include following any one or appoint multinomial:
-tag file;
-feature services port;
-feature user.
Preferably, described step S2 comprises the following steps:
Step S2.1: extract corresponding database feature and middleware feature respectively from database feature storehouse and middleware feature database;
Described step S3 comprises the following steps:
Step S3.1: be analyzed with service current data according to database feature and middleware feature;
Step S3.2: the coupling and the confirmation that complete database service type and middleware services type.
Preferably, the coupling of described database service type and middleware services type and confirmation comprise:
Service of determining is for database service or middleware services and concrete COS.
Preferably, concrete COS (COS of database service or middleware services) is MySQL or Tomcat.
Preferably, described step S4 comprises the following steps:
Step S4.1: the corresponding plug-in unit obtaining middleware and database from plugin library;
Step S4.2: the extraction algorithm of the corresponding plug-in unit of the middleware obtained according to step S4.1 and database extracts the configuration information of corresponding with service respectively; Described configuration information comprises following any one or appoints multinomial:
The connection string of-database;
The data base configuration file position of-middleware;
Step S4.3: the configuration rule generating configuration file of the configuration information obtained according to step S4.2 and corresponding with service.
Preferably, described step S5 comprises the following steps:
Step S5.1: use agency by profileapplied to targeted environment;
Step S5.2: restart middleware services.
Compared with prior art, the present invention has following beneficial effect:
1, improve database and middleware joint efficiency;
2, system flexibility is high, adapts to the combination of various database, middleware;
3, human resources consumption and error configurations risk that a large amount of human configuration brings is avoided.
Accompanying drawing explanation
By reading the detailed description done non-limiting example with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:
Fig. 1 is the Method And Principle figure that the automatic configuration of process multitype database and middleware connects;
Fig. 2 is the inventive method process flow diagram.
Embodiment
Below embodiments of the invention are elaborated: the present embodiment is implemented under premised on technical solution of the present invention, give detailed embodiment and concrete operating process.It should be pointed out that to those skilled in the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.
Present embodiments provide a kind of automatic configuration method of attachment processing multitype database and middleware, the method comprises the following steps:
Step S1: intended application environment essential information is analyzed;
Step S2: the feature obtaining database, middleware from feature database, as tag file, feature services port, feature user etc.;
Step S3: according to the feature detection database of database, middleware, the COS of middleware;
Step S4: the middleware in detection application environment, the service parameter information of database, and generate corresponding connection configuration;
Step S5: utilize the automatic assembling connecting and configured applied environment configuration.
Wherein, step S1 comprises the steps:
Step S1.1: the essential information such as IP address, OS Type, operating system version, system user name, sshkey extracting intended application environment;
Step S1.2: determine to act on behalf of version according to essential information and assemble agency to appointing system.
Wherein, described step S2 comprises the following steps:
Step S2.1: extract individual features from the feature database of database, middleware;
Described step S3 comprises the following steps:
Step S3.1: be analyzed according to individual features and service current data;
Step S3.2: COS coupling and the confirmation of carrying out database, middleware, as determined, service is for M
ysQL database service or Tomcat middleware services.
Wherein, step S4 comprises the following steps:
Step S4.1: the corresponding plug-in unit obtaining middleware and database from plugin library;
Step S4.2: the configuration information extracting corresponding with service according to the extraction algorithm of above-mentioned plug-in unit respectively, as the connection string of database, the data base configuration file position etc. of middleware;
Step S4.3: according to the configuration rule generating configuration file of above configuration information and corresponding with service.
Wherein, step S5 comprises the following steps:
Step S5.1: use agency by profileapplied to targeted environment;
Step S5.2: restart middleware services.
The automatic configuration method of attachment of the process multitype database that the present embodiment provides and middleware, can database and middleware type in automatic detection applied environment, and both connections configuration is applied to this environment, by intended application environment basic analyzing method, signature analysis and matching process, configuration extraction and assembly method, realize the middleware services type in automatic detection applied environment thus determine corresponding data base configuration file position; Database service type in automatic detection applied environment, matched rule, parameter, and revise above-mentioned data base configuration file; The automatic assembling of applied environment configuration.
The automatic configuration method of attachment of the process multitype database that the present embodiment provides and middleware, improves database and middleware joint efficiency; System flexibility is high, adapts to the combination of various database, middleware; Avoid human resources consumption and error configurations risk that a large amount of human configuration brings.
Above specific embodiments of the invention are described.It is to be appreciated that the present invention is not limited to above-mentioned particular implementation, those skilled in the art can make various distortion or amendment within the scope of the claims, and this does not affect flesh and blood of the present invention.
Claims (8)
1. process an automatic configuration method of attachment for multitype database and middleware, it is characterized in that, comprise the steps:
Step S1: intended application environment essential information is analyzed;
Step S2: obtain database feature and middleware feature from feature database;
Step S3: according to database feature and middleware feature detection database service type and middleware services type;
Step S4: the middleware service parameter information in detection application environment and database service parameter information, and generate corresponding connection configuration;
Step S5: utilize the connection configuration generated to realize the automatic assembling of applied environment configuration.
2. the automatic configuration method of attachment of process multitype database according to claim 1 and middleware, it is characterized in that, described step S1 comprises the steps:
Step S1.1: the essential information extracting intended application environment, described essential information comprises following any one or appoints multinomial:
The IP address of-intended application environment;
The OS Type of-intended application environment;
The operating system version of-intended application environment;
The system user name of-intended application environment;
The sshkey of-intended application environment;
Step 1.2: determine to act on behalf of version according to the essential information of intended application environment, and assembling agency is to the Service Instance of intended application environment.
3. the automatic configuration method of attachment of process multitype database according to claim 1 and middleware, is characterized in that, in step S2, described server feature and middleware feature include following any one or appoint multinomial:
-tag file;
-feature services port;
-feature user.
4. the automatic configuration method of attachment of the process multitype database according to claim 1 or 3 and middleware, it is characterized in that, described step S2 comprises the following steps:
Step S2.1: extract corresponding database feature and middleware feature respectively from database feature storehouse and middleware feature database;
Described step S3 comprises the following steps:
Step S3.1: be analyzed with service current data according to database feature and middleware feature;
Step S3.2: the coupling and the confirmation that complete database service type and middleware services type.
5. the automatic configuration method of attachment of process multitype database according to claim 4 and middleware, is characterized in that, coupling and the confirmation of described database service type and middleware services type comprise:
Determine the COS of serving as database service or middleware services and database service or middleware services.
6. the automatic configuration method of attachment of process multitype database according to claim 5 and middleware, is characterized in that, the COS of described database service or middleware services is: MySQL or Tomcat.
7. the automatic configuration method of attachment of process multitype database according to claim 1 and middleware, it is characterized in that, described step S4 comprises the following steps:
Step S4.1: the corresponding plug-in unit obtaining middleware and database from plugin library;
Step S4.2: the extraction algorithm of the corresponding plug-in unit of the middleware obtained according to step S4.1 and database extracts the configuration information of corresponding with service respectively; Described configuration information comprises following any one or appoints multinomial:
The connection string of-database;
The data base configuration file position of-middleware;
Step S4.3: the configuration rule generating configuration file of the configuration information obtained according to step S4.2 and corresponding with service.
8. the automatic configuration method of attachment of process multitype database according to claim 1 and middleware, it is characterized in that, described step S5 comprises the following steps:
Step S5.1: use agency by profileapplied to targeted environment;
Step S5.2: restart middleware services.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510862029.5A CN105488179A (en) | 2015-11-30 | 2015-11-30 | Automatic configuring and connecting method for processing various databases and middleware |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510862029.5A CN105488179A (en) | 2015-11-30 | 2015-11-30 | Automatic configuring and connecting method for processing various databases and middleware |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105488179A true CN105488179A (en) | 2016-04-13 |
Family
ID=55675153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510862029.5A Pending CN105488179A (en) | 2015-11-30 | 2015-11-30 | Automatic configuring and connecting method for processing various databases and middleware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105488179A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107656814A (en) * | 2017-09-30 | 2018-02-02 | 郑州云海信息技术有限公司 | A kind of middleware services implementation method and device |
WO2018103356A1 (en) * | 2016-12-06 | 2018-06-14 | 华为技术有限公司 | Database service providing method and server |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729373A (en) * | 2012-10-15 | 2014-04-16 | 北京新媒传信科技有限公司 | Database agency method and device |
CN105100267A (en) * | 2015-08-24 | 2015-11-25 | 用友网络科技股份有限公司 | Deployment apparatus and deployment method for large enterprise private cloud |
-
2015
- 2015-11-30 CN CN201510862029.5A patent/CN105488179A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729373A (en) * | 2012-10-15 | 2014-04-16 | 北京新媒传信科技有限公司 | Database agency method and device |
CN105100267A (en) * | 2015-08-24 | 2015-11-25 | 用友网络科技股份有限公司 | Deployment apparatus and deployment method for large enterprise private cloud |
Non-Patent Citations (1)
Title |
---|
LOOKING_GLASS: "如何实现数据库自动发现(只知道ip和端口的情况,只要找到是什么类型的数据库就可以)", 《HTTPS://BBS.CSDN.NET/TOPICS/370157428》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018103356A1 (en) * | 2016-12-06 | 2018-06-14 | 华为技术有限公司 | Database service providing method and server |
CN107656814A (en) * | 2017-09-30 | 2018-02-02 | 郑州云海信息技术有限公司 | A kind of middleware services implementation method and device |
CN107656814B (en) * | 2017-09-30 | 2021-10-01 | 郑州云海信息技术有限公司 | Middleware service implementation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102317535B1 (en) | Methods and systems for implementing data tracking with software development kits | |
US10372597B2 (en) | Software testing and verification | |
WO2017140227A1 (en) | Method and system for realizing mobile device data tracking using software development kit | |
US9715545B2 (en) | Continuous collection of web API ecosystem data | |
US20150277883A1 (en) | Extensions for deployment patterns | |
CN113051446A (en) | Topological relation query method, device, electronic equipment and medium | |
US10057331B2 (en) | Automatic abstraction of flow of control in a distributed virtualization platform | |
CN114116065B (en) | Method and device for acquiring topological graph data object and electronic equipment | |
CN104503751B (en) | Data source switch method based on SOA and the data source switching system based on SOA | |
WO2022127196A1 (en) | Application identification method and apparatus, and device and storage medium | |
CN110689268A (en) | Method and device for extracting indexes | |
CN111966346B (en) | Taint analysis method and device of application system | |
CN103064953B (en) | Position-based is registered the POI update method of data | |
CN104010045B (en) | The method that mobile node based on cloud platform performs task | |
CN105488179A (en) | Automatic configuring and connecting method for processing various databases and middleware | |
CN113271307B (en) | Data assembling method, device, computer system and storage medium | |
US20150363466A1 (en) | Dynamic query optimization with pilot runs | |
CN113641742A (en) | Data extraction method, device, equipment and storage medium | |
CN116185393A (en) | Method, device, equipment, medium and product for generating interface document | |
CN113515271B (en) | Service code generation method and device, electronic equipment and readable storage medium | |
CN110659540A (en) | Traffic light detection method and device | |
CN114357967A (en) | Bill file parsing method and device | |
CN103514123B (en) | The recognition methods of a kind of USB equipment connection port and system | |
CN114860566A (en) | Source code testing method and device, electronic equipment and storage medium | |
CN205080604U (en) | System is ordered by oneself to travel information based on cloud calculates |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160413 |
|
RJ01 | Rejection of invention patent application after publication |