CN108833205A - Information processing method, device, electronic equipment and storage medium - Google Patents

Information processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN108833205A
CN108833205A CN201810577765.XA CN201810577765A CN108833205A CN 108833205 A CN108833205 A CN 108833205A CN 201810577765 A CN201810577765 A CN 201810577765A CN 108833205 A CN108833205 A CN 108833205A
Authority
CN
China
Prior art keywords
service node
node
link information
main controlled
processing method
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.)
Granted
Application number
CN201810577765.XA
Other languages
Chinese (zh)
Other versions
CN108833205B (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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810577765.XA priority Critical patent/CN108833205B/en
Publication of CN108833205A publication Critical patent/CN108833205A/en
Application granted granted Critical
Publication of CN108833205B publication Critical patent/CN108833205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • 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/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Abstract

The embodiment provides a kind of information processing method, device, electronic equipment and storage mediums, are related to field of computer technology.This method is applied to the distributed system with multiple service nodes, including:Obtain the link information table of the link information comprising the main controlled node in the multiple service node and the distributed system;Receive the heartbeat message that each service node is sent to the main controlled node in the multiple service node;Judge whether the service node and the connection of the main controlled node break down based on the heartbeat message;If it is determined that connection is broken down, then the link information of the service node is deleted from the link information table.The technical solution of the embodiment of the present invention can the not available service node of automatic shield, so as to guarantee each service node of distributed system service availability.

Description

Information processing method, device, electronic equipment and storage medium
Technical field
The present invention relates to field of computer technology, in particular to a kind of information processing method, information processing unit, Electronic equipment and computer readable storage medium.
Background technique
With the development of internet, data volume to be treated is in the growth of geometric progression, and single computer can not provide Enough memory spaces and processing capacity, distributed system have also obtained people and have more and more paid close attention to.
Distributed system is that a hardware or component software are distributed on different network computers, each other by disappearing The system that breath transmitting is communicated and coordinated.In a distributed system, service node, that is, network computer breaks down for example negative Carry overweight, when hard disk failure, will lead to the service node cannot externally provide service, it is difficult to guarantee the clothes of entire distributed system The availability of business.
Accordingly, it is desirable to provide a kind of information processing method for the one or more problems being able to solve in the above problem, letter Cease processing unit, electronic equipment and computer readable storage medium.
It should be noted that information is only used for reinforcing the reason to background of the present invention disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The embodiment of the present invention be designed to provide a kind of information processing method, information processing unit, electronic equipment and Computer readable storage medium, and then overcome one caused by the limitation and defect due to the relevant technologies at least to a certain extent A or multiple problems.
According to a first aspect of the embodiments of the present invention, a kind of information processing method is provided, is applied to that there are multiple services The distributed system of node, including:It obtains comprising the main controlled node in the multiple service node and the distributed system The link information table of link information;Receive the heartbeat that each service node is sent to the main controlled node in the multiple service node Information;Judge whether the service node and the connection of the main controlled node break down based on the heartbeat message;If it is determined that Connection is broken down, then is deleted the link information of the service node from the link information table.
In some embodiments of the invention, aforementioned schemes are based on, are obtained comprising the multiple service node and described point The link information table of the link information of main controlled node in cloth system, including:Obtain the multiple service node and described point The link information of main controlled node in cloth system;The link information table is established based on the link information, and with pre- timing Between interval refresh the link information table.
In some embodiments of the invention, aforementioned schemes are based on, the service node is judged based on the heartbeat message Whether the connection with the main controlled node breaks down, including:The main controlled node is obtained in response to the heartbeat message to institute State the confirmation message of service node return;Whether the difference of the number for judging the heartbeat message and the number of the confirmation message is big In first predetermined value;If it is determined that being greater than the first predetermined value, it is determined that the connection of the service node and the main controlled node It breaks down.
In some embodiments of the invention, aforementioned schemes are based on, the information processing method further includes:Pass through the master It controls each service node of the node into the multiple service node and sends communication check information;The main controlled node is obtained to receive The detection confirmation message that is returned in response to the communication check information of each service node;Based on the total of the detection confirmation message Whether main controlled node described in the ratio-dependent of number and the total degree of the communication check information breaks down.
In some embodiments of the invention, aforementioned schemes are based on, total degree and institute based on the detection confirmation message State whether main controlled node described in the ratio-dependent of the total degree of communication check information breaks down, including:Count the communication inspection The total degree of the total degree of measurement information and the detection confirmation message;Judge total time of the detection confirmation message in the predetermined time Whether the ratio of several and the communication check information total degree is less than second predetermined value;If it is determined that it is predetermined to be less than described second Value, it is determined that the main controlled node breaks down.
In some embodiments of the invention, aforementioned schemes are based on, by the link information of the service node from the company It connects before being removed in information table, the information processing method further includes:Determine in the link information table with the service node Another service node of connection;Data on the service node are loaded onto another service node.
In some embodiments of the invention, aforementioned schemes are based on, the information processing method further includes:Described in refreshing After link information table, each service node into the link information table sends the link information table after refreshing.
According to a second aspect of the embodiments of the present invention, a kind of information processing unit is provided, is applied to that there are multiple services The distributed system of node, including:Acquiring unit, for obtaining comprising in the multiple service node and the distributed system Main controlled node link information link information table;Receiving unit, for receiving, respectively service is saved in the multiple service node The heartbeat message that point is sent to the main controlled node;Judging unit, for judging the service node based on the heartbeat message Whether the connection with the main controlled node breaks down;Unit is removed, is used for when determining that connection is broken down, then by the clothes The link information of business node is removed from the link information table.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, including:Processor;And memory, It is stored with computer-readable instruction on the memory, is realized when the computer-readable instruction is executed by the processor as above State information processing method described in first aspect.
According to a fourth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, meter is stored thereon with Calculation machine program realizes the information processing method as described in above-mentioned first aspect when the computer program is executed by processor.
In the technical solution provided by some embodiments of the present invention, on the one hand, obtaining includes service node and master control The link information table of the link information of node, can obtain the link information of available service node;On the other hand, based on service Node judges whether connection breaks down to the heartbeat message that main controlled node is sent, when connecting failure by service node Link information is deleted from link information table, can the not available service node of automatic shield, so as to guarantee distributed system Unite each service node service availability.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 shows the flow diagram of information processing method according to some embodiments of the present invention;
Whether Fig. 2 shows the connections of determination service node and main controlled node according to some embodiments of the present invention to occur The flow diagram of failure;
Fig. 3 shows the process signal whether determination main controlled node according to some embodiments of the present invention breaks down Figure;
Fig. 4 shows the schematic block diagram of the information processing unit of an exemplary embodiment according to the present invention;
Fig. 5 shows the structural schematic diagram for being suitable for the computer system for the electronic equipment for being used to realize the embodiment of the present invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms It applies, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the present invention will be comprehensively and complete It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical appended drawing reference indicates in figure Same or similar part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However, It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step, It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
Fig. 1 shows the flow diagram of information processing method according to some embodiments of the present invention, the information processing Method is applied to the distributed system with multiple service nodes.Shown in referring to Fig.1, which includes following step Suddenly:
Step S110 obtains the connection comprising the main controlled node in the multiple service node and the distributed system and believes The link information table of breath;
Step S120 receives the heartbeat letter that each service node is sent to the main controlled node in the multiple service node Breath;
Step S130 judges whether the service node and the connection of the main controlled node occur based on the heartbeat message Failure;
Step S140, if it is determined that connection is broken down, then by the link information of the service node from the link information It is deleted in table.
According to the information processing method in Fig. 1 example embodiment, on the one hand, obtaining includes service node and main controlled node The link information table of link information, can obtain the link information of available service node;On the other hand, based on service node to The heartbeat message that main controlled node is sent judges whether connection breaks down, and believes the connection of service node when connecting failure Breath deleted from link information table, can the not available service node of automatic shield, so as to guarantee that distributed system respectively takes The availability of the service of business node.
In the following, the information processing method in the example embodiment to Fig. 1 is described in detail.
In step s 110, the company comprising the main controlled node in the multiple service node and the distributed system is obtained Connect the link information table of information.
Information processing method in the example of Fig. 1 can be applied to the service with the distributed system of multiple service nodes Static resource corresponding with the service that distributed system provides and dynamic resource are stored on device, on each service node.Example Such as, when the service that distributed system provides is that merchandise sales class services, it can store Website page letter on each service node The information such as breath, merchandise news, order information.In addition, each service node all has the independent function with external progress data interaction Can, and each service node can be monitored heartbeat signal, when a service node monitors that its heartbeat signal can not When holding, another service node will be driven, its corresponding data will be loaded on another service node.
Further, the distributed system can also include main controlled node, the main controlled node be to multiple service nodes into The node of row control, main controlled node can receive the monitoring data that each service node is sent, in the monitoring data table of service node When showing the heartbeat signal of the service node cannot keep, drive the service node that corresponding data thereon is loaded into another service On node.In some embodiments, which can be used as the main controlled node of distributed system.Service node and distributed system The link information of the main controlled node of system may include:Believe (Internet Protocol, the network protocol) address IP of service node The information such as breath and port name information.
In some embodiments, the connection of available multiple service nodes and the main controlled node in distributed system is believed Breath, the link information based on each service node and main controlled node establish link information table.It is possible to further between the predetermined time It is the contact details for refreshing each service node and main controlled node every refreshing the link information table.
It should be noted that predetermined time interval can be according to the quantity of the service node in distributed system and current Available service node number is arranged, for example, can using every refreshing in a 5 minutes link information table, before refreshing A1, A2, A3 service node are connected with main controlled node, include the link information of A1, A2, A3 service node in link information table, are brushing A2 service node, which goes offline, after new cannot obtain the link information of A2 service node, then takes in link information table comprising A1, A3 The link information of business node.
In the step s 120, the heartbeat that each service node is sent to the main controlled node in the multiple service node is received Information.
In some embodiments, each service node timing in a distributed system sends heartbeat message to main controlled node, Heartbeat message is the information field that oneself definition of oneself state of other side is periodically notified between transmitting terminal and receiving end, can To send heartbeat message according to certain time interval such as 1s.Heartbeat message can be used to judge service node and main controlled node Connection whether break down.
Step S130 judges whether the service node and the connection of the main controlled node occur based on the heartbeat message Failure.
In some embodiments, if the main controlled node is not received by heartbeat message within predetermined time such as 1s, The counting of a reception failure is carried out, if the counting of reception failure reaches predetermined value, determines the service node and the master The connection for controlling node is broken down.For example, when the heartbeat message of A2 service node cannot be received main controlled node continuous 3 times, Determine that the connection of A2 service node and main controlled node is broken down.
Step S140, if it is determined that connection is broken down, then by the link information of the service node from the link information It is deleted in table.
It in some embodiments, can be by the service when the connection for determining service node and main controlled node is broken down The link information of node is deleted from the link information table, and after deleting the service node, then other service nodes are by nothing Method is called the service node being deleted.For example, breaking down in the connection for determining A2 service node and main controlled node When, the link information of A2 service node is deleted from the link information table, remaining service node cannot transfer A2 service The link information of node.
In addition, in some embodiments, when the connection of service node and main controlled node is broken down, being saved by the service The link information of point before being removed in link information table, can determine in link information table connect with the service node it is another Data on the service node are loaded onto another service node by service node.Pass through the service node that will be broken down On back end be loaded on available another service node, can guarantee the availability of the service of entire distributed system.
In addition, in some embodiments, each service node hair after refreshing link information table, into link information table Send the link information table after refreshing.For example, detecting A1, A3 and B1, the B2 service section in distributed system under current time Point is connected with main controlled node, and after the link information for getting A1, A3, B1, B2 service node and main controlled node, acquisition, which arranges, is One link information list sends the link information list to A1, A3, B1, B2 service node respectively, pre- when have passed through After the fixed time, link information list is refreshed, and has been sent again to A1, A3, B1, B2 service node respectively, to guarantee A1, A3, B1, B2 service node can receive newest link information.B1 service node adjusts the data of A1 service node Used time can learn that A1 service node is available, then according to scheduled routing rule in A1 service node according to link information Data are called.
Whether Fig. 2 shows the connections of determination service node and main controlled node according to some embodiments of the present invention to occur The flow diagram of failure.
Referring to shown in Fig. 2, in step S210, the main controlled node is obtained in response to the heartbeat message to the service The confirmation message that node returns.
In the exemplary embodiment, when main controlled node receives the heartbeat message of service node transmission, believe in response to the heartbeat It ceases to corresponding service node and sends confirmation message, which indicates to have been received that the heartbeat of corresponding service node Information.
In step S220, judge whether the difference of the number of the heartbeat message and the number of the confirmation message is greater than the One predetermined value.
In the exemplary embodiment, the confirmation that can be returned by comparing the heartbeat message and main controlled node that service node is sent The quantity of information judges whether the connection of service node and main controlled node breaks down.For example, when first predetermined value is 3, When service node has sent 10 heartbeat messages, main controlled node has been returned only to 6 confirmation messages, the heartbeat letter that service node is sent The difference of the number for the confirmation message that the number and main controlled node of breath return is 4, is greater than first predetermined value 3.
In step S230, if it is determined that being greater than the first predetermined value, it is determined that the service node and the master control section The connection of point is broken down.
If it is determined that the difference of the number for the confirmation message that the number and main controlled node of the heartbeat message that service node is sent return Greater than first predetermined value, it is determined that the connection of service node and main controlled node is broken down.
It should be noted that first predetermined value is according to the quantity of the service node in distributed system and currently available Service node number is arranged, and the quantity of service node in a distributed system and currently available service node number be more When, it can be by the larger of first predetermined value setting, such as 5 times.
Fig. 3 shows the process signal whether determination main controlled node according to some embodiments of the present invention breaks down Figure.
Referring to shown in Fig. 3, in step s310, pass through each service of the main controlled node into the multiple service node Node sends communication check information.For example, communication check information can be sent to all service nodes by main controlled node, and right The total degree of the communication check information issued is counted.
In step s 320, each service node that the main controlled node receives is obtained in response to the communication check information The detection confirmation message of return.In the exemplary embodiment, service node based on the received communication check information to master control section Point sends heartbeat message and detects confirmation message.It is possible to further count total time of the heartbeat message that main controlled node receives Number.
In step S330, the total degree of total degree and the communication check information based on the detection confirmation message Whether main controlled node described in ratio-dependent breaks down.
The ratio of the total degree of communication check information and the total degree of detection confirmation message in the predetermined time can be calculated, really Whether the fixed ratio is less than second predetermined value, the second predetermined value can according to the quantity of the service node in distributed system with And the processing capacity of main controlled node is set.If it is determined that the ratio is less than the second predetermined value, it is determined that main controlled node hair Raw failure.
For example, if second predetermined value is 80%, main controlled node receives one after issuing a communication detection information Corresponding heartbeat message is considered as and communicates successfully, do not receive a correspondence after main controlled node issues a communication detection information Heartbeat message, then be considered as Communications failure.Such as in 15 minutes main controlled node to all service nodes it is accumulative have sent 100 it is logical Detection information is interrogated, 50 heartbeat messages are received only, the ratio that is properly received is 50%, less than presetting communication success rates 80%, show that main controlled node is in malfunction at this time.
In addition, in an embodiment of the present invention, additionally providing a kind of information processing unit.Referring to shown in Fig. 4, at the information It manages device 400 and is applied to the distributed system with multiple service nodes, which may include:It obtains single Member 410, receiving unit 420, judging unit 430 and removal unit 440.Wherein, acquiring unit 410 is for obtaining comprising described The link information table of the link information of main controlled node in multiple service nodes and the distributed system;Receiving unit 420 is used The heartbeat message that each service node is sent to the main controlled node in the multiple service node of reception;Judging unit 430 is used In judging whether the service node and the connection of the main controlled node break down based on the heartbeat message;Remove unit 440 from the link information table for when determining that connection is broken down, then removing the link information of the service node.
In some embodiments, aforementioned schemes are based on, acquiring unit 410 includes:Link information acquiring unit, for obtaining The link information of main controlled node in the multiple service node and the distributed system;Information table establishes unit, is used for base The link information table is established in the link information, and the link information table is refreshed with predetermined time interval.
In some embodiments, aforementioned schemes are based on, judging unit 430 is configured as:Obtain the main controlled node response In the confirmation message that the heartbeat message is returned to the service node;Judge the number and the confirmation letter of the heartbeat message Whether the difference of the number of breath is greater than first predetermined value;If it is determined that be greater than the first predetermined value, it is determined that the service node with The connection of the main controlled node is broken down.
In some embodiments, aforementioned schemes are based on, the information processing unit 400 further includes:Transmission unit, for leading to It crosses each service node of the main controlled node into the multiple service node and sends communication check information;Confirmation message obtains single Member confirms for obtaining each service node that the main controlled node receives in response to the detection that the communication check information returns Information;Determination unit, the ratio of the total degree for total degree and the communication check information based on the detection confirmation message Example determines whether the main controlled node breaks down.
In some embodiments, aforementioned schemes are based on, determination unit is configured as:Count the total of the communication check information The total degree of number and the detection confirmation message;Judge in the predetermined time total degree of the detection confirmation message and described logical Believe whether the ratio of the total degree of detection information is less than second predetermined value;If it is determined that being less than the second predetermined value, it is determined that institute Main controlled node is stated to break down.
In some embodiments, aforementioned schemes are based on, the information processing unit 400 is configured as:The service is saved The link information of point is determined and is connect in the link information table with the service node before removing in the link information table Another service node;Data on the service node are loaded onto another service node.
In some embodiments, aforementioned schemes are based on, the information processing unit further includes:Information table transmission unit is used In after refreshing the link information table, each service node into the link information table sends the connection after refreshing Information table.
Each functional module and above- mentioned information processing side due to the information processing unit 400 of example embodiments of the present invention The step of example embodiment of method, is corresponding, therefore details are not described herein.
In an exemplary embodiment of the present invention, a kind of electronic equipment that can be realized the above method is additionally provided.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the electronic equipment for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.The computer system 500 of electronic equipment shown in Fig. 5 is only an example, should not be to the embodiment of the present invention Function and use scope bring any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM 503, it is also stored with various programs and data needed for system operatio.CPU 501, ROM 502 and RAM 503 is connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to bus 504。
I/O interface 505 is connected to lower component:Importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, according to an embodiment of the invention, may be implemented as computer above with reference to the process of flow chart description Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 509, and/or from detachable media 511 are mounted.When the computer program is executed by central processing unit (CPU) 501, executes and limited in the system of the application Above-mentioned function.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part realizes that described unit also can be set in the processor.Wherein, the title of these units is in certain situation Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment. Above-mentioned computer-readable medium carries one or more program, when the electronics is set by one for said one or multiple programs When standby execution, so that the electronic equipment realizes such as above-mentioned information processing method as described in the examples.
For example, the electronic equipment may be implemented as shown in Figure 1:Step S110, obtaining includes the multiple service The link information table of the link information of main controlled node in node and the distributed system;Step S120 is received the multiple The heartbeat message that each service node is sent to the main controlled node in service node;Step S130 is sentenced based on the heartbeat message Whether the connection of the service node and the main controlled node of breaking breaks down;Step S140, if it is determined that connection is broken down, then The link information of the service node is deleted from the link information table.
It should be noted that although being referred to several modules for acting the device executed in the above detailed description Or unit, but this division is not enforceable.In fact, embodiment according to the present invention, above-described two Or more the feature and function of module or unit can be embodied in a module or unit.Conversely, above-described One module or the feature and function of unit can be to be embodied by multiple modules or unit with further division.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, touch control terminal or network equipment etc.) executes embodiment according to the present invention Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of information processing method, applied to the distributed system with multiple service nodes, which is characterized in that including:
Obtain the link information of the link information comprising the main controlled node in the multiple service node and the distributed system Table;
Receive the heartbeat message that each service node is sent to the main controlled node in the multiple service node;
Judge whether the service node and the connection of the main controlled node break down based on the heartbeat message;
If it is determined that connection is broken down, then the link information of the service node is deleted from the link information table.
2. information processing method according to claim 1, which is characterized in that obtaining includes the multiple service node and institute The link information table of the link information of the main controlled node in distributed system is stated, including:
Obtain the link information of the main controlled node in the multiple service node and the distributed system;
The link information table is established based on the link information, and the link information table is refreshed with predetermined time interval.
3. information processing method according to claim 1, which is characterized in that judge the service based on the heartbeat message Whether the connection of node and the main controlled node breaks down, including:
Obtain the confirmation message that the main controlled node is returned in response to the heartbeat message to the service node;
Judge whether the difference of the number of the heartbeat message and the number of the confirmation message is greater than first predetermined value;
If it is determined that being greater than the first predetermined value, it is determined that the connection of the service node and the main controlled node is broken down.
4. information processing method according to claim 1, which is characterized in that the information processing method further includes:
Communication check information is sent by each service node of the main controlled node into the multiple service node;
Obtain the detection confirmation letter that each service node that the main controlled node receives is returned in response to the communication check information Breath;
Master control described in the ratio-dependent of the total degree of total degree and the communication check information based on the detection confirmation message Whether node breaks down.
5. information processing method according to claim 4, which is characterized in that the total degree based on the detection confirmation message Whether main controlled node described in the ratio-dependent with the total degree of the communication check information breaks down, including:
Count the total degree of the communication check information and the total degree of the detection confirmation message;
Judging the ratio of the total degree of the total degree and communication check information of the detection confirmation message in the predetermined time is It is no to be less than second predetermined value;
If it is determined that being less than the second predetermined value, it is determined that the main controlled node breaks down.
6. information processing method according to claim 1, which is characterized in that by the link information of the service node from institute It states before being removed in link information table, the information processing method further includes:
Determine another service node connecting in the link information table with the service node;
Data on the service node are loaded onto another service node.
7. information processing method according to any one of claim 1 to 6, which is characterized in that the information processing method Further include:
After refreshing the link information table, each service node into the link information table sends the company after refreshing Connect information table.
8. a kind of information processing unit, applied to the distributed system with multiple service nodes, which is characterized in that including:
Acquiring unit is believed for obtaining the connection comprising the main controlled node in the multiple service node and the distributed system The link information table of breath;
Receiving unit, for receiving the heartbeat letter that each service node is sent to the main controlled node in the multiple service node Breath;
Judging unit, for judging whether the service node and the connection of the main controlled node occur based on the heartbeat message Failure;
Unit is removed, for when determining that connection is broken down, then believing the link information of the service node from the connection It is removed in breath table.
9. a kind of electronic equipment, which is characterized in that including:
Processor;And
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor The information processing method as described in any one of claims 1 to 7 is realized when row.
10. a kind of computer readable storage medium, is stored thereon with computer program, the computer program is executed by processor Information processing method of the Shi Shixian as described in any one of claims 1 to 7.
CN201810577765.XA 2018-06-05 2018-06-05 Information processing method, information processing device, electronic equipment and storage medium Active CN108833205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810577765.XA CN108833205B (en) 2018-06-05 2018-06-05 Information processing method, information processing device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810577765.XA CN108833205B (en) 2018-06-05 2018-06-05 Information processing method, information processing device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108833205A true CN108833205A (en) 2018-11-16
CN108833205B CN108833205B (en) 2022-03-29

