[go: up one dir, main page]

CN110096284B - A method, device, electronic device and storage medium for visually publishing software - Google Patents

A method, device, electronic device and storage medium for visually publishing software 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
released
software
node
information
deployment
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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

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 Security & Cryptography (AREA)
  • Stored Programmes (AREA)

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

一种可视化发布软件的方法、装置、电子设备及存储介质A method, device, electronic device and storage medium for visually publishing software

技术领域technical field

本发明涉及互联网技术领域,特别是涉及一种可视化发布软件的方法、装置、电子设备及存储介质。The invention relates to the technical field of the Internet, in particular to a method, device, electronic equipment and storage medium for visually publishing software.

背景技术Background technique

随着软件行业的日益发展壮大,软件的数量越来越多,软件的种类也越来越多,为了保证软件对用户的粘性,通常情况下,各类软件都会定期或不定期更新软件版本,即发布一个新版本的软件,使得用户使用该新版本的软件,以替代旧版本的软件。例如,对于云计算服务提供商,可以发布一个新版本的云服务器控制台软件到服务器上,然后用户可以使用在该服务器上发布的新版本的云服务器控制台软件。With the development of the software industry, the number of software is increasing, and the types of software are also increasing. In order to ensure the stickiness of software to users, under normal circumstances, all kinds of software will update the software version regularly or irregularly. That is to release a new version of the software so that users can use the new version of the software to replace the old version of the software. For example, for a cloud computing service provider, a new version of the cloud server console software can be released on the server, and then the user can use the new version of the cloud server console software released on the server.

然而,在目前的相关技术中,在发布新版本的软件时,通常是工作人员在与服务器通信连接的后端设备上,采用人工输入发布代码的方式,实现将新版本的软件发布至服务器上。而当发布代码比较多时,也很容易输入错误,一旦发布代码输入错误,将导致新版本软件的无法发布,并且,排查错误代码也比较费时。However, in the current related technologies, when a new version of software is released, the staff usually manually enters the release code on the back-end equipment connected to the server to realize the release of the new version of the software to the server. . And when there are many release codes, it is easy to input mistakes. Once the release codes are entered incorrectly, the new version of the software will not be released, and it is time-consuming to troubleshoot the error codes.

发明内容Contents of the invention

本发明实施例的目的在于提供一种可视化发布软件的方法、装置、电子设备及存储介质,以实现降低工作人员发布新版本软件的工作量,减少新版本软件发布过程中的错误。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a method, device, electronic device and storage medium for visually publishing software, so as to reduce the workload of staff for releasing new version software and reduce errors in the process of releasing new version software. The specific technical scheme is as follows:

第一方面,本发明实施例提供了一种可视化发布软件的方法,该方法包括:In the first aspect, an embodiment of the present invention provides a method for visually publishing software, the method comprising:

获取待发布软件,并查询与待发布软件对应的已发布软件的部署信息,其中,已发布软件的部署信息包括:部署已发布软件的节点的节点信息、部署已发布软件的节点的节点标识信息;Obtain the software to be released, and query the deployment information of the released software corresponding to the software to be released, where the deployment information of the released software includes: the node information of the node deploying the released software, the node identification information of the node deploying the released software ;

调用与已发布软件的部署信息对应的显示界面,显示部署信息;Call the display interface corresponding to the deployment information of the released software to display the deployment information;

获取工作人员输入的发布命令,根据已发布软件的部署信息发布待发布软件,并显示待发布软件部署后的部署信息至显示界面。Obtain the release command input by the staff, release the software to be released according to the deployment information of the released software, and display the deployment information of the software to be released on the display interface after deployment.

可选的,待发布软件具有多个待发布模块,已发布软件具有多个已发布模块;多个待发布模块与多个已发布模块具有一一对应关系;Optionally, the software to be released has multiple modules to be released, and the software to be released has multiple modules that have been released; the multiple modules to be released have a one-to-one correspondence with the multiple released modules;

可选的,查询与待发布软件对应的已发布软件的部署信息,包括:Optionally, query the deployment information of released software corresponding to the software to be released, including:

查询与待发布软件对应的已发布软件的各个已发布模块的部署信息;Query the deployment information of each released module of the released software corresponding to the software to be released;

可选的,调用与已发布软件的部署信息对应的显示界面,显示部署信息,包括:Optionally, call the display interface corresponding to the deployment information of the released software to display the deployment information, including:

调用与各个已发布模块的部署信息对应的显示界面,显示各个已发布模块的部署信息;Call the display interface corresponding to the deployment information of each released module to display the deployment information of each released module;

可选的,根据已发布软件的部署信息发布待发布软件,并显示待发布软件部署后的部署信息至显示界面,包括:Optionally, release the software to be released according to the deployment information of the released software, and display the deployment information of the software to be released on the display interface after deployment, including:

根据各个已发布模块的部署信息,对与各个已发布模块对应的待发布模块进行发布,并显示该待发布软件的各个待发布模块部署后的部署信息至显示界面。According to the deployment information of each released module, the to-be-released modules corresponding to each released module are released, and the deployment information of each to-be-released module of the software to be released is displayed on the display interface after deployment.

可选的,根据已发布软件的部署信息发布待发布软件,包括:Optionally, release the software to be released according to the deployment information of the released software, including:

将待发布软件部署到与已发布软件的部署信息对应的节点中。Deploy the software to be released to the node corresponding to the deployment information of the released software.

可选的,根据已发布软件的部署信息发布待发布软件,并显示待发布软件部署后的部署信息至显示界面,包括:Optionally, release the software to be released according to the deployment information of the released software, and display the deployment information of the software to be released on the display interface after deployment, including:

对待发布软件部署与已发布软件的节点的节点数量相同的待发布节点,并将待发布软件部署到待发布节点中;Deploy the software to be released to the nodes to be released with the same number of nodes as the nodes of the released software, and deploy the software to be released to the nodes to be released;

依据已发布软件的节点的节点信息,修改待发布节点的节点信息,并显示修改后的待发布节点的节点信息至显示界面。Modify the node information of the node to be released according to the node information of the node of the released software, and display the modified node information of the node to be released on the display interface.

可选的,该可视化发布软件的方法还包括:获取工作人员输入的流量切换时间;Optionally, the method for visually publishing software also includes: obtaining the traffic switching time input by the staff;

在显示修改后的待发布节点的节点信息至显示界面之后,可选的,该可视化发布软件的方法还包括:After displaying the modified node information of the node to be released on the display interface, optionally, the method for visually publishing software further includes:

依据流量切换时间,切换部署已发布软件的已发布节点的流量至部署待发布软件的待发布节点。According to the traffic switching time, the traffic of the published node deploying the released software is switched to the unpublished node deploying the software to be released.

可选的,切换部署已发布软件的已发布节点的流量至部署待发布软件的待发布节点,包括:Optionally, switch the traffic of the published node deploying the released software to the unpublished node deploying the software to be released, including:

获取部署已发布软件的已发布节点的第一配置文件和部署待发布软件的待发布节点的第二配置文件;Acquiring the first configuration file of the released node deploying the released software and the second configuration file of the unpublished node deploying the software to be released;

将第二配置文件修改为第一配置文件;Modify the second configuration file to the first configuration file;

重启部署待发布软件的待发布节点,以使得修改后的第二配置文件生效。Restart the node to be released on which the software to be released is deployed, so that the modified second configuration file takes effect.

第二方面,本发明实施例还提供了一种可视化发布软件的装置,该装置包括:In the second aspect, the embodiment of the present invention also provides a device for visually releasing software, the device comprising:

获取模块,用于获取待发布软件,并查询与待发布软件对应的已发布软件的部署信息,其中,已发布软件的部署信息包括:部署已发布软件的节点的节点信息、部署已发布软件的节点的节点标识信息;The obtaining module is used to obtain the software to be released, and query the deployment information of the released software corresponding to the software to be released, wherein the deployment information of the released software includes: the node information of the node deploying the released software, the node information of the deployed software The node identification information of the node;

显示模块,用于调用与已发布软件的部署信息对应的显示界面,显示部署信息;The display module is used to call the display interface corresponding to the deployment information of the published software, and display the deployment information;

部署模块,用于获取工作人员输入的发布命令,根据已发布软件的部署信息发布待发布软件,并显示待发布软件部署后的部署信息至显示界面。The deployment module is used to obtain the release command input by the staff, release the software to be released according to the deployment information of the released software, and display the deployment information of the software to be released on the display interface after deployment.

可选的,待发布软件具有多个待发布模块,已发布软件具有多个已发布模块;多个待发布模块与多个已发布模块具有一一对应关系;Optionally, the software to be released has multiple modules to be released, and the software to be released has multiple modules that have been released; the multiple modules to be released have a one-to-one correspondence with the multiple released modules;

可选的,获取模块,具体用于:Optionally, obtain modules, specifically for:

查询与待发布软件对应的已发布软件的各个已发布模块的部署信息;Query the deployment information of each released module of the released software corresponding to the software to be released;

可选的,显示模块,具体用于:Optionally, display modules, specifically for:

调用与各个已发布模块的部署信息对应的显示界面,显示各个已发布模块的部署信息;Call the display interface corresponding to the deployment information of each released module to display the deployment information of each released module;

可选的,部署模块,具体用于:Optionally, deploy modules, specifically for:

