CN114374677B - Cross-platform online publishing method and device, computing equipment and storage medium - Google Patents

Cross-platform online publishing method and device, computing equipment and storage medium Download PDF

Info

Publication number
CN114374677B
CN114374677B CN202011103485.9A CN202011103485A CN114374677B CN 114374677 B CN114374677 B CN 114374677B CN 202011103485 A CN202011103485 A CN 202011103485A CN 114374677 B CN114374677 B CN 114374677B
Authority
CN
China
Prior art keywords
application
machine
instance
service
information
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
CN202011103485.9A
Other languages
Chinese (zh)
Other versions
CN114374677A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang 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 China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011103485.9A priority Critical patent/CN114374677B/en
Publication of CN114374677A publication Critical patent/CN114374677A/en
Application granted granted Critical
Publication of CN114374677B publication Critical patent/CN114374677B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a cross-platform online publishing method, a device, a computing device and a storage medium, wherein the method comprises the following steps: acquiring configuration information of a management instance related to an application to be distributed, and analyzing according to the configuration information to obtain port information of the management instance, catalog information of an application medium and a machine and a path where a service instance is located; downloading application media of the application to be distributed to a temporary position of a target machine according to a machine and a path where the service instance is located; when a release request is received, a deployment interface is called according to port information of a management instance to conduct deployment, and application media in a temporary position are copied to a release catalog according to catalog information of the application media and deployment of the application media is conducted. According to the scheme, the application to be published can be automatically published to various application service middleware without writing different scripts for different middleware; and the publishing process does not need to start and stop the application instance, so that the publishing efficiency is improved.

Description

