CN110096284B - Method and device for visually releasing software, electronic equipment and storage medium - Google Patents

Method and device for visually releasing software, electronic equipment and storage medium Download PDF

Info

Publication number
CN110096284B
CN110096284B CN201910319738.7A CN201910319738A CN110096284B CN 110096284 B CN110096284 B CN 110096284B CN 201910319738 A CN201910319738 A CN 201910319738A CN 110096284 B CN110096284 B CN 110096284B
Authority
CN
China
Prior art keywords
software
distributed
node
released
published
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
CN201910319738.7A
Other languages
Chinese (zh)
Other versions
CN110096284A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201910319738.7A priority Critical patent/CN110096284B/en
Publication of CN110096284A publication Critical patent/CN110096284A/en
Application granted granted Critical
Publication of CN110096284B publication Critical patent/CN110096284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for visually releasing software, wherein the method comprises the following steps: acquiring software to be distributed, and inquiring deployment information of the distributed software corresponding to the software to be distributed, wherein the deployment information of the distributed software comprises: node information of the nodes deploying the published software and node identification information of the nodes deploying the published software; calling a display interface corresponding to the deployment information of the released software, and displaying the deployment information; acquiring an issuing command input by a worker, issuing software to be issued according to the deployment information of the issued software, and displaying the deployment information of the software to be issued after deployment to a display interface. According to the embodiment of the invention, in the process of releasing the software, the release code is prevented from being manually input, so that the workload of releasing the new version software by a worker can be reduced, and errors in the process of releasing the new version software are reduced.

Description