根据各个已发布模块的部署信息,对与各个已发布模块对应的待发布模块进行发布,并显示该待发布软件的各个待发布模块部署后的部署信息至显示界面。According to the deployment information of each released module, the to-be-released modules corresponding to each released module are released, and the deployment information of each to-be-released module of the software to be released is displayed on the display interface after deployment.

可选的,部署模块,具体用于:Optionally, deploy modules, specifically for:

将待发布软件部署到与已发布软件的部署信息对应的节点中。Deploy the software to be released to the node corresponding to the deployment information of the released software.

可选的,部署模块,包括:Optionally, deploy modules, including:

节点部署子模块,用于对待发布软件部署与已发布软件的节点的节点数量相同的待发布节点,并将待发布软件部署到待发布节点中;The node deployment sub-module is used to deploy the software to be released to the nodes to be released with the same number of nodes as the nodes of the released software, and deploy the software to be released to the nodes to be released;

节点信息修改子模块,用于依据已发布软件的节点的节点信息,修改待发布节点的节点信息,并显示修改后的待发布节点的节点信息至显示界面。The node information modification sub-module is used to modify the node information of the node to be released according to the node information of the node of the released software, and display the modified node information of the node to be released to the display interface.

可选的,该可视化发布软件的装置还包括:流量切换时间获取模块,用于获取工作人员输入的流量切换时间;Optionally, the device for visually publishing software also includes: a traffic switching time acquisition module, used to acquire the traffic switching time input by the staff;

流量切换模块,用于依据流量切换时间,切换部署已发布软件的已发布节点的流量至部署待发布软件的待发布节点。The traffic switching module is configured to switch the traffic of the published node deploying the released software to the waiting node deploying the software to be released according to the traffic switching time.

可选的,流量切换模块,包括:Optionally, the traffic switching module includes:

配置文件获取子模块,用于获取部署已发布软件的已发布节点的第一配置文件和部署待发布软件的待发布节点的第二配置文件;The configuration file obtaining submodule is used to obtain the first configuration file of the released node deploying the released software and the second configuration file of the unpublished node deploying the software to be released;

配置文件修改子模块,用于将第二配置文件修改为第一配置文件;The configuration file modification sub-module is used to modify the second configuration file to the first configuration file;

重启子模块,用于重启部署待发布软件的待发布节点,以使得修改后的第二配置文件生效。The restart sub-module is used to restart the node to be released on which the software to be released is deployed, so that the modified second configuration file takes effect.

第三方面,本发明实施例还提供了一种电子设备,包括处理器和机器可读存储介质,机器可读存储介质存储有能够被处理器执行的机器可执行指令,处理器被机器可执行指令促使:实现上述第一方面提供的一种可视化发布软件的方法步骤。In a third aspect, an embodiment of the present invention also provides an electronic device, including a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is executed by the machine Instruction prompts: implement the steps of a method for visually releasing software provided in the first aspect above.

第四方面,本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时,实现上述第一方面提供的一种可视化发布软件的方法步骤。In the fourth aspect, the embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the visual release software provided in the first aspect above is implemented. method steps.

第五方面,本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面提供的一种可视化发布软件的方法步骤。In the fifth aspect, the embodiment of the present invention also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the steps of the method for visually publishing software provided in the first aspect above.

第六方面,本发明实施例还提供了一种计算机程序,当其在计算机上运行时,使得计算机执行上述第一方面提供的一种可视化发布软件的方法步骤。In the sixth aspect, the embodiment of the present invention also provides a computer program, which, when running on a computer, causes the computer to execute the steps of the method for visually publishing software provided in the first aspect above.

本发明实施例提供的一种可视化发布软件的方法、装置、电子设备及存储介质,可以在获取到待发布软件后,查询与待发布软件对应的已发布软件的部署信息。然后调用与已发布软件的部署信息对应的显示界面显示部署信息,使得工作人员可以清楚了解到该已发布软件的部署情况,在获取到工作人员输入的发布命令后,可以根据已发布软件的部署信息发布待发布软件,在对该待发布软件发布后,可以显示待发布软件部署后的部署信息至显示界面。这样,可以使得工作人员可以清楚的了解该待发布软件的发布情况,可见,通过本发明实施例,在软件的发布过程中,避免人工输入发布代码,从而可以实现降低工作人员发布新版本软件的工作量,减少新版本软件发布过程中的错误。当然,实施本发明的任一产品或方法并不一定需要同时达到上述的所有优点。The embodiments of the present invention provide a method, device, electronic device, and storage medium for visually publishing software. After obtaining the software to be released, the deployment information of the released software corresponding to the software to be released can be queried. Then call the display interface corresponding to the deployment information of the released software to display the deployment information, so that the staff can clearly understand the deployment of the released software. Information publishes the software to be released. After the software to be released is released, the deployment information of the software to be released after deployment can be displayed on the display interface. In this way, the staff can clearly understand the release situation of the software to be released. It can be seen that through the embodiment of the present invention, in the software release process, manual input of the release code is avoided, thereby reducing the cost of the staff to release the new version of the software. Reduce workload and reduce errors during the release of new version software. Of course, implementing any product or method of the present invention does not necessarily need to achieve all the above-mentioned advantages at the same time.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例的一种可视化发布软件的方法第一种实施方式的流程图;FIG. 1 is a flowchart of a first implementation of a method for visually publishing software according to an embodiment of the present invention;

图2为本发明实施例的一种可视化发布软件的方法第二种实施方式的流程图;FIG. 2 is a flowchart of a second implementation of a method for visually publishing software according to an embodiment of the present invention;

图3为图2所示的可视化发布软件的方法中的显示界面示意图;Fig. 3 is a schematic diagram of a display interface in the method for visually releasing software shown in Fig. 2;

图4为本发明实施例的一种可视化发布软件的方法第三种实施方式的流程图;FIG. 4 is a flow chart of a third implementation of a method for visually publishing software according to an embodiment of the present invention;

图5为图4所示的可视化发布软件的方法中的显示界面示意图;Fig. 5 is a schematic diagram of a display interface in the method for visually publishing software shown in Fig. 4;

图6为本发明实施例的一种可视化发布软件的方法第四种实施方式的流程图;FIG. 6 is a flowchart of a fourth implementation manner of a method for visually publishing software according to an embodiment of the present invention;

图7为本发明实施例的一种可视化发布软件的方法第五种实施方式的流程图;FIG. 7 is a flowchart of a fifth implementation manner of a method for visually publishing software according to an embodiment of the present invention;

图8为本发明实施例的一种可视化发布软件的装置的结构示意图;FIG. 8 is a schematic structural diagram of an apparatus for visually publishing software according to an embodiment of the present invention;

图9为本发明实施例的一种电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

为了解决现有技术存在的问题,本发明实施例提供了一种可视化发布软件的方法、装置、电子设备及存储介质,以实现降低工作人员发布新版本软件的工作量,减少新版本软件发布过程中的错误。In order to solve the problems existing in the prior art, the embodiment of the present invention provides a method, device, electronic equipment, and storage medium for visually publishing software, so as to reduce the workload of staff for releasing new version software and reduce the process of releasing new version software error in .

下面,首先对本发明实施例的一种可视化发布软件的方法进行介绍,如图1所示,为本发明实施例的一种可视化发布软件的方法第一种实施方式的流程图,该方法可以包括:In the following, a method for visually distributing software according to an embodiment of the present invention is firstly introduced. As shown in FIG. 1 , it is a flowchart of a first implementation mode of a method for visually distributing software according to an embodiment of the present invention. The method may include :

S110,获取待发布软件,并查询与待发布软件对应的已发布软件的部署信息。S110. Acquire software to be released, and query deployment information of released software corresponding to the software to be released.

其中,已发布软件的部署信息包括:部署已发布软件的节点的节点信息、部署已发布软件的节点的节点标识信息,部署已发布软件的节点的节点信息可以包括:部署已发布软件的节点的IP地址、端口信息等。Wherein, the deployment information of the released software includes: the node information of the node deploying the released software, the node identification information of the node deploying the released software, the node information of the node deploying the released software may include: the node information of the node deploying the released software IP address, port information, etc.

在一些示例中,当采用应用本发明实施例的一种可视化发布软件的方法的电子设备发布待发布软件时,工作人员可以首先将待发布软件上传至该电子设备,因此,该电子设备可以获取到该待发布软件。In some examples, when an electronic device using a method for visually releasing software according to an embodiment of the present invention releases the software to be released, the staff can first upload the software to be released to the electronic device, so that the electronic device can obtain to the software to be released.

上述的电子设备在获取到该待发布软件后,可以调用该待发布软件对应的显示界面,对该待发布软件进行显示,以使得工作人员可以看到该待发布软件中的各个文件以及该待发布软件的结构,以确保上传的软件为待发布软件。After the above-mentioned electronic device obtains the software to be released, it can call the display interface corresponding to the software to be released, and display the software to be released, so that the staff can see each file in the software to be released and the software to be released. The structure of the released software to ensure that the software uploaded is the software to be released.

在一些示例中,上述的电子设备在获取到待发布软件后,可以查询与该待发布软件对应的已发布软件的部署信息。以便使得工作人员了解该已发布软件的部署情况。In some examples, after acquiring the software to be released, the electronic device may query deployment information of released software corresponding to the software to be released. To keep staff informed about the deployment of the released software.

