CN110855501B - Batch publishing system, method and storage medium for creating middleware - Google Patents

Batch publishing system, method and storage medium for creating middleware Download PDF

Info

Publication number
CN110855501B
CN110855501B CN201911147419.9A CN201911147419A CN110855501B CN 110855501 B CN110855501 B CN 110855501B CN 201911147419 A CN201911147419 A CN 201911147419A CN 110855501 B CN110855501 B CN 110855501B
Authority
CN
China
Prior art keywords
script
file
host
publishing
executing
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.)
Active
Application number
CN201911147419.9A
Other languages
Chinese (zh)
Other versions
CN110855501A (en
Inventor
许志成
张新生
吴远明
温振环
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Vcmy Technology Co ltd
Original Assignee
Guangzhou Vcmy Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Vcmy Technology Co ltd filed Critical Guangzhou Vcmy Technology Co ltd
Priority to CN201911147419.9A priority Critical patent/CN110855501B/en
Publication of CN110855501A publication Critical patent/CN110855501A/en
Application granted granted Critical
Publication of CN110855501B publication Critical patent/CN110855501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Abstract

A batch publishing system, method and storage medium for creating middleware, the method comprising the steps of: s1, executing and starting to run the batch publishing program by the server-side host; s2, detecting whether the mid-creation service is started; s3, detecting whether the domain is opened; s4, detecting whether the cluster is started; s5, uploading the published file, and locally uploading the file to be published to a server-side host by an operator; s6, executing the script before release, executing the script program on the server-side host, and compiling the script programs in different forms into the same script file in a unified manner; s7, issuing, wherein the server side host sends issued files to each execution host in a unified manner; s8, executing the issued script, and automatically executing the script file after the execution host receives the script file; and S9, ending the task, wherein the task is ended after the execution host receives the script file.

Description

Batch publishing system, method and storage medium for creating middleware
Technical Field
The invention discloses a publishing system of a middle creating middleware, in particular to a batch publishing system, a method and a storage medium for the middle creating middleware.
Background
The creation middleware is a product developed by a creation middleware company, and provides an Infors series middleware product which is 'on-demand and quickly constructed' for government and enterprise informatization construction.
With the vigorous popularization of domestic basic software, the use of the middleware as a representative of the domestic middleware in various industries is increased. At present, most enterprises use a middleware creating company platform as a publishing platform, and publish each application system through the middleware creating company platform, which is the biggest difficulty faced by operation and maintenance in the actual software publishing process, and the operation and maintenance covers the whole life cycle of a product from design to publishing, operation and maintenance, change and upgrade and offline.
Along with the increasing complexity of a service system, the familiarity of each software company to the creating middleware is correspondingly improved, the requirement on the capability of a publisher is increased, loss is brought to the company, meanwhile, the application system can be published quickly, faults which occur rarely in the publishing process of the publisher are avoided, and the publishing efficiency is improved. The method for realizing the method is that batch configuration, uploading of a distribution package, execution of a script before distribution and execution of a script after distribution can be carried out on the mid-creating middleware, and the corresponding systems are distributed on all hosts in batches according to certain steps.
The current application system release has the following problems: (1) low efficiency and high time cost; (2) the application systems cannot be released to all the hosts in batch; (3) the release state is difficult to evaluate in the release process; (4) the configuration information is inconsistent before release, and the configuration information is difficult to unify.
Disclosure of Invention
In view of the above-mentioned disadvantage of inefficient middleware creation and distribution process in the prior art, the present invention provides a batch distribution system, method and storage medium for creating middleware,
the technical scheme adopted by the invention for solving the technical problems is as follows: a method for batch publishing of middleware in a computer system, the method comprising the steps of:
step S1, starting to operate, and executing the batch issuing program to start to operate by the server-side host;
step S2, detecting whether the mid-creation service is started, if not, directly ending the task, if so, executing the next step;
step S3, detecting whether the domain is opened, if not, directly ending the task, if so, executing the next step;
step S4, detecting whether the cluster is started, if not, directly ending the task, if so, executing the next step;
step S5, uploading the published file, and locally uploading the file to be published to a server-side host by an operator;
step S6, executing the script before release, executing the script program on the server-side host, and compiling the script programs in different forms into the same script file in a unified manner;
step S7, issuing, wherein the server side host sends issued files to each execution host in a unified way;
step S8, executing the issued script, and automatically executing the script file after the execution host receives the script file;
and step S9, ending the task, wherein the task is ended after the execution host receives the script file.
A batch publishing system for creating middleware, the system comprising:
(1) and the script management module manages script programs before and after release, selects corresponding scripts to release, and automatically executes the scripts on the corresponding host before or after release.
(2) The file management module is used for managing the issued file package of the corresponding application system, uploading the file package locally during file package management, uniformly placing the file package at the appointed position of the host server after the file package is uploaded locally, uniformly distributing the file package to each target host when the application system needs to be deployed or upgraded, and decompressing, installing and executing the file package on each target host;
(3) the configuration management module is used for uniformly configuring the issuing of all the middleware;
(4) the release module is used for multiplexing the prepared configuration items, file packages and release scripts in the release module, uniformly releasing the configuration items, the file packages and the release scripts on domains and clusters created on the creation middleware through butting, automatically detecting whether the application is successfully released after release, and detecting whether the application can be accessed to an application website through checking the application website to finish the detection of the release;
(5) and the log module is used for collecting, storing and displaying logs in the issuing process of all the hosts.
A storage medium in which a program implementing the batch distribution method for creating middleware as described above is stored.
The technical scheme adopted by the invention for solving the technical problem further comprises the following steps:
in step S6, the server-side host compiles the script programs in different forms into a python script file.
In the step S7, during publishing, the ansable is used as the automation operation and maintenance engine to send the published files to each execution host in a unified manner.
The script management module adopts the ansable as an automatic operation and maintenance engine, finally packages each script into a python script for execution, and distributes each python file to each host for execution by using the ansable.
The script management module supports the compiling of shell scripts, python scripts and sql scripts.
The configuration management module stores the general release configuration and stores the frequently used release configuration items into the module.
The invention has the beneficial effects that: the invention carries out secondary development on the functions of the middleware and can operate the middleware on the platform; batch host configuration information change of creating middleware can be realized; the editing and the script distribution of the issued script are realized; and automatically issuing the batch host based on the creating middleware.
The invention will be further described with reference to the accompanying drawings and specific embodiments.
Drawings
FIG. 1 is a flow chart of the batch publishing of the present invention.
FIG. 2 is a block diagram of the system of the present invention.
Detailed Description
The present embodiment is a preferred embodiment of the present invention, and other principles and basic structures that are the same as or similar to the present embodiment are within the scope of the present invention.
Referring to fig. 1 and 2 in combination, the invention is a batch publishing method for creating middleware, which includes the following steps:
step S1, starting to run, where the server-side host executes the batch publishing program, in this embodiment, the batch publishing program depends on an idle module to implement batch publishing, where the idle is a module based on ssh protocol remote control, that is, ssh is used to connect to each host to implement operations such as executing commands on the remote server, distributing files, and the like;
step S2, detecting whether the service is started, in the embodiment, detecting whether the service is started by checking whether a process named AppServer exists in a server-side host, if not, directly ending the task, and if so, executing the next step;
step S3, checking whether the domain is operating normally, because the invention issues the file to the cluster under the domain, if not, the issue will fail. In this embodiment, the back end (i.e., the operator computer) executes the command: the list-domains checks the state of the domain, if the domain is not opened, the task is directly ended, and if the domain is opened, the next step is executed;
step S4, detecting whether the cluster is on, and detecting the cluster first because the cluster is released. In this embodiment, the back end (i.e., the operator computer) executes the command: if the list-clusters checks the state of the cluster, directly ending the task, and if the cluster is started, executing the next step;
step S5, uploading the published file, and locally uploading the file to be published to a server-side host by an operator;
step S6, executing the pre-release script, executing the script program on the server-side host, and uniformly compiling the script programs in various forms into a python script file;
step S7, issuing, namely, using ansable as an automatic operation and maintenance engine, sending issued files to each execution host in a unified and batch manner, wherein the sending is realized by relying on ansable modules, and the ansable is a module based on ssh protocol remote control, namely, ssh is connected to each host to realize the file distribution on a remote server;
step S8, executing the issued script, and automatically executing the script file after the execution host receives the script file;
and step S9, ending the task, wherein the task is ended after the execution host receives the script file.
The invention mainly combines the middleware to solve the above technical problems. Through the self-discovery function of the ansable automated operation and maintenance system, in the embodiment, the self-discovery means acquiring all hosts in the automated operation and maintenance system, wherein the resource types belong to the created middleware, the start state of the list-domains detection domain and the start state of the list-clusters are checked by background execution on the hosts, and then the basic configuration information of the domains and the clusters, such as information of each domain, cluster and the like, is acquired through a middle creation command "/asadmin-port-user admin-password file/root/lognp.configuration list-domains/lists", so that the created middleware on each host is automatically discovered; distributing the issued application program packages to each execution host through file management; through configuration management, unified configuration information management of the batch hosts is realized; compiling and configuring scripts before and after release issued by each application through script management; and uniformly issuing all the configuration, scripts and file packages in the issuing process through issuing management, issuing the configuration, scripts and file packages to the created cluster, automatically verifying the issued application after issuing, and selecting rollback in failure and not executing any operation in failure.
The invention also protects a batch release system for creating middleware, which comprises the following modules:
(1) the script management module is mainly used for managing script programs before and after release and selecting corresponding scripts for release, and can test whether the script results meet the requirements or not through the script management module to the corresponding host execution scripts before release or automatically execute the scripts on the corresponding host after release. In this embodiment, the script management module uses the infrastructure as an automated operation and maintenance engine, and finally packages each script into a python script for execution, and distributes each python file to each host for execution by using the infrastructure. In the embodiment, in the script management module, the compiling of the shell script, the python script and the sql script is supported at present, and during specific implementation, scripts in other forms can also be included, before distribution, the scripts in various forms are uniformly packaged into a python file form to be sent, so that the execution host can compile and execute conveniently, and during specific implementation, the scripts can also be uniformly packaged into other script forms;
(2) the file management module is mainly used for managing the issued file package of the corresponding application system, the file package is uploaded through a local (operator computer) during file package management, the file package is uniformly placed at a specified position of the host server after the file package is uploaded locally, when the application system needs to be deployed or upgraded, the file package is uniformly distributed to each target host by using an anchor, and the file package is decompressed, installed and executed on each target host;
(3) the configuration management module is used for uniformly configuring the issuing of all the created middleware, in the embodiment, the configuration management module is mainly used for storing general issuing configuration (such as account password ports of the created service, names of domain clusters and instances, states of the instances and other information), and storing frequently used issuing configuration items into the module so as to multiplex the stored information;
(4) the release module is used for multiplexing the prepared configuration items, file packages and release scripts in the release module, uniformly releasing the configuration items, the file packages and the release scripts on domains and clusters created on the creation middleware through butting, automatically detecting whether the application is successfully released after release, and detecting whether the application can be accessed to an application website through checking the application website to finish the detection of the release;
(5) and the log module is used for collecting, storing and displaying logs in the issuing process of all the hosts.
The invention carries out secondary development on the functions of the middleware and can operate the middleware on the platform; batch host configuration information change of creating middleware can be realized; the editing and the script distribution of the issued script are realized; and automatically issuing the batch host based on the creating middleware.

Claims (8)

1. A batch publishing method for creating middleware is characterized by comprising the following steps: the method comprises the following steps:
step S1, starting to operate, and executing the batch issuing program to start to operate by the server-side host;
step S2, detecting whether the mid-creation service is started, if not, directly ending the task, if so, executing the next step;
step S3, detecting whether the domain is opened, if not, directly ending the task, if so, executing the next step;
step S4, detecting whether the cluster is started, if not, directly ending the task, if so, executing the next step;
step S5, uploading the published file, and locally uploading the file to be published to a server-side host by an operator;
step S6, executing the script before release, executing the script program on the server-side host, and compiling the script programs in different forms into the same script file in a unified manner;
step S7, issuing, namely, adopting ansable as an automatic operation and maintenance engine, uniformly and massively sending issued files to each execution host, and realizing batch issuing by relying on ansable modules during sending, wherein ansable is a module based on ssh protocol remote control and is connected to each host by using ssh to realize file distribution on a remote server;
step S8, executing the issued script, and automatically executing the script file after the execution host receives the script file;
and step S9, ending the task, wherein the task is ended after the execution host receives the script file.
2. The method of claim 1 for batch publishing of middleware, wherein: in step S6, the server-side host compiles the script programs in different forms into a python script file.
3. The method of claim 1 for batch publishing of middleware, wherein: in the step S7, during publishing, the ansable is used as the automation operation and maintenance engine to send the published files to each execution host in a unified manner.
4. A batch publishing system for creating middleware, comprising: the system comprises:
(1) the script management module manages script programs before and after release, selects corresponding scripts to release, and automatically executes the scripts on corresponding hosts before or after release;
(2) the file management module is used for managing the issued file package of the corresponding application system, uploading the file package locally during file package management, uniformly placing the file package at the appointed position of the host server after the file package is uploaded locally, uniformly distributing the file package to each target host when the application system needs to be deployed or upgraded, and decompressing, installing and executing the file package on each target host;
(3) the configuration management module is used for uniformly configuring the issuing of all the middleware;
(4) the publishing module is used for multiplexing the prepared configuration items, file packages and publishing scripts in the publishing module, uniformly publishing the configuration items, the file packages and the publishing scripts on domains and clusters created on the creating middleware by butting the creating middleware, automatically detecting whether the application is successfully published after publishing, detecting whether the application website can be accessed by checking the application website to finish the publishing, sending the publishing files to each execution host in a uniform and batch manner by using ansible modules as automatic operation and maintenance engines during publishing, and realizing the batch publishing by relying on ssh protocol remote control modules and connecting the ansible modules to each host by using ssh to realize the file distribution on a remote server;
(5) and the log module is used for collecting, storing and displaying logs in the issuing process of all the hosts.
5. The batch publishing system for creating middleware of claim 4, wherein: the script management module adopts the ansable as an automatic operation and maintenance engine, finally packages each script into a python script for execution, and distributes each python file to each host for execution by using the ansable.
6. The batch publishing system for creating middleware of claim 4, wherein: the script management module supports the compiling of shell scripts, python scripts and sql scripts.
7. The batch publishing system for creating middleware of claim 4, wherein: the configuration management module stores the general release configuration and stores the frequently used release configuration items into the module.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that: the program, when executed by a processor, implements the steps of the method of any one of claims 1 to 3.
CN201911147419.9A 2019-11-21 2019-11-21 Batch publishing system, method and storage medium for creating middleware Active CN110855501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911147419.9A CN110855501B (en) 2019-11-21 2019-11-21 Batch publishing system, method and storage medium for creating middleware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911147419.9A CN110855501B (en) 2019-11-21 2019-11-21 Batch publishing system, method and storage medium for creating middleware

Publications (2)

Publication Number Publication Date
CN110855501A CN110855501A (en) 2020-02-28
CN110855501B true CN110855501B (en) 2022-04-26

Family

ID=69603178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911147419.9A Active CN110855501B (en) 2019-11-21 2019-11-21 Batch publishing system, method and storage medium for creating middleware

Country Status (1)

Country Link
CN (1) CN110855501B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145150A (en) * 2006-09-15 2008-03-19 中国银联股份有限公司 Batch file processing method and system
CN102195978A (en) * 2011-04-26 2011-09-21 深圳市共济科技有限公司 Software distribution deployment method and system
CN105472042A (en) * 2016-01-15 2016-04-06 中煤电气有限公司 WEB terminal controlled message middleware system and data transmission method thereof
WO2016082474A1 (en) * 2014-11-25 2016-06-02 中兴通讯股份有限公司 Human-machine command script updating method and apparatus, and computer storage medium
CN106250307A (en) * 2016-07-20 2016-12-21 福建省农村信用社联合社 A kind of bank's mobile phone application automated testing method and system
CN106325951A (en) * 2016-08-30 2017-01-11 广西电网有限责任公司 Automatic deployment method for application system supporting multiple databases and multiple middleware types
CN106713053A (en) * 2017-02-19 2017-05-24 郑州云海信息技术有限公司 Method and device for batch updating server firmware based on Linux
CN107291565A (en) * 2017-06-09 2017-10-24 千寻位置网络有限公司 O&M visualizes automated job platform and implementation method
CN109597686A (en) * 2018-10-18 2019-04-09 国网辽宁省电力有限公司大连供电公司 Information resources Automation arranging method between a kind of server cluster
CN109889381A (en) * 2019-02-18 2019-06-14 国家计算机网络与信息安全管理中心 Automatic configuration management method and device based on fort machine
CN109960660A (en) * 2019-04-12 2019-07-02 广东电网有限责任公司信息中心 A kind of electrical network business networking security evaluation method based on Ansible
CN110231944A (en) * 2018-03-05 2019-09-13 北京京东尚科信息技术有限公司 Automatically dispose method, apparatus, system and computer readable storage medium
CN110276594A (en) * 2019-06-21 2019-09-24 深圳前海微众银行股份有限公司 A kind of banking operational system and method based on Ansible

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145150A (en) * 2006-09-15 2008-03-19 中国银联股份有限公司 Batch file processing method and system
CN102195978A (en) * 2011-04-26 2011-09-21 深圳市共济科技有限公司 Software distribution deployment method and system
WO2016082474A1 (en) * 2014-11-25 2016-06-02 中兴通讯股份有限公司 Human-machine command script updating method and apparatus, and computer storage medium
CN105472042A (en) * 2016-01-15 2016-04-06 中煤电气有限公司 WEB terminal controlled message middleware system and data transmission method thereof
CN106250307A (en) * 2016-07-20 2016-12-21 福建省农村信用社联合社 A kind of bank's mobile phone application automated testing method and system
CN106325951A (en) * 2016-08-30 2017-01-11 广西电网有限责任公司 Automatic deployment method for application system supporting multiple databases and multiple middleware types
CN106713053A (en) * 2017-02-19 2017-05-24 郑州云海信息技术有限公司 Method and device for batch updating server firmware based on Linux
CN107291565A (en) * 2017-06-09 2017-10-24 千寻位置网络有限公司 O&M visualizes automated job platform and implementation method
CN110231944A (en) * 2018-03-05 2019-09-13 北京京东尚科信息技术有限公司 Automatically dispose method, apparatus, system and computer readable storage medium
CN109597686A (en) * 2018-10-18 2019-04-09 国网辽宁省电力有限公司大连供电公司 Information resources Automation arranging method between a kind of server cluster
CN109889381A (en) * 2019-02-18 2019-06-14 国家计算机网络与信息安全管理中心 Automatic configuration management method and device based on fort machine
CN109960660A (en) * 2019-04-12 2019-07-02 广东电网有限责任公司信息中心 A kind of electrical network business networking security evaluation method based on Ansible
CN110276594A (en) * 2019-06-21 2019-09-24 深圳前海微众银行股份有限公司 A kind of banking operational system and method based on Ansible

Also Published As

Publication number Publication date
CN110855501A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
US8352916B2 (en) Facilitating the automated testing of daily builds of software
EP2696532A2 (en) Method, server and system for starting application
US20130031542A1 (en) Method and system for distributed application stack deployment
US20040060035A1 (en) Automated method and system for building, deploying and installing software resources across multiple computer systems
CN107634860B (en) Method for automatically upgrading weblogic cluster patches in batches
CN102782650A (en) A method and system for managing configurations of system management agents in a distributed environment
CN102455936A (en) Trunk quick allocation method
CN100447753C (en) Computer testing method
CN102609281A (en) Distributed software patch updating method and distributed software patch updating system
CN107015842B (en) Server-side program compiling and publishing management method and system
CN105897899A (en) Standard operation procedure electronization method based on automatic platform
CN110912728A (en) Operating system patch batch automatic update management method and system
CN110795420A (en) Automatic MySQL database backup method based on infrastructure
CN111324365A (en) Method and equipment for upgrading super-converged system
CN112084008A (en) Method for rapidly deploying cloud pipe system based on container technology
CN109104469A (en) A kind of Universal Remote upgrade-system and method
CN110855501B (en) Batch publishing system, method and storage medium for creating middleware
CN113282307A (en) Method, server and system for batch installation of ansable server to software
CN112994945A (en) Automatic deployment method and device of trusted cloud platform
CN112328361A (en) Method for rapidly deploying kubenetes cluster
CN113127009A (en) Automatic deployment method and device for big data management platform
KR20130024857A (en) Apparatus and method for processing app for controlling device
CN110879767A (en) Method, system and storage medium for batch host backup of Dameng database
CN112650189A (en) Embedded PLC automatic test system and method
CN111147291A (en) Service maintenance method and device

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
GR01 Patent grant
GR01 Patent grant