CN107315803A - A kind of automatic building method of data-base cluster and system - Google Patents
A kind of automatic building method of data-base cluster and system Download PDFInfo
- Publication number
- CN107315803A CN107315803A CN201710491047.6A CN201710491047A CN107315803A CN 107315803 A CN107315803 A CN 107315803A CN 201710491047 A CN201710491047 A CN 201710491047A CN 107315803 A CN107315803 A CN 107315803A
- Authority
- CN
- China
- Prior art keywords
- operating system
- module
- database
- cluster
- building
- 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 OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了一种数据库集群自动搭建方法和系统,该方法包括:获取搭建数据库集群的操作系统连接参数和资源参数;根据连接参数以及资源参数生成对应的操作指令集;通过操作指令集控制目标K‑UX操作系统执行系统环境设置、数据库安装、集群搭建;获取目标K‑UX操作系统的执行结果,并实时显示执行结果。根据连接参数和资源参数,自动生成对应的数据库集群安装操作指令集,从而在K‑UX操作系统中实现数据库集群的自动环境自动搭建和安装,并实时将执行结果进行显示,直至安装完毕,大大降低了在K‑UX操作系统上搭建并检测数据库所需要的时间,提升了数据库集群环境搭建和检测的效率。
The invention discloses a method and system for automatically building a database cluster. The method includes: acquiring connection parameters and resource parameters of an operating system for building a database cluster; generating a corresponding operation instruction set according to the connection parameters and resource parameters; controlling the target through the operation instruction set The K‑UX operating system performs system environment settings, database installation, and cluster construction; obtains the execution results of the target K‑UX operating system and displays the execution results in real time. According to the connection parameters and resource parameters, the corresponding database cluster installation operation instruction set is automatically generated, so that the automatic environment of the database cluster can be automatically set up and installed in the K-UX operating system, and the execution results will be displayed in real time until the installation is completed, greatly greatly It reduces the time required to build and test the database on the K‑UX operating system, and improves the efficiency of building and testing the database cluster environment.
Description
技术领域technical field
本发明涉及信息技术领域,特别是涉及一种数据库集群自动搭建方法和系统。The invention relates to the field of information technology, in particular to a method and system for automatically building a database cluster.
背景技术Background technique
随着信息技术的发展,人们的生活和工作已经和信息技术密不可分,信息技术成为人们工作中不可或缺的一部分。With the development of information technology, people's life and work have been inseparable from information technology, and information technology has become an indispensable part of people's work.
K-UX操作系统时我国首款并且也是目前唯一通过Unix03认证的主机操作系统,K-UX操作系统具有广泛的兼容性,其中包含Oracle10g数据库,目前,Oracle 10g数据库集群只能通过手动的方式部署在K-UX2.1操作系统上。The K-UX operating system is my country's first and currently the only host operating system certified by Unix03. The K-UX operating system has extensive compatibility, including the Oracle10g database. Currently, the Oracle 10g database cluster can only be deployed manually On the K-UX2.1 operating system.
大型数据库系统时关键业务系统的支撑软件,正因为大型数据库系统的复杂性和重要性,大型数据库产品需要长期的技术积累和巨额的研发投入。Oracle数据库系统是目前世界上最流行的关系数据库管理系统之一,其可移植性好、使用方便、功能强,适用于各类大、中、小、微机环境,是一种高效率、可靠性好的适应高吞吐量的数据库解决方案。Oracle 10g数据库集群环境搭建与检测是一项比较复杂、重复的工作。Large-scale database systems are the supporting software for key business systems. Because of the complexity and importance of large-scale database systems, large-scale database products require long-term technical accumulation and huge R&D investment. Oracle database system is currently one of the most popular relational database management systems in the world. It has good portability, convenient use, and strong functions. It is suitable for various large, medium, small, and microcomputer environments. It is a high-efficiency, reliable Well suited for high throughput database solutions. Setting up and testing the Oracle 10g database cluster environment is a complex and repetitive task.
因此,如何提升数据库集群环境搭建和检测的效率,是本领域技术人员目前需要解决的技术问题。Therefore, how to improve the efficiency of building and detecting the database cluster environment is a technical problem that those skilled in the art need to solve.
发明内容Contents of the invention
本发明的目的是提供一种数据库集群自动搭建方法和系统,可以提升数据库集群环境搭建和检测的效率。The purpose of the present invention is to provide a method and system for automatically building a database cluster, which can improve the efficiency of building and detecting a database cluster environment.
为解决上述技术问题,本发明提供了如下技术方案:In order to solve the problems of the technologies described above, the present invention provides the following technical solutions:
一种数据库集群自动搭建方法,包括:A method for automatically building a database cluster, comprising:
获取搭建数据库集群的操作系统连接参数和资源参数;Obtain the operating system connection parameters and resource parameters for building a database cluster;
根据所述连接参数以及所述资源参数生成对应的操作指令集;generating a corresponding operation instruction set according to the connection parameters and the resource parameters;
通过所述操作指令集控制目标K-UX操作系统执行系统环境设置、数据库安装、集群搭建;Control the target K-UX operating system by the operation instruction set to execute system environment setting, database installation, and cluster construction;
获取所述目标K-UX操作系统的执行结果,并实时显示所述执行结果。The execution result of the target K-UX operating system is obtained, and the execution result is displayed in real time.
优选地,所述获取搭建数据库集群的操作系统连接参数和资源参数,包括:Preferably, said obtaining operating system connection parameters and resource parameters for building a database cluster includes:
获取搭建数据库集群的操作系统连接协议、连接主机数量、主机IP、端口号、重新连接间隔;Obtain the operating system connection protocol for building a database cluster, the number of connected hosts, host IP, port number, and reconnection interval;
获取介质、集群软件、驱动包、检验脚本资源传送模式和存放位置。Obtain media, cluster software, driver packages, test script resource transfer mode and storage location.
优选地,所述根据所述连接参数以及所述资源参数生成对应的操作指令集,包括:Preferably, the generating a corresponding operation instruction set according to the connection parameters and the resource parameters includes:
根据所述连接参数以及所述资源参数生成对应的系统环境变量设置指令、数据库集群安装指令和数据库检测指令。Generate corresponding system environment variable setting instructions, database cluster installation instructions and database detection instructions according to the connection parameters and the resource parameters.
优选地,还包括:Preferably, it also includes:
获取所述目标K-UX操作系统的执行异常信息;Obtain the execution exception information of the target K-UX operating system;
根据所述异常信息调取对应的异常处理策略,生成相应的异常处理命令;Invoking a corresponding exception handling strategy according to the exception information, and generating a corresponding exception handling command;
根据所述异常处理命令控制所述目标K-UX操作系统执行回退动作或所述异常处理命令。Controlling the target K-UX operating system to execute a rollback action or the exception handling command according to the exception handling command.
一种数据库集群自动搭建系统,包括:A system for automatically building a database cluster, comprising:
参数管理模块,用于获取搭建数据库集群的操作系统连接参数和资源参数;The parameter management module is used to obtain the operating system connection parameters and resource parameters for building the database cluster;
作业调度模块,用于根据所述连接参数以及所述资源参数生成对应的操作指令集;A job scheduling module, configured to generate a corresponding operation instruction set according to the connection parameters and the resource parameters;
K-UX操作系统模块,用于根据所述操作指令集执行系统环境设置、数据库安装、集群搭建;The K-UX operating system module is used to perform system environment setting, database installation, and cluster construction according to the operation instruction set;
控制台模块,用于获取所述目标K-UX操作系统的执行结果,并实时显示所述执行结果。The console module is used to obtain the execution result of the target K-UX operating system and display the execution result in real time.
优选地,还包括:Preferably, it also includes:
监控模块,用于监控所述K-UX操作系统模块执行系统环境设置、数据库安装、集群搭建过程中的系统状态和执行结果,并将监控结果发送至所述控制台模块和异常处理模块;Monitoring module, for monitoring the K-UX operating system module execution system environment setting, database installation, system status and execution results in the cluster building process, and sending the monitoring results to the console module and exception handling module;
异常处理模块,用于接收所述监控模块发送至的监控结果,分析处理所述监控结果中的异常信息,并生成相应的异常处理策略发送至所述作业调度模块以供所述作业调度模块生成对应的异常处理命令;An exception handling module, configured to receive the monitoring result sent by the monitoring module, analyze and process the abnormal information in the monitoring result, and generate a corresponding exception handling strategy and send it to the job scheduling module for the job scheduling module to generate The corresponding exception handling command;
其中,所述K-UX操作系统模块还用于根据所述异常处理命令执行回退动作或所述异常处理命令。Wherein, the K-UX operating system module is further configured to execute a rollback action or the exception handling command according to the exception handling command.
优选地,还包括:Preferably, it also includes:
数据库监控模块,用于监控数据库的运行信息,同时将该监控的数据库的运行信息发送至所述控制台模块进行显示。The database monitoring module is used to monitor the operation information of the database, and at the same time, send the monitored operation information of the database to the console module for display.
优选地,还包括:Preferably, it also includes:
数据库验证模块,用于数据库安装的验证以及对应的数据库集群的验证,同时将各验证信息发送至所述控制台模块进行展示。The database verification module is used to verify the database installation and the corresponding database cluster, and at the same time, send each verification information to the console module for display.
优选地,还包括:操作系统SSH协议接口模块,其中,所述参数管理模块、作业调度模块、监控模块、异常处理模块、数据库监控模块和数据库验证模块均通过所述操作系统SSH协议接口模块和所述K-UX操作系统模块连接。Preferably, it also includes: an operating system SSH protocol interface module, wherein the parameter management module, job scheduling module, monitoring module, exception handling module, database monitoring module and database verification module all pass the operating system SSH protocol interface module and The K-UX operating system module is connected.
优选地,所述K-UX操作系统模块包括:第一K-UX操作系统单元和第二K-UX操作系统单元,所述第一K-UX操作系统单元和第二K-UX操作系统单元连接,且分别与所述操作系统SSH协议接口模块连接。Preferably, the K-UX operating system module includes: a first K-UX operating system unit and a second K-UX operating system unit, and the first K-UX operating system unit and the second K-UX operating system unit connected, and respectively connected to the SSH protocol interface module of the operating system.
与现有技术相比,上述技术方案具有以下优点:Compared with the prior art, the above-mentioned technical solution has the following advantages:
本发明所提供的一种数据库集群自动搭建方法,包括:获取搭建数据库集群的操作系统连接参数和资源参数;根据连接参数以及资源参数生成对应的操作指令集;通过操作指令集控制目标K-UX操作系统执行系统环境设置、数据库安装、集群搭建;获取目标K-UX操作系统的执行结果,并实时显示执行结果。获取搭建数据库集群的操作系统连接参数和资源参数后,自动生成对应的数据库集群安装操作指令集,从而在K-UX操作系统中实现数据库集群的自动环境自动搭建和安装,并实时将执行结果进行显示,直至安装完毕,大大降低了在K-UX操作系统上搭建并检测数据库所需要的时间,提升了数据库集群环境搭建和检测的效率。A method for automatically building a database cluster provided by the present invention includes: obtaining the operating system connection parameters and resource parameters for building a database cluster; generating a corresponding operation instruction set according to the connection parameters and resource parameters; controlling the target K-UX through the operation instruction set The operating system performs system environment settings, database installation, and cluster construction; obtains the execution results of the target K-UX operating system, and displays the execution results in real time. After obtaining the operating system connection parameters and resource parameters for building the database cluster, the corresponding database cluster installation operation instruction set is automatically generated, so that the automatic environment of the database cluster can be automatically built and installed in the K-UX operating system, and the execution results are processed in real time. It shows that until the installation is completed, the time required for building and testing the database on the K-UX operating system is greatly reduced, and the efficiency of building and testing the database cluster environment is improved.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明一种具体实施方式所提供的数据库集群自动搭建方法流程图;Fig. 1 is a flowchart of a method for automatically building a database cluster provided by a specific embodiment of the present invention;
图2为本发明一种具体实施方式所提供的数据库集群自动搭建系统结构示意图。FIG. 2 is a schematic structural diagram of a system for automatically building a database cluster provided by a specific embodiment of the present invention.
具体实施方式detailed description
本发明的核心是提供一种数据库集群自动搭建方法和系统,可以提升数据库集群环境搭建和检测的效率。The core of the present invention is to provide a method and system for automatically building a database cluster, which can improve the efficiency of building and detecting a database cluster environment.
为了使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施方式做详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the specific implementation manners of the present invention will be described in detail below in conjunction with the accompanying drawings.
在以下描述中阐述了具体细节以便于充分理解本发明。但是本发明能够以多种不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本发明内涵的情况下做类似推广。因此本发明不受下面公开的具体实施的限制。In the following description, specific details are set forth in order to provide a thorough understanding of the present invention. However, the present invention can be implemented in many other ways than those described here, and those skilled in the art can make similar extensions without departing from the connotation of the present invention. Accordingly, the invention is not limited to the specific implementations disclosed below.
请参考图1,图1为本发明一种具体实施方式所提供的数据库集群自动搭建方法流程图。Please refer to FIG. 1 , which is a flowchart of a method for automatically building a database cluster provided by a specific embodiment of the present invention.
本发明的一种具体实施方式提供了一种数据库集群自动搭建方法,包括:A specific embodiment of the present invention provides a method for automatically building a database cluster, including:
S11:获取搭建数据库集群的操作系统连接参数和资源参数。S11: Obtain the operating system connection parameters and resource parameters for building the database cluster.
在本实施方式中,优选获取搭建数据库集群的操作系统连接参数和资源参数,包括:获取搭建数据库集群的操作系统连接协议、连接主机数量、主机IP、端口号、重新连接间隔;获取介质、集群软件、驱动包、检验脚本资源传送模式和存放位置。即在本实施方式中优选安装数据库集群。In this embodiment, it is preferable to obtain the operating system connection parameters and resource parameters for building a database cluster, including: obtaining the operating system connection protocol for building a database cluster, the number of connected hosts, host IP, port number, and reconnection interval; Software, driver package, test script resource transfer mode and storage location. That is, in this embodiment, it is preferable to install a database cluster.
S12:根据连接参数以及资源参数生成对应的操作指令集。S12: Generate a corresponding operation instruction set according to the connection parameters and the resource parameters.
优选根据连接参数以及资源参数生成对应的操作指令集,包括:根据连接参数以及资源参数生成对应的系统环境变量设置指令、数据库集群安装指令和数据库检测指令。Preferably, the corresponding operation instruction set is generated according to the connection parameters and resource parameters, including: generating corresponding system environment variable setting instructions, database cluster installation instructions and database detection instructions according to the connection parameters and resource parameters.
S13:通过操作指令集控制目标K-UX操作系统执行系统环境设置、数据库安装、集群搭建;S13: Control the target K-UX operating system through the operation instruction set to perform system environment setting, database installation, and cluster construction;
S14:获取目标K-UX操作系统的执行结果,并实时显示执行结果。S14: Obtain the execution result of the target K-UX operating system, and display the execution result in real time.
获取搭建数据库集群的操作系统连接参数和资源参数后,自动生成对应的数据库集群安装操作指令集,从而在K-UX操作系统中实现数据库集群的自动环境自动搭建和安装,并实时将执行结果进行显示,直至安装完毕,大大降低了在K-UX操作系统上搭建并检测数据库所需要的时间,提升了数据库集群环境搭建和检测的效率。After obtaining the operating system connection parameters and resource parameters for building the database cluster, the corresponding database cluster installation operation instruction set is automatically generated, so that the automatic environment of the database cluster can be automatically built and installed in the K-UX operating system, and the execution results are processed in real time. It shows that until the installation is completed, the time required for building and testing the database on the K-UX operating system is greatly reduced, and the efficiency of building and testing the database cluster environment is improved.
进一步地,该方法还包括:获取目标K-UX操作系统的执行异常信息;根据异常信息调取对应的异常处理策略,生成相应的异常处理命令;根据异常处理命令控制目标K-UX操作系统执行回退动作或异常处理命令。Further, the method also includes: obtaining execution exception information of the target K-UX operating system; calling a corresponding exception handling strategy according to the exception information, and generating a corresponding exception handling command; controlling the execution of the target K-UX operating system according to the exception handling command A fallback action or exception handling command.
实时监控操作系统的资源和环境搭建等信息,一旦出现问题,及时进行回退或者异常处理操作,直至完成数据库集群的搭建和检测工作。可以直观快速地在K-UX操作系统上完成数据库集群的搭建和检测。Real-time monitoring of information such as resources and environment construction of the operating system, once a problem occurs, timely rollback or exception handling operations are performed until the construction and detection of the database cluster is completed. It can intuitively and quickly complete the construction and detection of database clusters on the K-UX operating system.
请参考图2,图2为本发明一种具体实施方式所提供的数据库集群自动搭建系统结构示意图。Please refer to FIG. 2 . FIG. 2 is a schematic structural diagram of an automatic database cluster building system provided by a specific embodiment of the present invention.
相应地,本发明一种实施方式还提供了一种数据库集群自动搭建系统,包括:参数管理模块21,用于获取搭建数据库集群的操作系统连接参数和资源参数;作业调度模块22,用于根据连接参数以及资源参数生成对应的操作指令集;K-UX操作系统模块23,用于根据操作指令集执行系统环境设置、数据库安装、集群搭建;控制台模块24,用于获取目标K-UX操作系统的执行结果,并实时显示执行结果。Correspondingly, an embodiment of the present invention also provides a system for automatically building a database cluster, including: a parameter management module 21, configured to acquire operating system connection parameters and resource parameters for building a database cluster; a job scheduling module 22, configured to Connection parameters and resource parameters generate corresponding operation instruction sets; K-UX operating system module 23 is used to perform system environment setting, database installation, and cluster construction according to the operation instruction set; console module 24 is used to obtain target K-UX operations The execution result of the system is displayed in real time.
获取搭建数据库集群的操作系统连接参数和资源参数后,自动生成对应的数据库集群安装操作指令集,从而在K-UX操作系统中实现数据库集群的自动环境自动搭建和安装,并实时将执行结果进行显示,直至安装完毕,大大降低了在K-UX操作系统上搭建并检测数据库所需要的时间,提升了数据库集群环境搭建和检测的效率。After obtaining the operating system connection parameters and resource parameters for building the database cluster, the corresponding database cluster installation operation instruction set is automatically generated, so that the automatic environment of the database cluster can be automatically built and installed in the K-UX operating system, and the execution results are processed in real time. It shows that until the installation is completed, the time required for building and testing the database on the K-UX operating system is greatly reduced, and the efficiency of building and testing the database cluster environment is improved.
进一步地,该系统还包括:监控模块25,用于监控K-UX操作系统模块执行系统环境设置、数据库安装、集群搭建过程中的系统状态和执行结果,并将监控结果发送至控制台模块24和异常处理模块26;异常处理模块26,用于接收监控模块25发送至的监控结果,分析处理监控结果中的异常信息,并生成相应的异常处理策略发送至作业调度模块以供作业调度模块生成对应的异常处理命令;其中,K-UX操作系统模块23还用于根据异常处理命令执行回退动作或异常处理命令。数据库监控模块27,用于监控数据库的运行信息,同时将该监控的数据库的运行信息发送至控制台模块24进行显示。数据库验证模块28,用于数据库安装的验证以及对应的数据库集群的验证,同时将各验证信息发送至控制台模块进行展示。操作系统SSH协议接口模块29,其中,参数管理模块21、作业调度模块22、监控模块25、异常处理模块26、数据库监控模块27和数据库验证模块28均通过操作系统SSH协议接口模块29和K-UX操作系统模块23连接。Further, the system also includes: a monitoring module 25, which is used to monitor the K-UX operating system module execution system environment settings, database installation, system status and execution results in the cluster construction process, and send the monitoring results to the console module 24 And exception processing module 26; Abnormal processing module 26 is used to receive the monitoring result sent to by monitoring module 25, analyze and process the abnormal information in the monitoring result, and generate a corresponding abnormal processing strategy and send it to the job scheduling module for the job scheduling module to generate Corresponding exception handling command; wherein, the K-UX operating system module 23 is also used to execute a rollback action or an exception handling command according to the exception handling command. The database monitoring module 27 is used to monitor the operation information of the database, and at the same time, send the monitored operation information of the database to the console module 24 for display. The database verification module 28 is used for verifying the installation of the database and the verification of the corresponding database cluster, and at the same time sending each verification information to the console module for display. Operating system SSH protocol interface module 29, wherein, parameter management module 21, job scheduling module 22, monitoring module 25, exception handling module 26, database monitoring module 27 and database verification module 28 all pass operating system SSH protocol interface module 29 and K- The UX operating system module 23 is connected.
K-UX操作系统模块23包括:第一K-UX操作系统单元231和第二K-UX操作系统单元232,第一K-UX操作系统单元231和第二K-UX操作系统单元232连接,且分别与操作系统SSH协议接口模块29连接。K-UX operating system module 23 comprises: the first K-UX operating system unit 231 and the second K-UX operating system unit 232, the first K-UX operating system unit 231 and the second K-UX operating system unit 232 are connected, And are respectively connected with the operating system SSH protocol interface module 29.
操作系统SSH协议接口模块的设置,使得整个系统通过SSH协议分别与两节点的K-UX操作系统模块连接,并通过参数管理模块对各参数相关配置完成后,作业调试模块向K-UX操作系统模块发送操作指令,这些操作指令是执行Oracle 10g等数据库集群环境搭建和检测的SHELL命令集,以Oracle 10g等数据库集群的搭建为例进行说明:The setting of the operating system SSH protocol interface module enables the entire system to be connected to the K-UX operating system modules of the two nodes through the SSH protocol, and after the relevant configuration of each parameter is completed through the parameter management The module sends operation instructions. These operation instructions are a set of SHELL commands to execute the construction and detection of database cluster environments such as Oracle 10g. Take the establishment of database clusters such as Oracle 10g as an example to illustrate:
首先将Oracle 10g数据库安装包、Oracle 10g集群软件、驱动包、检验脚本通过二进制模式传送到K-UX操作系统模块上,然后执行系统环境设置、数据库安装、集群搭建、数据库检测工作。在整个数据库集群的搭建和检测过程中,该搭建系统始终监控系统资源、环境搭建、各模块运行状态等信息,一旦出现问题,作业调度模块将对问题进行处理,及时进行操作回退或者异常处理,直到最终完成Oracle 10g数据库集群的搭建和检测工作,控制台模块可以直观、快速的与K-UX操作系统模块进行配置连接,同时查看监控模块监测的各项信息。Firstly, the Oracle 10g database installation package, Oracle 10g cluster software, driver package, and inspection script are transmitted to the K-UX operating system module through binary mode, and then the system environment setting, database installation, cluster construction, and database testing are performed. During the construction and detection process of the entire database cluster, the construction system always monitors information such as system resources, environment construction, and the operating status of each module. Once a problem occurs, the job scheduling module will handle the problem and perform operation rollback or exception handling in a timely manner , until the final completion of the construction and detection of the Oracle 10g database cluster, the console module can be intuitively and quickly configured and connected to the K-UX operating system module, and at the same time view various information monitored by the monitoring module.
具体地,操作系统SSH协议接口模块的第一通信端口与第一K-UX操作系统单元的指令接口相连,操作系统SSH协议接口模块的第二通信端口与第二K-UX操作系统单元的指令接口相连,操作系统SSH协议接口模块第三通信端口与作业调度模块的第一通信端口相连,操作系统SSH协议接口模块的第四通信端口与异常处理模块的第三通信端口相连,操作系统SSH协议接口模块的第五通信端口与监控模块的第二通信端口相连,操作系统SSH协议接口模块的第六通信端口与数据库验证模块的第一通信端口相连,操作系统SSH协议接口模块的第七通信端口与数据库监控模块的第一通信端口相连。参数管理模块的第一通信端口与作业调度模块的第二通信端口相连,参数管理模块的第二通信端口与控制台模块的第五通信端口相连。作业调度模块的第三通信端口与异常处理模块的第一通信端口相连。监控模块的第一通信端口与异常处理模块的第四通信端口相连,监控模块的第三通信端口与控制台模块的第三通信端口相连。异常处理模块的第二通信端口与控制台模块的第四通信端口相连。数据库监控模块的第二通信端口与控制台模块的第一通信端口相连。数据库验证模块的第一通信端口与控制台模块的第二通信端口相连。Specifically, the first communication port of the operating system SSH protocol interface module is connected with the instruction interface of the first K-UX operating system unit, and the second communication port of the operating system SSH protocol interface module is connected with the instruction interface of the second K-UX operating system unit. The interfaces are connected, the third communication port of the operating system SSH protocol interface module is connected to the first communication port of the job scheduling module, the fourth communication port of the operating system SSH protocol interface module is connected to the third communication port of the exception handling module, and the operating system SSH protocol The fifth communication port of the interface module is connected with the second communication port of the monitoring module, the sixth communication port of the operating system SSH protocol interface module is connected with the first communication port of the database verification module, and the seventh communication port of the operating system SSH protocol interface module It is connected with the first communication port of the database monitoring module. The first communication port of the parameter management module is connected to the second communication port of the job scheduling module, and the second communication port of the parameter management module is connected to the fifth communication port of the console module. The third communication port of the job scheduling module is connected to the first communication port of the exception handling module. The first communication port of the monitoring module is connected to the fourth communication port of the exception processing module, and the third communication port of the monitoring module is connected to the third communication port of the console module. The second communication port of the exception handling module is connected with the fourth communication port of the console module. The second communication port of the database monitoring module is connected with the first communication port of the console module. The first communication port of the database verification module is connected with the second communication port of the console module.
根据系统参数及系统资源通过作业调度模块向K-UX操作系统模块发送操作指令,首先将Oracle 10g介质、集群软件、驱动包、检验脚本通过二进制模式上传到两个结点的操作系统上,然后执行环境变量设置、安装集群软件和Oracle 10g数据库,安装完成后,通过检验脚本对数据库进行验证,最终完成Oracle 10g数据库的自动安装和检测工作。According to the system parameters and system resources, the operation command is sent to the K-UX operating system module through the job scheduling module. First, the Oracle 10g media, cluster software, driver package, and inspection script are uploaded to the operating systems of the two nodes through binary mode, and then Perform environment variable setting, install cluster software and Oracle 10g database, after the installation is completed, verify the database through the test script, and finally complete the automatic installation and detection of Oracle 10g database.
控制台模块通过图形界面直观的对操作系统接口进行配置连接、上传资源,同时显示系统各模块运行状态或K-UX系统反馈的执行结果信息。The console module intuitively configures and connects the operating system interface and uploads resources through the graphical interface, and at the same time displays the operating status of each module of the system or the execution result information fed back by the K-UX system.
其中,操作系统SSH协议接口模块与两个节点K-UX(即第一K-UX操作系统单元和第二K-UX操作系统单元)进行连接,连接步骤如下:Wherein, the operating system SSH protocol interface module is connected with two nodes K-UX (i.e. the first K-UX operating system unit and the second K-UX operating system unit), and the connection steps are as follows:
完成该搭建系统的安装,并打开控制台;Complete the installation of the build system and open the console;
输入两台K-UX连接相关的IP、端口号、用户名、密码;Enter the IP, port number, user name, and password related to the two K-UX connections;
通过控制台界面检查是否与K-UX操作系统建立连接;Check whether the connection is established with the K-UX operating system through the console interface;
此搭建系统保留并通过接口监控连接状态。The build system maintains and monitors connection status through the interface.
进一步地,作业调度模块与操作系统SSH协议接口模块、参数管理模块、异常处理模块相连,连接步骤如下:Further, the job scheduling module is connected with the operating system SSH protocol interface module, the parameter management module, and the exception handling module, and the connection steps are as follows:
作业调度模块按照参数设置分别将Oracle 10g数据库安装包、Oracle 10g集群软件、驱动包、检验脚本上传到两节点的K-UX操作系统;The job scheduling module uploads the Oracle 10g database installation package, Oracle 10g cluster software, driver package, and inspection script to the K-UX operating system of the two nodes according to the parameter settings;
作业调度模块向K-UX操作系统发送环境变量设置、系统参数配置、数据库安装、集群安装命令;The job scheduling module sends environment variable settings, system parameter configuration, database installation, and cluster installation commands to the K-UX operating system;
作业调度模块向K-UX操作系统发送检验脚本命令,检测数据库安装;The job scheduling module sends the inspection script command to the K-UX operating system to detect the database installation;
作业调度接收异常处理模块的异常处理策略,生成异常处理指令;The job scheduling receives the exception handling strategy of the exception handling module, and generates an exception handling instruction;
将异常处理指令发送到两节点操作系统执行回退或异常处理命令。Send the exception handling instruction to the two-node operating system to execute the rollback or exception handling command.
监控模块与操作系统SSH协议接口模块、异常处理模块、控制台模块相连,连接步骤如下:The monitoring module is connected to the operating system SSH protocol interface module, exception handling module, and console module. The connection steps are as follows:
监控模块接收K-UX2.1操作系统反馈的命令执行结果信息;The monitoring module receives the command execution result information fed back by the K-UX2.1 operating system;
将命令执行结果信息发送到控制台模块进行显示;Send the command execution result information to the console module for display;
将异常状态结果信息发送到异常处理模块。Send the exception status result information to the exception handling module.
数据库监控模块与操作系统SSH协议接口模块、控制台模块相连,连接步骤如下:The database monitoring module is connected with the operating system SSH protocol interface module and the console module, and the connection steps are as follows:
监控K-UX操作系统上数据库运行状态;Monitor the running status of the database on the K-UX operating system;
将监控的信息发送到控制台进行展示;Send the monitored information to the console for display;
将数据库异常信息经过控制台模块传输到异常处理模块进行异常处理。The database exception information is transmitted to the exception handling module through the console module for exception handling.
需要说明的是,上述实施方式以Oracle 10g数据库为例进行说明,该搭建系统可以实现K-UX2.1兼容列表上所有的数据块的搭建,如DB210.5、MySQL5.5等。It should be noted that the above-mentioned implementation mode is described by taking the Oracle 10g database as an example, and this construction system can realize the construction of all data blocks on the K-UX2.1 compatibility list, such as DB210.5, MySQL5.5, etc.
综上所述,本发明所提供的数据库集群自动搭建方法和系统,获取搭建数据库集群的操作系统连接参数和资源参数后,自动生成对应的数据库集群安装操作指令集,从而在K-UX操作系统中实现数据库集群的自动环境自动搭建和安装,并实时将执行结果进行显示,直至安装完毕,大大降低了在K-UX操作系统上搭建并检测数据库所需要的时间,提升了数据库集群环境搭建和检测的效率。In summary, the database cluster automatic building method and system provided by the present invention, after obtaining the operating system connection parameters and resource parameters for building a database cluster, automatically generates a corresponding database cluster installation operation instruction set, so that the K-UX operating system Realize the automatic construction and installation of the automatic environment of the database cluster, and display the execution results in real time until the installation is complete, which greatly reduces the time required to build and detect the database on the K-UX operating system, and improves the construction and installation of the database cluster environment. detection efficiency.
以上对本发明所提供的一种数据库集群自动搭建方法和系统进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The above describes in detail the method and system for automatically building a database cluster provided by the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710491047.6A CN107315803A (en) | 2017-06-23 | 2017-06-23 | A kind of automatic building method of data-base cluster and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710491047.6A CN107315803A (en) | 2017-06-23 | 2017-06-23 | A kind of automatic building method of data-base cluster and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107315803A true CN107315803A (en) | 2017-11-03 |
Family
ID=60180839
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710491047.6A Pending CN107315803A (en) | 2017-06-23 | 2017-06-23 | A kind of automatic building method of data-base cluster and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107315803A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108845809A (en) * | 2018-06-27 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of method and database mounting device of installation database |
| CN109101245A (en) * | 2018-07-24 | 2018-12-28 | 郑州云海信息技术有限公司 | The method and apparatus of GBase 8t database are installed on an operating system |
| CN112988704A (en) * | 2021-03-05 | 2021-06-18 | 无锡星凝互动科技有限公司 | AI consultation database cluster building method and system |
| CN114138750A (en) * | 2021-12-03 | 2022-03-04 | 无锡星凝互动科技有限公司 | AI consultation database cluster building method and system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130310332A1 (en) * | 2010-10-25 | 2013-11-21 | University Of Rhode Island | Maple tree-derived products and uses thereof |
| CN106341486A (en) * | 2016-09-29 | 2017-01-18 | 郑州云海信息技术有限公司 | Oracle database automatic deployment tool and method |
| CN106843963A (en) * | 2017-01-20 | 2017-06-13 | 郑州云海信息技术有限公司 | The device and method of automatic deployment JAVA application programs in K UX operating systems |
| CN106843964A (en) * | 2017-01-20 | 2017-06-13 | 郑州云海信息技术有限公司 | The automatic device and method built and detect C++ programmed environments in K UX3.0 operating systems |
-
2017
- 2017-06-23 CN CN201710491047.6A patent/CN107315803A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130310332A1 (en) * | 2010-10-25 | 2013-11-21 | University Of Rhode Island | Maple tree-derived products and uses thereof |
| CN106341486A (en) * | 2016-09-29 | 2017-01-18 | 郑州云海信息技术有限公司 | Oracle database automatic deployment tool and method |
| CN106843963A (en) * | 2017-01-20 | 2017-06-13 | 郑州云海信息技术有限公司 | The device and method of automatic deployment JAVA application programs in K UX operating systems |
| CN106843964A (en) * | 2017-01-20 | 2017-06-13 | 郑州云海信息技术有限公司 | The automatic device and method built and detect C++ programmed environments in K UX3.0 operating systems |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108845809A (en) * | 2018-06-27 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of method and database mounting device of installation database |
| CN109101245A (en) * | 2018-07-24 | 2018-12-28 | 郑州云海信息技术有限公司 | The method and apparatus of GBase 8t database are installed on an operating system |
| CN112988704A (en) * | 2021-03-05 | 2021-06-18 | 无锡星凝互动科技有限公司 | AI consultation database cluster building method and system |
| CN114138750A (en) * | 2021-12-03 | 2022-03-04 | 无锡星凝互动科技有限公司 | AI consultation database cluster building method and system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108768730B (en) | Method and device for operating intelligent network card | |
| CN107066261A (en) | The system and method for data-base cluster are built in a kind of K UX operating systems | |
| CN102437938A (en) | Large-scale network monitoring-oriented virtualization deployment system and method | |
| CN102455936A (en) | Rapid Deployment Methods for Clusters | |
| CN102799519A (en) | Automatic test method for cluster file system | |
| CN107528892A (en) | A kind of remote debugging method, server end and set top box | |
| CN106161119B (en) | A WebLogic Middleware Cluster Automatic Deployment Tool and Method | |
| CN107315803A (en) | A kind of automatic building method of data-base cluster and system | |
| CN105786495A (en) | Software issuing system, method and system | |
| CN102064964A (en) | Method for rapidly switching gigabit network cards in gigabit switching environment | |
| CN108563455A (en) | Middleware portion arranging method, system and equipment in a kind of K-UX operating systems | |
| CN102497427A (en) | Method and device for realizing data acquisition services of renewable energy source monitoring system | |
| CN104618161A (en) | Application cluster monitoring device and method | |
| CN104410554A (en) | Method or testing WOL (Wake On Lan) function of server | |
| CN107071030A (en) | The dispositions method and system of a kind of Ceph distributed memory systems | |
| CN110034954A (en) | A kind of automation change configuration system | |
| CN107544830A (en) | A kind of method and device of automatic installation database | |
| CN106843963A (en) | The device and method of automatic deployment JAVA application programs in K UX operating systems | |
| CN106713038B (en) | remote transmission line quality detection method and system | |
| CN117459373A (en) | Network diagnostic methods, equipment and storage media | |
| CN107577470A (en) | One kind applies dispositions method and system | |
| CN111769979A (en) | A cloud resource orchestration method, system, terminal and storage medium | |
| CN104935451A (en) | A fault detection method and device | |
| CN113722211B (en) | A BMC debugging method, device, system and embedded device | |
| CN112905454B (en) | An MQTT service testing system and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171103 |