在一些示例中,该待发布软件可以是已发布软件的下一个版本的软件,该已发布软件可以是待发布软件的上一个版本的软件,也就是说,为了使得同一类型的软件能够正常进行版本迭代,该两个版本的软件要具有相同的部署情况,以减少版本迭代对用户使用的影响。In some examples, the software to be released may be the software of the next version of the released software, and the released software may be the software of the previous version of the software to be released. For version iteration, the two versions of the software must have the same deployment status to reduce the impact of version iteration on user usage.

在一些示例中,该节点可以是部署在不同位置的多个服务器节点,也可以是部署在同一位置的为不同区域的用户提供服务的多个服务器节点。In some examples, the node may be multiple server nodes deployed at different locations, or multiple server nodes deployed at the same location to provide services for users in different regions.

S120,调用与已发布软件的部署信息对应的显示界面,显示部署信息。S120. Invoking a display interface corresponding to the deployment information of the published software to display the deployment information.

上述的电子设备在获取到已发布软件的部署信息后,可以调用与该已发布软件的部署信息对应的显示界面,显示该部署信息,以便工作人员查看该已发布软件的部署信息。After obtaining the deployment information of the released software, the above-mentioned electronic device can call a display interface corresponding to the deployment information of the released software to display the deployment information, so that the staff can view the deployment information of the released software.

S130,获取工作人员输入的发布命令,根据已发布软件的部署信息发布待发布软件,并显示待发布软件部署后的部署信息至显示界面。S130. Obtain a release command input by the staff, release the software to be released according to the deployment information of the released software, and display the deployed deployment information of the software to be released on the display interface.

在一些示例中,该与已发布软件的部署信息对应的显示界面可以提供有“开始发布”的按钮,工作人员在对已发布软件的部署信息检查完成后,可以点击该“开始发布”按钮,以对待发布软件进行发布。In some examples, the display interface corresponding to the deployment information of the released software may provide a button of "Start Publishing", and the staff may click the "Start Publishing" button after checking the deployment information of the released software, Release the software to be released.

当上述的电子设备获取到工作人员输入的发布命令后,可以根据已发布软件的部署信息,对该待发布软件进行发布。After the aforementioned electronic device obtains the release command input by the staff, it can release the software to be released according to the deployment information of the released software.

在一些示例中,上述的电子设备在根据已发布软件的部署信息发布待发布软件时,可以将待发布软件部署到与已发布软件的部署信息对应的节点中。也即,将待发布软件发送至该已发布软件的部署信息对应的节点,然后在各个节点中删除该已发布软件。In some examples, when the electronic device releases the software to be released according to the deployment information of the released software, the electronic device may deploy the software to be released to the node corresponding to the deployment information of the released software. That is, the software to be released is sent to the node corresponding to the deployment information of the released software, and then the released software is deleted in each node.

在一些示例中,上述的电子设备在对该待发布软件进行发布后,为了使得工作人员可以清楚的了解该待发布软件的发布情况,可以将该待发布软件部署后的部署信息显示在显示界面。在一些示例中,该显示界面可以与已发布软件对应的显示界面相同或相似。In some examples, after the above-mentioned electronic device releases the software to be released, in order to enable the staff to clearly understand the release situation of the software to be released, the deployment information of the software to be released after deployment can be displayed on the display interface . In some examples, the display interface may be the same as or similar to the display interface corresponding to the published software.

通过本发明实施例的一种可视化发布软件的方法,可以在获取到待发布软件后,查询与待发布软件对应的已发布软件的部署信息。然后调用与已发布软件的部署信息对应的显示界面显示部署信息,使得工作人员可以清楚了解到该已发布软件的部署情况,在获取到工作人员输入的发布命令后,可以根据已发布软件的部署信息发布待发布软件,在对该待发布软件发布后,可以显示待发布软件部署后的部署信息至显示界面。这样,可以使得工作人员可以清楚的了解该待发布软件的发布情况,可见,通过本发明实施例,在软件的发布过程中,避免人工输入发布代码,从而可以实现降低工作人员发布新版本软件的工作量,减少新版本软件发布过程中的错误。Through a method for visually publishing software in an embodiment of the present invention, after obtaining the software to be released, the deployment information of the released software corresponding to the software to be released can be queried. Then call the display interface corresponding to the deployment information of the released software to display the deployment information, so that the staff can clearly understand the deployment of the released software. Information publishes the software to be released. After the software to be released is released, the deployment information of the software to be released after deployment can be displayed on the display interface. In this way, the staff can clearly understand the release situation of the software to be released. It can be seen that through the embodiment of the present invention, in the software release process, manual input of the release code is avoided, thereby reducing the cost of the staff to release the new version of the software. Reduce workload and reduce errors during the release of new version software.

在一些示例中,该待发布软件可以具有多个待发布模块,该已发布软件也可以具有多个已发布模块;该多个待发布模块与该多个已发布模块具有一一对应关系。该已发布软件的多个已发布模块可以部署在不同的节点上。In some examples, the to-be-released software may have multiple to-be-released modules, and the released software may also have multiple released modules; the multiple to-be-released modules have a one-to-one correspondence with the multiple released modules. Multiple Released Modules of the Released Software may be deployed on different nodes.

对此,在图1所示的可视化发布软件的方法的基础上,本发明实施例还提供了一种可能的实现方式,如图2所示,为本发明实施例的一种可视化发布软件的方法第二种实施方式的流程图,该方法可以包括:In this regard, on the basis of the method for visually publishing software shown in FIG. 1, the embodiment of the present invention also provides a possible implementation, as shown in FIG. A flow chart of the second embodiment of the method, the method may include:

S111,获取待发布软件,查询与待发布软件对应的已发布软件的各个已发布模块的部署信息。S111. Acquire the software to be released, and query the deployment information of each released module of the released software corresponding to the software to be released.

在一些示例中,当该已发布软件具有多个已发布模块,且该多个已发布模块部署在不同的节点上时,上述的电子设备在查询与待发布软件对应的已发布软件的部署信息时,可以查询该已发布软件的各个已发布模块的部署信息。In some examples, when the released software has multiple released modules, and the multiple released modules are deployed on different nodes, the above-mentioned electronic device is querying the deployment information of the released software corresponding to the software to be released , you can query the deployment information of each released module of the released software.

在一些示例中,该已发布模块可以是该已发布软件的软件模块,可以用于为用户提供该已发布软件中的一部分特定服务。In some examples, the released module may be a software module of the released software, which may be used to provide users with a part of specific services in the released software.

S121,调用与各个已发布模块的部署信息对应的显示界面,显示各个已发布模块的部署信息。S121, call a display interface corresponding to the deployment information of each released module, and display the deployment information of each released module.

上述的电子设备在查询到与该与待发布软件对应的已发布软件的各个已发布模块的部署信息后,可以调用与各个已发布模块的部署信息对应的显示界面,显示各个已发布模块的部署信息。如图3所示,图2所示的一种可视化发布软件的方法中的显示界面示意图,该显示界面可以显示已发布的云主机管理软件中的主机控制台模块的部署信息。在图3中,任务名称为“主机控制台切换”即为该云主机管理软件中的一个模块,模块“kec-api-preview”为该主机台控制模块的英文名,参见图3,该主机控制台模块部署在两个节点上,即“节点1”和“节点2”,“节点1”的节点信息为该“节点1”的IP地址“10.69.32.54”,“节点2”的节点信息为该“节点2”的IP地址“10.69.32.232”,可见,该主机控制台模块部署在两个不同的节点上。After the above-mentioned electronic device inquires about the deployment information of each released module of the released software corresponding to the software to be released, it can call a display interface corresponding to the deployment information of each released module to display the deployment information of each released module. information. As shown in FIG. 3 , it is a schematic diagram of a display interface in a method for visually publishing software shown in FIG. 2 , and the display interface can display deployment information of the host console module in the published cloud host management software. In Figure 3, the task name is "host console switching", which is a module in the cloud host management software, and the module "kec-api-preview" is the English name of the host console control module, see Figure 3, the host The console module is deployed on two nodes, namely "Node 1" and "Node 2". The node information of "Node 1" is the IP address "10.69.32.54" of "Node 1", and the node information of "Node 2" The IP address "10.69.32.232" of the "node 2", it can be seen that the host console module is deployed on two different nodes.

通过显示该已发布软件的各个已发布模块的部署信息,可以使得工作人员清楚的了解到部署该已发布软件的各个已发布模块的节点的节点信息和节点名称。By displaying the deployment information of each released module of the released software, the staff can clearly know the node information and node name of the node where each released module of the released software is deployed.

S131,获取工作人员输入的发布命令,根据各个已发布模块的部署信息,对与各个已发布模块对应的待发布模块进行发布,并显示该待发布软件的各个待发布模块部署后的部署信息至显示界面。S131. Obtain the release command input by the staff, release the modules to be released corresponding to each released module according to the deployment information of each released module, and display the deployed deployment information of each module to be released of the software to be released to UI.

上述的电子设备在对各个已发布模块的部署信息进行展示后,工作人员可以对部署各个已发布模块的节点进行检查,以确保部署各个已发布模块的节点的正常运行,然后可以输入发布命令。因此,上述的电子设备可以接收到工作人员输入的发布命令。After the above-mentioned electronic device displays the deployment information of each released module, the staff can check the nodes where each released module is deployed to ensure the normal operation of the nodes where each released module is deployed, and then input a release command. Therefore, the above-mentioned electronic device can receive the issuing command input by the worker.

