CN107404412A - A kind of switching method of server, device, system and electronic equipment - Google Patents
A kind of switching method of server, device, system and electronic equipment Download PDFInfo
- Publication number
- CN107404412A CN107404412A CN201710816869.7A CN201710816869A CN107404412A CN 107404412 A CN107404412 A CN 107404412A CN 201710816869 A CN201710816869 A CN 201710816869A CN 107404412 A CN107404412 A CN 107404412A
- Authority
- CN
- China
- Prior art keywords
- server
- health value
- health
- service
- master server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
Abstract
The application provides a kind of switching method of server, device, system and electronic equipment, by the master server health value that can reflect current service ability to being got from master server with carrying out numerical values recited judgement from server health value, it can know whether the service ability of master server is less than the service ability from server, and then when judged result is that master server health value is less than from server health value, generate server handover information, and it is sent to for controlling industrial client, so that the client is led, from the handover operation between server;It can be seen that, the health value of server service ability will can be reflected as criterion, can accurately know the current service ability for master server whether occur be less than from the server-capabilities of server the problem of, it is used to control industrial client to inform in time, ensure that client server higher with service ability all the time is connected, reduce as harmful effect caused by production process.
Description
Technical field
The present invention relates to server redundancy technical field, is to be related to a kind of switching method of server, dress in particular
Put, system and electronic equipment.
Background technology
In the industrial production, in order to ensure the real-time production stability and data safety of the industrial client of control
Property, dual-computer redundancy scheme is generally used to it, i.e., using two-server, one is master server, and one is from server.Just
Often during work, control industrial client to be connected with master server, carry out data transmission, when the connection of master server occurs
When problem or machine failure, it can just use from server.
At present, it is to only have to control the method switched between master and slave server used by industrial client
When the connection of master server goes wrong either machine failure, it can just switch and be connected to from server, but in master server
Connection it is normal and under conditions of there is not machine failure, once the partial service in master server, which there is a problem, makes it
The service performance of itself be less than from server when, cause using existing server switching method occur control it is industrial
Client for a long time can not be in normal use master server partial service, have a strong impact on the property for controlling industrial client
Can, and then bring certain threat to whole production process.
The content of the invention
In view of this, the invention provides a kind of switching method of server, device, system and electronic equipment, solve
Control the master server of industrial client connection service ability be less than from the service ability of server the problem of, effectively
Avoid producing threat to production process.
To achieve the above object, the present invention provides following technical scheme:
A kind of switching method of server, applied to electronic equipment, including:
When master server and it is normal from the network connection between server when, obtain master server from the master server
Health value from server health value, the master server health value for foundation master server current service ability with generating, institute
It is to be generated according to from server current service ability to state from server health value;
It is described from server health value to judge whether the master server health value is less than;
If the master server health value, from server health value, generates server handover information, and send less than described
To client, the client is used to control industrial production.
Preferably, the switching method also includes:
When master server and it is abnormal from the network connection between server when, the master is obtained from the master server
Server health value;
It is described from server health value from the acquisition from server, and return to the judgement master server health
Value whether be less than it is described from server health value the step for.
Preferably, the master server health value includes:
Computer hardware health value, operating system health value and the industry control service health value superposition calculation of the master server
Health value summation.
Preferably, it is described to include from server health value:
The computer hardware health value, operating system health value and industry control from server services health value superposition calculation
Health value summation.
A kind of switching device of server, applied to electronic equipment, including:
First acquisition module, for when master server and it is normal from the network connection between server when, from the main clothes
It is engaged in obtaining master server health value in device and from server health value, the master server health value is current according to master server
Service ability generation, it is described from server health value be according to from server current service ability generation;
Judge module, for judging it is described from server health value whether the master server health value is less than;
Sending module, if being cut for the master server health value less than described from server health value, generation server
Information is changed, and is sent to client, the client is used to control industrial production.
Preferably, the switching device also includes:
Second acquisition module, for when master server and it is abnormal from the network connection between server when, from the master
The master server health value is obtained in server;
3rd acquisition module, for described from server health value from the acquisition from server;
Accordingly, the judge module, be additionally operable to obtain from the master server in second acquisition module described in
Master server health value, and the 3rd acquisition module is described after server health value from the acquisition from server,
It is described from server health value to judge whether the master server health value is less than.
Preferably, the master server health value includes:
Computer hardware health value, operating system health value and the industry control service health value superposition calculation of the master server
Health value summation.
Preferably, it is described to include from server health value:
The computer hardware health value, operating system health value and industry control from server services health value superposition calculation
Health value summation.
A kind of switching system of server, including:
From server, master server, electronic equipment and client;
It is described from server, for generating from server health value, and send described from server health value to the master
Server, it is described from server health value be from the generation of server current service ability according to described;
The master server, it is described from server health value for receiving, master server health value is generated, and described in sending
Master server health value and described from server health value to the electronic equipment, the master server health value are according to described in
The generation of master server current service ability;
The electronic equipment, for when the master server and it is described normal from the network connection between server when, from
The master server health value is received in the master server with described from server health value, judges the master server health
It is described from server health value whether value is less than, if the master server health value be less than it is described from server health value, generation
Server handover information, and it is sent to the client;
The client, for receiving the server handover information, and carry out server handover operation.
Preferably, it is described to be generated from server from server health value, it is specifically used for:
The computer hardware health degree from server is obtained, it is described to include from the computer hardware health degree of server
CPU error rates health degree, CPU usage health degree, disk error rate health degree, disk surplus health degree and memory usage
Any one or more combination in health degree;
The computer hardware health degree got is weighted, generates computer hardware health value;
The operating system health degree from server is obtained, the operating system health degree from server includes long-range
Invocation of procedure health degree, Remote Procedure Call Locator service healthiness, the service of remote login table, work station service healthiness and
Any one or more combination in DCOM triggering service healthiness;
The operating system health degree got is weighted, generates operating system health value;
The industry control service healthiness from server is obtained, the industry control service healthiness from server includes real-time
Data, services health degree, OPC service healthiness, historical trend service healthiness, history alert service health degree and SOE services are strong
Any one or more combination in Kang Du;
The industry control service healthiness got is weighted, generation industry control service health value;
By the computer hardware health value, operating system health value and industry control service health value is added, generation described in from
Server health value.
Preferably, the master server generation master server health value, is specifically used for:
The computer hardware health degree of the master server is obtained, the computer hardware health degree of the master server includes
CPU error rates health degree, CPU usage health degree, disk error rate health degree, disk surplus health degree and memory usage
Any one or more combination in health degree;
The computer hardware health degree got is weighted, generates computer hardware health value;
The operating system health degree of the master server is obtained, the operating system health degree of the master server is included remotely
Invocation of procedure health degree, Remote Procedure Call Locator service healthiness, the service of remote login table, work station service healthiness and
Any one or more combination in DCOM triggering service healthiness;
The operating system health degree got is weighted, generates operating system health value;
The industry control service healthiness of the master server is obtained, the industry control service healthiness of the master server is included in real time
Data, services health degree, OPC service healthiness, historical trend service healthiness, history alert service health degree and SOE services are strong
Any one or more combination in Kang Du;
The industry control service healthiness got is weighted, generation industry control service health value;
The computer hardware health value, operating system health value and industry control service health value are added, generate the master
Server health value.
Understood via above-mentioned technical scheme, compared with prior art, a kind of switching method of server of present invention offer,
Device, system and electronic equipment, pass through the master server that can reflect current service ability to being got from master server
Health value and the judgement that numerical values recited is carried out from server health value, can know whether the service ability of current master server is low
In the service ability from server, and then when judged result is that master server health value is less than from server health value, in time
Server handover information is generated, and is sent to for controlling industrial client, so that the client carries out master and slave service
Handover operation between device;It can be seen that using the health value that can reflect server service ability as criterion, can accurately obtain
Know the current service ability for master server whether occur be less than from the server-capabilities of server the problem of, to inform use in time
In the industrial client of control, it is ensured that client server higher with service ability all the time is connected, and reduces indirectly
For harmful effect caused by production process.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of method flow diagram of the switching method of server provided in an embodiment of the present invention;
Fig. 2 is the method flow diagram of the switching method of another server provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of the switching device of server provided in an embodiment of the present invention;
Fig. 4 is the structural representation of the switching device of another server provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of the switching system of server provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of switching method of server, applied to electronic equipment, refers to accompanying drawing 1, institute
The method of stating specifically includes following steps:
S101:When master server and it is normal from the network connection between server when, from the master server obtain master
Server health value from server health value, the master server health value for foundation master server current service ability with generating
, it is described from server health value be according to from server current service ability generation;
Specifically, when master server and it is normal from the network connection between server when, main clothes are obtained from master server
Device health value of being engaged in from server health value.That is, data transmission path between master server and electronic equipment be present, with
Just the electronic equipment obtains master server health value from master server, meanwhile, master server between server also with existing
Data transmission path, so as to carry out the real-time Transmission of the data related to health value by network.Therefore, electronic equipment is worked as
Determine master server and from the network connection between server it is normal when, electronic equipment can be obtained directly from master server
To the master server health value of master server current service ability can be reflected, and can reflect from server current service energy
Power from server health value, effectively reduce electronic equipment obtain master server health value with from needed for server health value
Time value.
Wherein, electronic equipment determine master server and from the normal mode of network connection between server can be electronics
Equipment is obtaining master server health value with before server health value, first obtaining and being related to from master server from master server
The whether normal data message of network connection between master and slave server, so that between knowing current time master and slave server in time
Whether network connection is unobstructed, and then judges whether to continue executing with from master server and obtain master server health value with being good for from server
The step for health value, to avoid not obtaining from server health value from master server, or get healthy from server
Value can not reflect the service ability from server current time, and then cause follow-up server handoff procedure to misdeem
By mistake.
Electronic equipment involved by the embodiment of the present invention can be used to control industrial computer, notebook computer
Etc. equipment.
S102:It is described from server health value to judge whether the master server health value is less than, if so, then performing
S103, if it is not, then performing S104;
Specifically, the master and slave respective health value of server can reflect that the service ability of current server is strong and weak, from number
According in size to master server health value compared with from server health value, can quickly and accurately judge currently with
Client is connected, and for the service ability of master server of transmitting data, whether Yin Qinei partial service goes wrong and is less than
From the service ability of server.
S103:Server handover information is generated, and is sent to client, the client is used to control industrial production;
Specifically, when master server health value is less than from server health value, it was demonstrated that the current service energy of master server
Power has been less than the current service ability from server, now, the server handover information of generation is sent to client, is advantageous to
Client carries out the handover operation between master and slave server in time, so as to service ability is higher is connected from server, to enter
Row data transfer.
S104:Terminate;
Specifically, when master server health value be more than or equal to from server health value when, it was demonstrated that master server it is current
Service ability remains above or equal to the current service ability from server, now, electronic equipment only needs to wait subsequent time
Master server health value with from server health value, to carry out judgement operation again.
The switching method of a kind of server disclosed in the embodiment of the present invention, applied to electronic equipment, by from main clothes
The master server health value that can reflect current service ability got in business device is big with carrying out numerical value from server health value
Small judgement, can know whether the service ability of current master server is less than the service ability from server, and then judge
As a result for master server health value be less than from server health value when, generate server handover information in time, and be sent to and be used for
Industrial client is controlled, so that the client carries out the handover operation between master and slave server;It can be seen that can be anti-
The health value of server service ability is reflected as criterion, can accurately know currently the service energy of master server whether occur
Power be less than from the server-capabilities of server the problem of, so as to inform in time be used for control industrial client, it is ensured that should
Client server higher with service ability all the time is connected, and reduces indirectly as harmful effect caused by production process.
On the basis of embodiment corresponding to above-mentioned accompanying drawing 1, the embodiment of the invention discloses the switching of another server
Method, accompanying drawing 2 is referred to, methods described specifically includes following steps:
S201:When master server and it is abnormal from the network connection between server when, obtained from the master server
The master server health value;
Specifically, when electronic equipment judge master server and it is abnormal from the network connection between server when, it is necessary to
Respectively with master server, from data transmission path is established between server, to get respective health value in time.
Wherein, electronic equipment determine master server and from the normal mode of network connection between server can be electronics
Equipment first obtains from master server is related to the whether normal data message of network connection between master and slave server, and according to obtaining
When the data message got knows that network connection is obstructed between current time master and slave server in time, itself and main service are established
Data transmission path between device, for obtaining master server health value, meanwhile, it is established with being passed from the data between server
Defeated path, for obtaining from server health value, and then avoid can not from master server obtain from server health value the problem of
Occur.
S202:It is described from server health value from the acquisition from server.
, can be with it should be noted that execution sequencing this programme between step S201 and step S202 does not limit
It is that step S201 performs prior to step S202 or step S202 performs prior to step S201, can also be step S201
Performed simultaneously with step S202.
S203:It is described from server health value to judge whether the master server health value is less than, if so, then performing
S204, if it is not, then performing S205.
S204:Server handover information is generated, and is sent to client, the client is used to control industrial production.
S205:Terminate.
The switching method of a kind of server disclosed in the embodiment of the present invention, applied to electronic equipment, by main service
Device and from the network connection between server it is abnormal when, be good for respectively from master server with each obtaining master server from server
Health value and from server health value, so as to effectively prevent because between master and slave server network connection it is abnormal caused by from
Server can not in time by being transferred to from server health value on master server the problem of, solve indirectly electronic equipment can not and
The master server health value and be made whether that the judgement of switching server operates from server health value that Shi Liyong is got.
Optionally, in another embodiment provided by the invention, the master server health value includes:
Computer hardware health value, operating system health value and the industry control service health value superposition calculation of the master server
Health value summation.
It should be noted that the computer hardware health value of master server can reflect the computer hardware of master server
Service ability is strong and weak, and the operating system health value of master server can reflect that the operating system ability of master server is strong
Weak, the industry control service health value of master server can reflect that the service ability in terms of the industry control service of master server is strong and weak, because
This, services these three aspects by the computer hardware of master server, operating system and industry control and is combined, can accurately reflect
It is strong and weak to go out the current service ability of the master server.That is, computer hardware health value, operating system by master server
Health value and the health value summation of industry control service health value superposition calculation participate in follow-up judgement behaviour as master server health value
Make, it can be ensured that the degree of accuracy of server handover information, avoid client from making a mistake the phenomenon of switching.
Wherein, the computer hardware health value of master server can be according to CPU error rates health degree, the CPU of master server
In utilization rate health degree, disk error rate health degree, disk surplus health degree and memory usage health degree any one or
Multinomial combination and calculate acquisition;
The operating system health value of master server can be according to remote procedure call health degree, the remote process of master server
Call and appoint in locator service health degree, the service of remote login table, work station service healthiness and DCOM triggering service healthiness
Anticipate one or more combinations and calculate acquisition;
The industry control service health value of master server can service according to Real-time Data Service health degree, the OPC of master server
It is any one or more in health degree, historical trend service healthiness, history alert service health degree and SOE service healthiness
Combine and calculate and obtain.
Optionally, it is described to include from server health value in another embodiment provided by the invention:
The computer hardware health value, operating system health value and industry control from server services health value superposition calculation
Health value summation.
It should be noted that the computer hardware from server can be reflected from the computer hardware health value of server
Service ability is strong and weak, can reflect from the operating system health value of server strong from the operating system ability of server
It is weak, it can reflect that the service ability in terms of the industry control service of server is strong and weak from the industry control service health value of server, because
This, is combined in terms of servicing these three from the computer hardware of server, operating system and industry control, can accurately reflect
It is strong and weak from the current service ability of server to go out this.That is, by from computer hardware health value, the operating system of server
Health value and the health value summation of industry control service health value superposition calculation are used as from server health value, participate in follow-up judgement behaviour
Make, it can be ensured that the degree of accuracy of server handover information, avoid client from making a mistake the phenomenon of switching.
Wherein, can be according to CPU error rates health degree, the CPU from server from the computer hardware health value of server
In utilization rate health degree, disk error rate health degree, disk surplus health degree and memory usage health degree any one or
Multinomial combination and calculate acquisition;
Can be according to remote procedure call health degree, the remote process from server from the operating system health value of server
Call and appoint in locator service health degree, the service of remote login table, work station service healthiness and DCOM triggering service healthiness
Anticipate one or more combinations and calculate acquisition;
It can be serviced from the industry control service health value of server according to the Real-time Data Service health degree from server, OPC
It is any one or more in health degree, historical trend service healthiness, history alert service health degree and SOE service healthiness
Combine and calculate and obtain.
The embodiment of the invention discloses a kind of switching device of server, applied to electronic equipment, refers to accompanying drawing 3, bag
Include:
First acquisition module 301, for when master server and it is normal from the network connection between server when, from the master
Master server health value is obtained in server and from server health value, the master server health value is to work as according to master server
The generation of preceding service ability, it is described from server health value be according to from the generation of server current service ability;
Judge module 302, for judging it is described from server health value whether the master server health value is less than;
Sending module 303, if being less than for the master server health value described from server health value, generation server
Handover information, and client is sent to, the client is used to control industrial production.
A kind of switching device of server disclosed in the embodiment of the present invention, applied to electronic equipment, passes through judge module
What 302 pair of first acquisition module 301 was got from master server can reflect the master server health value of current service ability
Judgement with carrying out numerical values recited from server health value, can know whether the service ability of current master server is less than from clothes
The service ability of business device, and then when judged result is that master server health value is less than from server health value, by sending module
303 generation server handover informations, and being sent to for controlling industrial client in time, so that the client is carried out
Handover operation between master and slave server;It can be seen that will can reflect the health value of server service ability as criterion,
Can accurately know the current service ability for master server whether occur be less than from the server-capabilities of server the problem of, so as to
To inform in time for controlling industrial client, it is ensured that client server higher with service ability all the time is connected,
Reduce indirectly as harmful effect caused by production process.
It should be noted that master server health value in embodiment corresponding to above-mentioned accompanying drawing 3 and from server health value
Concrete composition can be found in related narration content in embodiment corresponding to the above method, will not be repeated here.
The course of work of modules provided in an embodiment of the present invention, the method flow diagram corresponding to accompanying drawing 1 is refer to, had
Body running process repeats no more.
On the basis of embodiment corresponding to above-mentioned accompanying drawing 1, the embodiment of the invention discloses the switching of another server
Device, applied to electronic equipment, accompanying drawing 4 is referred to, including:
Second acquisition module 304, the 3rd acquisition module 305, judge module 302 and sending module 303;
Wherein, second acquisition module 304, for when master server and abnormal from the network connection between server
When, the master server health value is obtained from the master server;
3rd acquisition module 305, for described from server health value from the acquisition from server;
Accordingly, the judge module 302, it is additionally operable to obtain from the master server in second acquisition module 304
The master server health value is taken, and the 3rd acquisition module 305 is good for from the acquisition from server is described from server
After health value, it is described from server health value to judge whether the master server health value is less than;
A kind of switching device of server disclosed in the embodiment of the present invention, applied to electronic equipment, obtained by second
The acquisition module 305 of module 304 and the 3rd master server and it is abnormal from the network connection between server when, respectively from main clothes
Business device is with each obtaining master server health value from server and from server health value, so as to effectively prevent because of master and slave clothes
Caused by network connection is abnormal between business device master server can not will be transferred to from server from server health value in time
The problem of upper, solving electronic equipment indirectly can not be in time using the master server health value got and from server health value
It is made whether the judgement operation of switching server.
The course of work of modules provided in an embodiment of the present invention, the method flow diagram corresponding to accompanying drawing 2 is refer to, had
Body running process repeats no more.
The embodiment of the invention discloses a kind of switching system of server, refers to accompanying drawing 5, including:
From server 401, master server 402, electronic equipment 403 and client 404;
It is described from server 401, for generating from server health value, and send described from server health value to described
Master server 402, it is described from server health value be from the generation of the current service ability of server 401 according to described;
It should be noted that data transmission path between server 401 and master server 402 be present, and in the number
According to transmission channel it is unobstructed when, from server 401 can will in real time caused by from server health value be sent to master server 402 in time
On.
The master server 402, it is described from server health value for receiving, master server health value is generated, and send
The master server health value and described from server health value to the electronic equipment 403, the master server health value is
According to the current service ability of master server 402 generation;
It should be noted that master server 402 is between server 401 both with establishing data transmission path, for connecing
Receive from server 401 send from server health value;Data transmission path is also established between electronic equipment 403, is used
In the master server health value of generation is sent jointly into electronic equipment 403 from server health value with what is received, so as to electricity
Sub- equipment 403 is made regarding whether to perform the correlated judgment operation of master and slave server switching according to the health value received.
The electronic equipment 403, for when the master server 402 and the network connection between server 401
When normal, the master server health value is received from the master server 402 with described from server health value, described in judgement
It is described from server health value whether master server health value is less than, if the master server health value be less than it is described from server
Health value, server handover information is generated, and be sent to the client 404.
It should be noted that electronic equipment 403 determine master server 402 and from the network connection between server 401 just
Normal mode can be electronic equipment 403 from master server 402 obtain master server health value with from server health value it
Before, first obtained from master server 402 and be related to the whether normal data message of network connection between master and slave server, so as in time
Know current time master server 402 and whether unobstructed from network connection between server 401, and then judge whether to continue executing with
The step for master server health value is with from server health value is obtained from master server 402, so that avoid can not be from master server
402 obtain from server health value, or what is got can not reflect from the current time of server 401 from server health value
Service ability, and then cause follow-up server handoff procedure misjudgment occur.
Wherein, client, can be by disconnecting it between master server 402 after server handover information is received
Connection, and establish its with from the connection between server 401, to realize the switching between master and slave server.
In the embodiment of the present invention, from server 401 in advance by generation can reflect its current service ability from service
Device health value is sent to master server 402, meanwhile, master server 402, which also generates one, can reflect its current service ability
Master server health value, and receive from server 401 send after server health value, in time by the master server
Health value and it is sent collectively to from server health value on electronic equipment 403, so that electronic equipment 403 utilizes real-time main service
Device health value and from server health value carry out health value size judgement, so as to judge master server health value be less than from
After server health value, server handover information is generated, and is sent to client 404, so that client 404 is taken in time
Business device handover operation.
A kind of switching method of server disclosed in the embodiment of the present invention, applied to electronic equipment, passes through electronic equipment
403 pairs of master server health values that can reflect current service ability got from master server 402 from server with being good for
Health value carries out the judgement of numerical values recited, can know whether the service ability of current master server 402 is less than from server 401
Service ability, and then when judged result is that master server health value is less than from server health value, generates server in time and cut
Information is changed, and is sent to for controlling industrial client 404, so that the client 404 is carried out between master and slave server
Handover operation;It can be seen that using the health value that can reflect server service ability as criterion, can accurately know current
Whether occur master server 402 service ability be less than from the server-capabilities of server 401 the problem of, to inform use in time
In the industrial client 404 of control, it is ensured that the client 404 server higher with service ability all the time is connected, indirectly
Reduce as harmful effect caused by production process.
Optionally, the specific mistake generated from server 401 from server health value in embodiment corresponding to above-mentioned accompanying drawing 5
Journey includes:
Obtain the computer hardware health degree from server 401, the computer hardware health from server 401
Degree includes CPU error rates health degree, CPU usage health degree, disk error rate health degree, disk surplus health degree and internal memory
Any one or more combination in utilization rate health degree;
The computer hardware health degree got is weighted, generates computer hardware health value;
Obtain the operating system health degree from server 401, the operating system health degree bag from server 401
Include remote procedure call health degree (RPC health degrees), Remote Procedure Call Locator service healthiness (RPC Locator health
Degree), remote login table service (Remote Registry health degrees), work station service healthiness (Workstation health degrees)
Combination any one or more in service healthiness is triggered with DCOM;
The operating system health degree got is weighted, generates operating system health value;
Obtain the industry control service healthiness from server 401, the industry control service healthiness bag from server 401
Include Real-time Data Service health degree, OPC service healthiness, historical trend service healthiness, history alert service health degree and SOE
Any one or more combination in service healthiness;
The industry control service healthiness got is weighted, generation industry control service health value;
By the computer hardware health value, operating system health value and industry control service health value is added, generation described in from
Server health value.
It should be noted that obtain during the computer hardware health degree of server 401, can be hard according to computer
The property value of part such as CPU error rates, memory usage matched from computer hardware health degree storehouse to should computer it is hard
The health degree of the property value of part.For example, the property value of computer hardware is " disk surplus 5G ", then from computer hardware health
Correspondingly " disk surplus 5G " " disk surplus health degree 50 " is matched in degree storehouse.Wherein, computer hardware health degree storehouse
In health degree and the property value of computer hardware incidence relation be present, so as to the property value according to computer hardware, soon
Speed matches the health degree therewith with incidence relation from computer hardware health degree storehouse.
Obtain from the operating system health degree of server 401 and the process of industry control service healthiness with obtaining computer hardware
Health degree process is identical, wherein, it is behaviour to obtain used in being matched during the operating system health degree of server 401
Make system health degree storehouse, it is industry control clothes to obtain used in being matched during the industry control service healthiness of server 401
Business health degree storehouse.
During being weighted the computer hardware health degree got to generate computer hardware health value,
When computer hardware health degree includes multinomial health degree such as CPU error rates health degree and CPU usage health degree, it is necessary to will be every
The corresponding weight proportion value of one health degree is multiplied, then will carry out whole numerical value after multiplication calculating and be added to calculate to generate
Machine hardware health value.For example, computer hardware health degree include " CPU error rates health degree " and " CPU usage health degree " this
Two health degrees, corresponding weight proportion value are respectively " 20 ", " 10 ", then are weighted meter to computer hardware health degree
Calculate, be " CPU error rate health degree * 20+CPU utilization rate health degrees * 10 ", and then generate computer hardware health value.Wherein,
The weight proportion value corresponding to each single item health degree that computer hardware health degree includes can be pre-set, main to use
In expression this health degree proportion shared on computer hardware this aspect health value is embodied.
The operating system health degree got is weighted to generate the process of operating system health value, and it is right
The industry control service healthiness that gets is weighted to generate the process of industry control service health value with above-mentioned to getting
Computer hardware health degree be weighted it is identical to generate the process of computer hardware health value, wherein, operating system is good for
The weight proportion value corresponding to each single item health degree that Kang Du includes can be pre-set, and be mainly used in representing the Xiang Jian
Proportion shared on operating system this aspect health value is embodied Kang Du;The each single item health that industry control service healthiness includes
The corresponding weight proportion value of degree can be pre-set, and be mainly used in representing that this health degree services this in embodiment industry control
Shared proportion in aspect health value.
In the embodiment of the present invention, by the way that computing will be weighted respectively the computer from server 401 that calculates
Hardware health value, operating system health value and industry control service health value carry out addition calculation, it can be ensured that generation from server
Health value reflects from the current service ability power of server 401 from multidimensional angle, is carried out as Subsequent electronic equipment 403
The basis for estimation of master and slave server handover operation, based on ensuring that client 404 all the time determines the high server of service ability
Server.
Optionally, the master server 402 in embodiment corresponding to above-mentioned accompanying drawing 5 generates the specific mistake of master server health value
Journey includes:
The computer hardware health degree of the master server is obtained, the computer hardware health degree of the master server includes
CPU error rates health degree, CPU usage health degree, disk error rate health degree, disk surplus health degree and memory usage
Any one or more combination in health degree;
The computer hardware health degree got is weighted, generates computer hardware health value;
The operating system health degree of the master server is obtained, the operating system health degree of the master server is included remotely
It is invocation of procedure health degree (RPC health degrees), Remote Procedure Call Locator service healthiness (RPC Locator health degrees), remote
Journey registration table service (Remote Registry health degrees), work station service healthiness (Workstation health degrees) and DCOM
Trigger combination any one or more in service healthiness;
The operating system health degree got is weighted, generates operating system health value;
The industry control service healthiness of the master server is obtained, the industry control service healthiness of the master server is included in real time
Data, services health degree, OPC service healthiness, historical trend service healthiness, history alert service health degree and SOE services are strong
Any one or more combination in Kang Du;
The industry control service healthiness got is weighted, generation industry control service health value;
The computer hardware health value, operating system health value and industry control service health value are added, generate the master
Server health value.
It should be noted that during the computer hardware health degree of acquisition master server 402, can be hard according to computer
The property value of part such as CPU error rates, memory usage matched from computer hardware health degree storehouse to should computer it is hard
The health degree of the property value of part.For example, the property value of computer hardware is " disk surplus 5G ", then from computer hardware health
Correspondingly " disk surplus 5G " " disk surplus health degree 50 " is matched in degree storehouse.Wherein, computer hardware health degree storehouse
In health degree and the property value of computer hardware incidence relation be present, so as to the property value according to computer hardware, soon
Speed matches the health degree therewith with incidence relation from computer hardware health degree storehouse.
The operating system health degree of master server 402 and the process of industry control service healthiness are obtained with obtaining computer hardware
Health degree process is identical, wherein, obtain master server 402 operating system health degree during matched used in be grasp
Make system health degree storehouse, it is that industry control takes to obtain used in being matched during the industry control service healthiness of master server 402
Business health degree storehouse.
During being weighted the computer hardware health degree got to generate computer hardware health value,
When computer hardware health degree includes multinomial health degree such as CPU error rates health degree and CPU usage health degree, it is necessary to will be every
The corresponding weight proportion value of one health degree is multiplied, then will carry out whole numerical value after multiplication calculating and be added to calculate to generate
Machine hardware health value.For example, computer hardware health degree include " CPU error rates health degree " and " CPU usage health degree " this
Two health degrees, corresponding weight proportion value are respectively " 20 ", " 10 ", then are weighted meter to computer hardware health degree
Calculate, be " CPU error rate health degree * 20+CPU utilization rate health degrees * 10 ", and then generate computer hardware health value.Wherein,
The weight proportion value corresponding to each single item health degree that computer hardware health degree includes can be pre-set, main to use
In expression this health degree proportion shared on computer hardware this aspect health value is embodied.
The operating system health degree got is weighted to generate the process of operating system health value, and it is right
The industry control service healthiness that gets is weighted to generate the process of industry control service health value with above-mentioned to getting
Computer hardware health degree be weighted it is identical to generate the process of computer hardware health value, wherein, operating system is good for
The weight proportion value corresponding to each single item health degree that Kang Du includes can be pre-set, and be mainly used in representing the Xiang Jian
Proportion shared on operating system this aspect health value is embodied Kang Du;The each single item health that industry control service healthiness includes
The corresponding weight proportion value of degree can be pre-set, and be mainly used in representing that this health degree services this in embodiment industry control
Shared proportion in aspect health value.
In the embodiment of the present invention, by the way that computing will be weighted respectively the computer of master server 402 that calculates
Hardware health value, operating system health value and industry control service health value carry out addition calculation, it can be ensured that the master server of generation
Health value reflects that the current service ability of master server 402 is strong and weak from multidimensional angle, is carried out as Subsequent electronic equipment 403
The basis for estimation of master and slave server handover operation, based on ensuring that client 404 all the time determines the high server of service ability
Server.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (11)
- A kind of 1. switching method of server, it is characterised in that applied to electronic equipment, including:When master server and it is normal from the network connection between server when, from the master server obtain master server health Value with from server health value, the master server health value be according to the generation of master server current service ability, it is described from Server health value is to be generated according to from server current service ability;It is described from server health value to judge whether the master server health value is less than;If the master server health value, from server health value, generates server handover information, and be sent to visitor less than described Family end, the client are used to control industrial production.
- 2. switching method according to claim 1, it is characterised in that also include:When master server and it is abnormal from the network connection between server when, the main service is obtained from the master server Device health value;Obtained from server described from server health value from described, and return and described judge that the master server health value is It is no be less than it is described from server health value the step for.
- 3. switching method according to claim 1, it is characterised in that the master server health value includes:Computer hardware health value, operating system health value and the industry control of the master server service the strong of health value superposition calculation Health value summation.
- 4. switching method according to claim 1, it is characterised in that described to include from server health value:The computer hardware health value, operating system health value and industry control from server services the strong of health value superposition calculation Health value summation.
- A kind of 5. switching device of server, it is characterised in that applied to electronic equipment, including:First acquisition module, for when master server and it is normal from the network connection between server when, from the master server Middle to obtain master server health value and from server health value, the master server health value is according to master server current service Ability generation, it is described from server health value be according to from server current service ability generation;Judge module, for judging it is described from server health value whether the master server health value is less than;Sending module, if being less than for the master server health value described from server health value, generation server switching letter Breath, and client is sent to, the client is used to control industrial production.
- 6. switching device according to claim 5, it is characterised in that also include:Second acquisition module, for when master server and it is abnormal from the network connection between server when, from the main service The master server health value is obtained in device;3rd acquisition module, for described from server health value from the acquisition from server;Accordingly, the judge module, it is additionally operable to obtain the main clothes from the master server in second acquisition module Business device health value, and the 3rd acquisition module obtains described after server health value, judgement from described from server Whether the master server health value is less than described from server health value.
- 7. switching device according to claim 5, it is characterised in that the master server health value includes:Computer hardware health value, operating system health value and the industry control of the master server service the strong of health value superposition calculation Health value summation.
- 8. switching device according to claim 5, it is characterised in that described to include from server health value:The computer hardware health value, operating system health value and industry control from server services the strong of health value superposition calculation Health value summation.
- A kind of 9. switching system of server, it is characterised in that including:From server, master server, electronic equipment and client;It is described from server, for generating from server health value, and send described from server health value to the main service Device, it is described from server health value be from the generation of server current service ability according to described;The master server, it is described from server health value for receiving, master server health value is generated, and send the main clothes It is engaged in device health value and described from server health value to the electronic equipment, the master server health value is according to the main clothes Device current service of being engaged in ability generation;The electronic equipment, for when the master server and it is described normal from the network connection between server when, from described Received in master server the master server health value with it is described from server health value, judge that the master server health value is It is no be less than it is described from server health value, if the master server health value be less than it is described from server health value, generation service Device handover information, and it is sent to the client;The client, for receiving the server handover information, and carry out server handover operation.
- 10. switching system according to claim 9, it is characterised in that it is described to be generated from server from server health value, It is specifically used for:The computer hardware health degree from server is obtained, the computer hardware health degree from server includes CPU Error rate health degree, CPU usage health degree, disk error rate health degree, disk surplus health degree and memory usage are good for Any one or more combination in Kang Du;The computer hardware health degree got is weighted, generates computer hardware health value;The operating system health degree from server is obtained, the operating system health degree from server includes remote process Call health degree, Remote Procedure Call Locator service healthiness, the service of remote login table, work station service healthiness and DCOM Trigger combination any one or more in service healthiness;The operating system health degree got is weighted, generates operating system health value;The industry control service healthiness from server is obtained, the industry control service healthiness from server includes real time data Service healthiness, OPC service healthiness, historical trend service healthiness, history alert service health degree and SOE service healthiness In any one or more combination;The industry control service healthiness got is weighted, generation industry control service health value;The computer hardware health value, operating system health value and industry control service health value are added, generation is described from service Device health value.
- 11. switching system according to claim 9, it is characterised in that the master server generates master server health value, It is specifically used for:The computer hardware health degree of the master server is obtained, the computer hardware health degree of the master server includes CPU Error rate health degree, CPU usage health degree, disk error rate health degree, disk surplus health degree and memory usage are good for Any one or more combination in Kang Du;The computer hardware health degree got is weighted, generates computer hardware health value;The operating system health degree of the master server is obtained, the operating system health degree of the master server includes remote process Call health degree, Remote Procedure Call Locator service healthiness, the service of remote login table, work station service healthiness and DCOM Trigger combination any one or more in service healthiness;The operating system health degree got is weighted, generates operating system health value;The industry control service healthiness of the master server is obtained, the industry control service healthiness of the master server includes real time data Service healthiness, OPC service healthiness, historical trend service healthiness, history alert service health degree and SOE service healthiness In any one or more combination;The industry control service healthiness got is weighted, generation industry control service health value;The computer hardware health value, operating system health value and industry control service health value are added, generate the main service Device health value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710816869.7A CN107404412A (en) | 2017-09-12 | 2017-09-12 | A kind of switching method of server, device, system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710816869.7A CN107404412A (en) | 2017-09-12 | 2017-09-12 | A kind of switching method of server, device, system and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107404412A true CN107404412A (en) | 2017-11-28 |
Family
ID=60388342
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710816869.7A Pending CN107404412A (en) | 2017-09-12 | 2017-09-12 | A kind of switching method of server, device, system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107404412A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108810657A (en) * | 2018-06-15 | 2018-11-13 | 网宿科技股份有限公司 | A kind of method and system of setting video cover |
CN109151644A (en) * | 2018-09-21 | 2019-01-04 | 万魔声学科技有限公司 | The master slave mode distribution method and device of earphone |
CN111083198A (en) * | 2019-11-22 | 2020-04-28 | 浙江中控技术股份有限公司 | Communication link switching method, master domain server, slave domain server and system |
CN111090518A (en) * | 2019-12-04 | 2020-05-01 | 远景智能国际私人投资有限公司 | Edge computing equipment control method and device and storage medium |
CN111405077A (en) * | 2020-03-05 | 2020-07-10 | 深圳前海百递网络有限公司 | Domain name switching method and device, computer readable storage medium and computer equipment |
CN113849349A (en) * | 2021-09-29 | 2021-12-28 | 中国船舶重工集团公司第七0七研究所 | Method for realizing dual-computer redundancy for multiple users |
CN116366709A (en) * | 2023-05-31 | 2023-06-30 | 天翼云科技有限公司 | Connection scheduling method and system for data transmission |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139007A (en) * | 2011-12-05 | 2013-06-05 | 阿里巴巴集团控股有限公司 | Method and system for detecting application server performance |
US20160080217A1 (en) * | 2014-09-15 | 2016-03-17 | Ian Roger McHardy | Methods and Systems for Auto-Starting and Auto-Stopping Databases |
CN105871608A (en) * | 2016-03-30 | 2016-08-17 | 苏州美天网络科技有限公司 | Backup server switching system for network disaster prevention |
CN106647351A (en) * | 2016-10-19 | 2017-05-10 | 浙江中控技术股份有限公司 | Redundancy switching circuit |
CN106899370A (en) * | 2015-12-18 | 2017-06-27 | 中兴通讯股份有限公司 | A kind of clock chain circuit changing method, device and base station |
-
2017
- 2017-09-12 CN CN201710816869.7A patent/CN107404412A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139007A (en) * | 2011-12-05 | 2013-06-05 | 阿里巴巴集团控股有限公司 | Method and system for detecting application server performance |
US20160080217A1 (en) * | 2014-09-15 | 2016-03-17 | Ian Roger McHardy | Methods and Systems for Auto-Starting and Auto-Stopping Databases |
CN106899370A (en) * | 2015-12-18 | 2017-06-27 | 中兴通讯股份有限公司 | A kind of clock chain circuit changing method, device and base station |
CN105871608A (en) * | 2016-03-30 | 2016-08-17 | 苏州美天网络科技有限公司 | Backup server switching system for network disaster prevention |
CN106647351A (en) * | 2016-10-19 | 2017-05-10 | 浙江中控技术股份有限公司 | Redundancy switching circuit |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108810657A (en) * | 2018-06-15 | 2018-11-13 | 网宿科技股份有限公司 | A kind of method and system of setting video cover |
US11259063B2 (en) | 2018-06-15 | 2022-02-22 | Wangsu Science & Technology Co., Ltd. | Method and system for setting video cover |
CN109151644A (en) * | 2018-09-21 | 2019-01-04 | 万魔声学科技有限公司 | The master slave mode distribution method and device of earphone |
CN109151644B (en) * | 2018-09-21 | 2020-04-14 | 万魔声学科技有限公司 | Method and device for distributing master-slave state of earphone |
CN111083198A (en) * | 2019-11-22 | 2020-04-28 | 浙江中控技术股份有限公司 | Communication link switching method, master domain server, slave domain server and system |
CN111090518A (en) * | 2019-12-04 | 2020-05-01 | 远景智能国际私人投资有限公司 | Edge computing equipment control method and device and storage medium |
CN111405077A (en) * | 2020-03-05 | 2020-07-10 | 深圳前海百递网络有限公司 | Domain name switching method and device, computer readable storage medium and computer equipment |
CN111405077B (en) * | 2020-03-05 | 2023-02-17 | 深圳前海百递网络有限公司 | Domain name switching method and device, computer readable storage medium and computer equipment |
CN113849349A (en) * | 2021-09-29 | 2021-12-28 | 中国船舶重工集团公司第七0七研究所 | Method for realizing dual-computer redundancy for multiple users |
CN116366709A (en) * | 2023-05-31 | 2023-06-30 | 天翼云科技有限公司 | Connection scheduling method and system for data transmission |
CN116366709B (en) * | 2023-05-31 | 2023-10-10 | 天翼云科技有限公司 | Connection scheduling method and system for data transmission |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107404412A (en) | A kind of switching method of server, device, system and electronic equipment | |
CN105372534A (en) | Multi-sensor multi-parameter information intelligent integration system | |
WO2009007228A1 (en) | Identifying improper cabling of devices | |
CN101266665A (en) | Scalable distributed system supporting dynamic secure estimation and alarm of a power system | |
US20130315362A1 (en) | Nuclear digital instrumentation and control system | |
CN111901197B (en) | Ethernet interface mode detection device and detection method | |
CN105652851A (en) | Redundant automation system and method for operation thereof | |
CN102841962A (en) | Method for interacting electromagnetic-electromechanical transient hybrid real-time stimulation interface based on advanced calculation | |
CN108508459A (en) | Troubleshooting method and device, the positioning system of tuning on-line | |
CN106233666B (en) | Method and device for diagnosing transmission faults in a network according to the OPC UA standard | |
CN107251456A (en) | Method for carrying out time synchronized to the device in control network | |
CN110417761A (en) | Communication means and device based on dual-computer redundancy | |
CN102918807B (en) | Method and routing equipment for BFD session establishment | |
CN105490960A (en) | SDN configuration, and message forwarding method based on same | |
US8631174B2 (en) | Systems, methods, and apparatus for facilitating communications between an external controller and fieldbus devices | |
CN109378900A (en) | Intelligent substation switching equipment is online and throws the detection control method moved back | |
CN105334747A (en) | Ship dynamic positioning three-redundancy computer data voting synchronization method | |
CN110166322B (en) | Detection method and related device for metering automation terminal | |
CN104298538A (en) | Power scheduling training system and message processing method of core applications thereof | |
CN109444933A (en) | Positioning device and method based on big-dipper satellite | |
CN105204966B (en) | A kind of electronic equipment and information processing method | |
CN116800632A (en) | Method, apparatus and computer readable medium for measuring flow break time during path switching | |
CN102638369A (en) | Method, device and system for arbitrating main/standby switch | |
RU2450305C1 (en) | Software-hardware system for automating monitoring and control | |
CN105068516A (en) | Redundant bus management system for distributed control equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171128 |