Family

ID=64144341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810577765.XA Active CN108833205B (en) 2018-06-05 2018-06-05 Information processing method, information processing device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108833205B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113412A (en) * 2019-04-30 2019-08-09 北京奇艺世纪科技有限公司 A kind of method of data synchronization and device
CN110458582A (en) * 2019-01-29 2019-11-15 深圳市智税链科技有限公司 Method for processing business, device, medium and electronic equipment based on block catenary system
CN110535720A (en) * 2019-08-20 2019-12-03 新华三技术有限公司合肥分公司 A kind of BFD multi-hop detection method and device
CN111342986A (en) * 2018-12-19 2020-06-26 杭州海康威视系统技术有限公司 Distributed node management method and device, distributed system and storage medium
CN113411237A (en) * 2021-08-18 2021-09-17 成都丰硕智能数字科技有限公司 Method, storage medium and system for detecting terminal state with low delay

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012071695A1 (en) * 2010-11-29 2012-06-07 华为技术有限公司 Node fault processing method, system and related device
CN106020977A (en) * 2016-05-16 2016-10-12 深圳市中业智能系统控制有限公司 Distributed task scheduling method and apparatus used for monitoring system
CN106411659A (en) * 2016-11-29 2017-02-15 福建中金在线信息科技有限公司 Business data monitoring method and apparatus
CN106533798A (en) * 2016-12-15 2017-03-22 北京小米移动软件有限公司 Detection method and device
CN107294799A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind for the treatment of method and apparatus of distributed system interior joint

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012071695A1 (en) * 2010-11-29 2012-06-07 华为技术有限公司 Node fault processing method, system and related device
CN107294799A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind for the treatment of method and apparatus of distributed system interior joint
CN106020977A (en) * 2016-05-16 2016-10-12 深圳市中业智能系统控制有限公司 Distributed task scheduling method and apparatus used for monitoring system
CN106411659A (en) * 2016-11-29 2017-02-15 福建中金在线信息科技有限公司 Business data monitoring method and apparatus
CN106533798A (en) * 2016-12-15 2017-03-22 北京小米移动软件有限公司 Detection method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111342986A (en) * 2018-12-19 2020-06-26 杭州海康威视系统技术有限公司 Distributed node management method and device, distributed system and storage medium
CN110458582A (en) * 2019-01-29 2019-11-15 深圳市智税链科技有限公司 Method for processing business, device, medium and electronic equipment based on block catenary system
CN110458582B (en) * 2019-01-29 2023-12-12 深圳市智税链科技有限公司 Business processing method, device, medium and electronic equipment based on block chain system
CN110113412A (en) * 2019-04-30 2019-08-09 北京奇艺世纪科技有限公司 A kind of method of data synchronization and device
CN110535720A (en) * 2019-08-20 2019-12-03 新华三技术有限公司合肥分公司 A kind of BFD multi-hop detection method and device
CN110535720B (en) * 2019-08-20 2022-01-25 新华三技术有限公司合肥分公司 BFD multi-hop detection method and device
CN113411237A (en) * 2021-08-18 2021-09-17 成都丰硕智能数字科技有限公司 Method, storage medium and system for detecting terminal state with low delay
CN113411237B (en) * 2021-08-18 2021-11-30 成都丰硕智能数字科技有限公司 Method, storage medium and system for detecting terminal state with low delay