上述的电子设备在接收到工作人员输入的发布命令后,可以根据该各个已发布模块的部署信息,对对应的待发布模块进行发布,在对对应的待发布模块发布完成后,可以显示该待发布软件的各个待发布模块的部署信息至显示界面,以供工作人员查阅。After receiving the release command input by the staff, the above-mentioned electronic device can release the corresponding module to be released according to the deployment information of each released module, and after the release of the corresponding module to be released is completed, it can display the module to be released. Publish the deployment information of each module to be released in the software to the display interface for the staff to review.

通过本发明实施例,可以按照该已发布软件的各个已发布模块的部署信息,对待发布软件的各个待发布模块进行部署,从而可以将该各个待发布模块部署到不同的节点上。增加了应用本发明实施例的可视化发布软件的方法的灵活性。Through the embodiment of the present invention, each module to be released of the software to be released can be deployed according to the deployment information of each released module of the released software, so that each module to be released can be deployed on different nodes. The flexibility of the method for visually publishing software applied in the embodiment of the present invention is increased.

在图1所示的可视化发布软件的方法的基础上,本发明实施例还提供了一种可能的实现方式,如图4所示,为本发明实施例的一种可视化发布软件的方法第三种实施方式的流程图,在步骤S120,调用与已发布软件的部署信息对应的显示界面,显示部署信息之后,该方法可以包括:On the basis of the method for visually distributing software shown in FIG. 1 , this embodiment of the present invention also provides a possible implementation, as shown in FIG. 4 , which is a third method for visually distributing software in an embodiment of the present invention. In the flow chart of this embodiment, in step S120, after calling the display interface corresponding to the deployment information of the released software and displaying the deployment information, the method may include:

S132,对待发布软件部署与已发布软件的节点的节点数量相同的待发布节点,并将待发布软件部署到待发布节点中。S132. Deploy the software to be released to the nodes to be released with the same number of nodes as the nodes of the released software, and deploy the software to be released to the nodes to be released.

在一些示例中,上述的电子设备除了将该待发布软件部署到该已发布软件的节点上之外,还可以预先为该待发布软件设置待发布节点,然后将该待发布软件上传到该待发布节点中。In some examples, in addition to deploying the software to be released to the node of the released software, the above-mentioned electronic device can also pre-set the node to be released for the software to be released, and then upload the software to be released to the node to be released in the publishing node.

在一些示例中,该电子设备可以与多个节点通信连接,然后在该多个节点中,选择与已发布软件的节点的节点数量相同的节点作为待发布节点。In some examples, the electronic device may be communicatively connected to a plurality of nodes, and then, among the plurality of nodes, a node having the same number of nodes as the nodes having released the software is selected as a node to be released.

上述的电子设备在选择得到待发布软件的待发布节点后,为了对该待发布软件进行发布,可以将该待发布软件上传到该待发布节点中。After the above-mentioned electronic device selects the node to be released to obtain the software to be released, in order to release the software to be released, the software to be released may be uploaded to the node to be released.

S133,依据已发布软件的节点的节点信息,修改待发布节点的节点信息,并显示修改后的待发布节点的节点信息至显示界面。S133. Modify the node information of the node to be released according to the node information of the node of the released software, and display the modified node information of the node to be released on the display interface.

上述的电子设备在将待发布软件上传到待发布节点后,为了使得用户可以访问到该待发布节点,以完成该待发布软件的发布,可以依据该已发布软件的节点的节点信息,修改该待发布节点的节点信息。After the above-mentioned electronic device uploads the software to be released to the node to be released, in order for the user to access the node to be released to complete the release of the software to be released, the software can be modified according to the node information of the node of the released software. Node information of the node to be published.

例如,假设该待发布节点的节点信息为该待发布节点在公司内网中的IP地址。该已发布节点的节点信息为该已发布节点在外网中的IP地址,则该电子设备可以将该待发布节点在该公司内网中的IP地址修改为该已发布节点在外网中的IP地址。这样,可以使得用户可以通过外网IP地址访问到该待发布节点。For example, it is assumed that the node information of the node to be released is the IP address of the node to be released in the intranet of the company. The node information of the published node is the IP address of the published node in the external network, then the electronic device can modify the IP address of the node to be published in the company's intranet to the IP address of the published node in the external network . In this way, the user can access the node to be published through the IP address of the external network.

在一些示例中,上述的电子设备在对该待发布节点的节点信息进行修改后,可以将该修改后的待发布节点的节点信息进行展示,例如,如图5所示,为图4所示的可视化发布软件的方法中的显示界面示意图,在图5中,可以包括待发布节点“节点1”和“节点2”,“节点1”对应的修改后的节点信息为IP地址“10.69.32.229”,修改状态为“成功”;“节点2”对应的修改后的节点信息为IP地址“10.69.32.228”,修改状态为“成功”。In some examples, after the above-mentioned electronic device modifies the node information of the node to be released, it may display the modified node information of the node to be released, for example, as shown in FIG. 5 , as shown in FIG. 4 The schematic diagram of the display interface in the method of visual publishing software, in Figure 5, may include the nodes to be released "Node 1" and "Node 2", and the modified node information corresponding to "Node 1" is the IP address "10.69.32.229 ", the modified status is "successful"; the modified node information corresponding to "node 2" is the IP address "10.69.32.228", and the modified status is "successful".

在一些示例中,上述的电子设备还可以输出修改过程中的日志文件,当修改成功时,将修改成功的日志文件作为正确文件输出,当修改失败时,可以将修改失败的日志文件作为错误文件输出,以便工作人员根据该错误文件查看出现的错误,以便修改错误。In some examples, the above-mentioned electronic device can also output the log file during the modification process. When the modification is successful, the log file that is successfully modified can be output as the correct file. When the modification fails, the log file that cannot be modified can be used as an error file. Output, so that the staff can view the errors that occur according to the error file, so as to correct the errors.

在一些示例中,在修改该节点信息时,可能会出现一些提醒信息或报警信息,对此,上述的电子设备还提供了针对提醒信息或报警信息的操作,该针对提醒信息或报警信息的操作可以包括“忽视”、“重复”以及“停止”。其中,“忽视”操作用于忽视该提醒信息或报警信息,该“重复”操作用于在出现提醒信息或报警信息后,重复执行修改节点信息的步骤。该“停止”操作用于在出现提醒信息或报警信息后,停止执行修改节点信息的步骤。In some examples, when the node information is modified, some reminder information or alarm information may appear. For this, the above-mentioned electronic device also provides an operation for the reminder information or alarm information, and the operation for the reminder information or alarm information Can include Ignore, Repeat, and Stop. Wherein, the "ignore" operation is used to ignore the reminder information or the alarm information, and the "repeat" operation is used to repeatedly execute the step of modifying the node information after the reminder information or the alarm information appears. The "stop" operation is used to stop executing the step of modifying node information after a reminder message or an alarm message appears.

通过本发明实施例,可以方便工作人员对待发布软件的发布,也即,通过修改待发布软件对应的节点的节点信息,便可以实现对待发布软件的发布,从而可以实现降低工作人员发布新版本软件的工作量。Through the embodiment of the present invention, it is convenient for the staff to release the software to be released, that is, by modifying the node information of the node corresponding to the software to be released, the release of the software to be released can be realized, thereby reducing the number of staff members to release new versions of software. workload.

在图2所示的可视化发布软件的方法的基础上,本发明实施例还提供了一种可能的实现方式,如图6所示,为本发明实施例的一种可视化发布软件的方法第四种实施方式的流程图,在步骤S121,调用与各个已发布模块的部署信息对应的显示界面,显示各个已发布模块的部署信息之后,该方法可以包括:On the basis of the method for visually distributing software shown in Figure 2, this embodiment of the present invention also provides a possible implementation, as shown in Figure 6, which is the fourth method for visually distributing software in this embodiment of the present invention In the flow chart of this embodiment, in step S121, after calling the 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,对待发布软件的各个待发布模块,设置与已发布软件的各个已发布模块的节点相同的待发布节点,并将待发布软件的各个待发布模块部署到对应的待发布节点中。S134. For each to-be-released module of the software to be released, set the same to-be-released node as the nodes of each released module of the released software, and deploy each to-be-released module of the to-be-released software to the corresponding to-be-released node.

在一些示例中,当待发布软件具有多个待发布模块,已发布软件具有多个已发布模块时,上述的电子设备,可以针对每个待发布模块,设置与该待发布模块对应的已发布模块的节点相同的待发布节点,然后将该待发布模块上传到该对应的待发布节点中。In some examples, when the software to be released has multiple modules to be released, and the software to be released has multiple modules that have been released, the above-mentioned electronic device can set a released module corresponding to the module to be released for each module to be released. The module node is the same as the node to be released, and then the module to be released is uploaded to the corresponding node to be released.

这样,可以使得该待发布软件的各个待发布模块,都具有对应的待发布节点。In this way, each module to be released of the software to be released can have a corresponding node to be released.

S135,依据已发布软件的各个已发布模块的节点的节点信息,修改对应的待发布模块的待发布节点的节点信息,并显示修改后的待发布节点的待发布模块的节点信息至显示界面。S135. According to the node information of the nodes of each released module of the released software, modify the node information of the corresponding to-be-released node of the to-be-released module, and display the modified node information of the to-be-released module of the to-be-released node on the display interface.

