CN110213128B - Service port detection method, electronic device and computer storage medium - Google Patents

Service port detection method, electronic device and computer storage medium Download PDF

Info

Publication number
CN110213128B
CN110213128B CN201910453696.6A CN201910453696A CN110213128B CN 110213128 B CN110213128 B CN 110213128B CN 201910453696 A CN201910453696 A CN 201910453696A CN 110213128 B CN110213128 B CN 110213128B
Authority
CN
China
Prior art keywords
service port
unavailable
service
port
ports
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
CN201910453696.6A
Other languages
Chinese (zh)
Other versions
CN110213128A (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.)
Ireader Technology Co Ltd
Original Assignee
Ireader 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 Ireader Technology Co Ltd filed Critical Ireader Technology Co Ltd
Priority to CN201910453696.6A priority Critical patent/CN110213128B/en
Publication of CN110213128A publication Critical patent/CN110213128A/en
Application granted granted Critical
Publication of CN110213128B publication Critical patent/CN110213128B/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/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a service port detection method, electronic equipment and a computer storage medium. The method comprises the following steps: periodically detecting all service ports; if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue; periodically detecting all service ports in the unavailable service port queue; and if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta information of the service port. The detection of the service port is realized based on the distributed probes, the bottleneck of a single machine is broken through, the management is convenient, the detection efficiency of the service port is improved, the problems that the probe is deployed on a single server to occupy the server port and the detection efficiency is low are solved, and in addition, the utilization rate of the service port is further improved.

Description

