CN112564932A - Target server offline notification method and device - Google Patents
Target server offline notification method and device Download PDFInfo
- Publication number
- CN112564932A CN112564932A CN201910915130.0A CN201910915130A CN112564932A CN 112564932 A CN112564932 A CN 112564932A CN 201910915130 A CN201910915130 A CN 201910915130A CN 112564932 A CN112564932 A CN 112564932A
- Authority
- CN
- China
- Prior art keywords
- target server
- disconnection information
- target
- disconnection
- module
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000004590 computer program Methods 0.000 claims description 12
- 238000001514 detection method Methods 0.000 claims description 9
- 238000012163 sequencing technique Methods 0.000 claims description 8
- 238000004891 communication Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method and a device for notifying a target server of disconnection, wherein the method for notifying the target server of disconnection comprises the following steps: obtaining the disconnection information of a target server; reading the disconnection information of the target server; and informing the user side of the target server of the disconnection information of the target server. According to the method for notifying the disconnection of the target server, the time delay of notification can be reduced, and the instantaneity of the notification can be improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and for example, to a target server drop notification method, a target server drop notification apparatus, a computer, an electronic device, a computer-readable storage medium, and a computer program product.
Background
In the working process that the target server and the main server need to establish effective connection, when the target server is disconnected, a notification mechanism is usually established to notify the user side to which the target server belongs.
In the related art, when a target server is disconnected, a main server side judges whether the target server is disconnected according to a response interval of the target server, and specifically, when the main server side does not receive a work response submitted again by the target server within a preset time after the target server submits the work response last time, the main server side judges that the target server is disconnected and notifies a user side to which the target server belongs. The disconnection notification mode needs to wait for preset time and then notify the user side after the target server is disconnected, and has certain time delay and poor instantaneity.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, an object of the present invention is to provide a method for notifying a target server of a dropped connection, which can reduce the time delay of notification and improve the instantaneity of notification.
An embodiment according to a first aspect of the present invention provides a target server offline notification method, where the target server notification method includes: obtaining the disconnection information of a target server; reading the disconnection information of the target server; and informing the user side of the target server of the disconnection information of the target server.
According to the method for notifying the disconnection of the target server, whether the target server is disconnected or not is judged according to the disconnection information of the target server, namely if the target server is disconnected, corresponding notification is carried out.
According to some embodiments of the present invention, the obtaining of the disconnection information of the target server includes: detecting whether the long connection between the target server and the main server is disconnected; if not, detecting whether the long connection between the target server and the main server is disconnected again; and if so, recording the disconnection information of the target server.
According to some specific embodiments of the present invention, after the obtaining the disconnection information of the target server, the method for notifying the disconnection of the target server further includes: and storing the disconnection information of the target server.
Further, the reading of the disconnection information of the target server includes: sequencing the stored disconnection information of all target servers according to a preset priority rule; and sequentially reading the disconnection information of the target servers according to the sequencing of the disconnection information of all the target servers.
Further, the predetermined priority rule is the sequence of the time when the disconnection information of all the target servers is stored.
According to some specific examples of the present invention, the storing disconnection information of the target server includes: inquiring whether the same target server has previous broken line information stored; if not, storing the current disconnection information of the target server; if yes, storing the current disconnection information of the target server and covering the previous disconnection information of the target server.
According to some embodiments of the present invention, the notifying the client of the target server of the disconnection information of the target server includes: counting the quantity of the disconnection information of all target servers of the same user side at preset time intervals; judging whether the quantity of the disconnection information of all the target servers of the user side is greater than a preset threshold value or not; if not, notifying the user side of the disconnection information of all target servers of the user side; if yes, the disconnection information of a predetermined number of target servers of the user side is selected to omit the identification and inform the user side.
According to some specific examples of the invention, the user terminal may select whether to receive the notification.
An embodiment according to a second aspect of the present invention provides a target server drop notification apparatus, including: the acquisition module is configured to acquire the disconnection information of the target server; the reading module is configured to read the disconnection information of the target server; and the notification module is configured to notify the user side of the target server of the disconnection information of the target server.
The target server disconnection notification device has the advantages of low notification delay, high notification instantaneity and the like.
According to some specific embodiments of the invention, the obtaining module comprises: a detection module configured to detect whether the long connection between the target server and the main server is disconnected; and the recording module is configured to detect whether the long connection between the target server and the main server is disconnected again if the detection module does not detect the long connection, and record the disconnection information of the target server if the long connection between the target server and the main server is disconnected.
According to some embodiments of the present invention, the apparatus for notifying that the target server is disconnected further includes: and the storage module is configured to store the disconnection information of the target server.
Further, the reading module includes: the sequencing module is configured to sequence the stored disconnection information of all the target servers according to a preset priority rule; and the acquisition module is configured to read the disconnection information of the target servers in sequence according to the sequencing of the disconnection information of all the target servers.
Further, the predetermined priority rule is the sequence of the time when the disconnection information of all the target servers is stored in the storage module.
According to some specific examples of this invention, the storage module comprises: the query module is configured to query whether the same target server has previous line break information stored; a write-in module configured to store the current disconnection information of the target server if the current disconnection information of the target server is not stored, and store the current disconnection information of the target server and cover the previous disconnection information of the target server if the current disconnection information of the target server is stored
According to some specific examples of this invention, the notification module comprises: the statistical module is configured to count the quantity of the disconnection information of all the target servers of the same user side at preset time intervals; the judging module is configured to judge whether the quantity of the disconnection information of all the target servers of the user side is greater than a preset threshold value; and the output module is configured to notify the user terminal of the disconnection information of all the target servers of the user terminal if the judgment module judges that the disconnection information of all the target servers of the user terminal is not the disconnection information of all the target servers of the user terminal, and select the disconnection information of a predetermined number of the target servers of the user terminal to omit the identification to notify the user terminal if the judgment module judges that the disconnection information of all the target servers of the user terminal is the.
An embodiment according to the third aspect of the present invention proposes a computer including the target server drop notification apparatus according to the embodiment of the second aspect of the present invention.
According to a fourth aspect of the embodiments of the present invention, there is provided an electronic apparatus, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which when executed by the at least one processor, cause the at least one processor to perform a method of target server drop notification according to embodiments of the first aspect of the present invention.
An embodiment according to a fifth aspect of the present invention proposes a computer-readable storage medium storing computer-executable instructions configured to perform the method for target server drop notification according to an embodiment of the first aspect of the present invention.
An embodiment according to a sixth aspect of the present invention proposes a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform a target server drop notification method according to an embodiment of the first aspect of the present invention.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, wherein elements having the same reference numerals are denoted by like elements and wherein:
FIG. 1 is a flowchart of a method for notifying a target server of a dropped connection according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a target server drop notification apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Reference numerals:
an acquisition module 100, a detection module 110, a recording module 120,
A storage module 200, a query module 210, a write module 220,
A reading module 300, a sorting module 310, an acquisition module 320,
A notification module 400, a statistics module 410, a judgment module 420 and an output module 430;
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
A target server drop notification method according to an embodiment of the present invention is described below with reference to the drawings.
As shown in fig. 1, according to the method for notifying the dropped target server in the embodiment of the present invention, the dropped target server is confirmed based on the disconnection information of the target server, and a corresponding notification is implemented.
Specifically, the method for notifying the disconnection of the target server comprises the following steps:
s101, obtaining the disconnection information of a target server, wherein the obtaining mode can be active acquisition or passive acquisition;
s103, reading the disconnection information of the target server;
s104, notifying the user side of the target server of the disconnection information of the target server.
According to the method for notifying the disconnection of the target server, whether the target server is disconnected or not is judged according to the disconnection information of the target server, namely if the target server is disconnected, corresponding notification is carried out.
In some embodiments of the present invention, as shown in fig. 1, the step S101 — obtaining disconnection information of the target server includes:
s1011-detecting whether the long connection between the target server and the main server is disconnected, wherein the term "long connection" is used to indicate that a plurality of data packets can be continuously transmitted on one connection, and during the connection maintenance period, if no data packet is transmitted, both sides are required to transmit a link detection packet;
s1012 — in case that the long connection between the target server and the main server is not disconnected, returning to the previous step, i.e., step S1011 — detecting whether the long connection between the target server and the main server is disconnected.
S1013, recording the disconnection information of the target server under the condition that the long connection between the target server and the main server is disconnected.
In some embodiments of the present invention, as shown in fig. 2, after the step S101 — obtaining the disconnection information of the target server, the method for notifying the disconnection of the target server further includes:
s102, storing the disconnection information of the target server.
In other words, the target server offline notification method includes:
s101, obtaining disconnection information of a target server;
s102, storing the disconnection information of the target server;
s103, reading the disconnection information of the target server;
s104, notifying the user side of the target server of the disconnection information of the target server.
Wherein, the step S1013 — reading the disconnection information of the target server includes:
s1031 — sorting the stored disconnection information of all the target servers according to a predetermined priority rule, for example, the predetermined priority rule may be that the disconnection information of all the target servers is stored in order of time, that is, the disconnection information stored first is arranged in front of the disconnection information stored later, for example, the disconnection information of the first target server is arranged in front of the disconnection time of the second target server if the disconnection time of the first target server is earlier than the disconnection time of the second target server;
s1032-sequentially reading the disconnection information of the target servers according to the sequence of the disconnection information of all the target servers, namely reading the disconnection information sequenced at the front first and then reading the disconnection information sequenced at the back.
Therefore, before the disconnection information of the target server is read, the disconnection information is stored, so that when the disconnection information is read, the disconnection information can be read sequentially according to the preset priority, and network congestion and excessive load are avoided.
For example, when there are many broken lines in a period of time, a plurality of pieces of broken line information, even thousands of pieces of broken line information, may be generated, and if the network congestion may be caused by direct reading, by storing the broken line information, the network congestion and the overload may be avoided by reading the broken line information in sequence according to a certain rule.
In some embodiments of the present invention, the step 102 of storing the disconnection information of the target server includes:
s1021, inquiring whether the same target server has previous broken line information to be stored;
s1022 — in a case where the target server has no previous disconnection information stored, storing the current disconnection information of the target server;
s1023, if the target server has the previous disconnection information stored, storing the current disconnection information of the target server and covering the previous disconnection information of the target server.
Therefore, for the same target server, the next disconnection information can cover the previous disconnection information, so that at most one piece of disconnection information can be stored in the same target server, and the phenomenon that the amount of stored disconnection information is too large is avoided.
In some specific examples of the present invention, in order to reasonably set a notification manner and a notification duration, the step S104 of notifying the client of the target server of the outage information of the target server includes:
s1041, counting the quantity of the disconnection information of all target servers of the same user side at preset time intervals, wherein the preset time can be 5min-15 min;
s1042 — determining whether the amount of disconnection information of all target servers of the ue is greater than a predetermined threshold, for example, the threshold may be 5 to 15;
s1043, notifying the client of the disconnection information of all target servers of the client if the number of the disconnection information of all target servers of the client is not greater than the predetermined threshold.
S1044, in case that the amount of the disconnection information of all the target servers of the ue is greater than the predetermined threshold, selecting the disconnection information of the predetermined number of target servers of the ue to add an omission indicator to notify the ue, for example, the predetermined amount may be 5 to 15, and the omission indicator may be an equal word or an ellipsis.
The method of notifying the user side can be sending mails to a registered mailbox of the user side, and the user side can select whether to receive the mails of the drop notification.
For example, the quantity of the disconnection information of all the target servers of the same user side is counted every 10 min;
judging whether the number is more than 10;
if the number is less than 10, sending all the disconnection information of the target servers to the registered mailbox of the user side in the form of mails;
if the number is more than 10, the disconnection information of the first ten target servers is selected and sent to the register mailbox of the user end in the form of an e-mail by adding the words of 'equal' and the user end can inquire the disconnection information of all the target servers through a webpage and the like.
It can be understood by those skilled in the art that the method for notifying the disconnection of the target server according to the embodiment of the present invention may be applied to the main server, the target server, and a third party other than the main server and the target server.
A target server drop notification apparatus according to an embodiment of the present invention is described below with reference to the drawings.
As shown in fig. 2, the target server disconnection notification apparatus according to the embodiment of the present invention is configured to confirm that the target server is disconnected based on the disconnection information of the target server, and implement corresponding notification.
Specifically, the target server offline notification apparatus includes an acquisition module 100, a reading module 300, and a notification module 400.
The obtaining module 100 is configured to obtain the disconnection information of the target server, and the obtaining mode of the obtaining module 100 may be active asking for or passive receiving. The reading module 300 is configured to read the disconnection information of the target server. The notification module 400 is configured to notify the disconnection information of the target server.
According to the target server disconnection notification device provided by the embodiment of the invention, whether the target server is disconnected or not is judged according to the disconnection information of the target server, namely if the target server is disconnected, the corresponding notification is carried out.
In some embodiments of the present invention, as shown in FIG. 2, the acquisition module 100 includes a detection module 110 and a recording module 120.
The detection module 110 is configured to detect whether the long connection between the target server and the main server is disconnected, and as will be understood by those skilled in the art, the term "long connection" means that a plurality of data packets can be continuously transmitted over one connection, and during the connection maintenance, if no data packet is transmitted, a link detection packet is transmitted in both directions. The recording module 120 is configured to record disconnection information of the target server if the long connection is disconnected, and detect whether the long connection is disconnected or not by the detecting module 110 if the long connection is not disconnected.
In some embodiments of the present invention, the apparatus for notifying the target server of the dropped connection further includes a storage module 200.
The storage module 200 is configured to store the disconnection information of the target server.
The reading module 300 includes a sorting module 310 and an acquisition module 320.
The sorting module 310 is configured to sort the stored disconnection information of all target servers according to a predetermined priority rule, for example, the predetermined priority rule is the sequence of the time when the disconnection information of all target servers is stored in the storage module 200, that is, the disconnection information stored first is ranked first and the disconnection information stored later is ranked later. The collecting module 320 is configured to sequentially read the disconnection information of the target servers according to the sequence of the disconnection information of all the target servers, that is, the disconnection information in the front sequence is read first, and then the disconnection information in the back sequence is read.
Therefore, before the disconnection information of the target server is read, the disconnection information is stored, so that when the disconnection information is read, the disconnection information can be read sequentially according to the preset priority, and network congestion and excessive load are avoided.
For example, when there are many broken lines in a period of time, a plurality of pieces of broken line information, even thousands of pieces of broken line information, may be generated, and if the network congestion may be caused by direct reading, by storing the broken line information, the network congestion and the overload may be avoided by reading the broken line information in sequence according to a certain rule.
In some implementations of the invention, the storage module 200 includes a query module 210 and a write module 220.
The query module 210 is configured to query whether prior outage information is stored for the same target server. The writing module 220 is configured to store the current disconnection information of the target server and overwrite the previous disconnection information of the target server if the previous disconnection information is stored, and store the current disconnection information of the target server if no previous disconnection information is stored.
Therefore, for the same target server, the next disconnection information can cover the previous disconnection information, so that at most one piece of disconnection information can be stored in the same target server, and the phenomenon that the amount of stored disconnection information is too large is avoided.
In some embodiments of the invention, the notification module 400 includes a statistics module 410, a judgment module 420, and an output module 430 for purposes of rationalizing the manner of notification and the duration of the notification.
The counting module 410 is configured to count the number of the disconnection information of all the target servers of the same user side at predetermined time intervals, for example, the predetermined time may be 5min to 15 min. The determining module 420 is configured to determine whether the amount of the disconnection information of all the target servers of the ue is greater than a predetermined threshold, for example, the threshold may be 5-15. The output module 430 is configured to select the disconnection information of a predetermined number of target servers of the ue to add an omission indicator to notify the ue if the number is greater than the predetermined threshold, and notify the disconnection information of all target servers of the ue to the ue if the number is not greater than the predetermined threshold, for example, the predetermined number may be 5 to 15, and the omission indicator may be an equal word or an ellipsis.
The method of notifying the user side can be sending mails to a registered mailbox of the user side, and the user side can select whether to receive the mails of the drop notification.
For example, the counting module 410 counts the amount of the disconnection information of all the target servers of the same client every 10 min;
the judging module 420 judges whether the number is greater than 10;
if the number is less than 10, the output module 430 sends all the disconnection information of the target servers to the registered mailbox of the user side in the form of mail;
if the number is greater than 10, the output module 430 selects the disconnection information of the first ten target servers and sends the disconnection information in the form of an "equal" word to the registered mailbox of the user side, and the user side can inquire the disconnection information of all the target servers through a webpage and the like.
It can be understood by those skilled in the art that the target server disconnection notification apparatus according to the embodiment of the present invention may be applied to a main server, a target server, and a third party other than the main server and the target server.
The embodiment of the invention also provides a computer, and the computer comprises the target server disconnection notification device according to the embodiment of the invention.
The embodiment of the present invention further provides a computer-readable storage medium, where computer-executable instructions are stored, and the computer-executable instructions are configured to execute the method for notifying the disconnection of the target server according to the above embodiment of the present invention.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
Embodiments of the present invention further provide a computer program product, where the computer program product includes a computer program stored on a computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the target server offline notification method according to the foregoing embodiments of the present invention.
An embodiment of the present invention further provides an electronic device, a structure of which is shown in fig. 3, where the electronic device includes:
at least one processor (processor)1000, one processor 1000 being illustrated in FIG. 3; and a memory (memory)2000, and may further include a Communication Interface (Communication Interface)3000 and a bus 4000. The processor 1000, the communication interface 3000, and the memory 2000 may communicate with each other via a bus 4000. Communication interface 3000 may be used for information transfer. The processor 1000 may call logic instructions in the memory 2000 to perform the target server drop notification method of the above-described embodiment of the present invention.
In addition, the logic instructions in the memory 2000 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products.
The memory 2000 is a computer-readable storage medium and can be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the target server offline notification method in the embodiment of the present invention. The processor 1000 executes functional applications and data processing by executing software programs, instructions and modules stored in the memory 2000, that is, implements the target server drop notification method in the above-described method embodiments.
The memory 2000 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 2000 may include a high-speed random access memory, and may further include a nonvolatile memory.
Those skilled in the art can understand that the method for notifying the disconnection of the target server according to the embodiment of the present invention can be applied to any scene that needs to notify the disconnection.
For example, for the acquisition of encrypted resources, the main server connects the processing capabilities of a plurality of target servers, that is, the main server integrates the processing capabilities of a plurality of target servers to process the encrypted resources, in this process, an effective connection needs to be established between the target servers and the main server, and after the target servers are disconnected, a notification mechanism is usually established to notify the user side to which the target servers belong. According to the target server disconnection notification method of the embodiment of the invention, a notification method with lower time delay and higher instantaneity is provided, so that a user of a disconnection target server can obtain disconnection information in the first time.
The technical solution of the embodiment of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable 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 target server offline notification method according to the embodiment of the present invention. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The words used in the specification are words of description rather than limitation, and are used in the specification and claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this disclosure is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The various aspects, implementations, or features of the described embodiments can be used alone or in any combination. Aspects of the described embodiments may be implemented by software, hardware, or a combination of software and hardware. The described embodiments may also be embodied by a computer-readable medium having computer-readable code stored thereon, the computer-readable code comprising instructions executable by at least one computing device. The computer readable medium can be associated with any data storage device that can store data which can be read by a computer system. Exemplary computer readable media can include read-only memory, random-access memory, CD-ROMs, HDDs, DVDs, magnetic tape, and optical data storage devices, among others. The computer readable medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.
The above description of the technology may refer to the accompanying drawings, which form a part hereof, and in which is shown by way of illustration embodiments in which the embodiments are described. These embodiments, while described in sufficient detail to enable those skilled in the art to practice them, are non-limiting; other embodiments may be utilized and changes may be made without departing from the scope of the described embodiments. For example, the order of operations described in a flowchart is non-limiting, and thus the order of two or more operations illustrated in and described in accordance with the flowchart may be altered in accordance with several embodiments. As another example, in several embodiments, one or more operations illustrated in and described with respect to the flowcharts are optional or may be eliminated. Additionally, certain steps or functions may be added to the disclosed embodiments, or two or more steps may be permuted in order. All such variations are considered to be encompassed by the disclosed embodiments and the claims.
Additionally, terminology is used in the foregoing description of the technology to provide a thorough understanding of the described embodiments. However, no unnecessary detail is required to implement the described embodiments. Accordingly, the foregoing description of the embodiments has been presented for purposes of illustration and description. The embodiments presented in the foregoing description and the examples disclosed in accordance with these embodiments are provided solely to add context and aid in the understanding of the described embodiments. The above description is not intended to be exhaustive or to limit the described embodiments to the precise form of the invention. Many modifications, alternative uses, and variations are possible in light of the above teaching. In some instances, well known process steps have not been described in detail in order to avoid unnecessarily obscuring the described embodiments.
Claims (19)
1. A method for notifying a drop of a target server, comprising:
obtaining the disconnection information of a target server;
reading the disconnection information of the target server;
and informing the user side of the target server of the disconnection information of the target server.
2. The method for notifying the disconnection of the target server according to claim 1, wherein the obtaining of the disconnection information of the target server comprises:
detecting whether the long connection between the target server and the main server is disconnected;
if not, detecting whether the long connection between the target server and the main server is disconnected again;
and if so, recording the disconnection information of the target server.
3. The method for notifying the disconnection of the target server according to claim 1 or 2, wherein after the obtaining of the disconnection information of the target server, the method for notifying the disconnection of the target server further comprises:
and storing the disconnection information of the target server.
4. The method for notifying the disconnection of the target server according to claim 3, wherein the reading of the disconnection information of the target server includes:
sequencing the stored disconnection information of all target servers according to a preset priority rule;
and sequentially reading the disconnection information of the target servers according to the sequencing of the disconnection information of all the target servers.
5. The method according to claim 4, wherein the predetermined priority rule is a time sequence according to which disconnection information of all target servers is stored.
6. The method for notifying the disconnection of the target server according to any one of claims 3 to 5, wherein the storing the disconnection information of the target server comprises:
inquiring whether the same target server has previous broken line information stored;
if not, storing the current disconnection information of the target server;
if yes, storing the current disconnection information of the target server and covering the previous disconnection information of the target server.
7. The method for notifying the disconnection of the target server according to any one of claims 1 to 6, wherein the notifying the disconnection information of the target server to the user side of the target server includes:
counting the quantity of the disconnection information of all target servers of the same user side at preset time intervals;
judging whether the quantity of the disconnection information of all the target servers of the user side is greater than a preset threshold value or not;
if not, notifying the user side of the disconnection information of all target servers of the user side;
if yes, the disconnection information of a predetermined number of target servers of the user side is selected to omit the identification and inform the user side.
8. The method for notifying the drop of the target server according to any of claims 1 to 7, wherein the user terminal can select whether to receive the notification.
9. A target server drop notification apparatus, comprising:
the acquisition module is configured to acquire the disconnection information of the target server;
the reading module is configured to read the disconnection information of the target server;
and the notification module is configured to notify the user side of the target server of the disconnection information of the target server.
10. The apparatus for notifying of a dropped connection of a target server according to claim 9, wherein the obtaining module comprises:
a detection module configured to detect whether the long connection between the target server and the main server is disconnected;
and the recording module is configured to detect whether the long connection between the target server and the main server is disconnected again if the detection module does not detect the long connection, and record the disconnection information of the target server if the long connection between the target server and the main server is disconnected.
11. The apparatus for notifying of a dropped connection of a target server according to claim 9 or 10, further comprising:
and the storage module is configured to store the disconnection information of the target server.
12. The apparatus for notifying of a dropped connection of a target server according to claim 11, wherein the reading module comprises:
the sequencing module is configured to sequence the stored disconnection information of all the target servers according to a preset priority rule;
and the acquisition module is configured to read the disconnection information of the target servers in sequence according to the sequencing of the disconnection information of all the target servers.
13. The apparatus according to claim 12, wherein the predetermined priority rule is a chronological order in which disconnection information of all target servers is stored in the storage module.
14. The apparatus for notifying of a dropped connection of a target server according to any of claims 9-13, wherein the storage module comprises:
the query module is configured to query whether the same target server has previous line break information stored;
and the writing module is configured to store the current disconnection information of the target server if the current disconnection information of the target server is not stored, and store the current disconnection information of the target server and cover the previous disconnection information of the target server if the current disconnection information of the target server is stored.
15. The apparatus for target server drop notification according to any of claims 9-14, wherein said notification module comprises:
the statistical module is configured to count the quantity of the disconnection information of all the target servers of the same user side at preset time intervals;
the judging module is configured to judge whether the quantity of the disconnection information of all the target servers of the user side is greater than a preset threshold value;
and the output module is configured to notify the user terminal of the disconnection information of all the target servers of the user terminal if the judgment module judges that the disconnection information of all the target servers of the user terminal is not the disconnection information of all the target servers of the user terminal, and select the disconnection information of a predetermined number of the target servers of the user terminal to omit the identification to notify the user terminal if the judgment module judges that the disconnection information of all the target servers of the user terminal is the.
16. A computer comprising a target server drop notification apparatus according to any of claims 9-15.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, the instructions, when executed by the at least one processor, cause the at least one processor to perform the method of target server drop notification according to any of claims 1-8.
18. A computer-readable storage medium having stored thereon computer-executable instructions configured to perform the method of target server drop notification according to any of claims 1-8.
19. A computer program product, characterized in that the computer program product comprises a computer program stored on a computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to carry out the target server drop notification method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910915130.0A CN112564932A (en) | 2019-09-26 | 2019-09-26 | Target server offline notification method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910915130.0A CN112564932A (en) | 2019-09-26 | 2019-09-26 | Target server offline notification method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112564932A true CN112564932A (en) | 2021-03-26 |
Family
ID=75029664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910915130.0A Pending CN112564932A (en) | 2019-09-26 | 2019-09-26 | Target server offline notification method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112564932A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020133601A1 (en) * | 2001-03-16 | 2002-09-19 | Kennamer Walter J. | Failover of servers over which data is partitioned |
CN1700660A (en) * | 2005-07-01 | 2005-11-23 | 倚天资讯股份有限公司 | Automatic reconnection method when disconnecting from server |
CN101056213A (en) * | 2006-04-14 | 2007-10-17 | 上海晨兴电子科技有限公司 | Server monitoring method and device |
US20130060885A1 (en) * | 2011-09-02 | 2013-03-07 | Nokia Corporation | Method and apparatus for enabling offline web application execution |
CN107070744A (en) * | 2017-03-22 | 2017-08-18 | 上海合志信息技术有限公司 | Server monitoring method |
CN109218349A (en) * | 2017-06-29 | 2019-01-15 | 北京微影时代科技有限公司 | A kind of method and device of management server cluster |
-
2019
- 2019-09-26 CN CN201910915130.0A patent/CN112564932A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020133601A1 (en) * | 2001-03-16 | 2002-09-19 | Kennamer Walter J. | Failover of servers over which data is partitioned |
CN1700660A (en) * | 2005-07-01 | 2005-11-23 | 倚天资讯股份有限公司 | Automatic reconnection method when disconnecting from server |
CN101056213A (en) * | 2006-04-14 | 2007-10-17 | 上海晨兴电子科技有限公司 | Server monitoring method and device |
US20130060885A1 (en) * | 2011-09-02 | 2013-03-07 | Nokia Corporation | Method and apparatus for enabling offline web application execution |
CN107070744A (en) * | 2017-03-22 | 2017-08-18 | 上海合志信息技术有限公司 | Server monitoring method |
CN109218349A (en) * | 2017-06-29 | 2019-01-15 | 北京微影时代科技有限公司 | A kind of method and device of management server cluster |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107172171B (en) | Service request processing method and device and computer readable storage medium | |
US10812314B2 (en) | Methods and apparatuses for pushing a message | |
CN108390856B (en) | DDoS attack detection method and device and electronic equipment | |
CN107872396B (en) | Communication method with timeout control, processing device, terminal device and server | |
CN108418743B (en) | Chat room message distribution method and device and electronic equipment | |
CN110769040B (en) | Access request processing method, device, equipment and storage medium | |
CA2911989C (en) | Method, system and apparatus for dectecting instant message spam | |
CN114268957B (en) | Abnormal business data processing method, device, server and storage medium | |
CN105792153A (en) | Short message group sending method, terminal devices and short message sending server | |
CN104702647B (en) | Information requesting method and system | |
CN107819754B (en) | Anti-hijacking method, monitoring server, terminal and system | |
CN112564932A (en) | Target server offline notification method and device | |
CN108718398A (en) | Code stream transmission method, device and the conference facility of video conferencing system | |
CN108156086B (en) | Policy rule issuing method and device | |
CN109347760B (en) | Data sending method and device | |
CN101547157B (en) | Method, device and system for detecting overload | |
CN114337942A (en) | Message retransmission method and device and electronic equipment | |
CN112312514B (en) | Method, device, equipment and computer readable storage medium for accessing network | |
CN114090409A (en) | Message processing method and device | |
JPWO2014171413A1 (en) | Message system that avoids degradation of processing performance | |
CN111556447B (en) | Information processing method and device | |
CN107005420B (en) | Group business feedback method and device | |
CN108966160B (en) | Short message processing method and device and computer readable storage medium | |
JP5965720B2 (en) | Mail system | |
EP3223478A1 (en) | Packet processing method and device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210326 |