CN111628889B - Heat deployment method and device, electronic device, and storage medium - Google Patents

Heat deployment method and device, electronic device, and storage medium Download PDF

Info

Publication number
CN111628889B
CN111628889B CN202010390777.9A CN202010390777A CN111628889B CN 111628889 B CN111628889 B CN 111628889B CN 202010390777 A CN202010390777 A CN 202010390777A CN 111628889 B CN111628889 B CN 111628889B
Authority
CN
China
Prior art keywords
client
deployment
deployment data
thermal
fed back
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
CN202010390777.9A
Other languages
Chinese (zh)
Other versions
CN111628889A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010390777.9A priority Critical patent/CN111628889B/en
Publication of CN111628889A publication Critical patent/CN111628889A/en
Application granted granted Critical
Publication of CN111628889B publication Critical patent/CN111628889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A heat deployment method, a heat deployment apparatus, an electronic device, and a computer-readable storage medium are disclosed. The heat deployment method is used for the server. The server is for communicating with at least two clients, the clients for interacting with the user terminals. The heat deployment method comprises the following steps: sending first heat deployment data to at least two clients, judging whether an abnormal signal fed back after any client interacts with a user terminal is read, updating the first heat deployment data into second heat deployment data according to the abnormal signal, and sending the second heat deployment data to the client feeding back the abnormal signal. Therefore, the hot deployment terminals can be differentiated, and abnormal or inferior hot deployment caused by the fact that the differentiated terminals are suitable for the same hot deployment is avoided.

Description