上述的电子设备在为待发布软件的各个模块设置好对应的待发布节点后,为了使得用户可以访问到各个待发布节点,从而使得该待发布节点中的各个模块可以为用户服务,上述的电子设备可以依据已发布软件的各个已发布模块的节点的节点信息,修改对应的待发布模块的待发布节点的节点信息。After the above-mentioned electronic device has set corresponding nodes to be released for each module of the software to be released, in order to allow users to access each node to be released, so that each module in the node to be released can serve the user, the above-mentioned electronic device The device may modify the node information of the nodes to be released of the corresponding modules to be released according to the node information of the nodes of the released modules of the released software.

例如,假设待发布软件具有“待发布模块1”和“待发布模块2”,已发布软件具有“已发布模块1”和“已发布模块2”,“已发布模块1”设置在“已发布节点1”和“已发布节点2”中,“已发布模块2”设置在“已发布节点3”和“已发布节点4”中,则上述的电子设备可以为该“待发布模块1”设置“待发布节点1”和“待发布节点2”,为该“待发布模块2”设置“待发布节点3”和“待发布节点4”。For example, suppose the software to be released has "Module 1 to be released" and "Module 2 to be released", the software to be released has "Module 1 to be released" and "Module 2 to be released", and "Module In node 1" and "released node 2", "released module 2" is set in "released node 3" and "released node 4", then the above-mentioned electronic device can be set for the "to be released module 1" "Node 1 to be released" and "Node to be released 2", set "node 3 to be released" and "node 4 to be released" for the "module 2 to be released".

然后,上述的电子设备可以将“待发布模块1”分别上传到“待发布节点1”和“待发布节点2”,将“待发布模块2”分别上传到“待发布节点3”和“待发布节点4”。Then, the above-mentioned electronic device can upload "module 1 to be released" to "node 1 to be released" and "node 2 to be released", and upload "module 2 to be released" to "node 3 to be released" and "node 2 to be released" respectively. Publish node 4".

最后,可以依据该“已发布节点1”的节点信息,修改“待发布节点1”的节点信息,依据该“已发布节点2”的节点信息,修改“待发布节点2”的节点信息,依据该“已发布节点3”的节点信息,修改“待发布节点3”的节点信息,依据该“已发布节点4”的节点信息,修改“待发布节点4”的节点信息。Finally, the node information of "Node 1 to be released" can be modified according to the node information of "Node 1 released", and the node information of "Node 2 to be released" can be modified according to the node information of "Node 2 to be released". The node information of the "published node 3" is modified to the node information of the "to-be-published node 3", and the node information of the "to-be-published node 4" is modified according to the node information of the "published node 4".

这样,可以使得该待发布软件在发布后,可以完整的替代该已发布软件为用户提供服务。In this way, the software to be released can completely replace the released software to provide services to users after it is released.

上述的电子设备在修改完成节点信息后,为了使得工作人员可以查看修改后的待发布节点的节点信息,可以显示修改后的待发布节点的待发布模块的节点信息至显示界面。After the modification of the node information of the above-mentioned electronic device is completed, in order to enable the staff to view the modified node information of the node to be released, the node information of the module to be released of the modified node to be released can be displayed on the display interface.

通过本发明实施例,可以使得工作人员可以清楚的了解各个待发布模块的部署情况,并且,在部署过程中,出现问题时,能够清楚的了解出现问题的待发布模块或待发布模块对应的待发布节点,从而可以方便排查错误,进而可以降低工作人员发布新版本软件的工作量。Through the embodiment of the present invention, the staff can clearly understand the deployment status of each module to be released, and when a problem occurs during the deployment process, they can clearly understand the module to be released or the module to be released corresponding to the problem. Release nodes, which can facilitate troubleshooting and reduce the workload of staff to release new versions of software.

在图4所示的可视化发布软件的方法的基础上,本发明实施例还提供了一种可能的实现方式,如图7所示,为本发明实施例的一种可视化发布软件的方法第五种实施方式的流程图,在S133,依据已发布软件的节点的节点信息,修改待发布节点的节点信息,并显示修改后的待发布节点的节点信息至显示界面之后,该可视化发布软件的方法,还可以包括:On the basis of the method for visually publishing software shown in Figure 4, the embodiment of the present invention also provides a possible implementation, as shown in Figure 7, which is the fifth method for visually publishing software in the embodiment of the present invention In the flow chart of this embodiment, in S133, after modifying the node information of the node to be released according to the node information of the node that has released the software, and displaying the modified node information of the node to be released to the display interface, the method of visually releasing software , which can also include:

S140,获取工作人员输入的流量切换时间。S140. Obtain the traffic switching time input by the staff.

S150,依据流量切换时间,切换部署已发布软件的已发布节点的流量至部署待发布软件的待发布节点。S150. According to the traffic switching time, switch the traffic of the released node deploying the released software to the waiting node deploying the software to be released.

在一些示例中,为了在该待发布软件在发布后,用户能够访问该待发布软件,也即,将已发布软件对应的用户流量切换到该发布后的待发布软件上。In some examples, after the software to be released is released, users can access the software to be released, that is, user traffic corresponding to the released software is switched to the released software to be released.

在一些示例中,上述的电子设备可以在显示修改后的待发布节点的节点信息至显示界面之后,开始进行流量切换。In some examples, the above-mentioned electronic device may start traffic switching after displaying the modified node information of the node to be published on the display interface.

在一些示例中,上述的显示界面也可以设置有“切换流量”按钮,工作人员可以点击该“切换流量”按钮,当上述的电子设备接收到该工作人员点击该“切换流量”按钮生成的切换流量指令后,开始进行流量切换。In some examples, the above-mentioned display interface can also be provided with a "switch traffic" button, which the staff can click on. After the flow command, start the flow switching.

在又一些示例中,上述的显示界面也可以设置有“流量切换时间”输入框,工作人员可以在该输入框中输入切换流量的时间。当上述的电子设备在接收到工作人员输入的切换流量的时间后,可以按照该切换流量的时间,切换部署已发布软件的已发布节点的流量至部署待发布软件的待发布节点。In some other examples, the above-mentioned display interface may also be provided with an input box of "flow switching time", and the staff may input the time of switching the flow in the input box. After receiving the switching traffic time input by the staff, the above-mentioned electronic device can switch the traffic of the published node deploying the released software to the waiting node deploying the software to be released according to the switching traffic time.

在一些示例中,上述的电子设备可以采用以下步骤,切换部署已发布软件的已发布节点的流量至部署待发布软件的待发布节点:In some examples, the above-mentioned electronic device may adopt the following steps to switch the traffic of the published node deploying the released software to the unpublished node deploying the software to be released:

步骤A,获取部署已发布软件的已发布节点的第一配置文件和部署待发布软件的待发布节点的第二配置文件。Step A, obtaining the first configuration file of the released node deploying the released software and the second configuration file of the unpublished node deploying the software to be released.

步骤B,将第二配置文件修改为第一配置文件。Step B, modify the second configuration file to the first configuration file.

步骤C,重启部署待发布软件的待发布节点,以使得修改后的第二配置文件生效。Step C, restarting the node to be released on which the software to be released is deployed, so that the modified second configuration file takes effect.

在一些示例中,该配置文件可以是已发布节点的IP地址与域名的对应关系。通过修改配置文件,可以使得该待发布软件的待发布节点具有与与已发布软件的已发布节点相同的配置文件。从而可以使得用户可以访问到该待发布节点。In some examples, the configuration file may be the published correspondence between the IP address of the node and the domain name. By modifying the configuration file, the to-be-released node of the software to be released can have the same configuration file as the released node of the released software. Thus, the user can access the node to be published.

上述的电子设备在对该待发布节点的第二配置文件进行修改后,为了使得该第二配置文件生效,可以向部署该待发布软件的待发布节点发送重启指令,以使得该待发布节点重启,该待发布节点重启后,该修改后的第二配置文件便可以生效。After the above-mentioned electronic device modifies the second configuration file of the node to be released, in order to make the second configuration file take effect, it may send a restart instruction to the node to be released deploying the software to be released, so that the node to be released is restarted. , after the node to be released is restarted, the modified second configuration file will take effect.

上述的电子设备在切换部署已发布软件的已发布节点的流量至部署待发布软件的待发布节点时,可以按照总流量的百分比来切换,例如,将部署已发布软件的已发布节点的总流量的百分之三十的流量,切换至部署待发布软件的待发布节点,或者将部署已发布软件的已发布节点的总流量的百分之五十的流量,切换至部署待发布软件的待发布节点。When the above-mentioned electronic device switches the traffic of the published node deploying the released software to the unpublished node deploying the software to be released, it can be switched according to the percentage of the total traffic, for example, the total traffic of the published node that will deploy the released software 30% of the traffic will be switched to the unpublished node deploying the software to be released, or 50% of the total traffic of the published nodes deploying the released software will be switched to the unpublished node deploying the unpublished software Publish node.

通过本发明实施例,可以实现定时自动对流量进行切换,并且,无需工作人员手动进行流量切换,可以实现降低工作人员发布新版本软件的工作量。Through the embodiment of the present invention, it is possible to automatically switch the traffic at regular intervals, and it is not necessary for the staff to manually switch the traffic, so that the workload of the staff for releasing new version software can be reduced.