Method and device for visually releasing software, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for visually publishing software.
Background
With the increasing development of the software industry, the number of software is increased, and the variety of software is increased, so that in order to ensure the viscosity of the software to users, in general, various types of software can update the software version periodically or irregularly, i.e. release a new version of software, so that users use the new version of software to replace the old version of software. For example, for a cloud computing service provider, a new version of cloud server console software may be released onto a server, and then the user may use the new version of cloud server console software released on the server.
However, in the related art, when releasing a new version of software, a worker typically releases the new version of software to a server by manually inputting a release code on a back-end device communicatively connected to the server. When the release codes are more, errors are easy to input, and once the release codes are input errors, the release of new version software can not be realized, and the error code is time-consuming to check.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, electronic equipment and a storage medium for visually releasing software, so as to reduce the workload of a worker for releasing new version software and reduce errors in the release process of the new version software. The specific technical scheme is as follows:
In a first aspect, an embodiment of the present invention provides a method for visually publishing software, where the method includes:
acquiring software to be distributed, and inquiring deployment information of the distributed software corresponding to the software to be distributed, wherein the deployment information of the distributed software comprises: node information of the nodes deploying the published software and node identification information of the nodes deploying the published software;
calling a display interface corresponding to the deployment information of the released software, and displaying the deployment information;
acquiring an issuing command input by a worker, issuing software to be issued according to the deployment information of the issued software, and displaying the deployment information of the software to be issued after deployment to a display interface.
Optionally, the software to be distributed has a plurality of modules to be distributed, and the software to be distributed has a plurality of modules to be distributed; the plurality of modules to be published and the plurality of modules already published have a one-to-one correspondence;
optionally, querying deployment information of the published software corresponding to the software to be published includes:
inquiring deployment information of each published module of the published software corresponding to the software to be published;
optionally, calling a display interface corresponding to the deployment information of the published software to display the deployment information, including:
Calling a display interface corresponding to the deployment information of each published module, and displaying the deployment information of each published module;
optionally, the software to be released is released according to the deployment information of the released software, and the deployment information of the software to be released after deployment is displayed on the display interface, including:
according to the deployment information of each released module, releasing the module to be released corresponding to each released module, and displaying the deployment information of each module to be released of the software to be released after deployment to a display interface.
Optionally, publishing the software to be published according to the deployment information of the published software includes:
and deploying the software to be deployed into the node corresponding to the deployment information of the deployed software.
Optionally, the software to be released is released according to the deployment information of the released software, and the deployment information of the software to be released after deployment is displayed on the display interface, including:
deploying the nodes to be deployed, the quantity of which is the same as that of the nodes of the software to be deployed, and deploying the software to be deployed into the nodes to be deployed;
modifying node information of the nodes to be released according to the node information of the nodes of the released software, and displaying the modified node information of the nodes to be released to a display interface.
Optionally, the method for visually releasing software further includes: acquiring flow switching time input by a worker;
after displaying the modified node information of the node to be distributed to the display interface, optionally, the method for visually distributing software further includes:
and switching the flow of the released node deploying the released software to the node to be released deploying the software to be released according to the flow switching time.
Optionally, switching the traffic of the published node deploying the published software to the to-be-published node deploying the to-be-published software includes:
acquiring a first configuration file of a released node for deploying released software and a second configuration file of a node to be released for deploying software to be released;
modifying the second configuration file into the first configuration file;
restarting the node to be distributed for deploying the software to be distributed so as to enable the modified second configuration file to be effective.
In a second aspect, an embodiment of the present invention further provides an apparatus for visually publishing software, where the apparatus includes:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring software to be distributed and inquiring deployment information of the distributed software corresponding to the software to be distributed, and the deployment information of the distributed software comprises: node information of the nodes deploying the published software and node identification information of the nodes deploying the published software;
The display module is used for calling a display interface corresponding to the deployment information of the released software and displaying the deployment information;
the deployment module is used for acquiring the release command input by the staff, releasing the software to be released according to the deployment information of the released software, and displaying the deployment information of the deployed software to be released to the display interface.
Optionally, the software to be distributed has a plurality of modules to be distributed, and the software to be distributed has a plurality of modules to be distributed; the plurality of modules to be published and the plurality of modules already published have a one-to-one correspondence;
optionally, the acquiring module is specifically configured to:
inquiring deployment information of each published module of the published software corresponding to the software to be published;
optionally, the display module is specifically configured to:
calling a display interface corresponding to the deployment information of each published module, and displaying the deployment information of each published module;
optionally, the deployment module is specifically configured to:
according to the deployment information of each released module, releasing the module to be released corresponding to each released module, and displaying the deployment information of each module to be released of the software to be released after deployment to a display interface.
Optionally, the deployment module is specifically configured to:
And deploying the software to be deployed into the node corresponding to the deployment information of the deployed software.
Optionally, the deployment module includes:
the node deployment sub-module is used for deploying the nodes to be deployed, the quantity of which is the same as that of the nodes of the released software, of the software to be deployed, and deploying the software to be deployed into the nodes to be deployed;
the node information modification sub-module is used for modifying the node information of the nodes to be released according to the node information of the nodes of the released software, and displaying the modified node information of the nodes to be released to the display interface.
Optionally, the device for visually releasing software further includes: the flow switching time acquisition module is used for acquiring the flow switching time input by the staff;
and the flow switching module is used for switching the flow of the released node for deploying the released software to the node to be released for deploying the software to be released according to the flow switching time.
Optionally, the flow switching module includes:
the configuration file acquisition sub-module is used for acquiring a first configuration file of a released node for deploying released software and a second configuration file of a node to be released for deploying software to be released;
a configuration file modification sub-module for modifying the second configuration file into the first configuration file;
And the restarting sub-module is used for restarting the nodes to be distributed for deploying the software to be distributed so as to enable the modified second configuration file to take effect.
In a third aspect, embodiments of the present invention also provide an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the method steps of the visual release software provided in the first aspect are realized.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program, when executed by a processor, implements the method steps of visually releasing software provided in the first aspect.
In a fifth aspect, embodiments of the present invention also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps of a visual distribution software provided in the first aspect described above.
In a sixth aspect, an embodiment of the present invention further provides a computer program, which when run on a computer, causes the computer to perform the method steps of a visual distribution software provided in the first aspect.
The method, the device, the electronic equipment and the storage medium for visually releasing the software can query the deployment information of the released software corresponding to the software to be released after the software to be released is acquired. And then, calling a display interface corresponding to the deployment information of the released software to display the deployment information, so that a worker can clearly know the deployment condition of the released software, after acquiring a release command input by the worker, the software to be released can be released according to the deployment information of the released software, and after the software to be released is released, the deployment information of the software to be released after being deployed can be displayed on the display interface. Therefore, the staff can clearly know the release condition of the software to be released, and the embodiment of the invention can avoid manual input of release codes in the release process of the software, thereby reducing the workload of the staff for releasing the new version software and reducing errors in the release process of the new version software. Of course, not all of the above-described advantages need be achieved simultaneously in the practice of any one product or method of the present invention.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for visually distributing software according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for visually distributing software according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a display interface in the method for visually distributing software shown in FIG. 2;
FIG. 4 is a flowchart of a method for visually distributing software according to a third embodiment of the present invention;
FIG. 5 is a schematic diagram of a display interface in the method for visually distributing software shown in FIG. 4;
FIG. 6 is a flowchart of a method for visually distributing software according to a fourth embodiment of the present invention;
FIG. 7 is a flowchart of a method for visually distributing software according to a fifth embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a device for visually distributing software according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to solve the problems in the prior art, the embodiment of the invention provides a method, a device, electronic equipment and a storage medium for visually releasing software, so as to reduce the workload of a worker for releasing new version software and reduce errors in the release process of the new version software.
In the following, a method for visually publishing software according to an embodiment of the present invention is first described, as shown in fig. 1, which is a flowchart of a first implementation of a method for visually publishing software according to an embodiment of the present invention, where the method may include:
s110, acquiring the software to be distributed, and inquiring the deployment information of the distributed software corresponding to the software to be distributed.
The deployment information of the released software comprises: the node information of the node for deploying the published software and the node identification information of the node for deploying the published software may include: the IP address, port information, etc. of the node where the published software is deployed.
In some examples, when an electronic device employing a method for visually releasing software according to an embodiment of the present invention releases software to be released, a worker may first upload the software to be released to the electronic device, and therefore, the electronic device may acquire the software to be released.
After the electronic device acquires the software to be distributed, the display interface corresponding to the software to be distributed can be called to display the software to be distributed, so that staff can see each file in the software to be distributed and the structure of the software to be distributed, and the uploaded software is ensured to be the software to be distributed.
In some examples, after the electronic device obtains the software to be distributed, the electronic device may query deployment information of the distributed software corresponding to the software to be distributed. So that the staff is made aware of the deployment of the released software.
In some examples, the software to be distributed may be the next version of the software to be distributed, which may be the last version of the software to be distributed, that is, to enable the same type of software to normally perform version iterations, the two versions of software should have the same deployment situation to reduce the impact of version iterations on user use.
In some examples, the node may be multiple server nodes deployed at different locations, or multiple server nodes deployed at the same location that serve users in different areas.
S120, calling a display interface corresponding to the deployment information of the released software, and displaying the deployment information.
After the electronic device acquires the deployment information of the released software, the electronic device can call a display interface corresponding to the deployment information of the released software to display the deployment information so that a worker can check the deployment information of the released software.
S130, acquiring an issuing command input by a worker, issuing software to be issued according to the deployment information of the issued software, and displaying the deployment information of the software to be issued after deployment to a display interface.
In some examples, the display interface corresponding to the deployment information of the released software may be provided with a "start release" button, and after the completion of the inspection of the deployment information of the released software, the worker may click on the "start release" button to release the software to be released.
When the electronic device acquires the issuing command input by the staff, the software to be issued can be issued according to the deployment information of the issued software.
In some examples, when the electronic device publishes the software to be published according to the deployment information of the published software, the software to be published may be deployed into a node corresponding to the deployment information of the published software. That is, the software to be distributed is sent to the node corresponding to the deployment information of the distributed software, and then the distributed software is deleted in each node.
In some examples, after the electronic device issues the software to be issued, in order to enable a worker to clearly know the issue condition of the software to be issued, the deployed information of the software to be issued after deployment may be displayed on a display interface. In some examples, the display interface may be the same as or similar to a display interface corresponding to published software.
By the method for visually releasing the software, provided by the embodiment of the invention, after the software to be released is obtained, the deployment information of the released software corresponding to the software to be released can be queried. And then, calling a display interface corresponding to the deployment information of the released software to display the deployment information, so that a worker can clearly know the deployment condition of the released software, after acquiring a release command input by the worker, the software to be released can be released according to the deployment information of the released software, and after the software to be released is released, the deployment information of the software to be released after being deployed can be displayed on the display interface. Therefore, the staff can clearly know the release condition of the software to be released, and the embodiment of the invention can avoid manual input of release codes in the release process of the software, thereby reducing the workload of the staff for releasing the new version software and reducing errors in the release process of the new version software.
In some examples, the software to be distributed may have a plurality of modules to be distributed, and the software to be distributed may also have a plurality of modules to be distributed; the plurality of modules to be distributed and the plurality of distributed modules have a one-to-one correspondence. The multiple published modules of published software may be deployed on different nodes.
In this regard, on the basis of the method for visually releasing software shown in fig. 1, the embodiment of the present invention further provides a possible implementation manner, as shown in fig. 2, which is a flowchart of a second implementation manner of the method for visually releasing software according to the embodiment of the present invention, where the method may include:
s111, acquiring the software to be distributed, and inquiring the deployment information of each distributed module of the distributed software corresponding to the software to be distributed.
In some examples, when the published software has a plurality of published modules and the plurality of published modules are deployed on different nodes, the electronic device may query deployment information of each of the published modules of the published software when querying deployment information of the published software corresponding to the software to be published.
In some examples, the published module may be a software module of the published software that may be used to provide a user with a portion of a particular service in the published software.
S121, calling a display interface corresponding to the deployment information of each released module, and displaying the deployment information of each released module.
After the electronic device queries the deployment information of each published module of the published software corresponding to the software to be published, the electronic device can call the display interface corresponding to the deployment information of each published module to display the deployment information of each published module. As shown in fig. 3, a display interface in the method for visually distributing software shown in fig. 2 may display deployment information of a host console module in distributed cloud host management software. In fig. 3, the task name "host console switch" is a module in the cloud host management software, the module "kec-api-preview" is the english name of the host console control module, see fig. 3, the host console module is deployed on two nodes, namely "node 1" and "node 2", the node information of the node 1 "is the IP address" 10.69.32.54 "of the node 1", and the node information of the node 2 "is the IP address" 10.69.32.232 "of the node 2", which means that the host console module is deployed on two different nodes.
By displaying the deployment information of each published module of the published software, the staff can clearly know the node information and the node names of the nodes of each published module deploying the published software.
S131, acquiring an issuing command input by a worker, issuing the module to be issued corresponding to each issued module according to the deployment information of each issued module, and displaying the deployment information of each module to be issued of the software to be issued to a display interface.
After the deployment information of each published module is displayed by the electronic device, a worker can check the node for deploying each published module so as to ensure the normal operation of the node for deploying each published module, and then a publishing command can be input. Therefore, the electronic device described above can receive the issuing command input by the worker.
After receiving the issuing command input by the staff, the electronic device can issue the corresponding module to be issued according to the deployment information of each issued module, and after the corresponding module to be issued is issued, the deployment information of each module to be issued of the software to be issued can be displayed on a display interface for the staff to review.
According to the embodiment of the invention, each module to be distributed of the software to be distributed can be deployed according to the deployment information of each module to be distributed of the software to be distributed, so that each module to be distributed can be deployed on different nodes. The flexibility of the method for visually releasing the software by applying the embodiment of the invention is increased.
On the basis of the method for visually releasing software shown in fig. 1, the embodiment of the present invention further provides a possible implementation manner, as shown in fig. 4, which is a flowchart of a third implementation manner of the method for visually releasing software according to the embodiment of the present invention, in step S120, after calling a display interface corresponding to deployment information of the released software and displaying the deployment information, the method may include:
s132, deploying the nodes to be deployed, the number of which is the same as that of the nodes of the released software, of the software to be deployed, and deploying the software to be deployed into the nodes to be deployed.
In some examples, the electronic device may set a node to be issued for the software to be issued in advance, in addition to deploying the software to be issued on the node of the issued software, and then upload the software to be issued into the node to be issued.
In some examples, the electronic device may be communicatively connected with a plurality of nodes, and then select, among the plurality of nodes, as the nodes to be distributed, the same number of nodes as the nodes of the distributed software.
After the electronic device selects the node to be distributed to obtain the software to be distributed, in order to distribute the software to be distributed, the software to be distributed may be uploaded to the node to be distributed.
S133, modifying the node information of the nodes to be released according to the node information of the nodes of the released software, and displaying the modified node information of the nodes to be released to a display interface.
After the electronic device uploads the software to be issued to the node to be issued, in order to enable the user to access the node to be issued so as to complete the issuing of the software to be issued, the node information of the node to be issued can be modified according to the node information of the node of the software to be issued.
For example, assume that the node information of the node to be distributed is an IP address of the node to be distributed in the intranet of the company. The node information of the published node is an IP address of the published node in the external network, and the electronic device may modify the IP address of the node to be published in the company intranet into an IP address of the published node in the external network. In this way, the user can access the node to be deployed through the external network IP address.
In some examples, after modifying the node information of the node to be distributed, the electronic device may display the modified node information of the node to be distributed, for example, as shown in fig. 5, which is a schematic diagram of a display interface in the method of visually distributing software shown in fig. 4, in fig. 5, the modified node information corresponding to the node to be distributed "node 1" and "node 2" may be included, where the modified node information corresponding to the node 1 "to be distributed is an IP address" 10.69.32.229", and the modification state is" success "; the modified node information corresponding to the node 2 is the IP address 10.69.32.228, and the modification state is successful.
In some examples, the electronic device may further output a log file in the modification process, when the modification is successful, output the log file that is successful as a correct file, and when the modification is failed, output the log file that is failed to be modified as an error file, so that a worker can check an error occurring according to the error file, so as to modify the error.
In some examples, when modifying the node information, some alert information or alarm information may appear, for which the above-described electronic device also provides operations for alert information or alarm information, which may include "ignore", "repeat", and "stop". Wherein the 'neglect' operation is used for disregarding the reminding information or the alarm information, and the 'repeat' operation is used for repeatedly executing the step of modifying the node information after the reminding information or the alarm information appears. The stop operation is used for stopping executing the step of modifying the node information after the reminding information or the alarm information appears.
By the embodiment of the invention, the software to be released can be conveniently released by staff, namely, the software to be released can be released by modifying the node information of the node corresponding to the software to be released, so that the workload of the staff for releasing the new version of software can be reduced.
On the basis of the method for visually releasing software shown in fig. 2, the embodiment of the present invention further provides a possible implementation manner, as shown in fig. 6, which is a flowchart of a fourth implementation manner of the method for visually releasing software according to the embodiment of the present invention, in step S121, after calling a display interface corresponding to the deployment information of each released module and displaying the deployment information of each released module, the method may include:
s134, setting nodes to be distributed, which are the same as nodes of each distributed module of the distributed software, of each module to be distributed of the distributed software, and deploying each module to be distributed of the distributed software into the corresponding node to be distributed.
In some examples, when the software to be distributed has a plurality of modules to be distributed and the software to be distributed has a plurality of modules to be distributed, the electronic device may set, for each module to be distributed, a node to be distributed that is the same as a node of the module to be distributed corresponding to the module to be distributed, and then upload the module to be distributed to the corresponding node to be distributed.
In this way, each module to be distributed of the software to be distributed can have a corresponding node to be distributed.
S135, according to the node information of the nodes of each issued module of the issued software, modifying the node information of the corresponding nodes to be issued of the modules to be issued, and displaying the node information of the nodes to be issued of the modified nodes to be issued to a display interface.
After the corresponding nodes to be distributed are set for each module of the software to be distributed, in order to enable the user to access each node to be distributed, each module in the nodes to be distributed can serve the user, the electronic equipment can modify the node information of the corresponding nodes to be distributed of the modules to be distributed according to the node information of the nodes of each distributed module of the distributed software.
For example, assuming that the software to be issued has "module to be issued 1" and "module to be issued 2", the "module to be issued 1" is set in "node to be issued 1" and "node to be issued 2", the "module to be issued 2" is set in "node to be issued 3" and "node to be issued 4", the above-described electronic device may set "node to be issued 1" and "node to be issued 2" for the "module to be issued 1" and "node to be issued 3" and "node to be issued 4" for the "module to be issued 2".
Then, the electronic device may upload the "module to be distributed 1" to the "node to be distributed 1" and the "node to be distributed 2", and upload the "module to be distributed 2" to the "node to be distributed 3" and the "node to be distributed 4", respectively.
Finally, the node information of the "node 1 to be issued" may be modified according to the node information of the "node 1 to be issued", the node information of the "node 2 to be issued" may be modified according to the node information of the "node 3 to be issued", the node information of the "node 3 to be issued" may be modified according to the node information of the "node 4 to be issued", and the node information of the "node 4 to be issued" may be modified.
Therefore, after the software to be distributed is distributed, the distributed software can be completely replaced to provide services for users.
After the node information is modified, the electronic device can display the node information of the modified node to be distributed to the display interface in order to enable the staff to check the node information of the modified node to be distributed.
According to the embodiment of the invention, a worker can clearly know the deployment condition of each module to be distributed, and in the deployment process, when a problem occurs, the module to be distributed or the node to be distributed corresponding to the module to be distributed, which is in the problem, can be clearly known, so that the error can be conveniently checked, and the workload of the worker for distributing new version software can be reduced.
On the basis of the method for visually releasing software shown in fig. 4, the embodiment of the present invention further provides a possible implementation manner, as shown in fig. 7, which is a flowchart of a fifth implementation manner of the method for visually releasing software in the embodiment of the present invention, in S133, after modifying node information of a node to be released according to node information of a node to be released, and displaying the modified node information of the node to be released to a display interface, the method for visually releasing software may further include:
s140, acquiring flow switching time input by a worker.
S150, switching the flow of the released node deploying the released software to the node to be released deploying the software to be released according to the flow switching time.
In some examples, in order to enable a user to access the software to be distributed after the software to be distributed is distributed, that is, to switch the user traffic corresponding to the distributed software to be distributed.
In some examples, the electronic device may start the flow switching after displaying the modified node information of the node to be distributed to the display interface.
In some examples, the display interface may also be provided with a "switch traffic" button, and the worker may click on the "switch traffic" button, and after the electronic device receives the switch traffic instruction generated by the worker clicking on the "switch traffic" button, the worker starts to switch traffic.
In still other examples, the display interface described above may also be provided with a "flow switch time" input box in which a worker may enter a time to switch flow. When the electronic device receives the time of switching the traffic input by the staff, the traffic of the issued node for deploying the issued software can be switched to the node to be issued for deploying the software to be issued according to the time of switching the traffic.
In some examples, the electronic device may switch traffic of the published node deploying the published software to the to-be-published node deploying the to-be-published software by:
and step A, acquiring a first configuration file of a released node for deploying the released software and a second configuration file of a node to be released for deploying the software to be released.
And step B, modifying the second configuration file into the first configuration file.
And C, restarting the node to be distributed for deploying the software to be distributed so as to enable the modified second configuration file to take effect.
In some examples, the profile may be a correspondence of an IP address of the published node to a domain name. By modifying the configuration file, the node to be distributed of the software to be distributed can have the same configuration file as the distributed node of the distributed software. Thereby enabling the user to access the node to be distributed.
After modifying the second configuration file of the node to be distributed, the electronic device may send a restart instruction to the node to be distributed that deploys the software to be distributed in order to validate the second configuration file, so that the node to be distributed is restarted, and after restarting, the modified second configuration file may be validated.
When the electronic device switches the traffic of the released node deploying the released software to the node to be released deploying the software to be released, the electronic device may switch the traffic of thirty percent of the total traffic of the released node deploying the released software to the node to be released deploying the software to be released, or switch the traffic of fifty percent of the total traffic of the released node deploying the released software to the node to be released deploying the software to be released.
By the embodiment of the invention, the flow can be switched regularly and automatically, and the workload of releasing new version software by a worker can be reduced without manually switching the flow by the worker.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a device for visually publishing software, as shown in fig. 8, which is a schematic structural diagram of a device for visually publishing software according to the embodiment of the present invention, where the device may include:
The obtaining module 810 is configured to obtain software to be distributed, and query deployment information of the distributed software corresponding to the software to be distributed, where the deployment information of the distributed software includes: node information of the nodes deploying the published software and node identification information of the nodes deploying the published software;
the display module 820 is used for calling a display interface corresponding to the deployment information of the released software and displaying the deployment information;
the deployment module 830 is configured to obtain a release command input by a worker, release software to be released according to deployment information of the released software, and display deployment information of the deployed software to be released to a display interface.
The device for visually releasing the software can query the deployment information of the released software corresponding to the software to be released after the software to be released is acquired. And then, calling a display interface corresponding to the deployment information of the released software to display the deployment information, so that a worker can clearly know the deployment condition of the released software, after acquiring a release command input by the worker, the software to be released can be released according to the deployment information of the released software, and after the software to be released is released, the deployment information of the software to be released after being deployed can be displayed on the display interface. Therefore, the staff can clearly know the release condition of the software to be released, and the embodiment of the invention can avoid manual input of release codes in the release process of the software, thereby reducing the workload of the staff for releasing the new version software and reducing errors in the release process of the new version software.
In some examples, the software to be distributed has a plurality of modules to be distributed, and the software to be distributed has a plurality of modules to be distributed; the plurality of modules to be published and the plurality of modules already published have a one-to-one correspondence;
in some examples, the acquisition module 810 is specifically configured to:
inquiring deployment information of each published module of the published software corresponding to the software to be published;
in some examples, display module 820 is specifically configured to:
calling a display interface corresponding to the deployment information of each published module, and displaying the deployment information of each published module;
in some examples, deployment module 830 is specifically configured to:
according to the deployment information of each released module, releasing the module to be released corresponding to each released module, and displaying the deployment information of each module to be released of the software to be released after deployment to a display interface.
In some examples, deployment module 830 is specifically configured to:
and deploying the software to be deployed into the node corresponding to the deployment information of the deployed software.
In some examples, deployment module 830 includes:
the node deployment sub-module is used for deploying the nodes to be deployed, the quantity of which is the same as that of the nodes of the released software, of the software to be deployed, and deploying the software to be deployed into the nodes to be deployed;
The node information modification sub-module is used for modifying the node information of the node to be issued according to the node information of the node of the issued software;
in some examples, the apparatus for visually publishing software further comprises: the flow switching time acquisition module is used for acquiring the flow switching time input by the staff;
and the flow switching module is used for switching the flow of the released node for deploying the released software to the node to be released for deploying the software to be released according to the flow switching time.
In some examples, the traffic switching module includes:
the configuration file acquisition sub-module is used for acquiring a first configuration file of a released node for deploying released software and a second configuration file of a node to be released for deploying software to be released;
a configuration file modification sub-module for modifying the second configuration file into the first configuration file;
and the restarting sub-module is used for restarting the nodes to be distributed for deploying the software to be distributed so as to enable the modified second configuration file to take effect.
The embodiment of the present invention further provides an electronic device, as shown in fig. 9, which is a schematic structural diagram of an electronic device to which a method for visually distributing software according to an embodiment of the present invention is applied, where the electronic device may include a processor 901 and a machine-readable storage medium 902, where the machine-readable storage medium 902 stores machine executable instructions capable of being executed by the processor 901, and the processor 901 is caused by the machine-executable instructions to: the following steps are realized:
Acquiring software to be distributed, and inquiring deployment information of the distributed software corresponding to the software to be distributed, wherein the deployment information comprises: node information of the nodes deploying the published software and node identification information of the nodes deploying the published software;
calling a display interface corresponding to the deployment information of the released software, and displaying the deployment information;
acquiring an issuing command input by a worker, issuing software to be issued according to the deployment information of the issued software, and displaying the deployment information of the software to be issued after deployment to a display interface.
The machine-readable storage medium 902 may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one magnetic disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor 901 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
According to the electronic equipment provided by the embodiment of the invention, after the software to be distributed is acquired, the deployment information of the distributed software corresponding to the software to be distributed can be queried. And then, calling a display interface corresponding to the deployment information of the released software to display the deployment information, so that a worker can clearly know the deployment condition of the released software, after acquiring a release command input by the worker, the software to be released can be released according to the deployment information of the released software, and after the software to be released is released, the deployment information of the software to be released after being deployed can be displayed on the display interface. Therefore, the staff can clearly know the release condition of the software to be released, and the embodiment of the invention can avoid manual input of release codes in the release process of the software, thereby reducing the workload of the staff for releasing the new version software and reducing errors in the release process of the new version software.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the following steps when being executed by a processor:
Acquiring software to be distributed, and inquiring deployment information of the distributed software corresponding to the software to be distributed, wherein the deployment information comprises: node information of the nodes deploying the published software and node identification information of the nodes deploying the published software;
calling a display interface corresponding to the deployment information of the released software, and displaying the deployment information;
acquiring an issuing command input by a worker, issuing software to be issued according to the deployment information of the issued software, and displaying the deployment information of the software to be issued after deployment to a display interface.
The computer readable storage medium of the embodiment of the invention can inquire the deployment information of the released software corresponding to the software to be released after the software to be released is acquired. And then, calling a display interface corresponding to the deployment information of the released software to display the deployment information, so that a worker can clearly know the deployment condition of the released software, after acquiring a release command input by the worker, the software to be released can be released according to the deployment information of the released software, and after the software to be released is released, the deployment information of the software to be released after being deployed can be displayed on the display interface. Therefore, the staff can clearly know the release condition of the software to be released, and the embodiment of the invention can avoid manual input of release codes in the release process of the software, thereby reducing the workload of the staff for releasing the new version software and reducing errors in the release process of the new version software.
The embodiments of the present invention also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of:
acquiring software to be distributed, and inquiring deployment information of the distributed software corresponding to the software to be distributed, wherein the deployment information comprises: node information of the nodes deploying the published software and node identification information of the nodes deploying the published software;
calling a display interface corresponding to the deployment information of the released software, and displaying the deployment information;
acquiring an issuing command input by a worker, issuing software to be issued according to the deployment information of the issued software, and displaying the deployment information of the software to be issued after deployment to a display interface.
The computer program product containing the instructions can query the deployment information of the released software corresponding to the software to be released after the software to be released is acquired. And then, calling a display interface corresponding to the deployment information of the released software to display the deployment information, so that a worker can clearly know the deployment condition of the released software, after acquiring a release command input by the worker, the software to be released can be released according to the deployment information of the released software, and after the software to be released is released, the deployment information of the software to be released after being deployed can be displayed on the display interface. Therefore, the staff can clearly know the release condition of the software to be released, and the embodiment of the invention can avoid manual input of release codes in the release process of the software, thereby reducing the workload of the staff for releasing the new version software and reducing errors in the release process of the new version software.
The embodiment of the invention also provides a computer program which when run on a computer causes the computer to perform the steps of:
acquiring software to be distributed, and inquiring deployment information of the distributed software corresponding to the software to be distributed, wherein the deployment information comprises: node information of the nodes deploying the published software and node identification information of the nodes deploying the published software;
calling a display interface corresponding to the deployment information of the released software, and displaying the deployment information;
acquiring an issuing command input by a worker, issuing software to be issued according to the deployment information of the issued software, and displaying the deployment information of the software to be issued after deployment to a display interface.
The computer program of the embodiment of the invention can inquire the deployment information of the released software corresponding to the software to be released after the software to be released is acquired. And then, calling a display interface corresponding to the deployment information of the released software to display the deployment information, so that a worker can clearly know the deployment condition of the released software, after acquiring a release command input by the worker, the software to be released can be released according to the deployment information of the released software, and after the software to be released is released, the deployment information of the software to be released after being deployed can be displayed on the display interface. Therefore, the staff can clearly know the release condition of the software to be released, and the embodiment of the invention can avoid manual input of release codes in the release process of the software, thereby reducing the workload of the staff for releasing the new version software and reducing errors in the release process of the new version software.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely illustrative of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (12)