Also Published As

Publication number Publication date
CN108833205B (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN108833205A (en) Information processing method, device, electronic equipment and storage medium
CN106130882B (en) The method and apparatus for being used for transmission message
CN109949111B (en) Electronic bill identification distribution method, electronic bill generation method, device and system
US8966039B1 (en) End-to-end communication service monitoring and reporting
CN110365752A (en) Processing method, device, electronic equipment and the storage medium of business datum
CN108304250A (en) Method and apparatus for the node for determining operation machine learning task
CN108897607A (en) Message treatment method, device, electronic equipment and storage medium
CN109783151B (en) Method and device for rule change
CN110351366A (en) A kind of service scheduling method of Internet application, system and computer readable storage medium
CN110120961A (en) A kind of method of Distributed Services cluster and its route synchronization
CN105930249B (en) Using monitoring method and device
CN109600429A (en) Service shunting method, device, electronic equipment and storage medium
CN112333249A (en) Business service system and method
CN110008050A (en) Method and apparatus for handling information
CN109685358B (en) Cleaning task generation method, device, medium and electronic equipment
CN112860504A (en) Monitoring method and device, computer storage medium and electronic equipment
CN109600295A (en) Notification bar information push method, device, medium and electronic equipment
CN109873861A (en) The exchange method and device, storage medium and electronic equipment of transregional piece of chain node
US11651305B2 (en) Achieving feasibility of optimization constraints
WO2024066374A1 (en) Service degradation method and apparatus, device, computer-readable medium and program product
CN108874531A (en) Method, apparatus, system and electronic equipment for the service of fusing
CN114785861B (en) Service request forwarding system, method, computer equipment and storage medium
CN110347467A (en) A kind of data request processing method, apparatus, terminal device and storage medium
CN110166835A (en) Page display method, device and storage medium
CN115187364A (en) Method and device for monitoring deposit risk under bank distributed scene

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