相应于上述的方法实施例,本发明实施例还提供了一种可视化发布软件的装置,如图8所示,为本发明实施例的一种可视化发布软件的装置的结构示意图,该装置可以包括:Corresponding to the above-mentioned method embodiment, the embodiment of the present invention also 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 an embodiment of the present invention. :

获取模块810,用于获取待发布软件,并查询与待发布软件对应的已发布软件的部署信息,其中,已发布软件的部署信息包括:部署已发布软件的节点的节点信息、部署已发布软件的节点的节点标识信息;The obtaining module 810 is used to obtain the software to be released, and query the deployment information of the released software corresponding to the software to be released, wherein the deployment information of the released software includes: the node information of the node deploying the released software, the deployment information of the released software The node identification information of the node;

显示模块820,用于调用与已发布软件的部署信息对应的显示界面,显示部署信息;A display module 820, configured to call a display interface corresponding to the deployment information of the published software, and display the deployment information;

部署模块830,用于获取工作人员输入的发布命令,根据已发布软件的部署信息发布待发布软件,并显示待发布软件部署后的部署信息至显示界面。The deployment module 830 is configured to acquire the release command input by the staff, release the software to be released according to the deployment information of the released software, and display the deployed deployment information of the software to be released on the display interface.

本发明实施例的一种可视化发布软件的装置可以在获取到待发布软件后,查询与待发布软件对应的已发布软件的部署信息。然后调用与已发布软件的部署信息对应的显示界面显示部署信息,使得工作人员可以清楚了解到该已发布软件的部署情况,在获取到工作人员输入的发布命令后,可以根据已发布软件的部署信息发布待发布软件,在对该待发布软件发布后,可以显示待发布软件部署后的部署信息至显示界面。这样,可以使得工作人员可以清楚的了解该待发布软件的发布情况,可见,通过本发明实施例,在软件的发布过程中,避免人工输入发布代码,从而可以实现降低工作人员发布新版本软件的工作量,减少新版本软件发布过程中的错误。An apparatus for visually publishing software in an embodiment of the present invention can query deployment information of released software corresponding to the software to be released after acquiring the software to be released. Then call the display interface corresponding to the deployment information of the released software to display the deployment information, so that the staff can clearly understand the deployment of the released software. Information publishes the software to be released. After the software to be released is released, the deployment information of the software to be released after deployment can be displayed on the display interface. In this way, the staff can clearly understand the release situation of the software to be released. It can be seen that through the embodiment of the present invention, in the software release process, manual input of the release code is avoided, thereby reducing the cost of the staff to release the new version of the software. Reduce workload and reduce errors during the release of new version software.

在一些示例中,待发布软件具有多个待发布模块,已发布软件具有多个已发布模块;多个待发布模块与多个已发布模块具有一一对应关系;In some examples, the software to be released has multiple modules to be released, and the software to be released has multiple modules that have been released; the multiple modules to be released have a one-to-one correspondence with the multiple released modules;

在一些示例中,获取模块810,具体用于:In some examples, module 810 is obtained for:

查询与待发布软件对应的已发布软件的各个已发布模块的部署信息;Query the deployment information of each released module of the released software corresponding to the software to be released;

在一些示例中,显示模块820,具体用于:In some examples, module 820 is shown for:

调用与各个已发布模块的部署信息对应的显示界面,显示各个已发布模块的部署信息;Call the display interface corresponding to the deployment information of each released module to display the deployment information of each released module;

在一些示例中,部署模块830,具体用于:In some examples, module 830 is deployed to:

根据各个已发布模块的部署信息,对与各个已发布模块对应的待发布模块进行发布,并显示该待发布软件的各个待发布模块部署后的部署信息至显示界面。According to the deployment information of each released module, the to-be-released modules corresponding to each released module are released, and the deployment information of each to-be-released module of the software to be released is displayed on the display interface after deployment.

在一些示例中,部署模块830,具体用于:In some examples, module 830 is deployed to:

将待发布软件部署到与已发布软件的部署信息对应的节点中。Deploy the software to be released to the node corresponding to the deployment information of the released software.

在一些示例中,部署模块830,包括:In some examples, the deployment module 830 includes:

节点部署子模块,用于对待发布软件部署与已发布软件的节点的节点数量相同的待发布节点,并将待发布软件部署到待发布节点中;The node deployment sub-module is used to deploy the software to be released to the nodes to be released with the same number of nodes as the nodes of the released software, and deploy the software to be released to the nodes to be released;

节点信息修改子模块,用于依据已发布软件的节点的节点信息,修改待发布节点的节点信息;The node information modification sub-module is used to modify the node information of the node to be released according to the node information of the node of the released software;

在一些示例中,该可视化发布软件的装置还包括:流量切换时间获取模块,用于获取工作人员输入的流量切换时间;In some examples, the device for visually publishing software also includes: a traffic switching time acquisition module, configured to acquire the traffic switching time input by the staff;

流量切换模块,用于依据流量切换时间,切换部署已发布软件的已发布节点的流量至部署待发布软件的待发布节点。The traffic switching module is configured to switch the traffic of the published node deploying the released software to the waiting node deploying the software to be released according to the traffic switching time.

在一些示例中,流量切换模块,包括:In some examples, traffic switching modules include:

配置文件获取子模块,用于获取部署已发布软件的已发布节点的第一配置文件和部署待发布软件的待发布节点的第二配置文件;The configuration file obtaining submodule is used to obtain the first configuration file of the released node deploying the released software and the second configuration file of the unpublished node deploying the software to be released;

配置文件修改子模块,用于将第二配置文件修改为第一配置文件;The configuration file modification sub-module is used to modify the second configuration file to the first configuration file;

重启子模块,用于重启部署待发布软件的待发布节点,以使得修改后的第二配置文件生效。The restart sub-module is used to restart the node to be released on which the software to be released is deployed, so that the modified second configuration file takes effect.

本发明实施例还提供了一种电子设备,如图9所示,为本发明实施例的一种可视化发布软件的方法应用于电子设备的结构示意图,该电子设备可以包括处理器901和机器可读存储介质902,机器可读存储介质902存储有能够被处理器901执行的机器可执行指令,处理器901被机器可执行指令促使:实现以下步骤:An embodiment of the present invention also provides an electronic device. As shown in FIG. 9 , it is a schematic structural diagram of a method for visually publishing software in an embodiment of the present invention applied to an electronic device. The electronic device may include a processor 901 and a machine that can Read the storage medium 902, the machine-readable storage medium 902 stores machine-executable instructions that can be executed by the processor 901, and the processor 901 is prompted by the machine-executable instructions: implement the following steps:

获取待发布软件,并查询与待发布软件对应的已发布软件的部署信息,其中,部署信息包括:部署已发布软件的节点的节点信息、部署已发布软件的节点的节点标识信息;Obtain the software to be released, and query the deployment information of the released software corresponding to the software to be released, wherein the deployment information includes: the node information of the node deploying the released software, and the node identification information of the node deploying the released software;

调用与已发布软件的部署信息对应的显示界面,显示部署信息;Call the display interface corresponding to the deployment information of the released software to display the deployment information;

获取工作人员输入的发布命令,根据已发布软件的部署信息发布待发布软件,并显示待发布软件部署后的部署信息至显示界面。Obtain the release command input by the staff, release the software to be released according to the deployment information of the released software, and display the deployment information of the software to be released on the display interface after deployment.

机器可读存储介质902可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The machine-readable storage medium 902 may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one magnetic disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.