1. A method of visually distributing software, the method comprising:
acquiring software to be distributed, and inquiring deployment information of the distributed software corresponding to the software to be distributed, wherein the deployment information of the distributed software comprises: node information of the nodes deploying the published software and node identification information of the nodes deploying the published software;
invoking a display interface corresponding to the deployment information of the released software, and displaying the deployment information;
acquiring an issuing command input by a worker, issuing the software to be issued according to the deployment information of the issued software, and displaying the deployment information of the software to be issued after deployment to the display interface;
the step of distributing the software to be distributed according to the deployment information of the distributed software and displaying the deployment information of the software to be distributed to the display interface after deployment comprises the following steps:
Deploying nodes to be deployed, the number of which is the same as that of the nodes of the software to be deployed, on the software to be deployed, and deploying the software to be deployed into the nodes to be deployed;
and modifying the node information of the nodes to be distributed according to the node information of the nodes of the distributed software, and displaying the modified node information of the nodes to be distributed to the display interface.
2. The method of claim 1, wherein the software to be distributed has a plurality of modules to be distributed, and wherein the software to be distributed has a plurality of modules to be distributed; the modules to be published and the published modules have a one-to-one correspondence;
the querying the deployment information of the released software corresponding to the software to be released comprises the following steps:
inquiring deployment information of each published module of the published software corresponding to the software to be published;
the calling a display interface corresponding to the deployment information of the published software, and displaying the deployment information comprises the following steps:
invoking a display interface corresponding to the deployment information of each published module, and displaying the deployment information of each published module;
the step of distributing the software to be distributed according to the deployment information of the distributed software and displaying the deployment information of the software to be distributed to the display interface after deployment comprises the following steps:
And publishing the modules to be published corresponding to the released modules according to the deployment information of the released modules, and displaying the deployment information of the software to be published after the deployment of the modules to be published to the display interface.
3. The method according to claim 1, wherein publishing the software to be published according to the deployment information of the published software comprises:
and deploying the software to be deployed into a node corresponding to the deployment information of the deployed software.
4. The method according to claim 1, wherein the method further comprises: acquiring flow switching time input by a worker;
after the modified node information of the node to be distributed is displayed on the display interface, the method further comprises:
and switching the flow of the released node deploying the released software to the node to be deployed of the software to be deployed according to the flow switching time.
5. The method of claim 4, wherein the switching traffic of the published node deploying the published software to the to-be-published node deploying the to-be-published software comprises:
Acquiring a first configuration file of a released node for deploying the released software and a second configuration file of a node to be released for deploying the software to be released;
modifying the second configuration file into the first configuration file;
restarting the node to be distributed for deploying the software to be distributed so as to enable the modified second configuration file to take effect.
6. An apparatus for visually distributing software, the apparatus comprising:
the device comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring software to be distributed and inquiring deployment information of the distributed software corresponding to the software to be distributed, and the deployment information of the distributed software comprises: node information of the nodes deploying the published software and node identification information of the nodes deploying the published software;
the display module is used for calling a display interface corresponding to the deployment information of the released software and displaying the deployment information;
the deployment module is used for acquiring an issuing command input by a worker, issuing the software to be issued according to the deployment information of the issued software, and displaying the deployment information of the software to be issued after deployment to the display interface;
the deployment module comprises:
The node deployment sub-module is used for deploying the nodes to be deployed, the number of which is the same as that of the nodes of the software to be deployed, on the software to be deployed, and deploying the software to be deployed into the nodes to be deployed;
and the node information modification sub-module is used for modifying the node information of the node to be distributed according to the node information of the node of the distributed software, and displaying the modified node information of the node to be distributed to the display interface.
7. The apparatus of claim 6, wherein the software to be distributed has a plurality of modules to be distributed, the software to be distributed has a plurality of modules to be distributed; the modules to be published and the published modules have a one-to-one correspondence;
the acquisition module is specifically configured to:
inquiring deployment information of each published module of the published software corresponding to the software to be published;
the display module is specifically configured to:
invoking a display interface corresponding to the deployment information of each published module, and displaying the deployment information of each published module;
the deployment module is specifically configured to:
and publishing the modules to be published corresponding to the released modules according to the deployment information of the released modules, and displaying the deployment information of the software to be published after the deployment of the modules to be published to the display interface.
8. The apparatus of claim 6, wherein the deployment module is specifically configured to:
and deploying the software to be deployed into a node corresponding to the deployment information of the deployed software.
9. The apparatus of claim 6, wherein the apparatus further comprises: the flow switching time acquisition module is used for acquiring the flow switching time input by the staff;
and the flow switching module is used for switching the flow of the released node deploying the released software to the node to be released deploying the software to be released according to the flow switching time.
10. The apparatus of claim 9, wherein the flow switching module comprises:
the configuration file acquisition sub-module is used for acquiring a first configuration file of a released node for deploying the released software and a second configuration file of a node to be released for deploying the software to be released;
a configuration file modification sub-module, configured to modify the second configuration file into the first configuration file;
and the restarting sub-module is used for restarting the node to be distributed for deploying the software to be distributed so as to enable the modified second configuration file to take effect.
11. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: method steps according to any one of claims 1 to 5 are carried out.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-5.
CN201910319738.7A 2019-04-19 2019-04-19 Method and device for visually releasing software, electronic equipment and storage medium Active CN110096284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910319738.7A CN110096284B (en) 2019-04-19 2019-04-19 Method and device for visually releasing software, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910319738.7A CN110096284B (en) 2019-04-19 2019-04-19 Method and device for visually releasing software, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110096284A CN110096284A (en) 2019-08-06
CN110096284B true CN110096284B (en) 2023-06-02

