CN114115934A - Program issuing method, electronic device and storage medium - Google Patents

Program issuing method, electronic device and storage medium Download PDF

Info

Publication number
CN114115934A
CN114115934A CN202111243269.9A CN202111243269A CN114115934A CN 114115934 A CN114115934 A CN 114115934A CN 202111243269 A CN202111243269 A CN 202111243269A CN 114115934 A CN114115934 A CN 114115934A
Authority
CN
China
Prior art keywords
program
server
issued
released
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111243269.9A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111243269.9A priority Critical patent/CN114115934A/en
Publication of CN114115934A publication Critical patent/CN114115934A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a program issuing method, an electronic device and a storage medium. Wherein the method comprises the following steps: acquiring configuration information of a program to be issued; acquiring server resource information; acquiring a server to be issued according with the configuration of the program to be issued according with the configuration information of the program to be issued and the server resource information; distributing the program to be released to a server to be released; and the server to be issued issues the program to be issued. The method can solve the problem of complicated program issuing steps in the prior art, realizes program issuing by using the same set of configuration files in different issuing environments, and improves the program issuing efficiency.

Description

Program issuing method, electronic device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a program distribution method, an electronic device, and a storage medium.
Background
With the increasing number of systems, the software release is a work which must be passed through, and is also the most important work. With the updating iteration of software, the system is released once every iteration, the releasing work is repeated, and certain time is consumed for workers, so that the releasing process of the workers can be simplified and the time can be reduced by establishing a program releasing platform, however, with the updating and updating of the program, the original releasing mode cannot be adapted to the existing program; under different application scenes of the same program, switching to different publishing modes is needed, and configuration files published by the program need to be redeployed every time of publishing, so that the publishing efficiency is low, and program publishing failure caused by manual configuration errors is easy to occur.
Therefore, it is desirable to provide an automatic program publishing method applicable to multiple publishing environments, in which multiple publishing modes are automatically switched for the same program, and a user can automatically switch from one publishing mode to another publishing mode by only changing the publishing mode without repeatedly filling basic information of the program.
Disclosure of Invention
The invention mainly aims to provide a program issuing method, electronic equipment and a storage medium, so as to solve the problem of complicated program issuing steps in the prior art, realize program issuing by using the same set of configuration files in different issuing environments and improve the program issuing efficiency.
In a first aspect, the present invention provides a program issuing method, including:
acquiring configuration information of a program to be issued;
acquiring server resource information;
acquiring a server to be issued according with the configuration of the program to be issued according with the configuration information of the program to be issued and the server resource information;
distributing the program to be released to a server to be released;
and the server to be issued issues the program to be issued.
Optionally, the configuration information of the program to be issued includes: server environment variables, server system version, release mode, memory parameters, hard disk parameters and CPU parameters.
Optionally, the step of issuing the program to be issued by the server to be issued includes:
the server to be issued starts a monitoring program to obtain monitoring data of the program to be issued;
and sending the monitoring data of the program to be issued to a server.
Optionally, after the step of sending the monitoring data of the program to be issued to the server, the step includes:
the display terminal sends a request for acquiring the monitoring data of the program to be issued to the server;
the server sends the monitoring data of the program to be issued to a display terminal;
and the display terminal displays the monitoring data of the program to be issued.
Optionally, after the step of sending the running parameters of the program to be published to the server, the step includes:
judging whether the monitoring data of the program to be issued meet preset early warning rules or not;
and if the monitoring data of the program to be issued accords with a preset early warning rule, sending out early warning information.
Optionally, the step of obtaining, according to the to-be-released program configuration information and the server resource information, a to-be-released server that conforms to the to-be-released program configuration includes:
and if the resource information of the server to be released does not conform to the configuration information of the program to be released, the server to be released requests an idle server resource to the server to be released so as to meet the configuration information of the program to be released.
Optionally, the step of obtaining, according to the to-be-released program configuration information and the server resource information, a to-be-released server that conforms to the to-be-released program configuration includes:
and if the configuration information of the server to be released does not conform to the configuration information of the program to be released, the server to be released modifies the configuration information of the server to be released so as to meet the configuration information of the program to be released.
Optionally, the step of issuing the program to be issued by the server to be issued includes:
and when the system time of the server to be issued reaches the preset time, updating the configuration information of the program to be issued. According to a second aspect of the embodiments of the present invention, the present invention provides an electronic device, including a memory and a processor, the memory being configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the program distribution method of any one of the first aspect.
According to a third aspect of embodiments of the present invention, there is provided a storage medium in which a program is stored, the program realizing the program distribution method according to any one of the above-described first aspects when executed by a computer.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
the method comprises the steps of acquiring configuration information of a program to be issued; acquiring server resource information; acquiring a server to be issued according with the configuration of the program to be issued according with the configuration information of the program to be issued and the server resource information; distributing the program to be released to a server to be released; and the server to be issued issues the program to be issued. The problem that program issuing steps are complex in the prior art is solved, program issuing is achieved by using the same set of configuration files in different issuing environments, and program issuing efficiency is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
Fig. 1 is a flowchart illustrating a program issuing method according to an embodiment of the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the accompanying drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the corresponding technical effects can be fully understood and implemented. The embodiments of the present invention and the features of the embodiments can be combined with each other without conflict, and the formed technical solutions are within the scope of the present invention.
Example one
As shown in fig. 1, an embodiment of the present invention provides a program distribution method, including the following steps S101 to S105:
step S101: and acquiring configuration information of the program to be issued.
The program issuing system obtains configuration information of a program to be issued, which is input into the system by a user, wherein the configuration information of the program to be issued comprises: the system comprises server environment variables, server system versions, release modes such as smooth release, restart release, memory versions, memory residual space, hard disk free space size, whether the hard disk is of an SSD type, CPU frequency, CPU quantity and the like. The program issuing system judges which servers meet the issuing conditions, and issues the program to the servers meeting the issuing conditions.
Step S102: and acquiring server resource information.
The program issuing system obtains resource information of a current server, and comprises the following steps: the method comprises the following steps of server environment variables, server system versions, server memory residual spaces, server hard disk free spaces, whether a server hard disk is of an SSD type or not, server CPU frequency, the number of server CPUs and the like. The program issuing system judges which servers satisfy the program issuing conditions, and issues the program to the servers that satisfy the program issuing conditions.
Step S103: and obtaining the server to be issued according with the configuration of the program to be issued according to the configuration information of the program to be issued and the resource information of the server.
And judging whether the server meets the condition of program release according to the configuration information of the program to be released and the resource information of the server, if the resource of the server does not meet the condition of program release, the program release system can request the resources of other idle servers to the server so as to meet the requirement of program release, for example, the memory of the current virtual machine server is 16G, and the memory requirement of the program release is 32G, the current virtual machine server requests the memory of the idle virtual machine server to be migrated to the current server. If the configuration of the current server does not meet the program distribution requirement, for example, the number of the available crontab timing tasks to be run simultaneously by the current virtual machine server is 10, and the number of the available crontab timing tasks to be run simultaneously by the program distribution requirement is 20, the program distribution system modifies the number of the available crontab timing tasks to be run simultaneously by the current virtual machine server to 20, so as to meet the program distribution requirement. Similarly, when the program to be issued is issued by the VM server, the program issuing system adjusts the configuration thereof to satisfy the issue thereof, and when the program to be issued is issued in the DOCKER manner, the program issuing system automatically adjusts the DOCKER setting thereof to satisfy the issue of the program.
Step S104: and distributing the program to be issued to the server to be issued.
And the program issuing system packs the program to be issued and sends the program to be issued to the server to be issued.
Step S105: and the to-be-issued server issues the to-be-issued program.
The server to be issued issues the program. After the server runs the program to be issued, the issuing configuration of the program is updated regularly, for example, after the program is issued, the issuing configuration of the program is adjusted from the original 20G-required memory to the 40G-required memory, and then the corresponding memory can be added to the server in a smooth issuing manner. Meanwhile, after the program is released, the server can monitor the running state of the program in real time, the monitoring data are uploaded to the server where the program releasing system is located, a user can observe the monitoring data through the display terminal, early warning conditions can be set, and when the monitoring data meet the early warning conditions, early warning information is sent out.
Example two
The embodiment of the present invention provides an electronic device, which may be a mobile phone, a tablet computer, etc., and includes a memory and a processor, where the memory is used to store one or more computer instructions, and the one or more computer instructions, when executed by the processor, implement the program issuing method described in the above embodiment.
The processor is configured to execute all or part of the steps in the program issuing method according to the first embodiment or the second embodiment. The memory is used to store various types of data such as dedicated access point configuration information parameters and the like.
The Processor may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and is configured to execute the program issuing method in the first embodiment.
The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
EXAMPLE III
Each functional unit in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program check codes, such as a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be noted that, in the present disclosure, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Although the embodiments disclosed in the present disclosure are described above, the above description is only for the convenience of understanding the present disclosure, and is not intended to limit the present disclosure. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims.