Service port detection method, electronic device and computer storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a service port detection method, electronic equipment and a computer storage medium.
Background
A server is a common device for providing computing services, each server has a large number of service ports, usually, the maximum number of service ports of one server may be 65535, and when in use, a large number of servers are usually deployed. In order to avoid the problem that a service port of a server cannot be used to provide a service, the service port needs to be detected, and the existing detection method of the service port is to deploy a probe on each server for detection, so that the service port is occupied, the service amount which can be provided by the server is reduced, and the detection efficiency is low.
Disclosure of Invention
In view of the above, the present invention has been made to provide a service port detection method, an electronic device, and a computer storage medium that overcome or at least partially solve the above-mentioned problems.
According to one aspect of the present invention, a service port detection method is provided, which is implemented based on a pre-deployed distributed probe, and includes:
periodically detecting all service ports;
if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue;
periodically detecting all service ports in the unavailable service port queue; and if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta information of the service port.
According to another aspect of the present invention, there is provided an electronic apparatus including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:
periodically detecting all service ports;
if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue;
periodically detecting all service ports in the unavailable service port queue; and if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta information of the service port.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
periodically detecting all service ports;
if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue;
periodically detecting all service ports in the unavailable service port queue; and if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta information of the service port.
According to the scheme provided by the invention, all service ports are periodically detected; if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue; periodically detecting all service ports in the unavailable service port queue; and if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta information of the service port. The scheme provided by the invention realizes the detection of the service port based on the distributed probe, breaks through the bottleneck of a single machine, is convenient to manage, improves the detection efficiency of the service port, and avoids the problems that the probe is deployed on a single server to occupy the server port and the detection efficiency is low; in addition, when the unavailable service port is determined to be unavailable, the unavailable service port is taken off line, and the unavailable service port is continuously and periodically detected after the service port is taken off line, so that the service port is timely recovered and corresponding flow is shared after the unavailable service port is recovered to be available, and the utilization rate of the service port is further improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow diagram illustrating a service port detection method according to an embodiment of the invention;
FIG. 2 is a flow chart illustrating a service port detection method according to another embodiment of the invention;
fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a flow chart of a service port detection method according to an embodiment of the invention. The method is implemented based on a pre-deployed distributed probe, as shown in fig. 1, and comprises the following steps:
step S100, periodically probing all service ports.
A server is a common device for providing computing services, each server has a large number of service ports, usually, the maximum number of service ports of one server may be 65535, and when in use, a plurality of servers are also deployed. In order to avoid the unavailability of the service port of the server, the service port needs to be detected, and specifically, the service port can be detected by the method in steps S100 to S102.
The periodic detection specifies whether the service port is available or not, and whether normal service can be provided, for example, whether the service port is available may be detected by the following method: and connecting the service port by using a telnet command, determining that the service port is unavailable if the connection is overtime, and naturally, detecting whether the service port is available by adopting other methods, which is not described herein again. In this embodiment, the distributed probe acquires information of all service ports, and periodically probes all service ports.
Step S101, if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding the unavailable service port to the unavailable service port queue.
After periodically detecting all service ports, if any service port is found to be unavailable, the unavailable service port is taken off line, that is, the unavailable service port is no longer provided with services to the outside, and when the unavailable service port is taken off line, the meta information of the unavailable service port needs to be recorded, so that in the subsequent process, if the unavailable service port is recovered to be available, the service port is recovered according to the meta information of the service port. After the unavailable service port is taken off line, the service provided by the unavailable service port can be transferred to other service ports, and the other service ports continue to provide the service.
In this embodiment, an unavailable service port queue is maintained, a service port which is unavailable after periodic detection is stored in the unavailable service port queue, and when a detection result indicates that any service port is unavailable, the unavailable service port is offline processed and then added to the unavailable service port queue.
Step S102, periodically detecting all service ports in the unavailable service port queue; and if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta information of the service port.
After adding the unavailable service port to the unavailable service port queue, periodic probing of all service ports in the unavailable service port queue is also required, here mainly probing whether the unavailable service port is restored to be available. The probing period for all the service ports in the unavailable service port queue may be the same as or different from the probing period in step S100, for example, the probing period in this step may be longer than the probing period in step S100, so as to avoid occupying too much resources.
After periodically probing all service ports in the unavailable service port queue, if the probing result indicates that any unavailable service port is recovered to be available, the service of the service port may be recovered, and specifically, the service port may be recovered according to the previously recorded meta information of the service port.
According to the method provided by the above embodiment of the present invention, all service ports are periodically detected; if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue; periodically detecting all service ports in the unavailable service port queue; and if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta information of the service port. The scheme provided by the invention realizes the detection of the service port based on the distributed probe, breaks through the bottleneck of a single machine, is convenient to manage, improves the detection efficiency of the service port, and avoids the problems that the probe is deployed on a single server to occupy the server port and the detection efficiency is low; in addition, when the unavailable service port is determined to be unavailable, the unavailable service port is taken off line, and the unavailable service port is continuously and periodically detected after the service port is taken off line, so that the service port is timely recovered and corresponding flow is shared after the unavailable service port is recovered to be available, and the utilization rate of the service port is further improved.
Fig. 2 is a flowchart illustrating a service port detection method according to another embodiment of the present invention. The method is implemented based on a pre-deployed distributed probe, as shown in fig. 2, and comprises the following steps:
step S200, periodically detecting all service ports according to a first period.
The periodic detection specifies whether the service port is available or not, and whether normal service can be provided, for example, whether the service port is available may be detected by the following method: and connecting the service port by using a telnet command, determining that the service port is unavailable if the connection is overtime, and naturally, detecting whether the service port is available by adopting other methods, which is not described herein again.
Specifically, the distributed probe acquires information of all service ports, and periodically probes all service ports according to a first period, where the first period defines how often all service ports are probed, for example, the first period may be 10 seconds, that is, all service ports are probed every 10 seconds. This is merely an example, and those skilled in the art can flexibly set the duration of the first period according to actual needs. The number of the service ports which are responsible for detection by the distributed probes is determined according to a load balancing strategy, so that the detection task balance of each probe is ensured, and the phenomena that the detection tasks of some probes are heavier and the detection tasks of some probes are lighter are avoided.
Step S201, judging whether the number of times that the detection result of any service port in a plurality of first periods is unavailable is greater than or equal to a preset threshold value; if yes, go to step S202; if not, the method ends.
In order to avoid the problem of erroneous determination, in this embodiment, a service port is determined to be unavailable when a detection result of one periodic detection indicates that any service port is unavailable, but a number of times that the detection result of any service port in a plurality of first periods is unavailable is compared with a preset threshold, whether the service port is available is determined according to the comparison result, and if the number of times that the detection result of any service port in the plurality of first periods is unavailable is greater than or equal to the preset threshold, the service port is determined to be unavailable; if the number of times that the detection result of any service port in the first periods is unavailable is smaller than a preset threshold value, the service port is determined to be available, and therefore the detection accuracy is improved.
Step S202, determining that the service port is unavailable, performing offline processing on the unavailable service port, and recording the meta information of the unavailable service port.
And under the condition that the frequency of judging that the detection result of any service port in a plurality of first periods is unavailable is greater than or equal to a preset threshold value, determining that the service port is unavailable.
For an unavailable service port, taking the unavailable service port down, that is, making the unavailable service port no longer provide service to the outside, and while taking the unavailable service port down, also needing to record the meta-information of the unavailable service port, wherein the meta-information includes: the traffic weight of the service port, for example, the traffic weight of the unavailable service port is 10%, the traffic weight of the service port is the proportion of the service port to the externally provided service traffic, and by recording the meta-information of the unavailable service port, the service port can be recovered according to the meta-information of the service port in the subsequent process if the unavailable service port is recovered to be available. In addition, the meta-information may also include a UI for the service port, which is used to determine which service port to forward traffic to after the service port is restored to be available.
After the unavailable service port is taken off line, the service provided by the unavailable service port can be transferred to other service ports, and the other service ports continue to provide the service.
Step S203, the unavailable service port is marked, and alarm information is generated to alarm.
For the unavailable service port, marking is also needed, for example, which server the unavailable service port belongs to, which group the server belongs to, etc., then, an alarm mechanism is triggered, alarm information is generated according to the marking information to prompt a user that the service port is unavailable, and the user can perform corresponding processing on the service port according to the alarm information.
Step S204, adding the unavailable service port to the unavailable service port queue.
In this embodiment, an unavailable service port queue is maintained, a service port which is unavailable after periodic detection is stored in the unavailable service port queue, and when a detection result indicates that any service port is unavailable, the unavailable service port is offline processed and then added to the unavailable service port queue.
Step S205, periodically probing all service ports in the unavailable service port queue.
After adding the unavailable service port to the unavailable service port queue, periodic probing of all service ports in the unavailable service port queue is also required, here mainly probing whether the unavailable service port is restored to be available. For example, the probing period in this step may be longer than the first period in step S200, and the probing period in this step may be 15 seconds, which is only for example and does not have any limiting function, and the probing period in this step is set to be longer than the first period in step S200, so that excessive resource occupation can be avoided.
Step S206, if the detection result indicates that any unavailable service port is recovered to be available, allocating traffic to the service port recovered to be available according to the traffic weight of the service port.
After periodically probing all the service ports in the queue of unavailable service ports, if the probing result indicates that any unavailable service port is recovered to be available, the service of the service port can be recovered. For different service ports, service traffic provided by the service port is different, and therefore, when a service port restored to be available is restored, the service port needs to be restored depending on the recorded meta information, and specifically, traffic can be allocated to the service port restored to be available according to the previously recorded service port traffic weight of the service port.
For example, when a certain service port is determined to be unavailable, the recorded service port traffic weight of the unavailable service port is 10%, and then after the service port is recovered to be available, 10% of traffic is allocated to the available service port.
According to the method provided by the embodiment of the invention, the times that the detection result of any service port in a plurality of first periods is unavailable are compared with the preset threshold value, and whether the service port is available or not is determined according to the comparison result, so that the detection accuracy is improved, and the problem of misjudgment is avoided; when the unavailable service port is determined to be unavailable, the unavailable service port is taken off line, the meta information of the unavailable service port is recorded, and the unavailable service port is continuously and periodically detected after the service port is taken off line, so that the service port is timely recovered according to the meta information after the unavailable service port is recovered to be available, corresponding flow is shared, and the utilization rate of the service port is further improved; the service port which is not available is marked, alarm information is generated to alarm, a user can be prompted that the service port is not available, and the user can correspondingly process the service port according to the alarm information; the detection of the service port is realized based on the distributed probe, the bottleneck of a single machine is broken through, the management is convenient, the detection efficiency of the service port is improved, and the problems that the probe is deployed on a single server to occupy the server port and the detection efficiency is low are solved.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the service port detection method in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
periodically detecting all service ports;
if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue;
periodically detecting all service ports in the unavailable service port queue; and if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta information of the service port.
In an alternative embodiment, the executable instructions further cause the processor to:
periodically detecting all service ports according to a first period;
judging whether the number of times that the detection result of any service port in a plurality of first periods is unavailable is greater than or equal to a preset threshold value or not; if so, determining that the service port is unavailable.
In an alternative embodiment, the executable instructions further cause the processor to:
and if the detection result shows that any service port is unavailable, marking the unavailable service port and generating alarm information to alarm.
In an alternative embodiment, the meta-information comprises: a service port traffic weight;
the executable instructions further cause the processor to:
and allocating the flow to the service port recovered to be available according to the service port flow weight of the service port.
In an alternative embodiment, the number of service ports that the distributed probe is responsible for probing is determined according to a load balancing policy.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 3, the electronic device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.
Wherein:
the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308.
A communication interface 304 for communicating with network elements of other devices, such as clients or other servers.
The processor 302 is configured to execute the program 310, and may specifically perform relevant steps in the foregoing service port detection method embodiment.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an application specific Integrated circuit (asic), or one or more Integrated circuits configured to implement an embodiment of the present invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may specifically be configured to cause the processor 302 to perform the following operations:
periodically detecting all service ports;
if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue;
periodically detecting all service ports in the unavailable service port queue; and if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta information of the service port.
In an alternative embodiment, program 310 further causes processor 302 to:
periodically detecting all service ports according to a first period;
judging whether the number of times that the detection result of any service port in a plurality of first periods is unavailable is greater than or equal to a preset threshold value or not; if so, determining that the service port is unavailable.
In an alternative embodiment, program 310 also causes processor 302 to:
and if the detection result shows that any service port is unavailable, marking the unavailable service port and generating alarm information to alarm.
In an alternative embodiment, the meta-information comprises: a service port traffic weight;
program 310 further causes processor 302 to perform the following:
and allocating the flow to the service port recovered to be available according to the service port flow weight of the service port.
In an alternative embodiment, the number of service ports that the distributed probe is responsible for probing is determined according to a load balancing policy.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (12)