Heat deployment method and device, electronic device, and storage medium
Technical Field
The present application relates to computer technologies, and in particular, to a thermal deployment method, a thermal deployment apparatus, an electronic device, and a computer-readable storage medium.
Background
In the related art, a developer may perform hot deployment on software, APP, or a web page published by the software, APP, or web page. However, if one of the terminals is abnormal or does not support such thermal deployment, it may result in the thermal deployment of all the terminals being adjusted. Such adjustments may often be unnecessary or even degrade the effectiveness of the thermal deployment, particularly for terminals that are not anomalous or support the original thermal deployment.
Disclosure of Invention
The application provides a heat deployment method for a server, the server comprising a server and communicating with at least two clients, the clients being for interacting with user terminals, the heat deployment method comprising:
sending first thermal deployment data to the at least two clients;
judging whether an abnormal signal fed back after any client interacts with the user terminal is read or not;
updating the first heat deployment data into second heat deployment data according to the abnormal signal; and
sending the second hot deployment data to the client that feeds back the exception signal.
The present application further provides a thermal deployment device for a server in communication with at least two clients, the clients for interacting with a user terminal, the thermal deployment device comprising:
a first communication module: the first communication module is used for sending first hot deployment data to the at least two clients;
the first judging module is used for judging whether an abnormal signal fed back after any client interacts with the user terminal is read or not;
an updating module, configured to update the first thermal deployment data to second thermal deployment data according to the abnormal signal; and
a second communication module to send the second thermal deployment data to the client that feeds back the exception signal.
The application provides an electronic device for a server, the server being in communication with at least two clients, the clients being for interacting with a user terminal, the electronic device comprising a processor for:
sending first hot deployment data to the at least two clients;
judging whether an abnormal signal fed back after any client interacts with the user terminal is read or not;
updating the first heat deployment data into second heat deployment data according to the abnormal signal; and
sending the second hot deployment data to the client that feeds back the exception signal.
An electronic device is provided that includes one or more processors, a memory; and
one or more programs, wherein the one or more programs are stored in the memory and executed by the one or more processors, the programs comprising instructions for performing the thermal deployment method. The thermal deployment method comprises: sending first thermal deployment data to the at least two clients; judging whether an abnormal signal fed back after any client machine and the user terminal are interacted is read or not; updating the first heat deployment data into second heat deployment data according to the abnormal signal; sending the second thermal deployment data to the client feeding back the exception signal.
One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the thermal deployment method are provided. The thermal deployment method comprises: sending first hot deployment data to the at least two clients; judging whether an abnormal signal fed back after any client interacts with the user terminal is read or not; updating the first heat deployment data into second heat deployment data according to the abnormal signal; sending the second thermal deployment data to the client feeding back the exception signal.
In the heat deployment method, the heat deployment device, the electronic equipment and the computer-readable storage medium of the embodiments of the present application, first heat deployment data is sent by a server to at least two clients, so that each client can perform heat deployment in a user terminal according to the first heat deployment data. When the server receives an abnormal signal generated by the client due to the abnormal heat deployment, the server modifies the first heat deployment data according to the abnormal signal to generate second heat deployment data, and sends the second heat deployment data to the client which feeds back the abnormal signal.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow diagram of a method of thermal deployment according to certain embodiments of the present application.
Fig. 2 is a block schematic diagram of a thermal deployment device according to certain embodiments of the present application.
FIG. 3 is a block diagram of an electronic device according to some embodiments of the present application.
FIG. 4 is a block diagram of an electronic device according to some embodiments of the present application.
FIG. 5 is a schematic diagram of a connection between a processor and a computer-readable storage medium according to some embodiments of the present application.
FIG. 6 is a schematic diagram of a thermal deployment method according to some embodiments of the present application.
FIG. 7 is a schematic diagram of a thermal deployment method according to some embodiments of the present application.
FIG. 8 is a schematic flow chart of a method of thermal deployment according to certain embodiments of the present application.
FIG. 9 is a schematic flow chart of a method of thermal deployment according to certain embodiments of the present application.
FIG. 10 is a schematic flow chart of a method of thermal deployment according to certain embodiments of the present application.
FIG. 11 is a schematic flow chart of a method of thermal deployment according to certain embodiments of the present application.
FIG. 12 is a schematic flow chart of a method of thermal deployment according to certain embodiments of the present application.
FIG. 13 is a schematic view of a thermal deployment method according to some embodiments of the present application.
FIG. 14 is a schematic flow chart of a method of thermal deployment according to certain embodiments of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary only for explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically defined otherwise.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as the case may be.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the related art, a developer may perform hot deployment on applications such as software, APP, or a web page published by the APP, which are running on a plurality of terminals. Hot deployment refers to upgrading software while an application is running without restarting the application. For example, the APP in the mobile phone is hot deployed, and the APP in the mobile phone can be updated in the running process without restarting the APP.
However, if one of the terminals is abnormal or does not support such hot deployment, which results in the need to adjust the hot deployment, the hot deployment of the remaining terminals without abnormality also needs to be correspondingly adjusted. Such adjustments may often be undesirable or may degrade the effectiveness of thermal deployment, particularly for thermal deployment of terminals without anomalies.
For example, a developer performs hot deployment on a webpage which is developed by the developer in the terminal a, the terminal B and the terminal C, and updates the image quality of the webpage from 1280 × 720 to 1980 × 1080, wherein the terminal a does not support the hot deployment of the webpage, so that the webpage in the terminal a is abnormal and cannot be displayed. If the hot deployment adjustment is performed on the web page in the terminal a again, the corresponding adjustment needs to be performed on the web pages in the terminals B and C, which may cause poor effect or abnormal situation after the adjustment of the web pages in the terminals B and C.
Referring to fig. 1, the present application provides a heat deployment method for a server, where the server is in communication with at least two clients, and the clients are used for interacting with a user terminal, and the heat deployment method includes the steps of:
s11: sending first hot deployment data to at least two clients;
s12: judging whether an abnormal signal fed back after any client interacts with the user terminal is read;
s13: updating the first heat deployment data into second heat deployment data according to the abnormal signal; and
s14: sending second hot deployment data to a client that feeds back an exception signal.
Referring further to fig. 2, the present application provides a thermal deployment device 10. The thermal deployment device 10 includes a first communication module 11, a first judging module 12, an updating module 13, and a second communication module 14.
Step S11 may be implemented by the first communication module 11, step S12 may be implemented by the first determining module 12, step S13 may be implemented by the updating module 13, and step S14 may be implemented by the second communication module 14.
In other words, the first communication module 11 may be configured to send the first thermal deployment data to at least two clients.
The first determining module 12 may be configured to determine whether an exception signal fed back after any client interacts with the user terminal is read.
The updating module 13 may be configured to update the first heat deployment data to the second heat deployment data according to the exception signal.
The second communication module 14 may be configured to send the second thermal deployment data to the client feeding back the exception signal.
Referring to fig. 3, the present embodiment provides an electronic device 1, and the thermal deployment method of the present application may be performed by the electronic device 1. The electronic device 1 comprises a processor 20.
The processor 20 may be configured to send first thermal deployment data to at least two clients and determine whether to read an exception signal fed back by any of the clients after interaction with the user terminal. The processor 20 may also be configured to update the first heat deployment data to second heat deployment data based on the exception signal and send the second heat deployment data to a client that feeds back the exception signal.
Referring to fig. 4, the present application provides an electronic device 1 comprising one or more processors 20, a memory 30; and one or more programs 32, where the one or more programs 32 are stored in memory 30 and executed by the one or more processors 20, the programs 32 being executed by the processors 20 as instructions for a thermal deployment method.
Referring to FIG. 5, one or more non-transitory computer-readable storage media 40 containing computer-executable instructions that, when executed by one or more processors 20, cause processors 20 to perform a thermal deployment method are provided.
The thermal deployment method, thermal deployment device 10, electronic apparatus 1, and computer-readable storage medium 40 of these embodiments send first thermal deployment data to at least two clients through a server, so that the clients can perform thermal deployment according to the first thermal deployment data. When the server receives an abnormal signal generated by abnormal heat deployment of the client, the server modifies the first heat deployment data according to the abnormal signal to generate second heat deployment data and sends the second heat deployment data to the client which feeds back the abnormal signal, so that the client which feeds back the abnormal signal can carry out heat deployment again according to the second heat deployment data to ensure that the client which feeds back the abnormal signal operates normally. And moreover, the adjustment of the client which has no abnormity after the hot deployment is finished is avoided.
In some embodiments, the electronic device 1 may be a mobile phone, a computer, a smart wearable device (smart watch, smart bracelet, smart helmet, smart glasses, etc.), a virtual reality device, or a head display device.
In the present embodiment, the electronic device 1 is a computer, that is, the thermal deployment method and the thermal deployment apparatus 10 are applied to, but not limited to, computers. The thermal deployment device 10 may be hardware or software preinstalled on a computer and may perform the thermal deployment method when it is booted up on the computer. For example, the thermal deployment device 10 may be an underlying software code segment of a computer or part of an operating system. In this manner, a user response may be perturbed when a computer has a networked Application (APP) installed and the application attempts to read the user response, thereby protecting user privacy.
In some embodiments, the thermal deployment device 10 may be part of the electronic equipment 1. In other words, the electronic apparatus 1 includes a thermal deployment device 10.
In some embodiments, the thermal deployment device 10 may be a discrete component assembled in a manner to have the aforementioned functionality, or be in the form of an integrated circuit on a chip having the aforementioned functionality, or a piece of computer software code that, when run on a computer, causes the computer to have the aforementioned functionality.
In some embodiments, the thermal deployment device 10 may be, as hardware, stand-alone or add-on to a computer or computer system as an additional added peripheral element. Thermal deployment device 10 may also be integrated into a computer or computer system, for example, thermal deployment device 10 may be integrated onto processor 20 when thermal deployment device 10 is part of electronic equipment 1.
In some embodiments where the thermal deployment device 10 is part of the electronic apparatus 1, as software, code segments corresponding to the thermal deployment device 10 may be stored on the memory 30 and executed by the processor 20 to implement the aforementioned functions. Or thermal deployment device 10, comprises one or more of the procedures described above, or one or more of the procedures described above comprises thermal deployment device 10.
In some embodiments, the computer-readable storage medium 40 may be a storage medium built in the electronic device 1, for example, the memory 30, or a storage medium that can be plugged into the electronic device 1, for example, an SD card.
In the application, the server and the client adopt a C/S mode to work cooperatively. As will be appreciated by those skilled in the art, C/S mode refers to client/server mode, which is a mode in which computer software works in concert, typically in a two-tier configuration. The server is responsible for data management, and the client is responsible for completing interaction tasks with the user.
The C/S mode adopts a Netty development framework, wherein Netty is an open source JAVA development framework of a set of clients and servers based on NIO (Non-Blocking-I/O). Complex NIO Application Programming Interfaces (APIs) are shielded for developers, and the Application Programming interfaces are abstractly packaged to help the developers to rapidly develop high-performance and high-reliability servers and clients.
It should be noted that the api is also called api, which is a set of definitions, procedures and protocols, and the api can implement communication between computer software.
It should be noted that NIO (Non-Blocking I/O), also called New I/O in JAVA, is a synchronous Non-Blocking I/O model. The NIO can provide a cache-supported data container for all primitive types (except Boolean types), and a non-blocking, high-scalability network can be provided using the NIO. NIO is increasingly being applied to large application servers as an effective way to solve High Concurrency (High Concurrency) and I/O handling problems. High concurrency generally refers to ensuring by design that the system is capable of processing many requests in parallel at the same time. Alternatively, high concurrency means that many users access the same application interface or Url (Uniform Resource Locator) address at the same time. The Url address is a uniform resource locator of the WWW, i.e., refers to a network address.
The client refers to an APP, an application, a web page, or the like developed by a developer. The client can be installed on a user terminal such as a mobile phone, a computer and intelligent wearable equipment, and can interact with the user terminal. The client machine can comprise a plurality of client machines which run on a plurality of user terminals respectively.
The developer can manage the client running on the user terminal through the server, thereby realizing the configuration functions of the client, such as menu configuration, content configuration, timing task management, report statistics or parameter configuration, and the like.
In some embodiments, the server as a hardware device may be an electronic device 1 such as a mobile phone, a computer, a smart wearable device (smart watch, smart bracelet, smart helmet, smart glasses, etc.), a virtual reality device, or a head display device.
In some embodiments, the server may be a software system that may run on the electronic device 1 or on the thermal deployment apparatus 10.
The hot deployment refers to modifying and updating a configuration file of a program running in a terminal memory under the condition that the program runs in a terminal such as a mobile phone or a computer. It is understood that the first thermal deployment data and the second thermal deployment data both refer to a configuration file required by the client in the thermal deployment process of the user terminal, and the configuration file may include parameters, code segments, pictures, or the like. It should be noted that the first and second are only used for the purpose of distinguishing the previous setting from the next setting.
In the present application, the server is installed in the electronic device 1, such as a mobile phone or a computer, as a software system, and a developer may interact with the server of the electronic device 1 to generate the first thermal deployment data or the second thermal deployment data, and the first thermal deployment data or the second thermal deployment data is finally formed by being executed by the processor 20.
Referring to fig. 6, in particular, the client is provided with a bearer for receiving hot deployment data and a listener for detecting whether hot deployment is performed, each client loads a corresponding bearer to run on the user terminal in a case where the server and at least two clients perform wired or wireless communication, and the client can receive the first hot deployment data through the bearer when the server transmits the first hot deployment data to each client. And under the condition that the listener monitors that the carrier receives the first hot deployment data, the client interacts with the user terminal, and hot deployment is realized according to the interaction of the first hot deployment data and the user terminal.
Further, if the client is abnormal after hot deployment, the client with the abnormal hot deployment generates an abnormal signal and feeds the abnormal signal back to the server, and the server reads the abnormal signal fed back by the client and then judges that the abnormal hot deployment of the client exists. Furthermore, the server may determine according to the feedback abnormal signal, and determine the reason for the abnormal heat deployment of the client that feeds back the abnormal signal, which may be understood that, when the client operates at the user terminal, the client itself or the user terminal may cause the abnormal heat deployment of the client, for example, the client cannot respond in time due to the decreased response performance of the client to the heat deployment data, or the memory of the user terminal is limited and cannot satisfy the memory required by the client for performing the heat deployment, or the client cannot perform the heat deployment due to the abnormal operation of the user terminal.
And further, the server modifies the first heat deployment data into second heat deployment data according to the reason of the abnormal heat deployment of the client and sends the second heat deployment data to the client which feeds back the abnormal signal, the client which feeds back the abnormal signal receives the second heat deployment data through the carrier, and after the monitor monitors that the carrier receives the second heat deployment data, the client performs heat deployment according to the second heat deployment data. In this manner, a client that is anomalous to hot-deploy according to the first hot-deployment data can re-hot-deploy according to the second hot-deployment data.
Referring to fig. 7, for example, in some examples, a server corresponds to three clients that are communicatively connected. The server runs in a computer, and the three clients respectively run in the mobile phone 1, the mobile phone 2 and the mobile phone 3. The server sends the first hot deployment data x1 to the mobile phone 1, the mobile phone 2 and the mobile phone 3, and the clients running in the mobile phone 1, the mobile phone 2 and the mobile phone 3 can perform hot deployment according to the first hot deployment data x 1. After the client is thermally deployed according to the first thermal deployment data x1, a feedback signal is generated and sent to a server in the computer. The server judges the feedback signal so as to confirm whether an abnormal signal exists. If the server confirms that the abnormal signal is sent by the client in the mobile phone 3 and judges that the running memory of the mobile phone 3 is insufficient according to the abnormal signal, so that the hot deployment of the client is abnormal, the first hot deployment data x1 is changed into the second hot deployment data x2, wherein the running memory required by the client for hot deployment according to the second hot deployment data x2 is smaller than the running memory required by the client for hot deployment according to the first hot deployment data x 1. Further, the server sends the second thermal deployment data x2 to the client in the cell phone 3, so that the client in the cell phone 3 can perform thermal deployment according to the second thermal deployment data x 2.
In summary, in the thermal deployment method, the thermal deployment device 10, the electronic apparatus 1, and the non-volatile computer-readable storage medium 40 stored therein according to the embodiments of the present application, the first thermal deployment data is transmitted to at least two clients by the server, so that the clients can perform thermal deployment according to the first thermal deployment data. When the server receives an abnormal signal generated by abnormal heat deployment of the client, the server modifies the first heat deployment data according to the abnormal signal to generate second heat deployment data and sends the second heat deployment data to the client which feeds back the abnormal signal, so that the client which feeds back the abnormal signal can carry out heat deployment again according to the second heat deployment data to ensure that the client which feeds back the abnormal signal runs normally. And, the degradation effect on the client that normally completes the hot deployment is avoided.
Referring to fig. 8, in some embodiments, the method of thermal deployment further comprises:
s15: judging whether the second heat deployment data is temporary deployment or not according to a first feedback signal fed back after the client feeding back the abnormal signal interacts with the user terminal;
s16: and sending the first thermal deployment data to a client which feeds back an exception signal before the second thermal deployment data is temporarily deployed.
Referring further to fig. 2, in some embodiments, the thermal deployment device 10 further includes a second determining module 15 and a third communicating module 16. S15 may be implemented by the second determination module 15, and S16 may be implemented by the calculation module 16.
Or, the second determining module 15 is configured to determine whether the second thermal deployment data is temporarily deployed according to the first feedback signal fed back after the client feeding back the abnormal signal interacts with the user terminal.
The third communication module 16 is configured to send the first thermal deployment data to the client that fed back the exception signal before the second thermal deployment data is temporarily deployed.
In some embodiments, the processor 20 is configured to determine whether the second thermal deployment data is temporarily deployed according to a first feedback signal fed back after the client feeding back the exception signal interacts with the user terminal. The processor 20 may also be used to send the first thermal deployment data to a client that previously fed back an exception signal after the second thermal deployment data is temporarily deployed.
The first feedback signal refers to a feedback signal generated after the client performs thermal deployment according to the second thermal deployment data.
It will be appreciated that in some scenarios, the occurrence of some bursty conditions may tend to cause a hot deployment exception to the client according to the first hot deployment data. For example, excessive programs running in the user terminal result in too high running memory, CPU exception of the user terminal when the client performs hot deployment, or degradation of response performance of the client, and these emergencies are not caused by the client performing hot deployment according to the first hot deployment data.
For example, in some examples, a client a runs on a user terminal X1, and a plurality of application programs also exist in the user terminal X1, where the client a needs to perform hot deployment according to first hot deployment data, and when the client a performs hot deployment according to the first hot deployment data, more running memory needs to be occupied, and because too many running programs are available in the user terminal X1, the remaining running memory cannot meet the running memory that the client a needs to occupy for performing hot deployment according to the first hot deployment data, so that the client a cannot complete hot deployment according to the first hot deployment data.
Thus, the second thermal deployment data is to cope with these bursty conditions, enabling the client to perform temporal thermal deployment according to the second thermal deployment data. After the terminal where the client is located recovers to a normal condition or after the client can recover the response performance, the hot deployment still needs to be performed according to the first hot deployment data.
Specifically, after the client performs the hot deployment according to the second hot deployment data, if the emergency situation is eliminated, the client can perform the hot deployment according to the first hot deployment data. For example, in a situation where the running memory in the user terminal is insufficient and causes the client to be abnormal according to the first hot deployment data, the user manually ends part of the running program of the user terminal, so that the running memory of the user terminal can meet the requirement that the client performs hot deployment according to the first hot deployment data, and then the client may generate the cancellation signal and send the cancellation signal to the server. It should be noted that the first feedback signal includes a cancellation signal.
Further, the server receives the first feedback signal and then judges the first feedback signal, and if the first feedback signal is judged to be a removal signal generated by removing the emergency situation, the server can determine that the second heat deployment data is temporary deployment, and send the first heat deployment data to the client performing heat deployment according to the second heat deployment data, that is, send the first heat deployment data to the client feeding back the abnormal signal again.
Referring to fig. 10, in some embodiments, the method of thermal deployment further comprises:
s17: transmitting the first hot deployment data to the client that previously fed back the exception signal at a predetermined time interval after transmitting the second hot deployment data to the client that fed back the exception signal until the client does not feed back the exception signal.
In some embodiments, S17 may be implemented by the third communication module 16, or the third communication module may be further configured to transmit the first thermal deployment data to the client that previously fed back the exception signal at a predetermined time interval after transmitting the second thermal deployment data to the client that fed back the exception signal until the client does not feed back the exception signal.
In some embodiments, the processor is further configured to send the first thermal deployment data to the previously anomalous signaled client at a predetermined time interval after sending the second thermal deployment data to the anomalous signaled client in feedback until the client does not have the anomalous signal in feedback.
It should be noted that the predetermined time interval refers to a time period set in advance by the server, and the duration of the preset time interval may be a fixed value set by a developer in a customized manner, for example, the preset time interval may be set to 2, 6, or 24 hours, etc.
As explained above, some of the bursty conditions may cause a hot deployment exception to the client according to the first hot deployment data, in which case the second hot deployment data is a temporary deployment. Therefore, the server sends the first hot deployment data to the client with abnormal hot deployment at preset time intervals, and after the emergency condition is eliminated, the client with abnormal hot deployment according to the first hot deployment data can perform hot deployment again according to the first hot deployment data.
Specifically, after the server sends the second heat deployment data to the client which feeds back the abnormal signal, the first heat deployment data is sent to the client which feeds back the abnormal signal at preset time intervals, so that the client which feeds back the abnormal signal can carry out heat deployment according to the first heat deployment data at preset time intervals, and if the client which feeds back the abnormal signal normally completes the heat deployment data according to the first heat deployment data, so that the server cannot receive the abnormal signal fed back by the client, the server stops sending the first heat deployment data to the client.
Referring to fig. 10, in some embodiments, S11 further includes:
s111: judging whether the first heat deployment data is delayed for transmission;
s112: and if the first heat deployment data is delayed to be sent, sending the first heat deployment data to at least two clients according to preset delay time.
Referring further to fig. 2, in some embodiments, steps S111 and S112 may be implemented by the first communication module 11.
Or, the first communication module 11 is configured to determine whether the first thermal deployment data is sent in a delayed manner, and if the first thermal deployment data is sent in a delayed manner, the first communication module 11 is further configured to send the first thermal deployment data to at least two clients according to a preset delay time.
In some embodiments, the processor 20 may be configured to determine whether the first thermal deployment data is delayed for transmission, and the processor 20 may be further configured to transmit the first thermal deployment data to the at least two clients according to a predetermined delay time if the first thermal deployment data is delayed for transmission.
It will be appreciated that the server may need to perform hot deployment at a particular time for some clients, for example, the client may be some shopping software that may need to perform hot deployment based on the first hot deployment data that is subject to a holiday when the holiday comes in order to cater for the holiday. Typically, the developer generates the first hot deployment data in advance by operating the server in the electronic device 1, and saves the first hot deployment data by the processor 20. Therefore, it is necessary to determine whether the first hot deployment data is delayed for transmission. If the first hot deployment data needs to be sent in a delayed manner, the first hot deployment data is sent to the client through the electronic device 1 or the server when the delay time is reached, so that the client can carry out hot deployment at the specified time.
Referring to fig. 11, in some embodiments, S12 includes:
s121: reading a second feedback signal fed back after each client interacts with the corresponding user terminal;
s122: and comparing the second feedback signals fed back after each client interacts with the corresponding user terminal to judge whether the abnormal signals are read or not.
Referring to fig. 2, in some embodiments, the first determining module 12 includes a reading unit 121 and a comparing unit 122, and the step S121 may be implemented by the reading unit 121. Step S122 may be implemented by the comparison unit 122.
Alternatively, the reading unit 121 may be configured to read a second feedback signal fed back after each client interacts with the corresponding user terminal.
The comparing unit 122 may be configured to compare the second feedback signals fed back after each client interacts with the corresponding user terminal to determine whether the exception signal is read.
In some embodiments, the processor 20 is configured to compare the second feedback signal fed back after each client interacts with the corresponding user terminal to determine whether the exception signal is read, and the processor 20 is further configured to compare the second feedback signal fed back after each client interacts with the corresponding user terminal to determine whether the exception signal is read.
The second feedback signal is a signal generated after the client performs the hot deployment according to the first hot deployment data. The second feedback signal includes an abnormal signal and a normal signal.
Specifically, after each client receives the first thermal deployment data and performs thermal deployment, each client sends a second feedback signal to the server regardless of abnormal or normal thermal deployment. After the server receives the second feedback signals fed back by each client, all the hot-deployment second feedback signals are compared to determine whether the exception signals fed back by the clients are read. That is, it is determined whether there is a client hot deployment exception.
In some examples, the developer may define the second feedback signal for the post-thermal deployment state of the client according to the first thermal deployment data to distinguish between a normal completion of thermal deployment and an abnormal thermal deployment in the client, e.g., the second feedback signal generated by the client normal completion of thermal deployment is set to Y and the second signal generated by the client abnormal thermal deployment is set to N. If N exists in the second feedback signal received by the server from the client, it may be determined that an exception signal for the client feedback is read.
Referring to fig. 12, in some embodiments, the server includes a plurality of interfaces, each interface corresponding to a client, S14 further includes:
s141: determining an interface for receiving an abnormal signal;
s142: and sending the second hot deployment data to a client corresponding to the interface through the interface.
In some embodiments, steps S141 and S142 may be implemented by the second communication module 14.
In other words, the second communication module 14 may be configured to compare the maximum distances between the grouped elements to obtain the maximum distances between the elements in all the groups, and the second communication module 14 may be further configured to send the second thermal deployment data to the client corresponding to the interface through the interface.
In some embodiments, the processor 20 may be configured to compare the maximum distances between the grouped elements to obtain the maximum distances between the elements in all the groups, and the processor 20 may be further configured to send the second thermal deployment data to the client corresponding to the interface through the interface.
Specifically, the server includes a plurality of first application program interfaces, and each of the clients includes a second application program interface. The server acquires the second application program interface of each client and matches a corresponding first application program interface in each client, so that the server is respectively in communication connection with the second application program interface in each client through the plurality of first application program interfaces.
Further, the server receives the feedback signal from each client through the plurality of first application program interfaces, and if the feedback exception signal is read, determines the first application program interface that receives the exception signal, and can understand that the client hot deployment exception corresponding to the first application program interface that receives the exception signal. The server sends the second heat deployment data through the first application program interface which receives the exception signal, so that the client which feeds back the exception signal can receive the second heat deployment data and perform heat deployment.
Referring to FIG. 13, for example, in some examples, server A is communicatively coupled to client B1, client B2, and client B3, respectively. The server comprises a first application program interface K1, a first application program interface K2 and a first application program interface K3, the client B1 comprises a second application program interface K4, the client B2 comprises a second application program interface K5, and the client B3 comprises a second application program interface K6. The first application program interface K1 is in communication connection with the second application program interface K4, the first application program interface K2 is in communication connection with the second application program interface K5, and the first application program interface K3 is in communication connection with the second application program interface K6. The server transmits the feedback signals to the client B1, the client B2 and the client B3 through the first application interface K1, the first application interface K2 and the first application interface K3, respectively. If the feedback signal received by the first application program interface K1 and the first application program interface K2 is a normal feedback signal and the feedback signal received by the first application program interface K3 is an abnormal feedback signal, it indicates that the application heat deployment in the client B2 connected to the first application program interface K3 is abnormal, and the server may send the second heat deployment data to the client B3 only through the first application program interface K3, so that only the client B3 can perform heat deployment according to the second heat deployment data. In this way, it is achieved that only the client B3 is re-hot-deployed according to the second hot-deployment data, while the clients B1 and B2 remain in the original state.
Referring to fig. 14, in some embodiments, the step S11 further includes the following steps:
s18: receiving a check code generated after interaction between a client and a user terminal;
s19: and communicating with the client according to the check code.
In some embodiments, steps S18 and S19 may be implemented by the first communication module 11. Alternatively, the first communication module 11 may be configured to receive a check code generated after the client interacts with the user terminal and may be further configured to communicatively connect with the client according to the check code.
In some embodiments, the processor 20 is further configured to receive a check code generated after the client interacts with the user terminal, and the processor 20 is further configured to communicatively couple with the client based on the check code.
The server is communicatively connected to each client via a long connection, which means that multiple packets can be sent in succession, requiring both sides to send a link check packet if no packets are sent during the connection hold period.
Specifically, a communication protocol is defined between the server and at least two clients, and the communication protocol is also called a communication protocol, which refers to an agreement between two communication parties for data transmission control. The agreement includes making unified regulations on data format, synchronization mode, transmission speed, transmission step, error detection and correction mode, control character definition, etc. both parties must comply together, which is also called link control procedure. Before the server and the clients communicate, each client interacts with a corresponding user terminal to generate a corresponding check code and sends the check code to the server to request a connection. The server can determine whether the client corresponding to the check code sets a communication protocol according to the check code sent by the client, so as to determine whether the client corresponding to the check code communicates. And if the check code received by the server determines that the communication protocol is not established with the corresponding client, the server does not carry out communication connection with the client. And if the check code received by the server determines that a communication protocol is established with the corresponding client, performing communication connection with the client. In this manner, the server is guaranteed to communicate only with clients that establish a communication protocol.
In addition, the server sends heartbeat instructions to each client at regular time and receives feedback heartbeat instructions of the clients so as to judge whether the server is in communication connection with the clients or not. And if the server receives the feedback heartbeat instruction of the client, judging that the server is in communication connection with the client. And if the feedback heartbeat instruction of the client is not received, judging that the server and the client are disconnected and connected with each other.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A method of thermal deployment for a server in communication with at least two clients, said clients being configured to interact with user terminals, the method comprising:
sending first thermal deployment data to the at least two clients;
judging whether an abnormal signal fed back after any client interacts with the user terminal is read or not;
updating the first heat deployment data into second heat deployment data according to the abnormal signal, wherein the second heat deployment data is generated by the first heat deployment data according to the abnormal signal modification;
sending the second thermal deployment data to the client feeding back the exception signal;
the judging whether the abnormal signal fed back after the interaction between any client and the user terminal is read comprises the following steps:
reading a second feedback signal fed back after each client interacts with the corresponding user terminal;
and comparing second feedback signals fed back after each client interacts with the corresponding user terminal to judge whether the abnormal signals are read or not.
2. The thermal deployment method as set forth in claim 1, further comprising:
judging whether the second heat deployment data is temporary deployment or not according to a first feedback signal fed back after the client feeding back the abnormal signal interacts with the user terminal;
sending first thermal deployment data to the client that previously fed back the exception signal after the second thermal deployment data is temporarily deployed.
3. The thermal deployment method as set forth in claim 1, further comprising:
transmitting first thermal deployment data to the client that previously fed back the exception signal at a predetermined time interval after transmitting the second thermal deployment data to the client that fed back the exception signal until the client does not feed back the exception signal.
4. The method of thermal deployment according to claim 1, wherein said server comprises a plurality of interfaces, one for each of said clients, and said sending said second thermal deployment data to said client feeding back said exception signal comprises:
determining the interface receiving the exception signal;
and sending the second thermal deployment data to the client corresponding to the interface through the interface.
5. The method of thermal deployment according to claim 1, wherein said sending first thermal deployment data to said at least two clients comprises, prior to:
receiving a check code generated after the client interacts with the user terminal;
and communicating with the client according to the check code.
6. A thermal deployment device for a server in communication with at least two clients, the clients for interacting with user terminals, the thermal deployment device comprising:
a first communication module: the first communication module is used for sending first hot deployment data to the at least two clients;
the first judgment module is used for judging whether an abnormal signal fed back after any client machine and the user terminal are interacted is read or not;
an update module for updating the first thermal deployment data into second thermal deployment data according to the exception signal, the second thermal deployment data being generated by the first thermal deployment data according to the exception signal modification;
a second communication module for sending the second thermal deployment data to the client feeding back the exception signal;
the first judging module is further configured to read a second feedback signal fed back after each client interacts with the corresponding user terminal, and compare the second feedback signal fed back after each client interacts with the corresponding user terminal to judge whether the abnormal signal is read.
7. An electronic device for a server, wherein the server is in communication with at least two clients, wherein the clients are configured to interact with user terminals, wherein the electronic device comprises a processor configured to:
sending first thermal deployment data to the at least two clients;
judging whether an abnormal signal fed back after any client machine and the user terminal are interacted is read or not;
updating the first thermal deployment data into second thermal deployment data according to the abnormal signal, wherein the second thermal deployment data is generated by the first thermal deployment data according to the abnormal signal modification;
sending the second thermal deployment data to the client feeding back the exception signal;
the judging whether the abnormal signal fed back after the interaction between any client and the user terminal is read comprises the following steps:
reading a second feedback signal fed back after each client interacts with the corresponding user terminal;
and comparing second feedback signals fed back after the interaction between each client and the corresponding user terminal to judge whether the abnormal signals are read or not.
8. The electronic device of claim 7, wherein the processor is further configured to:
judging whether the second heat deployment data is temporary deployment or not according to a first feedback signal fed back after the client feeding back the abnormal signal interacts with the user terminal;
sending first thermal deployment data to the client that previously fed back the exception signal after the second thermal deployment data is temporarily deployed.
9. The electronic device of claim 7, wherein the processor is further configured to:
transmitting first hot deployment data to the client that previously fed back the exception signal at a predetermined time interval after transmitting the second hot deployment data to the client that fed back the exception signal until the client does not feed back the exception signal.
10. The electronic device of claim 9, wherein the server comprises a plurality of interfaces, one for each of the clients, and wherein the processor is further configured to:
determining the interface receiving the exception signal;
and sending the second hot deployment data to the client corresponding to the interface through the interface.
11. The electronic device of claim 7, wherein the processor is further configured to:
receiving a check code generated after the client interacts with the user terminal;
and communicating with the client according to the check code.
12. An electronic device comprising one or more processors, memory; and
one or more programs, wherein the one or more programs are stored in the memory and executed by the one or more processors, the programs comprising instructions for performing the method of thermal deployment according to any one of claims 1-5.
13. One or more non-transitory computer-readable storage media embodying computer-executable instructions that, when executed by one or more processors, cause the processors to perform the thermal deployment method of any of claims 1-5.
CN202010390777.9A 2020-05-11 2020-05-11 Heat deployment method and device, electronic device, and storage medium Active CN111628889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010390777.9A CN111628889B (en) 2020-05-11 2020-05-11 Heat deployment method and device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010390777.9A CN111628889B (en) 2020-05-11 2020-05-11 Heat deployment method and device, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN111628889A CN111628889A (en) 2020-09-04
CN111628889B true CN111628889B (en) 2023-04-07