Cross-platform online publishing method and device, computing equipment and storage medium
Technical Field
The invention relates to the technical field of computer drilling, in particular to a cross-platform online publishing method, a device, computing equipment and a storage medium.
Background
With the expansion of service scale and the thinning and splitting of service, the system construction is increased, and the quality and efficiency of the daily service system release and change are particularly important. Enterprises gradually change to the middle stage, the concept of 'thin application and thick PAAS' is taught, the service demand change iteration is more frequent, and in order to ensure the quality and efficiency of service system release as small as possible due to the influence of service during service system release, an automatic release method is generally adopted.
The current mainstream automatic application release scheme is mainly a full-scale automatic release method based on scripts, a series of shell, python, perl script solidification release processes are written, the scripts call start and stop actions comprising the application, and compared with a pure manual release mode, release quality and efficiency are improved to a certain extent.
However, the inventor finds that in the process of implementing the embodiment of the present invention, the full-scale script-based automatic publishing method of the current mainstream has at least the following defects: firstly, the script is realized by calling command lines packaged by various product software, and the start-stop operation of the application is necessary, and the start-stop time of the application is longer along with the increase of complexity, so that the release efficiency of the application is affected; secondly, the software of enterprises has more varieties, wherein the application server middleware is core software of the service system, the release quality and efficiency of the application on the application server middleware directly influence the release quality and efficiency of the whole service system, the two pure script modes need to write corresponding scripts aiming at the middleware of different types and different manufacturers, the cross-platform characteristic is not provided, meanwhile, the script maintenance workload is large, and after the service system reaches a certain hundred-level scale, the geometric multiple of the script maintenance cost is increased.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are provided to provide a method, apparatus, computing device, and storage medium for cross-platform online publishing that overcomes or at least partially solves the foregoing problems.
According to an aspect of the embodiment of the invention, there is provided a cross-platform online publishing method, including:
acquiring configuration information of a management instance related to an application to be distributed, and analyzing and obtaining port information of the management instance, a machine and an application path where a service instance is located and directory information of an application medium according to the configuration information;
downloading application media of the application to be distributed to a temporary position of a target machine according to the machine where the service instance is located;
when a release request is received, a deployment interface is called according to port information of the management instance to conduct deployment of the current application medium, and the application medium in a temporary position is copied to a release catalog in an application path according to the application path and catalog information;
and calling a deployment interface according to the port information of the management instance to deploy the application medium.
According to another aspect of the embodiment of the present invention, there is provided a cross-platform online publishing device, including:
the acquisition module is suitable for acquiring configuration information of a management instance related to the application to be distributed;
the analysis module is suitable for analyzing and obtaining port information of the management instance, a machine and application path where the service instance is located and directory information of the application medium according to the configuration information; the method comprises the steps of carrying out a first treatment on the surface of the
The downloading module is suitable for downloading application media of the application to be distributed to the temporary position of the target machine according to the machine where the service instance is located;
the publishing module is suitable for calling a deployment interface according to the port information of the management instance to perform the deployment of the current application medium when a publishing request is received, and copying the application medium in the temporary position to a publishing directory in the application path according to the application path and the directory information; and calling a deployment interface according to the port information of the management instance to deploy the application medium.
According to yet another aspect of an embodiment of the present invention, there is provided a computing device including: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the cross-platform online release method.
According to still another aspect of the embodiments of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, where the executable instruction causes a processor to perform operations corresponding to the above-described cross-platform online publishing method.
According to the cross-platform online publishing method, the device, the computing equipment and the storage medium, online publishing of common middleware types can be adapted in a cross-platform manner, an application instance is not required to be restarted, normal standardized operation of heterogeneous middleware is directly completed through an adaptation mechanism, a large number of scripts are not required to be written, publishing efficiency is improved, and operation and maintenance difficulty and workload are reduced.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and may be implemented according to the content of the specification, so that the technical means of the embodiments of the present invention can be more clearly understood, and the following specific implementation of the embodiments of the present invention will be more apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a diagram showing the construction of an online publication system of the present invention;
FIG. 2 illustrates an instruction triggering flow chart of the online publishing adapter of the present invention;
FIG. 3 shows a flowchart of a cross-platform online publishing method provided by an embodiment of the invention;
FIG. 4 shows a schematic diagram of interactions of an online publication system during a publication process;
FIG. 5 illustrates an overall flow chart of online publication of the present invention;
FIG. 6 shows a schematic structural diagram of a cross-platform online publishing device according to an embodiment of the present invention;
FIG. 7 illustrates a schematic diagram of a computing device provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a diagram showing the construction of an online distribution system of the present invention. As shown in FIG. 1, the system includes an online publication service, nodes, and an online publication adapter.
The online release service and nodes (3 are shown in the figure, and the implementation is not limited to the 3) adopt a distributed architecture, the online release service is deployed as a service management end, the nodes are distributed and deployed on each machine, and each machine is provided with application service middleware (hereinafter referred to as middleware) to be released, so that the architecture can improve the efficiency and quality of online release; and the online release service is used for recording and classifying release information, and the nodes are used for downloading media from a file server, uploading configuration files, releasing adaptation and the like to complete a series of instruction actions sent by the online release service.
The online release adapter is a core module of the invention and is used for completing online release of different types of middleware. An online publishing adapter is an adapter developed for each type of specific application (equivalent to each type of middleware), and each instruction triggers one specific method of online publishing the adapter. The distribution adapter is divided into a service adapter and a node adapter, wherein the service adapter operates on an online distribution service, the node adapter operates on a node, and the online distribution adapter is distributed correspondingly.
FIG. 2 illustrates an instruction triggering flow chart of the online publishing adapter of the present invention. As shown in fig. 2, for each action of each class of middleware, the service adapter and the node adapter need to register first, and can be normally triggered to execute corresponding instructions in the release process. The on-line release adapter realizes a standardized method aiming at different middleware, does not need to write various scripts, reduces the development and maintenance cost of the scripts and reduces the release difficulty.
Fig. 3 shows a flowchart of a cross-platform online publishing method according to an embodiment of the present invention. FIG. 4 shows a schematic diagram of interactions of an online publication system during a publication process. In this embodiment, description will be made with reference to fig. 3 and 3. The cross-platform refers to a cross-middleware type, for example, if an application a needs to be published to the middleware of type 1 and type 2 at the same time, then the cross-platform publishing is considered to be needed. The method is implemented based on the online publication system disclosed above.
As shown in fig. 3, the method comprises the steps of:
step S310: and acquiring configuration information of a management instance related to the application to be distributed, and analyzing and obtaining port information of the management instance, a machine and application path where the service instance is located and directory information of an application medium according to the configuration information.
Each type of middleware product is managed by a console that can only manage the corresponding type of middleware product. The management instance related to the application to be issued refers to a console instance for managing the application service middleware to be issued. For example, to-be-published applications are to be published to type 1 and type 2 middleware, then the management instance refers to a console instance that manages type 1 and type 2 middleware. In other words, there is a layer of middleware console between the online publishing system and the middleware in the embodiment of the present invention, and the console cannot implement cross-middleware type management, so that the online publishing system of the present invention is required to complete cross-middleware type publishing.
Specifically, firstly, information collection is carried out, configuration information of each management instance is reported to an online release service by a node deployed on a machine managed by the management instance, and for each management instance, the configuration information comprises the management instance and the machine managed by the management instance (middleware is installed on the machine), and information of service instances on the machine; and then, carrying out information analysis, wherein the online release service acquires configuration information of management examples related to the application to be released from the node, analyzes the configuration information of the management examples, and analyzes port information of the management examples, a machine and application path where a service example is located and directory information of application media from the configuration information, the port information of the management examples reflects an interface which is undeployed and deployed in the application release process, the machine and application path where the service example is located refers to a machine and a path which are specifically released by a history version of the application to be released, and the service example is a history version example, and the directory information of the application media refers to a directory of the history version of the application to be released (hereinafter referred to as active media) under the release path.
For example, the application a needs to be upgraded in version, the history version of the application a is on the machine 1 and the machine 2, wherein the middleware type on the machine 1 is type 1, the middleware type on the machine 2 is type 2, the application a is considered to be published to the middleware of the type 1 and the type 2, the cross-platform publishing requirement exists, the configuration information of the management example 1 and the management example 2 which are respectively managed is uploaded through the nodes deployed on the machine 1 and the machine 2, after the configuration information is obtained by the online publishing service, the port information of the management example 1 and the management example 2 is analyzed, the application paths of the machine 1 and the machine 2 published by the history version of the application a and the catalogue of the current media of the history version of the application a under the application paths.
In some alternative embodiments of the present invention, after the information analysis is performed, information classification is also required: the online release service takes a single application to be released as a unit, and performs marking processing on port information of the management instance, directory information of an application medium and a machine and a path where the service instance is located, so that information corresponding to different applications to be released has different identification information. In general, in one release period (for example, one night), a plurality of applications to be released are usually released, and by the above independent marking method, independent marks can be marked on information of each application to be released, and the marks of different applications to be released are different, so that when a release action is executed later, the application to be released corresponding to each item of information can be defined, and confusion is avoided.
Step S320: and downloading the application medium of the application to be distributed to the temporary position of the target machine according to the machine where the service instance is located.
For any application to be released, the online release service determines a machine released by a history version of the application to be released according to the machine in which the service instance corresponding to the application to be released is located, and notifies a target node deployed on the machine to download application media of the application to be released, wherein the target node downloads the application media to a temporary position of the machine in which the application media is located, so that the application media are directly copied from the local when being really released, network traffic during release is saved, and release efficiency is improved.
By way of example, the online publishing service determines the machine 1 and the machine 2 to which the application a needs to be published according to the machine where the service instance is located, and then notifies the target node 1 and the target node 2 deployed on the machine 1 and the machine 2 to download the application medium of the application a, and stores the application medium in temporary locations of the machine 1 and the machine 2, respectively.
As shown in fig. 4, the processes of information collection (related to node uploading configuration), information analysis and classification, and application medium downloading in the steps S310 to S320 are all in a preprocessing stage before the formal release, and the preprocessing stage is operated in advance in idle time, so as to reduce the time of the formal release.
Step S330: when a release request is received, a deployment interface is called according to the port information of the management instance to conduct the deployment of the current application medium, and the application medium in the temporary position is copied to the release directory according to the application path and the directory information.
The online release adapter receives the release request and can complete corresponding release actions according to different types of middleware released as required.
Specifically, after receiving an online release request, the service adapter first performs application medium undeployment for any application to be released, and the undeployment process includes: the service adapter issues an instruction to inform a node adapter (the node adapter deployed on a target node, the following is the same), and a deployment interface is called according to the port information of the management instance, and the deployment of the current medium of the application to be deployed is completed through the deployment interface, wherein the current medium is the medium corresponding to the historical version of the application to be deployed.
And after the deployment is completed, carrying out application medium replacement, sending a command by the service adapter to inform the node adapter of carrying out application medium replacement according to the application path and the directory information, copying the latest application medium at the temporary position in the machine by the node adapter in a release directory under the application path in response to the command, and replacing the current medium under the release directory, wherein the release directory refers to a directory needing to be subjected to content change under the directory information, for example, the directory information formed by 5 folders sharing the current medium under the application path, and the release directory is the directory corresponding to the 2 folders only by replacing the medium in the 2 folders.
Step S340: and calling a deployment interface according to the port information of the management instance to deploy the application medium.
After the application medium is replaced, the application medium can be deployed, the service adapter issues a command to inform the node adapter to call a deployment interface according to the port information of the management instance, the deployment of the replaced application medium is completed through the deployment interface, and then the release is completed.
As shown in fig. 4, the above-mentioned processes of application medium undeployment, application medium replacement and application medium deployment in step S330 and step S340 are all in an online publishing stage, in which an online publishing adapter executes a publishing action flexibly published to any type of middleware according to the publishing requirement (such as a published middleware type, a machine and a catalog) of an application to be published, and the online publishing adapter can publish the application to machines of various types of middleware without writing a large number of scripts to perform middleware application lifecycle management, so that the cost of script development and maintenance is reduced, and the publishing difficulty is reduced. In addition, the online release stage can realize online release aiming at the application of different types of middleware, does not need to start and stop the running application instance, reduces the class reloading time in the starting process, greatly improves the release efficiency of the service system, for example, when the application a is released currently, the application a of the running historical version does not need to be started and stopped and then released, and can be dynamically loaded to realize online release.
In order to more clearly describe the process of cross-platform publishing, the following description is made with respect to the case where any application to be published needs to be published to multiple middleware types: for any application to be released, if the application to be released corresponds to a plurality of management examples, namely, a node reports configuration information of the plurality of management examples of the application to be released, wherein one management example corresponds to one type of middleware, the fact that release to a plurality of middleware platforms is needed is indicated, and when application medium undeployment is carried out, a plurality of undeployment interfaces are called in parallel according to port information of the plurality of management examples to undeploy the current application medium; and when the application medium is deployed, a plurality of deployment interfaces are called in parallel according to the port information of the plurality of management examples so as to deploy the application medium. The concurrent calling mode can rapidly issue the application to be issued to various types of middleware platforms through a standardized method, and corresponding scripts do not need to be written for each type of middleware.
In addition, in some optional embodiments of the present invention, after the deployment of the application medium is performed, further performing publication verification, where in these optional embodiments, whether the publication of the application to be published is normal is detected through multi-dimensional publication verification, where the multi-dimensional degree includes at least two of: and (3) detecting host index abnormality, database connection abnormality, cluster load abnormality and/or application index abnormality, classifying the abnormality by combining multidimensional index with an AI algorithm, and then carrying out combination judgment, wherein any dimension abnormality detection failure is considered as issuing abnormality. This process corresponds to the release verification phase of fig. 4.
Wherein, host indicator anomaly detection: the LSTM time sequence fitting algorithm is selected by a model through BOMC or host index data such as Disk_io_uteil, CPU_uteil_pct, CPU_iowait_time and Disk_await of an acquisition host, the time sequence property of a long time can be well learned and stored through an input gate, a forgetting gate and an output gate network structure, the prediction capability of future sequence fluctuation is improved, the history data of the index are transmitted into a training model, and the fitting effect is ideal. The LSTM model is trained, and parameters such as the size of a sliding window, the selection of an activation function, the number of hidden layers, the number of neurons and the like are optimized, so that the model has higher accuracy and popularization capability as much as possible.
Wherein, database connection anomaly detection: and packaging and deploying the interfaces of the model, and finally providing detection service in the form of a restful interface. And (5) manually marking the abnormal data, and sending the marked result into the model to optimize the model again.
Wherein, cluster load anomaly detection: the ridge regression is a linear regression model, and is different from the common least square method in that a punishment term L2 norm is added, and the main purpose is to prevent over fitting, so that the model has higher applicability and accuracy. Training the ridge regression model, similar to the ordinary linear regression model training, inputting a training data set after data preprocessing and feature engineering, and designating an initial learning rate to train the model. And parameters such as iteration times, learning rate and the like of the ridge regression model are optimized, so that the model has higher accuracy and popularization capability as much as possible.
Wherein, application class index anomaly detection: the arima algorithm is one of the most commonly used time series algorithms, and is good at predicting regular indicators of trend, such as regular indicator features of stationary type, trend increasing type, periodic type and the like. Wherein the core parameters are the fixed order of p, q and the difference d. The current auto-arima algorithm may automatically select the optimization parameters. The method has the advantages that the model is relatively simple and has high interpretability. The basic idea of the xgboost algorithm is that of a lifting tree, the latter model learns the residuals of the fitting previous model, and thus iterates repeatedly until all residuals are fitted. The xgboost model established after the better feature transformation is used for carrying out regression of time series and has better performance on most index sets. Training an arima model and an Xgoost model, firstly, screening important features by using a coefficient of Kerning as a reference through woe transformation, extracting time sequence features and digital features required by the model, and participating in model training. The Auto-arima only needs to be transmitted into a training data set of the feature engineering, and the algorithm automatically searches for proper steps p, q and a differential parameter d; the training data set after feature conversion is input into an xgboost algorithm training model in the same way, and the main task is to screen out optimal parameters including maximum iteration times, learning rate, maximum tree and maximum depth parameters of the tree for tuning, and an effective model is obtained by using a test set and MAPE as a judgment standard, so that the model has higher accuracy and popularization capability as much as possible.
In the above-mentioned multi-dimensional detection alternative embodiment, if an abnormality caused by an application medium, that is, an abnormality of an application class index is detected, the current application medium of the history cache is obtained from the temporary location, and the previous version is returned. And in the temporary position of the machine, the application media of the previous version and the current version are cached, wherein the application media of the previous version are the current application media, and if the application media cause release abnormality, the node can quickly acquire the current application media from the temporary position of the machine and fall back to the previous version, so that quick fall back is realized.
According to the cross-platform online release method provided by the embodiment, at least the following effects can be achieved:
firstly, release efficiency promotes. The online publishing of the heterogeneous middleware is achieved through the online adapter mechanism, the middleware instance is not required to be restarted in the publishing process, the links which consume longer time in the publishing process are reduced, and the publishing efficiency is greatly improved.
Secondly, the release quality and efficiency are ensured. The release action is linked with release verification, a multidimensional AI algorithm release verification mechanism is adopted, release results are immediately combined and judged after online release is completed, release quality is ensured, and meanwhile, a repair measure is adopted for early service failure discovery, so that release efficiency is further improved.
Thirdly, the manual maintenance script workload is reduced. The on-line release adapter realizes release action standardized management of the cross-middleware platform, various actions related to release of the middleware are standardized into an internal method while the release efficiency is improved, a large number of scripts are not required to be written, the operation and maintenance difficulty is reduced, and meanwhile, the maintenance workload is reduced.
To facilitate an understanding of embodiments of the present invention, an online publishing process involved in the present invention is illustrated in a complete publishing flowchart. FIG. 5 shows an overall flow chart of the online publication of the present invention. As shown in fig. 5, a total of 4 stages are included:
stage one, a pretreatment stage: and the method is operated in advance in idle time, reduces the formally released time, and mainly comprises the operations of backup of application packages, downloading of new application packages, creation of application versions and pushing of the new application packages.
Stage two, release stage: and the application package is published to the middleware of the corresponding type by adapting to different middleware types through the publishing adapter.
Stage three, verification stage: and judging whether the released version is abnormal or not through multidimensional by combining an AI algorithm, and ensuring the quality of the released version.
Stage four, rollback stage: if the verification phase abnormality detects that the online release abnormality is caused by the application problem, the application package for acquiring the backup is backed back to the previous version.
Fig. 6 shows a schematic structural diagram of a cross-platform online publishing device according to an embodiment of the present invention. As shown in fig. 6, the apparatus includes:
an obtaining module 610, adapted to obtain configuration information of a management instance related to an application to be deployed;
the analysis module 620 is adapted to analyze and obtain port information of the management instance, a machine and an application path where the service instance is located, and directory information of the application medium according to the configuration information; the method comprises the steps of carrying out a first treatment on the surface of the
The downloading module 630 is adapted to download the application medium of the application to be distributed to the temporary location of the target machine according to the machine where the service instance is located;
the publishing module 640 is adapted to call a deployment interface according to the port information of the management instance to perform the deployment of the current application medium when receiving the publishing request, and copy the application medium in the temporary position to the publishing directory in the application path according to the application path and the directory information; and calling a deployment interface according to the port information of the management instance to deploy the application medium.
In an alternative manner, the management instance to which the application to be published refers to a console instance that manages the application service middleware to be published.
In an alternative, the apparatus further comprises: the classification module is suitable for marking the port information of the management instance, the machine and path where the service instance is located and the directory information of the application medium by taking a single application to be issued as a unit, so that the information corresponding to different applications to be issued has different identification information.
In an optional manner, for any application to be published, if the application to be published corresponds to a plurality of management instances, the publishing module further includes:
calling a plurality of undeployment interfaces to undeploy the current application medium according to the port information of the plurality of management examples;
and calling a plurality of deployment interfaces to deploy application media according to the port information of the plurality of management instances.
In an alternative, the apparatus further comprises: the verification module is suitable for detecting whether the release of the application to be released is normal through multi-dimensional release verification, wherein the multi-dimensional comprises at least two of the following: host index anomaly detection, database connection anomaly detection, cluster load anomaly detection and/or application class index anomaly detection.
In an alternative, the apparatus further comprises: and the rollback module is suitable for acquiring the current application medium of the history cache from the temporary position and rollback to the previous version if the abnormality caused by the application medium is detected.
The embodiment of the invention provides a non-volatile computer storage medium, which stores at least one executable instruction, and the computer executable instruction can execute the cross-platform online release method in any method embodiment.
FIG. 7 illustrates a schematic diagram of a computing device according to an embodiment of the present invention, and the embodiment of the present invention is not limited to a specific implementation of the computing device.
As shown in fig. 7, the computing device may include: a processor 702, a communication interface (Communications Interface), a memory 706, and a communication bus 708.
Wherein: processor 702, communication interface 704, and memory 706 perform communication with each other via a communication bus 708. A communication interface 704 for communicating with network elements of other devices, such as clients or other servers. The processor 702 is configured to execute the program 710, and may specifically perform relevant steps in the embodiment of the cross-platform online publishing method for a computing device.
In particular, program 710 may include program code including computer-operating instructions.
The processor 702 may be a Central Processing Unit (CPU), or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included by the computing device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 706 for storing programs 710. The memory 706 may comprise high-speed RAM memory or may further comprise non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 710 may be specifically configured to cause the processor 702 to:
acquiring configuration information of a management instance related to an application to be distributed, and analyzing and obtaining port information of the management instance, a machine and an application path where a service instance is located and directory information of an application medium according to the configuration information;
downloading application media of the application to be distributed to a temporary position of a target machine according to the machine where the service instance is located;
when a release request is received, a deployment interface is called according to port information of the management instance to conduct deployment of the current application medium, and the application medium in a temporary position is copied to a release catalog in an application path according to the application path and catalog information;
and calling a deployment interface according to the port information of the management instance to deploy the application medium.
In an alternative manner, the management instance to which the application to be published refers to a console instance that manages the application service middleware to be published.
In an alternative, the program 710 further causes the processor 702 to:
and marking the port information of the management instance, the machine and path where the service instance is located and the directory information of the application medium by taking a single application to be issued as a unit, so that the information corresponding to different applications to be issued has different identification information.
In an alternative, the program 710 further causes the processor 702 to:
for any application to be released, if the application to be released corresponds to a plurality of management examples, a plurality of undeployment interfaces are called in parallel according to the port information of the plurality of management examples so as to undeploy the current application medium;
and calling a plurality of deployment interfaces to deploy application media according to the port information of the plurality of management instances.
In an alternative, the program 710 further causes the processor 702 to:
detecting whether the release of the application to be released is normal through multi-dimensional release verification, wherein the multi-dimensional degree comprises at least two of the following: host index anomaly detection, database connection anomaly detection, cluster load anomaly detection and/or application class index anomaly detection.
In an alternative, the program 710 further causes the processor 702 to:
if an abnormality caused by the application medium is detected, the current application medium of the history cache is acquired from the temporary position, and the current application medium is returned to the previous version.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of embodiments of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the embodiments of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., an embodiment of the invention that is claimed, requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components according to embodiments of the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). Embodiments of the present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the embodiments of the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. Embodiments of the invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (9)