Family

ID=67445334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910319738.7A Active CN110096284B (en) 2019-04-19 2019-04-19 Method and device for visually releasing software, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110096284B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113627887A (en) * 2021-08-11 2021-11-09 网易(杭州)网络有限公司 Software release step checking method and device, electronic equipment and storage medium
CN115033250A (en) * 2022-01-24 2022-09-09 统信软件技术有限公司 Application deployment method, computing device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104272292A (en) * 2012-03-12 2015-01-07 铃盛公司 Network resource deployment for cloud-based services
CN106685687A (en) * 2016-09-23 2017-05-17 北京五八信息技术有限公司 Gray release method and gray release device
CN107145367A (en) * 2017-04-18 2017-09-08 北京思特奇信息技术股份有限公司 A kind of visualization dissemination method developed for front end and system
CN107222463A (en) * 2017-05-10 2017-09-29 北京潘达互娱科技有限公司 information issuing method and device
CN108614688A (en) * 2016-12-30 2018-10-02 上海华讯网络系统有限公司 Visualization application layout applied to mixing cloud environment and method
CN109408065A (en) * 2018-10-12 2019-03-01 上海庆科信息技术有限公司 A kind of code publishing tool

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453367B (en) * 2007-11-30 2011-12-28 华为技术有限公司 Software deployment method and system, software deployment server and user server
US10809989B2 (en) * 2017-05-05 2020-10-20 Servicenow, Inc. Service release tool
US20180341475A1 (en) * 2017-05-24 2018-11-29 Dell Products L.P. Just In Time Deployment with Package Managers

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104272292A (en) * 2012-03-12 2015-01-07 铃盛公司 Network resource deployment for cloud-based services
CN106685687A (en) * 2016-09-23 2017-05-17 北京五八信息技术有限公司 Gray release method and gray release device
CN108614688A (en) * 2016-12-30 2018-10-02 上海华讯网络系统有限公司 Visualization application layout applied to mixing cloud environment and method
CN107145367A (en) * 2017-04-18 2017-09-08 北京思特奇信息技术股份有限公司 A kind of visualization dissemination method developed for front end and system
CN107222463A (en) * 2017-05-10 2017-09-29 北京潘达互娱科技有限公司 information issuing method and device
CN109408065A (en) * 2018-10-12 2019-03-01 上海庆科信息技术有限公司 A kind of code publishing tool