Family

ID=72259899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010390777.9A Active CN111628889B (en) 2020-05-11 2020-05-11 Heat deployment method and device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN111628889B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023857A (en) * 2011-09-20 2013-04-03 腾讯科技(深圳)有限公司 Method and system for remote deployment of information resources
US9032388B1 (en) * 2012-07-18 2015-05-12 Amazon Technologies, Inc. Authorizing or preventing deployment of update information based on deployment parameters
CN106990975A (en) * 2016-01-21 2017-07-28 阿里巴巴集团控股有限公司 One kind application heat deploying method, device and system
CN107908406A (en) * 2017-11-24 2018-04-13 四川文轩教育科技有限公司 The method that web project penetrability automatically updates deployment
CN109104292A (en) * 2017-06-20 2018-12-28 中兴通讯股份有限公司 Update deployment processing method, relevant device and computer readable storage medium
CN110099095A (en) * 2019-02-28 2019-08-06 新华三信息技术有限公司 Software deployment method, apparatus, electronic equipment and computer readable storage medium
CN110221859A (en) * 2019-06-05 2019-09-10 软通智慧科技有限公司 A kind of online management method of the deployment of application, device, equipment and storage medium
CN110795395A (en) * 2018-07-31 2020-02-14 阿里巴巴集团控股有限公司 File deployment system and file deployment method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8327351B2 (en) * 2009-04-30 2012-12-04 Sap Ag Application modification framework

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023857A (en) * 2011-09-20 2013-04-03 腾讯科技(深圳)有限公司 Method and system for remote deployment of information resources
US9032388B1 (en) * 2012-07-18 2015-05-12 Amazon Technologies, Inc. Authorizing or preventing deployment of update information based on deployment parameters
CN106990975A (en) * 2016-01-21 2017-07-28 阿里巴巴集团控股有限公司 One kind application heat deploying method, device and system
CN109104292A (en) * 2017-06-20 2018-12-28 中兴通讯股份有限公司 Update deployment processing method, relevant device and computer readable storage medium
CN107908406A (en) * 2017-11-24 2018-04-13 四川文轩教育科技有限公司 The method that web project penetrability automatically updates deployment
CN110795395A (en) * 2018-07-31 2020-02-14 阿里巴巴集团控股有限公司 File deployment system and file deployment method
CN110099095A (en) * 2019-02-28 2019-08-06 新华三信息技术有限公司 Software deployment method, apparatus, electronic equipment and computer readable storage medium
CN110221859A (en) * 2019-06-05 2019-09-10 软通智慧科技有限公司 A kind of online management method of the deployment of application, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111628889A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
EP1480404A2 (en) Apparatus and method that provides a primary server and a backup server that both support a radius client and share an IP address
CN104539690B (en) A kind of Server remote method of data synchronization detected based on feedback mechanism and MD5 codes
US10404568B2 (en) Agent manager for distributed transaction monitoring system
US7089311B2 (en) Methods, systems and computer program products for resuming SNA application-client communications after loss of an IP network connection
CN107800663B (en) Method and device for detecting flow offline file
EP2614614A1 (en) Dynamic configuration of interconnected devices for measuring performance characteristics in a network
CN108040266A (en) Abnormality eliminating method, device and the storage medium of data synchronization
CN111628889B (en) Heat deployment method and device, electronic device, and storage medium
CN109996349B (en) Session recovery method and device
CN111416851A (en) Method for session synchronization among multiple load balancers and load balancer
EP4207637A1 (en) Time synchronization method and apparatus, device, and storage medium
CN113326056B (en) Data processing method, data processing device, storage medium and processor
CN113722126A (en) Request processing method and device
Cisco Release Notes for Cisco MGX 8260 Media Gateway, Version 1.2.4
Cisco Release Notes for Cisco MGX 8260 Media Gateway, Version 1.2.3
CN112714466B (en) Service quality measuring method, device and user plane function
CN104065845A (en) Information Processing Device Information Processing Method
CN111901902B (en) Mobile base station and corresponding service processing method and storage medium
WO2016188499A1 (en) Network management method and apparatus, network device and data synchronization system
CN116614199B (en) Clock synchronization method, device, slave clock equipment, clock synchronization system and medium
CN114006836B (en) Timer adjustment method, device, electronic equipment and computer readable storage medium
CN110649993B (en) Method for quickly confirming frame
US7500154B2 (en) Method and system for generating a console log
EP4307631A1 (en) User access processing method and related device
CN105607878A (en) Log printing method and device

Legal Events

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