1. A cross-platform online release method comprises the following steps:
acquiring configuration information of a plurality of management examples related to an application to be distributed, and analyzing and obtaining port information of the management examples, a machine and an application path where a service example is located and directory information of an application medium according to the configuration information; the management instance refers to a console instance for managing application service middleware to be issued; each management instance corresponds to a type of middleware; the machine and the application path of the service instance refer to the machine and the path of the history version of the application to be distributed; the catalog information of the application media refers to the catalog of the history version of the application media to be distributed under the distribution path;
determining a machine published by a history version of the application to be published according to the machine where the service instance corresponding to the application to be published is located, and informing a target node deployed on the machine to download an application medium of the application to be published, wherein the target node downloads the application medium to a temporary position of the machine where the target node is located;
when a service adapter receives a release request, the service adapter transmits a command to inform a node adapter, a deployment interface is called according to port information of the management instance so as to conduct deployment of the current application medium of the application to be deployed through the deployment interface, the service adapter transmits the command to inform the node adapter to conduct application medium replacement according to the application path and directory information, and the node adapter responds to the command to copy the latest application medium in a temporary position in a machine into a release directory in the application path to replace the current application medium in the release directory; the service adapter operates on an online release service, and the node adapter operates on a node;
the service adapter issues an instruction to inform the node adapter to call a deployment interface according to the port information of the management instance so as to deploy the application medium through the deployment interface.
2. The method of claim 1, wherein after the analyzing according to the configuration information obtains port information of a management instance, a machine and an application path where a service instance is located, and directory information of an application medium, the method further comprises:
and marking the port information of the management instance, the machine and path where the service instance is located and the directory information of the application medium by taking a single application to be issued as a unit, so that the information corresponding to different applications to be issued has different identification information.
3. The method of claim 1, wherein for any application to be published, if the application to be published corresponds to a plurality of management instances, the invoking a undeployment interface according to the port information of the management instance to undeploy the active application medium of the application to be published through the undeployment interface further comprises:
according to the port information of the management examples, a plurality of undeployment interfaces are called in parallel to undeploy the current application medium of the application to be deployed through the undeployment interfaces;
and the calling a deployment interface according to the port information of the management instance to deploy the application medium through the deployment interface further comprises:
and calling a plurality of deployment interfaces according to the port information of the plurality of management examples to deploy application media through the plurality of deployment interfaces.
4. The method of claim 1, wherein after the deploying of the application medium, the method further comprises:
detecting whether the release of the application to be released is normal through multi-dimensional release verification, wherein the multi-dimensional degree comprises at least two of the following: host index anomaly detection, database connection anomaly detection, cluster load anomaly detection and/or application class index anomaly detection.
5. The method of claim 4, wherein after the detecting whether the publication of the application to be published is normal through multi-dimensional publication verification, the method further comprises:
if an abnormality caused by the application medium is detected, the current application medium of the history cache is acquired from the temporary position, and the current application medium is returned to the previous version.
6. A cross-platform online publication apparatus, comprising:
the acquisition module is suitable for acquiring configuration information of a plurality of management examples related to the application to be distributed;
the analysis module is suitable for analyzing and obtaining port information of the management instance, a machine and application path where the service instance is located and directory information of the application medium according to the configuration information; the management instance refers to a console instance for managing application service middleware to be issued; each management instance corresponds to a type of middleware; the machine and the application path of the service instance refer to the machine and the path of the history version of the application to be distributed; the catalog information of the application media refers to the catalog of the history version of the application media to be distributed under the distribution path;
the downloading module is suitable for determining a machine published by a historical version of the application to be published according to the machine where the corresponding service instance of the application to be published is located, notifying a target node deployed on the machine to download an application medium of the application to be published, and downloading the application medium to a temporary position of the machine where the target node is located by the target node;
the service adapter is suitable for issuing a command to inform the node adapter when receiving an issuing request, calling a deployment interface according to port information of the management instance to deploy the current application medium of the application to be deployed through the deployment interface, and issuing the command to inform the node adapter to replace the application medium according to the application path and the directory information, wherein the node adapter copies the latest application medium in a temporary position in a machine to an issuing directory in the application path to replace the current application medium in the issuing directory in response to the command; the service adapter operates on an online release service, and the node adapter operates on a node; the service adapter issues an instruction to inform the node adapter to call a deployment interface according to the port information of the management instance so as to deploy the application medium through the deployment interface.
7. The apparatus of claim 6, wherein the apparatus further comprises: the classification module is suitable for marking the port information of the management instance, the machine and path where the service instance is located and the directory information of the application medium by taking a single application to be issued as a unit, so that the information corresponding to different applications to be issued has different identification information.
8. A computing device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform the operations corresponding to the cross-platform online publishing method according to any one of claims 1-5.
9. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the cross-platform online publication method of any one of claims 1-5.
CN202011103485.9A 2020-10-15 2020-10-15 Cross-platform online publishing method and device, computing equipment and storage medium Active CN114374677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011103485.9A CN114374677B (en) 2020-10-15 2020-10-15 Cross-platform online publishing method and device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011103485.9A CN114374677B (en) 2020-10-15 2020-10-15 Cross-platform online publishing method and device, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114374677A CN114374677A (en) 2022-04-19
CN114374677B true CN114374677B (en) 2023-12-26