上述的处理器901可以是通用处理器,包括中央处理器(Central ProcessingUnit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DigitalSignal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor 901 can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (DigitalSignal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

本发明实施例的一种电子设备,可以在获取到待发布软件后,查询与待发布软件对应的已发布软件的部署信息。然后调用与已发布软件的部署信息对应的显示界面显示部署信息,使得工作人员可以清楚了解到该已发布软件的部署情况,在获取到工作人员输入的发布命令后,可以根据已发布软件的部署信息发布待发布软件,在对该待发布软件发布后,可以显示待发布软件部署后的部署信息至显示界面。这样,可以使得工作人员可以清楚的了解该待发布软件的发布情况,可见,通过本发明实施例,在软件的发布过程中,避免人工输入发布代码,从而可以实现降低工作人员发布新版本软件的工作量,减少新版本软件发布过程中的错误。An electronic device according to an embodiment of the present invention can query deployment information of released software corresponding to the software to be released after acquiring the software to be released. Then call the display interface corresponding to the deployment information of the released software to display the deployment information, so that the staff can clearly understand the deployment of the released software. Information publishes the software to be released. After the software to be released is released, the deployment information of the software to be released after deployment can be displayed on the display interface. In this way, the staff can clearly understand the release situation of the software to be released. It can be seen that through the embodiment of the present invention, in the software release process, manual input of the release code is avoided, thereby reducing the cost of the staff to release the new version of the software. Reduce workload and reduce errors during the release of new version software.

本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现如下步骤:The embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented:

获取待发布软件,并查询与待发布软件对应的已发布软件的部署信息,其中,部署信息包括:部署已发布软件的节点的节点信息、部署已发布软件的节点的节点标识信息;Obtain the software to be released, and query the deployment information of the released software corresponding to the software to be released, wherein the deployment information includes: the node information of the node deploying the released software, and the node identification information of the node deploying the released software;

调用与已发布软件的部署信息对应的显示界面,显示部署信息;Call the display interface corresponding to the deployment information of the released software to display the deployment information;

获取工作人员输入的发布命令,根据已发布软件的部署信息发布待发布软件,并显示待发布软件部署后的部署信息至显示界面。Obtain the release command input by the staff, release the software to be released according to the deployment information of the released software, and display the deployment information of the software to be released on the display interface after deployment.

本发明实施例的一种计算机可读存储介质,可以在获取到待发布软件后,查询与待发布软件对应的已发布软件的部署信息。然后调用与已发布软件的部署信息对应的显示界面显示部署信息,使得工作人员可以清楚了解到该已发布软件的部署情况,在获取到工作人员输入的发布命令后,可以根据已发布软件的部署信息发布待发布软件,在对该待发布软件发布后,可以显示待发布软件部署后的部署信息至显示界面。这样,可以使得工作人员可以清楚的了解该待发布软件的发布情况,可见,通过本发明实施例,在软件的发布过程中,避免人工输入发布代码,从而可以实现降低工作人员发布新版本软件的工作量,减少新版本软件发布过程中的错误。A computer-readable storage medium according to an embodiment of the present invention can query deployment information of released software corresponding to the software to be released after acquiring the software to be released. Then call the display interface corresponding to the deployment information of the released software to display the deployment information, so that the staff can clearly understand the deployment of the released software. Information publishes the software to be released. After the software to be released is released, the deployment information of the software to be released after deployment can be displayed on the display interface. In this way, the staff can clearly understand the release situation of the software to be released. It can be seen that through the embodiment of the present invention, in the software release process, manual input of the release code is avoided, thereby reducing the cost of the staff to release the new version of the software. Reduce workload and reduce errors during the release of new version software.

本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以下步骤:The embodiment of the present invention also provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform the following steps:

获取待发布软件,并查询与待发布软件对应的已发布软件的部署信息,其中,部署信息包括:部署已发布软件的节点的节点信息、部署已发布软件的节点的节点标识信息;Obtain the software to be released, and query the deployment information of the released software corresponding to the software to be released, wherein the deployment information includes: the node information of the node deploying the released software, and the node identification information of the node deploying the released software;

调用与已发布软件的部署信息对应的显示界面,显示部署信息;Call the display interface corresponding to the deployment information of the released software to display the deployment information;

获取工作人员输入的发布命令,根据已发布软件的部署信息发布待发布软件,并显示待发布软件部署后的部署信息至显示界面。Obtain the release command input by the staff, release the software to be released according to the deployment information of the released software, and display the deployment information of the software to be released on the display interface after deployment.

本发明实施例的一种包含指令的计算机程序产品,可以在获取到待发布软件后,查询与待发布软件对应的已发布软件的部署信息。然后调用与已发布软件的部署信息对应的显示界面显示部署信息,使得工作人员可以清楚了解到该已发布软件的部署情况,在获取到工作人员输入的发布命令后,可以根据已发布软件的部署信息发布待发布软件,在对该待发布软件发布后,可以显示待发布软件部署后的部署信息至显示界面。这样,可以使得工作人员可以清楚的了解该待发布软件的发布情况,可见,通过本发明实施例,在软件的发布过程中,避免人工输入发布代码,从而可以实现降低工作人员发布新版本软件的工作量,减少新版本软件发布过程中的错误。A computer program product including instructions according to an embodiment of the present invention can query deployment information of released software corresponding to the software to be released after acquiring the software to be released. Then call the display interface corresponding to the deployment information of the released software to display the deployment information, so that the staff can clearly understand the deployment of the released software. Information publishes the software to be released. After the software to be released is released, the deployment information of the software to be released after deployment can be displayed on the display interface. In this way, the staff can clearly understand the release situation of the software to be released. It can be seen that through the embodiment of the present invention, in the software release process, manual input of the release code is avoided, thereby reducing the cost of the staff to release the new version of the software. Reduce workload and reduce errors during the release of new version software.

本发明实施例还提供了一种计算机程序,当其在计算机上运行时,使得计算机执行以下步骤:An embodiment of the present invention also provides a computer program that, when run on a computer, causes the computer to perform the following steps:

获取待发布软件,并查询与待发布软件对应的已发布软件的部署信息,其中,部署信息包括:部署已发布软件的节点的节点信息、部署已发布软件的节点的节点标识信息;Obtain the software to be released, and query the deployment information of the released software corresponding to the software to be released, wherein the deployment information includes: the node information of the node deploying the released software, and the node identification information of the node deploying the released software;

调用与已发布软件的部署信息对应的显示界面,显示部署信息;Call the display interface corresponding to the deployment information of the released software to display the deployment information;

获取工作人员输入的发布命令,根据已发布软件的部署信息发布待发布软件,并显示待发布软件部署后的部署信息至显示界面。Obtain the release command input by the staff, release the software to be released according to the deployment information of the released software, and display the deployment information of the software to be released on the display interface after deployment.

本发明实施例的一种计算机程序,可以在获取到待发布软件后,查询与待发布软件对应的已发布软件的部署信息。然后调用与已发布软件的部署信息对应的显示界面显示部署信息,使得工作人员可以清楚了解到该已发布软件的部署情况,在获取到工作人员输入的发布命令后,可以根据已发布软件的部署信息发布待发布软件,在对该待发布软件发布后,可以显示待发布软件部署后的部署信息至显示界面。这样,可以使得工作人员可以清楚的了解该待发布软件的发布情况,可见,通过本发明实施例,在软件的发布过程中,避免人工输入发布代码,从而可以实现降低工作人员发布新版本软件的工作量,减少新版本软件发布过程中的错误。A computer program according to an embodiment of the present invention can query deployment information of released software corresponding to the software to be released after acquiring the software to be released. Then call the display interface corresponding to the deployment information of the released software to display the deployment information, so that the staff can clearly understand the deployment of the released software. Information publishes the software to be released. After the software to be released is released, the deployment information of the software to be released after deployment can be displayed on the display interface. In this way, the staff can clearly understand the release situation of the software to be released. It can be seen that through the embodiment of the present invention, in the software release process, manual input of the release code is avoided, thereby reducing the cost of the staff to release the new version of the software. Reduce workload and reduce errors during the release of new version software.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiment.

上述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The foregoing are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (12)

1.一种可视化发布软件的方法,其特征在于,所述方法包括:1. A method for visual release software, characterized in that the method comprises: 获取待发布软件,并查询与所述待发布软件对应的已发布软件的部署信息,其中,所述已发布软件的部署信息包括:部署所述已发布软件的节点的节点信息、部署所述已发布软件的节点的节点标识信息;Acquiring the software to be released, and querying the deployment information of the released software corresponding to the software to be released, wherein the deployment information of the released software includes: node information of the node deploying the released software, deploying the released software Node identification information of the node that released the software; 调用与所述已发布软件的部署信息对应的显示界面,显示所述部署信息;calling a display interface corresponding to the deployment information of the released software to display the deployment information; 获取工作人员输入的发布命令,根据所述已发布软件的部署信息发布所述待发布软件,并显示所述待发布软件部署后的部署信息至所述显示界面;Obtaining the release command input by the staff, publishing the software to be released according to the deployment information of the released software, and displaying the deployment information of the software to be released on the display interface after deployment; 所述根据所述已发布软件的部署信息发布所述待发布软件,并显示所述待发布软件部署后的部署信息至所述显示界面,包括:The publishing of the software to be released according to the deployment information of the released software, and displaying the deployment information of the software to be released to the display interface after deployment includes: 对所述待发布软件部署与所述已发布软件的节点的节点数量相同的待发布节点,并将所述待发布软件部署到所述待发布节点中;Deploying to-be-released nodes the same number of nodes as the nodes of the released software to the to-be-released software, and deploying the to-be-released software to the to-be-released nodes; 依据所述已发布软件的节点的节点信息,修改所述待发布节点的节点信息,并显示修改后的待发布节点的节点信息至所述显示界面。Modifying the node information of the node to be released according to the node information of the node of the released software, and displaying the modified node information of the node to be released on the display interface. 2.根据权利要求1所述的方法,其特征在于,所述待发布软件具有多个待发布模块,所述已发布软件具有多个已发布模块;所述多个待发布模块与所述多个已发布模块具有一一对应关系;2. The method according to claim 1, wherein the software to be released has a plurality of modules to be released, and the released software has a plurality of released modules; released modules have a one-to-one correspondence; 所述查询与所述待发布软件对应的已发布软件的部署信息,包括:The querying of deployment information of released software corresponding to the software to be released includes: 查询与所述待发布软件对应的已发布软件的各个已发布模块的部署信息;Querying the deployment information of each released module of the released software corresponding to the software to be released; 所述调用与所述已发布软件的部署信息对应的显示界面,显示所述部署信息,包括:The calling the display interface corresponding to the deployment information of the released software to display the deployment information includes: 调用与各个已发布模块的部署信息对应的显示界面,显示所述各个已发布模块的部署信息;calling a display interface corresponding to the deployment information of each released module, and displaying the deployment information of each released module; 所述根据所述已发布软件的部署信息发布所述待发布软件,并显示所述待发布软件部署后的部署信息至所述显示界面,包括:The publishing of the software to be released according to the deployment information of the released software, and displaying the deployment information of the software to be released to the display interface after deployment includes: 根据各个已发布模块的部署信息,对与所述各个已发布模块对应的待发布模块进行发布,并显示该待发布软件的各个待发布模块部署后的部署信息至所述显示界面。According to the deployment information of each released module, publish the modules to be released corresponding to the released modules, and display the deployed deployment information of each module to be released of the software to be released on the display interface. 3.根据权利要求1所述的方法,其特征在于,所述根据所述已发布软件的部署信息发布所述待发布软件,包括:3. The method according to claim 1, wherein publishing the software to be released according to the deployment information of the released software comprises: 将所述待发布软件部署到与所述已发布软件的部署信息对应的节点中。Deploying the software to be released to nodes corresponding to the deployment information of the released software. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:获取工作人员输入的流量切换时间;4. The method according to claim 1, further comprising: obtaining the traffic switching time input by the staff; 在所述显示修改后的待发布节点的节点信息至所述显示界面之后,所述方法还包括:After displaying the modified node information of the node to be published on the display interface, the method further includes: 依据所述流量切换时间,切换部署所述已发布软件的已发布节点的流量至部署所述待发布软件的待发布节点。According to the traffic switching time, switch the traffic of the published node deploying the released software to the unpublished node deploying the software to be released. 5.根据权利要求4所述的方法,其特征在于,所述切换部署所述已发布软件的已发布节点的流量至部署所述待发布软件的待发布节点,包括:5. The method according to claim 4, wherein the switching the traffic of the published node deploying the released software to the unpublished node deploying the software to be released comprises: 获取部署所述已发布软件的已发布节点的第一配置文件和部署所述待发布软件的待发布节点的第二配置文件;Acquiring a first configuration file of the published node deploying the released software and a second configuration file of the unpublished node deploying the unpublished software; 将所述第二配置文件修改为所述第一配置文件;modifying the second configuration file to the first configuration file; 重启所述部署所述待发布软件的待发布节点,以使得修改后的第二配置文件生效。Restarting the to-be-released node deploying the to-be-released software, so that the modified second configuration file takes effect. 6.一种可视化发布软件的装置,其特征在于,所述装置包括:6. A device for visually publishing software, characterized in that the device comprises: 获取模块,用于获取待发布软件,并查询与所述待发布软件对应的已发布软件的部署信息,其中,所述已发布软件的部署信息包括:部署所述已发布软件的节点的节点信息、部署所述已发布软件的节点的节点标识信息;An acquisition module, configured to acquire the software to be released, and query the deployment information of the released software corresponding to the software to be released, wherein the deployment information of the released software includes: node information of the node where the released software is deployed . Node identification information of the node deploying the released software; 显示模块,用于调用与所述已发布软件的部署信息对应的显示界面,显示所述部署信息;A display module, configured to call a display interface corresponding to the deployment information of the published software, and display the deployment information; 部署模块,用于获取工作人员输入的发布命令,根据所述已发布软件的部署信息发布所述待发布软件,并显示所述待发布软件部署后的部署信息至所述显示界面;The deployment module is used to obtain the release command input by the staff, publish the software to be released according to the deployment information of the released software, and display the deployment information of the software to be released on the display interface after deployment; 所述部署模块,包括:The deployment module includes: 节点部署子模块,用于对所述待发布软件部署与所述已发布软件的节点的节点数量相同的待发布节点,并将所述待发布软件部署到所述待发布节点中;A node deployment submodule, configured to deploy nodes to be released with the same number of nodes as the nodes of the released software to the software to be released, and deploy the software to be released to the nodes to be released; 节点信息修改子模块,用于依据所述已发布软件的节点的节点信息,修改所述待发布节点的节点信息,并显示修改后的待发布节点的节点信息至所述显示界面。The node information modification sub-module is used to modify the node information of the node to be released according to the node information of the node of the released software, and display the modified node information of the node to be released on the display interface. 7.根据权利要求6所述的装置,其特征在于,所述待发布软件具有多个待发布模块,所述已发布软件具有多个已发布模块;所述多个待发布模块与所述多个已发布模块具有一一对应关系;7. The device according to claim 6, wherein the software to be released has a plurality of modules to be released, and the released software has a plurality of released modules; released modules have a one-to-one correspondence; 所述获取模块,具体用于:The acquisition module is specifically used for: 查询与所述待发布软件对应的已发布软件的各个已发布模块的部署信息;Querying the deployment information of each released module of the released software corresponding to the software to be released; 所述显示模块,具体用于:The display module is specifically used for: 调用与各个已发布模块的部署信息对应的显示界面,显示所述各个已发布模块的部署信息;calling a display interface corresponding to the deployment information of each released module, and displaying the deployment information of each released module; 所述部署模块,具体用于:The deployment module is specifically used for: 根据各个已发布模块的部署信息,对与所述各个已发布模块对应的待发布模块进行发布,并显示该待发布软件的各个待发布模块部署后的部署信息至所述显示界面。According to the deployment information of each released module, publish the modules to be released corresponding to the released modules, and display the deployed deployment information of each module to be released of the software to be released on the display interface. 8.根据权利要求6所述的装置,其特征在于,所述部署模块,具体用于:8. The device according to claim 6, wherein the deployment module is specifically used for: 将所述待发布软件部署到与所述已发布软件的部署信息对应的节点中。Deploying the software to be released to nodes corresponding to the deployment information of the released software. 9.根据权利要求6所述的装置,其特征在于,所述装置还包括:流量切换时间获取模块,用于获取工作人员输入的流量切换时间;9. The device according to claim 6, further comprising: a traffic switching time acquisition module, configured to acquire the traffic switching time input by the staff; 流量切换模块,用于依据所述流量切换时间,切换部署所述已发布软件的已发布节点的流量至部署所述待发布软件的待发布节点。A traffic switching module, configured to switch the traffic of the published node deploying the released software to the unpublished node deploying the unpublished software according to the traffic switching time. 10.根据权利要求9所述的装置,其特征在于,所述流量切换模块,包括:10. The device according to claim 9, wherein the traffic switching module comprises: 配置文件获取子模块,用于获取部署所述已发布软件的已发布节点的第一配置文件和部署所述待发布软件的待发布节点的第二配置文件;The configuration file obtaining submodule is used to obtain the first configuration file of the released node deploying the released software and the second configuration file of the unpublished node deploying the software to be released; 配置文件修改子模块,用于将所述第二配置文件修改为所述第一配置文件;a configuration file modification submodule, configured to modify the second configuration file to the first configuration file; 重启子模块,用于重启所述部署所述待发布软件的待发布节点,以使得修改后的第二配置文件生效。The restart sub-module is used to restart the to-be-released node deploying the to-be-released software, so that the modified second configuration file takes effect. 11.一种电子设备,其特征在于,包括处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令,所述处理器被所述机器可执行指令促使:实现权利要求1~5任一项所述的方法步骤。11. An electronic device, characterized in that it comprises a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is controlled by the The machine-executable instructions cause: implementing the method steps described in any one of claims 1-5. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时,实现权利要求1~5任一项所述的方法步骤。12. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented step.
CN201910319738.7A 2019-04-19 2019-04-19 A method, device, electronic device and storage medium for visually publishing software Active CN110096284B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

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 A method, device, electronic device and storage medium for visually publishing software

Country Status (1)

Country Link
CN (1) CN110096284B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113627887B (en) * 2021-08-11 2024-08-13 网易(杭州)网络有限公司 Software release step checking method and device, electronic equipment and storage medium
CN114089978B (en) * 2021-11-23 2025-03-14 抖音视界有限公司 Information display method and device
CN114138285B (en) * 2022-01-24 2022-07-15 统信软件技术有限公司 Application deployment method, computing device and readable storage medium
CN114637612B (en) * 2022-03-23 2025-08-12 浪潮通用软件有限公司 Command calling method, system, device and readable 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
CN110096284B (en) A method, device, electronic device and storage medium for visually publishing software
CN108600029B (en) A configuration file updating method, device, terminal device and storage medium
CN108153670B (en) Interface testing method and device and electronic equipment
CN107844343B (en) Upgrading system and method for complex server application system
US20120159421A1 (en) System and Method for Exclusion of Inconsistent Objects from Lifecycle Management Processes
CN109426510B (en) Software processing method and device, electronic equipment and computer readable storage medium
CN105302722B (en) CTS automatic testing method and device
CN104954504A (en) Method for automatically carrying out BMC management IP configuration
CN104991821A (en) Monitor task batch processing method and apparatus
CN114443294B (en) Big data service component deployment method, system, terminal and storage medium
CN112367345A (en) Data processing method, server device and computer readable storage medium
CN107577527B (en) Task generation and scheduling method and device
CN109710676B (en) Data acquisition method and device of CMDB model and electronic equipment
CN114661375A (en) Application integration method and device
CN101547122A (en) Method, device and system for recovering terminal configuration
CN115766440B (en) A software method for batch remote upgrade based on MQTT
CN111371645B (en) Method, system, computer equipment and storage medium for testing service connectivity
CN114448783B (en) Device replacement method and related apparatus
CN110674153B (en) Data consistency detection method and device and electronic equipment
CN109302336B (en) Mail generation method and device, computer equipment and storage medium
CN110399151A (en) A firmware update method, device, equipment and medium
CN114297993A (en) Form data association method and system
WO2024169385A1 (en) Cluster deployment method and apparatus, and device, medium and product
CN108037950B (en) Information deleting method and device, electronic equipment and readable storage medium
CN110704219B (en) Hardware fault reporting method and device and computer storage medium

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