Also Published As

Publication number Publication date
CN110096284A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN110554732B (en) Identification number generation method and device, electronic equipment and storage medium
CN109426510B (en) Software processing method and device, electronic equipment and computer readable storage medium
CN107844343B (en) Upgrading system and method for complex server application system
CN110096284B (en) Method and device for visually releasing software, electronic equipment and storage medium
US8930936B2 (en) Loading remote binaries onto a write-protected device
CN112115049B (en) Application program testing method, device, equipment and computer readable storage medium
CN108052640B (en) Linkage method and device for state information change
CN112286669A (en) Task processing method and device
CN114003312A (en) Big data service component management method, computer device and storage medium
CN109710676B (en) Data acquisition method and device of CMDB model and electronic equipment
JP2009169724A (en) Maintenance support device
CN108037950B (en) Information deleting method and device, electronic equipment and readable storage medium
CN105897487B (en) Equipment management method and device for operation and maintenance system
CN110955460A (en) Service process starting method and device, electronic equipment and storage medium
US8631112B2 (en) Management system, management apparatus, management method, and non-transitory computer readable medium storing control program for registering processing devices
CN109962914B (en) Firewall configuration method and device
CN109103877B (en) Distribution network constant value processing method and device and electronic equipment
WO2013161522A1 (en) Log collection server, log collection system, log collection method
JP6872919B2 (en) Sensor network management method and sensor network management system
CN112765188B (en) Configuration information processing method, configuration management system, electronic device and storage medium
CN113946515A (en) Code coverage rate testing method and device, computer equipment and storage medium
CN110188007B (en) Distributed data repair method, device, network node and storage medium
CN113778511A (en) Resource allocation method, device, equipment and storage medium
CN110113187B (en) Configuration updating method and device, configuration server and configuration system
CN108170462B (en) Function recommendation table group maintenance method and system

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