[go: up one dir, main page]

CN105260862B - A kind of asset monitoring method and device - Google Patents

A kind of asset monitoring method and device Download PDF

Info

Publication number
CN105260862B
CN105260862B CN201510845409.8A CN201510845409A CN105260862B CN 105260862 B CN105260862 B CN 105260862B CN 201510845409 A CN201510845409 A CN 201510845409A CN 105260862 B CN105260862 B CN 105260862B
Authority
CN
China
Prior art keywords
application server
unit
standby
master
registration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510845409.8A
Other languages
Chinese (zh)
Other versions
CN105260862A (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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN201510845409.8A priority Critical patent/CN105260862B/en
Publication of CN105260862A publication Critical patent/CN105260862A/en
Application granted granted Critical
Publication of CN105260862B publication Critical patent/CN105260862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a kind of asset monitoring method and device, method includes:The fresh information that the master application server and at least one standby application server of acquisition asset monitoring platform are sent respectively;Enrollment time is found according to the location information of master application server, and is updated to newly register the time;Corresponding enrollment time is found according to the location information of at least one standby application server respectively, and will be updated to enrollment time corresponding newly register the time;If master application server becomes inactive state from active state, it then selects one of them for application server from standby application server that is registered and being in active state according to preset rules, and the standby application server of selection is labeled as master application server;Master application server confirmation message is sent to the master application server of label, so that master application server starts warning information sending function according to confirmation message, realizes the monitoring to assets.

Description

A kind of asset monitoring method and device
Technical field
The present invention relates to computer realm more particularly to a kind of asset monitoring methods and device.
Background technology
Enterprise assets maintaining-managing system (Enterprise Asset Management, EAM), it is close towards assets The general name of the Enterprise Informatization Solution of collection type (Asset-intensive) enterprise, is primarily adapted for use in asset intensive enterprise The information managements such as maintenance, maintenance, tracking to high value fixed assets.It is to improve assets availability, reduce enterprise operation Maintenance cost is target, to optimize enterprise maintenance resource as core, by information-based means, and reasonable arrangement maintenance project and correlation Resource and activity, to improve the economic benefit of enterprise and the market competitiveness of enterprise.
EAM monitor supervision platforms are a subsystems of EAM, realize monitoring to certain Asset States, for example, temperature, humidity, Voltage etc..When there is abnormality in Asset State (such as temperature be more than setting threshold value when), realize warning function, such as to Supervisor sends short message or sends the warning information such as mail.
In the prior art, in order to ensure the reliability of monitoring, the EAM monitor supervision platforms are including at least two application services Device, a wherein application server is set as master application server at least two application servers, remaining is that standby application takes Business device.The master application server and the standby application server are simultaneously monitored Asset State, but the main application Server also carries the sending warning information to supervisor when Asset State the occurs abnormal of task.However, the prior art is worked as When master application server delay machine, standby application server can not start the function of sending warning information immediately, but work as supervisor It was found that the case where master application server delay machine, and one of them is selected it to be arranged for application server the work(for sending warning information Can, which could send warning information.Due to being found from master application server delay machine to supervisor Master application server delay machine and the standby application server of startup might have the long period between sending warning information function, therefore go out The assets of existing abnormality cannot get timely processing, assets may be made to cause serious harm when serious.
Invention content
In order to solve the above-mentioned technical problem of the prior art, a kind of asset monitoring method of present invention offer and device, realize When master application server delay machine quickly starts the purpose of the transmissions warning information function of standby application server so that exception occur The assets of state obtain timely processing.
The embodiment of the invention discloses a kind of asset monitoring method, the method includes:
The update letter that the master application server and at least one standby application server of acquisition asset monitoring platform are sent respectively Breath, the master application server and at least one standby application server pre-register the registration list in data server In, the fresh information includes location information and newly registers the time, the location information indicate the master application server or The standby application server is registered in the position in the registration list;
Enrollment time corresponding with the master application server is found according to the location information of the master application server, And by the enrollment time be updated to it is described newly register the time, to confirm that the master application server is in active state;
It is found and at least one standby application according to the location information of at least one standby application server respectively Server corresponding enrollment time, and by the enrollment time be updated to it is corresponding newly register the time, with confirm described in extremely A few standby application server is in active state;
If the master application server becomes inactive state from active state, according to preset rules from registered and Select one of them for application server in the standby application server being in active state, and by the standby application service of selection Device is labeled as master application server, and the inactive state is enrollment time not obtain newer state within a preset period of time;
Master application server confirmation message is sent to the master application server of the label, so that the master application server Start warning information sending function according to the confirmation message, realizes the monitoring to assets.
Preferably, before the fresh information that the master application server for obtaining asset monitoring platform is sent, the side Method further includes:
The register information of the application server of asset monitoring platform is obtained, the register information includes the application service The mark of device and enrollment time;
The application server is registered according to the mark of the application server and login time;
If registered in the registration list only the application server, by the application server label based on answer Use server.
Preferably, the application server is carried out to register it according to the mark and login time of the application server Afterwards, the method further includes:
If other application server is also registered in the registration list, and the other application server be in it is non-live Dynamic state, then be labeled as master application server by the application server.
Preferably, the application server is carried out to register it according to the mark and login time of the application server Afterwards, the method further includes:
If being registered with master application server in the registration list, and the master application server is in active state, then The application server is labeled as standby application server.
Preferably, the IP address for being identified as the application server, the mark according to the application server Carrying out registration to the application server with login time includes:
Searched from the registration list according to the IP address of the application server it is corresponding with the IP address at least One registration record;
From at least one registration record, step on except other for registering the other application server being in active state A wherein registration record is selected to register the enrollment time of the application server in note record.
The embodiment of the invention also discloses a kind of asset monitoring device, described device includes:Information acquisition unit, main update Unit, standby updating unit, election unit and transmission unit;Wherein, described information acquiring unit respectively with the main updating unit It is connected with the standby updating unit, the main updating unit and the standby updating unit are connect with the election unit, described Election unit is connect with the transmission unit;
Described information acquiring unit, the master application server for obtaining asset monitoring platform and at least one standby application clothes The fresh information that business device is sent respectively, the master application server and at least one standby application server are pre-registered in number According in the registration list of server, the fresh information includes location information and newly registers the time, and the location information indicates The master application server or the standby application server are registered in the position in the registration list;
The main updating unit takes for being found according to the location information of the master application server with the main application Be engaged in device corresponding enrollment time, and by the enrollment time be updated to it is described newly register the time, to confirm the main application service Device is in active state;
The standby updating unit, for respectively according to the location information of at least one standby application server find with At least one standby application server corresponding enrollment time, and the enrollment time is updated to corresponding newly register Time, to confirm that at least one standby application server is in active state;
The election unit, if becoming inactive state from active state for the master application server, according to pre- If rule selects one of them for application server from standby application server that is registered and being in active state, and will choosing The standby application server selected is labeled as master application server, and the inactive state is enrollment time not in preset time period Inside obtain newer state;
The transmission unit, for sending master application server confirmation message to the master application server of the label, with So that the master application server is started warning information sending function according to the confirmation message, realizes the monitoring to assets.
Preferably, described device further includes:Acquiring unit, registration unit and the first marking unit;The acquiring unit with The registration unit connection, the registration unit are connect with first marking unit, first marking unit and the letter Cease acquiring unit connection;
The acquiring unit, the register information of the application server for obtaining asset monitoring platform, the register information It include mark and the enrollment time of the application server;
The registration unit, for according to the mark of the application server and login time to the application server into Row registration;
First marking unit, if the only application server for being registered in the registration list, by institute It states application server and is labeled as master application server.
Preferably, described device further includes:Second marking unit connects with the registration unit and described information acquiring unit It connects;
Second marking unit, if for being also registered with other application server in the registration list, and it is described its His application server is in inactive state, then the application server is labeled as master application server.
Preferably, described device further includes:Third marking unit connects with the registration unit and described information acquiring unit It connects;
The third marking unit, if for being registered with master application server, and the main application in the registration list Server is in active state, then the application server is labeled as standby application server.
Preferably, the IP address for being identified as the application server;
The registration unit includes searching unit and registration subelement;The searching unit and the registration subelement connect It connects;
The searching unit, for according to the IP address of the application server searched from the registration list with it is described Corresponding at least one registration record of IP address;
The registration subelement, for from least one registration record, except registering its being in active state A wherein registration record is selected to register the enrollment time of the application server in other registration records of his application server.
Beneficial effects of the present invention are:
The present invention by registering the master application server and at least one standby application server in data server, and with The mode of update enrollment time obtains the state of the master application server and at least one standby application server, if described Master application server becomes inactive state from active state, then registered is in active state from described according to preset rules Standby application server in select a standby application server and be labeled as master application server, and sent out to the master application server Master application server confirmation message is sent, so that the master application server opens warning information sending function, realizes and works as originally When master application server delay machine, automatically, quickly start the transmission warning information function of standby application server, so as to occur different The assets of normal state obtain timely processing, improve the safety of assets.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in application, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of flow chart of asset monitoring method embodiment provided by the invention;
Fig. 2 is master application server and at least one standby application in a kind of asset monitoring method embodiment provided by the invention The flow chart that server is registered in registration list;
Fig. 3 is a kind of structure diagram of asset monitoring device embodiment provided by the invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist The every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Embodiment of the method:
Referring to Fig. 1, which is a kind of flow chart of asset monitoring method embodiment provided by the invention.
Asset monitoring method provided in this embodiment includes the following steps:
Step S101:The master application server and at least one standby application server for obtaining asset monitoring platform are sent respectively Fresh information, the master application server and at least one standby application server pre-register stepping in data server Remember in list, the fresh information includes location information and newly registers the time, and the location information indicates the main application clothes Business device or the standby application server are registered in the position in the registration list.
In the present embodiment, the master application server of the asset monitoring platform and at least one standby application server are advance It is registered in the registration list of data server, the master application server and at least one standby application server are used to Assets are monitored.Specific enrollment process be set forth below.Each registration location all has position in the registration list Confidence cease, the location information can be line number etc. can in the registration list registration location described in unique mark letter Breath.When the master application server or at least one standby application server are registered in for the first time in the registration list, institute It states data server and sends corresponding position letter respectively to the master application server and at least one standby application server Breath, so that the master application server and at least one standby application server are sending update letter to the data server The location information can be carried when breath.The data server can be looked for by the location information in the registration list To corresponding master application server or the standby corresponding registration location of application server, and it is new by what is also carried in the fresh information Enrollment time replaces old login time.For example, the information of the registration list one application server of often row registration, it is assumed that Master application server is registered in the fifth line in the registration list in first registration, and the data server will be about " the The location information of the five-element " is sent to the master application server, when the master application server is sent to the data server When fresh information, the location information about " fifth line " and new login time 8 are carried in the fresh information:00, the number Fifth line is found from the registration list according to server, and by the old login time 7 in fifth line:50 replace with 8:00.Again For example, it is assumed that standby application server A is registered in the 8th row in the registration list, the data server in first registration It will be sent to the standby application server A about the location information of " the 8th row ", when the standby application server is to the data When server sends fresh information, location information and the new login time 9 about " the 8th row " are carried in the fresh information: 10, the data server finds the 8th row after receiving the fresh information from the registration list, and by described The login time 9 of eight rows:00 replaces with 9:10.
Step S102:It is found according to the location information of the master application server corresponding with the master application server Enrollment time, and by the enrollment time be updated to it is described newly register the time, to confirm that the master application server is in activity State.
The purpose that the enrollment time of the master application server is updated to the new login time is described in order to confirm Master application server is in active state.When the master application server is in active state, then the master application server is protected It holds and opens warning information sending function, i.e., be responsible for sending warning information, such as mail to supervisor from the master application server Or short message etc..In order not to generate information redundancy, standby application server is not turned on warning information sending function.
Step S103:It is found and described at least one according to the location information of at least one standby application server respectively A standby application server corresponding enrollment time, and by the enrollment time be updated to it is corresponding newly register the time, with true Recognize at least one standby application server to be in active state.
The purpose that the enrollment time of the standby application server is updated to the new login time is described in order to confirm Standby application server is in active state, if the standby application server is not within a preset period of time to the data server Fresh information is sent, the login time of the standby application server is not updated, then illustrates described standby within a preset period of time Application server is in inactive state.
Step S104:If the master application server becomes inactive state from active state, according to preset rules from Select one of them for application server in the registered and standby application server that is in active state, and will be described in selection Standby application server is labeled as master application server.
If the master application server does not send fresh information, i.e. institute to the data server within a preset period of time The login time for stating master application server is not updated within a preset period of time, then it is assumed that the master application server is non-live Dynamic state.When determining that the master application server is inactive state, then need according to preset rules from described registered and Select one of them for application server in the standby application server being in active state, and by the standby application service of selection Label is in device.The preset rules can be from standby application that is described registered and being in active state One of highest priority standby application server is selected in server, can also be from described registered and be in active state Standby application server in select register recently standby application server etc., the present invention is not specifically limited, this field Technical staff can be with sets itself.
Step S105:Master application server confirmation message is sent to the master application server of the label, so that the master Application server starts warning information sending function according to the confirmation message, realizes the monitoring to assets.
When the standby application server of one of selection from standby application server that is registered and being in active state After master application server, the data server is true by the master application server transmission master application server of the label Recognize information, so that the master application server starts warning information sending function according to the confirmation message, realizes to assets Monitoring.In addition, the data server can also by the master application server of original master application server identify be revised as it is standby Application server identifier, so that the original master application server is from inactive state after becoming active state, and to original The master application server come sends confirms mark for application server, is confirmed described in mark closing according to the standby application server Warning information sending function, to avoid after original master application server becomes active state from inactive state, also to institute It states supervisor and sends warning information, cause the redundancy of information.
In the present embodiment, by registering the master application server and at least one standby application service in data server Device, and obtain in a manner of updating enrollment time the shape of the master application server and at least one standby application server State, if the master application server becomes inactive state from active state, according to preset rules from it is described it is registered from A standby application server is selected in the standby application server of active state and is labeled as master application server, and is answered to the master Master application server confirmation message is sent with server, so that the master application server opens warning information sending function, it is real Now when original master application server failure, automatically, quickly start the transmission warning information function of standby application server, So that the assets for abnormality occur obtain timely processing, the safety of assets is improved.
Referring to Fig. 2, the one of which of the master application server and at least one standby application server is described below Possible enrollment process:
Step S201:The register information of the application server of asset monitoring platform is obtained, the register information includes institute State mark and the enrollment time of application server.
Step S202:The application server is registered according to the mark of the application server and login time.
Step S203:If the only application server registered in the registration list, by the application server Labeled as master application server.
Step S204:If being also registered with other application server in the registration list, and the other application server It is in inactive state, then the application server is labeled as master application server.
Step S205:If being registered with master application server in the registration list, and the master application server is in and lives The application server is then labeled as standby application server by dynamic state.
Before being registered in the registration list, it can not first determine which is master application server, but by first The application server of registration is as master application server.Either, if being also registered with other application service in the registration list Device, the other application server are in inactive state, then the application server is labeled as master application server.When After master application server is decided, as long as the master application server is constantly in active state, then that registers answers later It is application server to be marked with server.
In practical applications, the mark of the application server used in registration can be IP address, described in the basis The mark and login time of application server carry out registration to the application server and may include:According to the application server IP address at least one registration record corresponding with the IP address is searched from the registration list;From described at least one Registration record, step on except selecting wherein one in other registration records for registering the other application server being in active state Note record registers the enrollment time of the application server.
For example, it is assumed that the IP address of all application servers is different, in the registration list, each IP address is respectively With a registration record, the registration record is used to register the enrollment time of the corresponding application server of the IP address.
But in practical applications, the IP address of different application servers is likely to be identical.Assuming that application service Device A is identical with the IP address of application server B, then the corresponding registration record of IP address described in the registration list should be at least There are two, if the application server A is first registered, corresponding first registration record of the IP address can register described answer With the login time of server A, when application server B needs registration, registered due to first corresponding with the IP address Record occupied, and the application server A is in active state, then can select do not have occupied Article 2 registration record Register the application server B.If first registration record is occupied, and the application server A is not on activity State, then can also register the login time of the application server B in first registration record, and by the application service The login time of device B covers the login time of the application server A.
If all application server IP address are different, then can be using the IP address as the application server Location information;If it is identical that there are IP address in the application server, can using the line number of the registration list as The location information of the application server.
Based on a kind of asset monitoring method that above example provides, the embodiment of the present invention additionally provides a kind of asset monitoring Its operation principle is described in detail below in conjunction with the accompanying drawings in device.
Device embodiment:
Referring to Fig. 3, which is a kind of structure diagram of asset monitoring device embodiment provided by the invention.
Asset monitoring device provided in this embodiment includes:Information acquisition unit 101, main updating unit 102, standby update are single Member 103, election unit 104 and transmission unit 105;Wherein, described information acquiring unit 101 respectively with the main updating unit 102 and the standby updating unit 103 connect, the main updating unit 102 and the standby updating unit 103 with the election singly Member 104 connects, and the election unit 104 is connect with the transmission unit 105;
Described information acquiring unit 101, master application server for obtaining asset monitoring platform and at least one standby is answered The fresh information sent respectively with server, the master application server and at least one standby application server pre-register In the registration list of data server, the fresh information includes location information and newly registers time, the location information Indicate that the master application server or the standby application server are registered in the position in the registration list;
The main updating unit 102, is answered for being found according to the location information of the master application server with the master With server corresponding enrollment time, and by the enrollment time be updated to it is described newly register the time, to confirm the main application Server is in active state;
The standby updating unit 103, for being searched respectively according to the location information of at least one standby application server To at least one standby application server corresponding enrollment time, and the enrollment time is updated to corresponding new Enrollment time, to confirm that at least one standby application server is in active state;
The election unit 104, if becoming inactive state from active state for the master application server, according to Preset rules select one of them for application server from standby application server that is registered and being in active state, and will The standby application server of selection is labeled as master application server, and the inactive state is enrollment time not in preset time Newer state is obtained in section;
The transmission unit 105, for sending master application server confirmation message to the master application server of the label, So that the master application server starts warning information sending function according to the confirmation message, the monitoring to assets is realized.
In the present embodiment, by registering the master application server and at least one standby application service in data server Device, and obtain in a manner of updating enrollment time the shape of the master application server and at least one standby application server State, if the master application server becomes inactive state from active state, according to preset rules from it is described it is registered from A standby application server is selected in the standby application server of active state and is labeled as master application server, and is answered to the master Master application server confirmation message is sent with server, so that the master application server opens warning information sending function, it is real Now when original master application server failure, automatically, quickly start the transmission warning information function of standby application server, So that the assets for abnormality occur obtain timely processing, the safety of assets is improved.
In another embodiment, described device further includes:Acquiring unit, registration unit and the first marking unit;Institute It states acquiring unit to connect with the registration unit, the registration unit is connect with first marking unit, first label Unit is connect with described information acquiring unit;
The acquiring unit, the register information of the application server for obtaining asset monitoring platform, the register information It include mark and the enrollment time of the application server;
The registration unit, for according to the mark of the application server and login time to the application server into Row registration;
First marking unit, if the only application server for being registered in the registration list, by institute It states application server and is labeled as master application server.
In another embodiment, described device further includes:Second marking unit, with the registration unit and the letter Cease acquiring unit connection;
Second marking unit, if for being also registered with other application server in the registration list, and it is described its His application server is in inactive state, then the application server is labeled as master application server.
In another embodiment, described device further includes:Third marking unit, with the registration unit and the letter Cease acquiring unit connection;
The third marking unit, if for being registered with master application server, and the main application in the registration list Server is in active state, then the application server is labeled as standby application server.
In another embodiment, the IP address for being identified as the application server;
The registration unit includes searching unit and registration subelement;The searching unit and the registration subelement connect It connects;
The searching unit, for according to the IP address of the application server searched from the registration list with it is described Corresponding at least one registration record of IP address;
The registration subelement, for from least one registration record, except registering its being in active state A wherein registration record is selected to register the enrollment time of the application server in other registration records of his application server.
It should be noted that one of ordinary skill in the art will appreciate that realizing the whole in above method embodiment or portion Split flow is relevant hardware can be instructed to complete by computer program, and the program can be stored in a computer In read/write memory medium, the program is when being executed, it may include such as the flow of above-mentioned each method embodiment.Wherein, the storage Medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component explanation Unit and module may or may not be physically separated.Furthermore it is also possible to select according to the actual needs it In some or all of unit and module achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying In the case of creative work, you can to understand and implement.
The above is only the specific implementation mode of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of asset monitoring method, which is characterized in that the method includes:
The fresh information that the master application server and at least one standby application server of acquisition asset monitoring platform are sent respectively, institute It states master application server and at least one standby application server pre-registers in the registration list of data server, it is described Fresh information includes location information and newly registers the time, and the location information indicates the master application server or described standby answers With position of the server registers in the registration list;
Enrollment time corresponding with the master application server is found according to the location information of the master application server, and will The enrollment time newly registers the time described in being updated to, to confirm that the master application server is in active state;
It is found and at least one standby application service according to the location information of at least one standby application server respectively Device corresponding enrollment time, and by the enrollment time be updated to it is corresponding newly register the time, with confirm described at least one A standby application server is in active state;
If the master application server becomes inactive state from active state, according to preset rules from registered and be in Select one of them for application server in the standby application server of active state, and by the standby application server mark of selection It is denoted as master application server, the inactive state is enrollment time not obtain newer state within a preset period of time;
Master application server confirmation message is sent to the master application server of the label, so that the main application service of the label Device starts warning information sending function according to the confirmation message, realizes the monitoring to assets.
2. according to the method described in claim 1, it is characterized in that, in the master application server for obtaining asset monitoring platform Before the fresh information of transmission, the method further includes:
The register information of the application server of asset monitoring platform is obtained, the register information includes the application server Mark and enrollment time;
The application server is registered according to the mark of the application server and login time;
If registered in the registration list only the application server, by the application server label based on using clothes Business device.
3. according to the method described in claim 2, it is characterized in that, in the mark and login time according to the application server After being registered to the application server, the method further includes:
If being also registered with other application server in the registration list, and the other application server is in inactive shape The application server is then labeled as master application server by state.
4. according to the method in claim 2 or 3, which is characterized in that according to the application server mark and login After time registers the application server, the method further includes:
If being registered with master application server in the registration list, and the master application server is in active state, then by institute It states application server and is labeled as standby application server.
5. according to the method described in claim 2, it is characterized in that, the IP address for being identified as the application server, institute It states that the application server register according to the mark and login time of the application server and includes:
Corresponding with the IP address at least one is searched from the registration list according to the IP address of the application server Registration record;
From at least one registration record, except register the other application server being in active state other registration note A wherein registration record is selected to register the enrollment time of the application server in record.
6. a kind of asset monitoring device, which is characterized in that described device includes:Information acquisition unit, main updating unit, standby update Unit, election unit and transmission unit;Wherein, described information acquiring unit respectively with the main updating unit and the standby update Unit connects, and the main updating unit and the standby updating unit are connect with the election unit, the election unit and institute State transmission unit connection;
Described information acquiring unit, the master application server for obtaining asset monitoring platform and at least one standby application server The fresh information sent respectively, the master application server and at least one standby application server are pre-registered to be taken in data It is engaged in the registration list of device, the fresh information includes location information and newly registers the time, described in the location information expression Master application server or the standby application server are registered in the position in the registration list;
The main updating unit, for being found and the master application server according to the location information of the master application server Corresponding enrollment time, and by the enrollment time be updated to it is described newly register the time, to confirm at the master application server In active state;
The standby updating unit, for respectively according to the location information of at least one standby application server find with it is described At least one standby application server corresponding enrollment time, and when the enrollment time is updated to corresponding newly register Between, to confirm that at least one standby application server is in active state;
The election unit, if becoming inactive state from active state for the master application server, according to default rule Then select one of them for application server from standby application server that is registered and being in active state, and by selection The standby application server is labeled as master application server, and the inactive state is not obtain within a preset period of time enrollment time To newer state;
The transmission unit, for sending master application server confirmation message to the master application server of the label, so that institute The master application server for stating label starts warning information sending function according to the confirmation message, realizes the monitoring to assets.
7. device according to claim 6, which is characterized in that described device further includes:Acquiring unit, registration unit and One marking unit;The acquiring unit is connect with the registration unit, and the registration unit is connect with first marking unit, First marking unit is connect with described information acquiring unit;
The acquiring unit, the register information of the application server for obtaining asset monitoring platform wrap in the register information Include mark and the enrollment time of the application server;
The registration unit, for being stepped on to the application server according to the mark and login time of the application server Note;
First marking unit, if the only application server for being registered in the registration list, is answered by described in It is master application server with server-tag.
8. device according to claim 7, which is characterized in that described device further includes:Second marking unit is stepped on described Note unit is connected with described information acquiring unit;
Second marking unit, if for being also registered with other application server in the registration list, and described other are answered It is in inactive state with server, then the application server is labeled as master application server.
9. device according to claim 7 or 8, which is characterized in that described device further includes:Third marking unit, with institute Registration unit is stated to connect with described information acquiring unit;
The third marking unit, if for being registered with master application server, and the main application service in the registration list Device is in active state, then the application server is labeled as standby application server.
10. device according to claim 7, which is characterized in that the IP address for being identified as the application server;
The registration unit includes searching unit and registration subelement;The searching unit is connected with the registration subelement;
The searching unit, for being searched from the registration list with the IP according to the IP address of the application server Corresponding at least one registration record in location;
The registration subelement, for from least one registration record, answer except registering other being in active state With the enrollment time for selecting a wherein registration record to register the application server in other registration records of server.
CN201510845409.8A 2015-11-26 2015-11-26 A kind of asset monitoring method and device Active CN105260862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510845409.8A CN105260862B (en) 2015-11-26 2015-11-26 A kind of asset monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510845409.8A CN105260862B (en) 2015-11-26 2015-11-26 A kind of asset monitoring method and device

Publications (2)

Publication Number Publication Date
CN105260862A CN105260862A (en) 2016-01-20
CN105260862B true CN105260862B (en) 2018-10-16

Family

ID=55100541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510845409.8A Active CN105260862B (en) 2015-11-26 2015-11-26 A kind of asset monitoring method and device

Country Status (1)

Country Link
CN (1) CN105260862B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119187A (en) * 2007-09-06 2008-02-06 上海可鲁系统软件有限公司 Master-salve equipment switch control method
CN100461697C (en) * 2006-04-18 2009-02-11 华为技术有限公司 Business takeover method and backup machine based on equipment disaster recovery
CN102546135A (en) * 2010-12-31 2012-07-04 富泰华工业(深圳)有限公司 System and method for switching between active and standby servers
CN102868560A (en) * 2012-09-28 2013-01-09 南京恩瑞特实业有限公司 System and method for realizing hot standby of servers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140095925A1 (en) * 2012-10-01 2014-04-03 Jason Wilson Client for controlling automatic failover from a primary to a standby server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100461697C (en) * 2006-04-18 2009-02-11 华为技术有限公司 Business takeover method and backup machine based on equipment disaster recovery
CN101119187A (en) * 2007-09-06 2008-02-06 上海可鲁系统软件有限公司 Master-salve equipment switch control method
CN102546135A (en) * 2010-12-31 2012-07-04 富泰华工业(深圳)有限公司 System and method for switching between active and standby servers
CN102868560A (en) * 2012-09-28 2013-01-09 南京恩瑞特实业有限公司 System and method for realizing hot standby of servers

Also Published As

Publication number Publication date
CN105260862A (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN104137085B (en) For controlling the client method to the access of service in cluster environment
US11586673B2 (en) Data writing and reading method and apparatus, and cloud storage system
US8645769B2 (en) Operation management apparatus, operation management method, and program storage medium
US8108715B1 (en) Systems and methods for resolving split-brain scenarios in computer clusters
CN102567478B (en) Online fault verification in a file system
US10313215B2 (en) Monitoring of computer network resources having service level objectives
US10425502B2 (en) System and method for acquiring, processing and updating global information
US8990608B1 (en) Failover of applications between isolated user space instances on a single instance of an operating system
US20050177763A1 (en) System and method for improving network reliability
CN109992531B (en) Data storage method and device
CN112737800A (en) Service node fault positioning method, call chain generation method and server
EP3598289A1 (en) Data storage, distribution, reconstruction and recovery methods and devices, and data processing system
US9979616B2 (en) Event-driven framework for filtering and processing network flows
CN105207832A (en) Server stress testing method and device
US9153120B1 (en) Systems and methods for locating lost devices
CN108650123A (en) Fault message recording method, device, equipment and storage medium
US9930140B2 (en) Tie-breaking for high availability clusters
CN105260862B (en) A kind of asset monitoring method and device
US9092397B1 (en) Development server with hot standby capabilities
CN102387198B (en) Business processing method and equipment for distributed network
CN112350921A (en) Message processing method, terminal and storage medium
US20140372615A1 (en) Workload and defect management systems and methods
CN116401118A (en) Method and device for monitoring Samba of file sharing service
CN110839066B (en) Data processing method and related equipment
CN109039770B (en) A method, device and related equipment for refreshing server CMC

Legal Events

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