1. A service port detection method is realized based on a pre-deployed distributed probe, and comprises the following steps:
periodically detecting all service ports;
if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue;
periodically detecting all service ports in the unavailable service port queue; if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta-information of the service port;
wherein the meta information includes: the service port traffic weight is the proportion of the service port to the externally provided service traffic;
the recovering the service port according to the meta information of the service port further includes: and allocating the flow to the service port recovered to be available according to the service port flow weight of the service port.
2. The method of claim 1, wherein the periodically probing all service ports further comprises:
periodically detecting all service ports according to a first period;
judging whether the number of times that the detection result of any service port in a plurality of first periods is unavailable is greater than or equal to a preset threshold value or not; if so, determining that the service port is unavailable.
3. The method of claim 1 or 2, wherein after periodically probing all service ports, the method further comprises: and if the detection result shows that any service port is unavailable, marking the unavailable service port and generating alarm information to alarm.
4. The method of claim 1 or 2, wherein the number of service ports that the distributed probe is responsible for probing is determined according to a load balancing policy.
5. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
periodically detecting all service ports;
if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue;
periodically detecting all service ports in the unavailable service port queue; if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta-information of the service port;
wherein the meta information includes: the service port traffic weight is the proportion of the service port to the externally provided service traffic;
the executable instructions further cause the processor to: and allocating the flow to the service port recovered to be available according to the service port flow weight of the service port.
6. The electronic device of claim 5, wherein the executable instructions further cause the processor to:
periodically detecting all service ports according to a first period;
judging whether the number of times that the detection result of any service port in a plurality of first periods is unavailable is greater than or equal to a preset threshold value or not; if so, determining that the service port is unavailable.
7. The electronic device of claim 5 or 6, wherein the executable instructions further cause the processor to:
and if the detection result shows that any service port is unavailable, marking the unavailable service port and generating alarm information to alarm.
8. The electronic device of claim 5 or 6, wherein the number of service ports that the distributed probe is responsible for probing is determined according to a load balancing policy.
9. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
periodically detecting all service ports;
if the detection result shows that any service port is unavailable, offline processing is carried out on the unavailable service port, and meta information of the unavailable service port is recorded; adding an unavailable service port to an unavailable service port queue;
periodically detecting all service ports in the unavailable service port queue; if the detection result shows that any unavailable service port is recovered to be available, performing recovery processing on the service port according to the meta-information of the service port;
wherein the meta information includes: the service port traffic weight is the proportion of the service port to the externally provided service traffic;
the executable instructions further cause the processor to: and allocating the flow to the service port recovered to be available according to the service port flow weight of the service port.
10. The computer storage medium of claim 9, wherein the executable instructions further cause the processor to:
periodically detecting all service ports according to a first period;
judging whether the number of times that the detection result of any service port in a plurality of first periods is unavailable is greater than or equal to a preset threshold value or not; if so, determining that the service port is unavailable.
11. The computer storage medium of claim 9 or 10, wherein the executable instructions further cause the processor to:
and if the detection result shows that any service port is unavailable, marking the unavailable service port and generating alarm information to alarm.
12. The computer storage medium of claim 9 or 10, wherein the number of service ports that the distributed probe is responsible for probing is determined according to a load balancing policy.
CN201910453696.6A 2019-05-28 2019-05-28 Service port detection method, electronic device and computer storage medium Active CN110213128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910453696.6A CN110213128B (en) 2019-05-28 2019-05-28 Service port detection method, electronic device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910453696.6A CN110213128B (en) 2019-05-28 2019-05-28 Service port detection method, electronic device and computer storage medium