Family

ID=81137859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011103485.9A Active CN114374677B (en) 2020-10-15 2020-10-15 Cross-platform online publishing method and device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114374677B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419607A (en) * 2008-11-27 2009-04-29 浙江大学 Method for deploying JAR file in file system to simulator by using command line
CN101453410A (en) * 2007-12-07 2009-06-10 北京闻言科技有限公司 Method for enhancing file downloading speed through application cache
CN101931944A (en) * 2010-07-23 2010-12-29 华为终端有限公司 Method, device and system for updating terminal patches on line
CN103634144A (en) * 2013-11-15 2014-03-12 新浪网技术(中国)有限公司 Method, system and equipment for managing multi-IDC (internet data center) cluster configuration file
CN104346697A (en) * 2014-10-31 2015-02-11 亚信科技(南京)有限公司 Method and system for issuing product in grading way
CN104378397A (en) * 2013-08-15 2015-02-25 世纪禾光科技发展(北京)有限公司 Method and system for issuing incremental updating of program package
CN105511854A (en) * 2015-11-26 2016-04-20 深圳市金立通信设备有限公司 Application fallback method and terminal equipment
KR20170047911A (en) * 2015-10-26 2017-05-08 에스케이텔레콤 주식회사 Server update method and server for continually providing operation during execution of update
CN106874040A (en) * 2017-01-17 2017-06-20 武汉天喻教育科技有限公司 Realize that PC ends software is mourned in silence the system and method for upgrading based on Windows services
CN107315608A (en) * 2017-06-22 2017-11-03 上海艾融软件股份有限公司 Towards the hot update method of mobile terminal mixed mode
CN108874409A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of information updating method, device, server and system
CN109981461A (en) * 2017-12-27 2019-07-05 华为技术有限公司 A kind of data transmission method, apparatus and system
WO2020000811A1 (en) * 2018-06-29 2020-01-02 平安科技(深圳)有限公司 Application component deployment method and apparatus, and computer storage medium
CN110780937A (en) * 2019-09-16 2020-02-11 腾讯大地通途(北京)科技有限公司 Task issuing method and device, computer readable storage medium and equipment
CN110855735A (en) * 2019-09-20 2020-02-28 广州亚美信息科技有限公司 Project publishing method, device and system and computer equipment
CN111240722A (en) * 2020-01-07 2020-06-05 翱捷科技(上海)有限公司 Method for upgrading firmware over the air, and terminal, server and system applied by same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9037642B2 (en) * 2011-08-29 2015-05-19 Fiberlink Communications Corporation Platform for deployment and distribution of modules to endpoints

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453410A (en) * 2007-12-07 2009-06-10 北京闻言科技有限公司 Method for enhancing file downloading speed through application cache
CN101419607A (en) * 2008-11-27 2009-04-29 浙江大学 Method for deploying JAR file in file system to simulator by using command line
CN101931944A (en) * 2010-07-23 2010-12-29 华为终端有限公司 Method, device and system for updating terminal patches on line
CN104378397A (en) * 2013-08-15 2015-02-25 世纪禾光科技发展(北京)有限公司 Method and system for issuing incremental updating of program package
CN103634144A (en) * 2013-11-15 2014-03-12 新浪网技术(中国)有限公司 Method, system and equipment for managing multi-IDC (internet data center) cluster configuration file
CN104346697A (en) * 2014-10-31 2015-02-11 亚信科技(南京)有限公司 Method and system for issuing product in grading way
KR20170047911A (en) * 2015-10-26 2017-05-08 에스케이텔레콤 주식회사 Server update method and server for continually providing operation during execution of update
CN105511854A (en) * 2015-11-26 2016-04-20 深圳市金立通信设备有限公司 Application fallback method and terminal equipment
CN106874040A (en) * 2017-01-17 2017-06-20 武汉天喻教育科技有限公司 Realize that PC ends software is mourned in silence the system and method for upgrading based on Windows services
CN108874409A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of information updating method, device, server and system
CN107315608A (en) * 2017-06-22 2017-11-03 上海艾融软件股份有限公司 Towards the hot update method of mobile terminal mixed mode
CN109981461A (en) * 2017-12-27 2019-07-05 华为技术有限公司 A kind of data transmission method, apparatus and system
WO2020000811A1 (en) * 2018-06-29 2020-01-02 平安科技(深圳)有限公司 Application component deployment method and apparatus, and computer storage medium
CN110780937A (en) * 2019-09-16 2020-02-11 腾讯大地通途(北京)科技有限公司 Task issuing method and device, computer readable storage medium and equipment
CN110855735A (en) * 2019-09-20 2020-02-28 广州亚美信息科技有限公司 Project publishing method, device and system and computer equipment
CN111240722A (en) * 2020-01-07 2020-06-05 翱捷科技(上海)有限公司 Method for upgrading firmware over the air, and terminal, server and system applied by same

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Efficient Publish/Subscribe Through a Self-Organizing Broker Overlay and its Application to SIENA;Roberto Baldoni et al.;《The Computer Journal》;全文 *
Mobile Application Development Experiences on Apple’s iOS and Android OS;Kim W. Tracy;《IEEE Potentials》;全文 *
海量存储系统的部署方案设计;贾昭元;管海兵;;计算机应用与软件(第08期);全文 *
软件发布机制体系结构研究;赵雨水;左春;杨立;杨泳;;计算机工程与设计(第04期);全文 *