Claims (10)

1. A program distribution method characterized by comprising, in a program distribution program,
acquiring configuration information of a program to be issued;
acquiring server resource information;
acquiring a server to be issued according with the configuration of the program to be issued according with the configuration information of the program to be issued and the server resource information;
distributing the program to be released to a server to be released;
and the server to be issued issues the program to be issued.
2. The method according to claim 1, wherein the to-be-published program configuration information comprises: server environment variables, server system version, release mode, memory parameters, hard disk parameters and CPU parameters.
3. The method according to claim 1, wherein the step of the to-be-published server publishing the to-be-published program is followed by:
the server to be issued starts a monitoring program to obtain monitoring data of the program to be issued;
and sending the monitoring data of the program to be issued to a server.
4. The method according to claim 3, wherein the step of sending the program monitoring data to be published to a server is followed by:
the display terminal sends a request for acquiring the monitoring data of the program to be issued to the server;
the server sends the monitoring data of the program to be issued to a display terminal;
and the display terminal displays the monitoring data of the program to be issued.
5. The method according to claim 3, wherein the step of sending the to-be-published program operating parameters to the server is followed by:
judging whether the monitoring data of the program to be issued meet preset early warning rules or not;
and if the monitoring data of the program to be issued accords with a preset early warning rule, sending out early warning information.
6. The method according to claim 1, wherein the step of obtaining the to-be-published server conforming to the to-be-published program configuration according to the to-be-published program configuration information and the server resource information includes:
and if the resource information of the server to be released does not conform to the configuration information of the program to be released, the server to be released requests an idle server resource to the server to be released so as to meet the configuration information of the program to be released.
7. The method according to claim 1, wherein the step of obtaining the to-be-published server conforming to the to-be-published program configuration according to the to-be-published program configuration information and the server resource information includes:
and if the configuration information of the server to be released does not conform to the configuration information of the program to be released, the server to be released modifies the configuration information of the server to be released so as to meet the configuration information of the program to be released.
8. The method according to claim 1, wherein the step of the to-be-published server publishing the to-be-published program is followed by:
and when the system time of the server to be issued reaches the preset time, updating the configuration information of the program to be issued.
9. An electronic device comprising a memory and a processor, the memory configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the program distribution method of any of claims 1-8.
10. A computer-readable storage medium in which a program is stored, characterized in that the program realizes the program distribution method according to any one of claims 1 to 8 when executed by a computer.
CN202111243269.9A 2021-10-25 2021-10-25 Program issuing method, electronic device and storage medium Pending CN114115934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111243269.9A CN114115934A (en) 2021-10-25 2021-10-25 Program issuing method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111243269.9A CN114115934A (en) 2021-10-25 2021-10-25 Program issuing method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN114115934A true CN114115934A (en) 2022-03-01