Publications (2)

Publication Number Publication Date
CN110213128A CN110213128A (en) 2019-09-06
CN110213128B true CN110213128B (en) 2020-06-05

Family

ID=67789179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910453696.6A Active CN110213128B (en) 2019-05-28 2019-05-28 Service port detection method, electronic device and computer storage medium

Country Status (1)

Country Link
CN (1) CN110213128B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618889A (en) * 2019-08-14 2019-12-27 网联清算有限公司 Service availability detection method and device, computer equipment and storage medium
CN114079619B (en) * 2020-08-07 2024-02-13 中国电信股份有限公司 Port traffic sampling method and device
CN112583819B (en) * 2020-12-08 2023-03-24 支付宝(杭州)信息技术有限公司 Network interface state detection method, device and equipment
CN113010386A (en) * 2021-03-19 2021-06-22 掌阅科技股份有限公司 Service detection method, computing device and computer storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959151A (en) * 2016-06-22 2016-09-21 中国工商银行股份有限公司 High availability stream processing system and method
CN109660526A (en) * 2018-12-05 2019-04-19 国网江西省电力有限公司信息通信分公司 A kind of big data analysis method applied to information security field

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220161B (en) * 2012-01-18 2016-02-24 深圳市腾讯计算机系统有限公司 A kind of detection method of server state and device
CN103731287A (en) * 2012-10-16 2014-04-16 无锡云捷科技有限公司 Method for selecting server to take over fault server
TWI555357B (en) * 2014-07-04 2016-10-21 Throughtek Technology Shenzhen Co Ltd Effectively maintain the NAT channel service method
CN104219107B (en) * 2014-08-26 2018-08-14 华为技术有限公司 A kind of detection method of communication failure, apparatus and system
CN106487846A (en) * 2015-08-28 2017-03-08 中国电信股份有限公司 The white list updating method of caching system, acquisition and analysis device and caching system
CN106686040B (en) * 2015-11-10 2020-06-30 阿里巴巴集团控股有限公司 Message processing method and device
CN107612727B (en) * 2017-09-14 2019-01-25 掌阅科技股份有限公司 Distributed health examination method calculates equipment and computer storage medium
CN107659453B (en) * 2017-10-13 2021-05-04 千寻位置网络有限公司 Method for monitoring large number of TCP service ports through zabbix
CN109039773B (en) * 2018-09-06 2019-08-09 掌阅科技股份有限公司 Network communication monitoring method, electronic equipment, storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959151A (en) * 2016-06-22 2016-09-21 中国工商银行股份有限公司 High availability stream processing system and method
CN109660526A (en) * 2018-12-05 2019-04-19 国网江西省电力有限公司信息通信分公司 A kind of big data analysis method applied to information security field