Also Published As

Publication number Publication date
CN114374677A (en) 2022-04-19

Similar Documents

Publication Publication Date Title
US10419546B2 (en) Migration assessment for cloud computing platforms
EP2210183B1 (en) Managing updates to create a virtual machine facsimile
US7359824B2 (en) Systems and methods for a distributed execution environment with per-command environment management
JP5535484B2 (en) Automated software testing framework
US9535754B1 (en) Dynamic provisioning of computing resources
US8918783B2 (en) Managing virtual computers simultaneously with static and dynamic dependencies
US20140282848A1 (en) System and Method to Provide Management of Test Data at Various Lifecycle Stages
CN108776643B (en) Target code merging control method and system based on version control process
US8930761B2 (en) Test case result processing
CN110740184B (en) Transaction strategy testing system based on micro-service architecture
JP2017201470A (en) Setting support program, setting support method, and setting support device
US9256509B1 (en) Computing environment analyzer
US20070234328A1 (en) File handling for test environments
CA3150183A1 (en) Flink streaming processing engine method and device for real-time recommendation and computer equipment
CN110291505A (en) Reduce the recovery time of application
US11151020B1 (en) Method and system for managing deployment of software application components in a continuous development pipeline
US20050108704A1 (en) Software distribution application supporting verification of external installation programs
US20060168492A1 (en) Graceful load fail over
CN114237754A (en) Data loading method and device, electronic equipment and storage medium
CN114374677B (en) Cross-platform online publishing method and device, computing equipment and storage medium
CN113238956B (en) Fault analysis method, device, equipment and storage medium for abnormal application
CN111209197B (en) Application continuous integration test method, system, equipment and storage medium
US20210132934A1 (en) Cluster deployment
CN113360389A (en) Performance test method, device, equipment and storage medium
CN111552648A (en) Automatic verification method and system for application

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