Family

ID=80376607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111243269.9A Pending CN114115934A (en) 2021-10-25 2021-10-25 Program issuing method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114115934A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020052935A1 (en) * 1998-08-17 2002-05-02 Frank V. Paxhia System and method for an administration server
CN102591667A (en) * 2012-01-16 2012-07-18 深圳市同洲视讯传媒有限公司 Method and device for remote publishing application
CN105279013A (en) * 2014-06-20 2016-01-27 深圳中兴力维技术有限公司 Method and device for program issuance based on volume production
CN106775602A (en) * 2015-11-20 2017-05-31 北京国双科技有限公司 A kind of code dissemination method and device
CN112711517A (en) * 2020-12-28 2021-04-27 珠海格力电器股份有限公司 Server performance monitoring method and device, storage medium and terminal
CN113034233A (en) * 2021-03-30 2021-06-25 上海掌门科技有限公司 Method, apparatus, medium, and program product for allocating resources in a reading application
CN113204368A (en) * 2021-04-20 2021-08-03 北京达佳互联信息技术有限公司 Application processing method, server and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020052935A1 (en) * 1998-08-17 2002-05-02 Frank V. Paxhia System and method for an administration server
CN102591667A (en) * 2012-01-16 2012-07-18 深圳市同洲视讯传媒有限公司 Method and device for remote publishing application
CN105279013A (en) * 2014-06-20 2016-01-27 深圳中兴力维技术有限公司 Method and device for program issuance based on volume production
CN106775602A (en) * 2015-11-20 2017-05-31 北京国双科技有限公司 A kind of code dissemination method and device
CN112711517A (en) * 2020-12-28 2021-04-27 珠海格力电器股份有限公司 Server performance monitoring method and device, storage medium and terminal
CN113034233A (en) * 2021-03-30 2021-06-25 上海掌门科技有限公司 Method, apparatus, medium, and program product for allocating resources in a reading application
CN113204368A (en) * 2021-04-20 2021-08-03 北京达佳互联信息技术有限公司 Application processing method, server and storage medium