Also Published As

Publication number Publication date
CN110213128A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN110213128B (en) Service port detection method, electronic device and computer storage medium
US9274844B2 (en) Priority-based management of system load level
CN110138837A (en) Request processing method, device, computer equipment and storage medium
CN107968802B (en) Resource scheduling method and device and filtering type scheduler
US9319281B2 (en) Resource management method, resource management device, and program product
US8185905B2 (en) Resource allocation in computing systems according to permissible flexibilities in the recommended resource requirements
US20130060834A1 (en) Distributed messaging system connectivity and resource management
CN108845877B (en) Method, device and system for managing memory
CN107341029B (en) Method and device for acquiring system resource deployment strategy and electronic equipment
CN111104227B (en) Resource control method and device of K8s platform and related components
WO2020172852A1 (en) Computing resource scheduling method, scheduler, internet of things system, and computer readable medium
JP2017530453A (en) Equal sharing of system resources in workflow execution
CN113886069A (en) Resource allocation method and device, electronic equipment and storage medium
US8245085B2 (en) Dump output control apparatus and dump output control method
US11061746B2 (en) Enqueue-related processing based on timing out of an attempted enqueue
CN113010265A (en) Pod scheduling method, scheduler, memory plug-in and system
CN110231981B (en) Service calling method and device
CN101017450B (en) Device, system and method of managing a resource request
CN109062580B (en) Virtual environment deployment method and deployment device
CN111198756A (en) Application scheduling method and device of kubernets cluster
CN112988405A (en) Micro-service automatic degradation method and device and computing equipment
CN112398892A (en) Service distribution method, device and equipment
US20060101469A1 (en) Method, controller, program product and services for managing resource element queues
CN117435337A (en) Resource allocation method, device, electronic equipment and storage medium
CN111932235B (en) Service processing method, data accessor, state manager and computing 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