Similar Documents

Publication Publication Date Title
CN108566290B (en) Service configuration management method, system, storage medium and server
CN108572795B (en) Capacity expansion method, device, equipment and storage medium based on built storage virtualization
US20190065165A1 (en) Automated deployment of applications
CN102594849B (en) Data backup and recovery method and device, virtual machine snapshot deleting and rollback method and device
EP2996366A1 (en) Application recommendation method, system and server
CN107368353B (en) Method and device for realizing hot addition of virtual machine memory
CN106951284B (en) User interface upgrading method and device based on android system application and intelligent terminal
CN109756533B (en) Mirror image acceleration method and device and server
CN110196749B (en) Virtual machine recovery method and device, storage medium and electronic device
TWI506538B (en) Dynamic memory allocation
CN112506584A (en) Resource file loading method, device, equipment, storage medium and product
CN113645308B (en) Mobile terminal TCP communication, device, equipment and storage medium
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN109697117B (en) Terminal control method, terminal control device and computer-readable storage medium
CN110209548B (en) Service control method, system, electronic device and computer readable storage medium
CN114637519A (en) Method and device for installing infrastructure and service
CN114398397A (en) Data processing method, device, storage medium and system
US10997269B1 (en) Using web application components with different web application frameworks in a web application
CN114115934A (en) Program issuing method, electronic device and storage medium
CN110941516B (en) Operating system restoration method, device, equipment and storage medium
CN113986621B (en) Method, device and equipment for optimizing data backup performance and storage medium
CN113656378A (en) Server management method, device and medium
CN114756527A (en) Method and device for expanding Redis cluster, electronic equipment and storage medium
CN115033551A (en) Database migration method and device, electronic equipment and storage medium
CN115220861A (en) Virtual client management method, apparatus, medium, and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination