CN105471626A - Method and system for distributing storage data of internal memory - Google Patents

Method and system for distributing storage data of internal memory Download PDF

Info

Publication number
CN105471626A
CN105471626A CN201510784802.0A CN201510784802A CN105471626A CN 105471626 A CN105471626 A CN 105471626A CN 201510784802 A CN201510784802 A CN 201510784802A CN 105471626 A CN105471626 A CN 105471626A
Authority
CN
China
Prior art keywords
service server
lease
rental period
server
service
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
Application number
CN201510784802.0A
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510784802.0A priority Critical patent/CN105471626A/en
Publication of CN105471626A publication Critical patent/CN105471626A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/508Network service management, e.g. ensuring proper service fulfilment according to agreements based on type of value added network service under agreement

Abstract

The invention discloses a method for monitoring the state of service servers and a central control server. The method comprises the following steps: for each service server in a monitored service server set, negotiating lease with the service server to determine the lease term of the service server, and correspondingly storing the identifier and the lease term of the service server in a lease management database, wherein the lease term includes the lease term start time and the lease term end time; and monitoring the service servers according to the information in the lease management database, wherein, for a service server, no longer monitoring the state of the service server in the lease term, and determining that the state of the service server is abnormal if next lease request of the service server is not received when the lease term expires. By implementing the scheme, the number of requests of the central control server needing to be processed by the service servers is reduced, and the service processing efficiency of the service servers is improved.

Description

A kind of storage allocation stores the method and system of data
Technical field
The present invention relates to computer network field, particularly a kind of method of monitoring business server state and control server.
Background technology
Along with the development of Internet technology, network is utilized to provide products & services very general.The provider of service often needs erection server to store data and process business, and needs to be monitored the state of these servers.When number of servers is more, prior art often adopts control server to monitor multiple service server, reports to the police when there being server to be in abnormality, is convenient to operation maintenance personnel and processes.
But prior art often takes the state of the modes such as heartbeat detection to service server to obtain.Such as, control server is every the specified interface of access in a 10 minutes service server, if the data of status=ok can be got from this interface, think that this service server is in normal condition, if above-mentioned data cannot be got, think that this service server is in abnormality, may delay machine or damage.But, when service server normally works, the situation of the data of status=ok cannot be returned in time when also may appear at control server access specified interface, such as: service server is too busy but still can normally work, just owing to too much cannot process the access request of control server in time when the business of pre-treatment.Therefore, now control server judges that service server is in abnormality and is inaccurate, and the warning message produced further thus may bring interference to the normal work of operation maintenance personnel.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the method for monitoring business server state solved the problem at least in part and control server.
According to one aspect of the present invention, provide a kind of method of monitoring business server state, comprise: for each service server in monitored service server set, carry out with this service server the rental period that lease consults to determine this service server, the mark of this service server and rental period correspondence are saved in lease management database; Wherein, the described rental period comprises rental period initial time and end time in rental period; According to the information in lease management database, each service server is monitored; Wherein, for a service server, in its lease time, no longer monitor the state of this service server, if do not receive the next lease request of this service server when its rental period expires, then determine the abnormal state of this service server.
Alternatively, describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises: the lease request receiving the rental period information of carrying that this service server sends; Rental period information is obtained from received lease request; Lease response message is returned to this service server.
Alternatively, describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises: what receive that this service server sends carries the lease request that service server identifies; From pre-configured rental period list, rental period corresponding to this service server is obtained according to described service server mark; The lease response message comprising the rental period is returned to this service server.
Alternatively, describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises: the lease request receiving the rental period information of carrying that this service server sends; The rental period of this service server is determined according to the performance index parameter of this service server; The lease response message comprising the rental period is returned to this service server.
Alternatively, describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises: the lease request receiving the rental period information of carrying that this service server sends; Analyze the daily record in this service server preset time period in the past, obtain the Annual distribution information of the traffic carrying capacity of this service server; According to the Annual distribution information of the traffic carrying capacity of this service server and the performance index parameter of this service server, determine the rental period of this service server; The lease response message comprising the rental period is returned to this service server.
Alternatively, described performance index parameter comprises one or more as follows: by sending the response time parameter that heartbeat packet obtains to this service server; The exchange memory utilization rate of this service server; The memory usage of this service server; The CPU usage of this service server; The hard disk utilization rate of this service server.
Alternatively, the method comprises further: when determining the abnormal state of a service server, sends warning message by the warning channel corresponding with this service server to the alert receipt terminal that this service server is corresponding.
According to another aspect of the present invention, provide a kind of control server of monitoring business server state, comprise: lease processing unit, be suitable for for each service server in monitored service server set, carry out with this service server the rental period that lease consults to determine this service server, the mark of this service server and rental period correspondence are saved in lease management database; Wherein, the described rental period comprises rental period initial time and end time in rental period; Memory cell, is suitable for storing described lease management database; Monitoring processing unit, is suitable for monitoring each service server according to the information in lease management database; Wherein, for a service server, in its lease time, no longer monitor the state of this service server, if lease processing unit does not receive the next lease request of this service server when its rental period expires, then determine the abnormal state of this service server.
Alternatively, described lease processing unit, is suitable for the lease request receiving the rental period information of carrying that this service server sends, obtains rental period information, return lease response message to this service server from received lease request.
Alternatively, described lease processing unit, be suitable for the lease request of carrying service server mark receiving the transmission of this service server, from pre-configured rental period list, obtain rental period corresponding to this service server according to described service server mark, return the lease response message comprising the rental period to this service server.
Alternatively, described lease processing unit, be suitable for the lease request receiving the rental period information of carrying that this service server sends, determine the rental period of this service server according to the performance index parameter of this service server, return the lease response message comprising the rental period to this service server.
Alternatively, described lease processing unit, is suitable for the lease request receiving the rental period information of carrying that this service server sends; Analyze the daily record in this service server preset time period in the past, obtain the Annual distribution information of the traffic carrying capacity of this service server; According to the Annual distribution information of the traffic carrying capacity of this service server and the performance index parameter of this service server, determine the rental period of this service server; The lease response message comprising the rental period is returned to this service server.
Alternatively, described performance index parameter comprises one or more as follows: by sending the response time parameter that heartbeat packet obtains to this service server; The exchange memory utilization rate of this service server; The memory usage of this service server; The CPU usage of this service server; The hard disk utilization rate of this service server.
Alternatively, monitoring processing unit, being further adapted for when determining the abnormal state of a service server, sending warning message by the warning channel corresponding with this service server to the alert receipt terminal that this service server is corresponding.
From the above, technical scheme of the present invention, adopt the mode management service server of lease, particularly, for each service server in monitored service server set, the rental period (comprising rental period initial time and end time in rental period) that lease consults to determine this service server is carried out with this service server, and the mark of this service server and rental period correspondence are saved in lease management database, according to the information in lease management database, each service server is monitored, wherein, no longer monitoring is in the state of the service server in lease time, if but do not receive the next lease request of this service server when a certain rental period expires, then determine the abnormal state of this service server.This technical scheme avoids timer access service server, decrease service server and need request to be processed, service server can be made by more resource for the treatment of business, improve treatment effeciency, decrease wrong report simultaneously, utilize service server initiatively to send request and compare the easier feature of process request, efficiently solve problems of the prior art.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of according to an embodiment of the invention flow chart of method of monitoring business server state;
Fig. 2 shows a kind of according to an embodiment of the invention structural representation of control server of monitoring business server state;
Fig. 3 shows server cluster schematic diagram according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows a kind of according to an embodiment of the invention flow chart of method of monitoring business server state, and as shown in Figure 1, the method comprises:
Step S110, for each service server in monitored service server set, carries out with this service server the rental period that lease consults to determine this service server, is saved in lease management database by the mark of this service server and rental period correspondence; Wherein, the rental period comprises rental period initial time and end time in rental period.
Lease (Lease) is a kind of agreement being widely used in distributed system field, can as safeguarding the conforming effective tool of distributed system.Can be defined as: issuer gives holder's agreement of certain right within certain time limit.Lease have expressed the promise of issuer within certain time limit, as long as not out of date issuer must strictly observe the promise of lease agreement.And the holder of lease uses the promise of issuer within the time limit, but lease is once expired must abandoning uses or again renew a contract with issuer.In this step, have employed lease mode, consult the rental period (comprising rental period initial time and end time in rental period) of each service server determined in monitored service server set.Such as, SERVER01 and control server are arranged, and the time started in rental period is 2015/11/0616:00, and the end time in rental period is 2015/11/0617:00.For ensureing that service server is time consistency with being responsible for the control server monitor, can require that service server and control server are regularly and the time standard server sync time.In concrete enforcement, also the rental period can be decided to be regular time section, such as one hour, in service server and control server timing respectively, but need like this to guarantee that service server and control server fulfil lease simultaneously.After determining the rental period, need the mark of this service server and rental period correspondence to be saved in lease management database, this service server needs the rental period of preserving oneself to fulfil simultaneously.
Step S120, monitors each service server according to the information in lease management database; Wherein, for a service server, in its lease time, no longer monitor the state of this service server, if do not receive the next lease request of this service server when its rental period expires, then determine the abnormal state of this service server.
Such as, the time started in rental period that SEVER01 arranged by lease is 2015/11/0616:00, and the end time in rental period is 2015/11/0617:00.During this period of time, control server no longer monitors the state of SERVER01, but to be confirmed whether at 2015/11/0617:00 the next lease request that have received SERVER01, as comprised new time started in rental period 2015/11/0617:00, end time in rental period 2015/11/0618:00, if do not received, then determine the abnormal state of SERVER01.In concrete enforcement, can consider that the transmission time of data adds certain time delay when the rental period expires.
Visible, method shown in Fig. 1, adopt the mode management service server of lease, particularly, for each service server in monitored service server set, the rental period (comprising rental period initial time and end time in rental period) that lease consults to determine this service server is carried out with this service server, and the mark of this service server and rental period correspondence are saved in lease management database, according to the information in lease management database, each service server is monitored, wherein, no longer monitoring is in the state of the service server in lease time, if but do not receive the next lease request of this service server when a certain rental period expires, then determine the abnormal state of this service server.This technical scheme avoids timer access service server, decrease service server and need request to be processed, service server can be made by more resource for the treatment of business, improve treatment effeciency, decrease wrong report simultaneously, utilize service server initiatively to send request and compare the easier feature of process request, efficiently solve problems of the prior art.
Within the rental period, control server can not monitor the state of this service server, in other words within this period, even if there is abnormal state in service server, this abnormality also can not initiatively confirm by control server.Therefore, in concrete enforcement, how to determine that the rental period of service server is also the problem needing to consider.In one embodiment of the invention, in the method shown in Fig. 1, carry out lease with this service server and consult to determine that the rental period of this service server comprises: the lease request receiving the rental period information of carrying that this service server sends; Rental period information is obtained from received lease request; Lease response message is returned to this service server.
In this embodiment, the rental period information of this service server is set voluntarily by each service server, and carries this rental period information in the lease request sent.And control server directly therefrom obtains rental period information after receiving lease request, and return lease response message to this service server.Determine that the rental period of service server is the easiest, most effective like this.
In one embodiment of the invention, in the method shown in Fig. 1, carry out lease with this service server and consult to determine that the rental period of this service server comprises: what receive that this service server sends carries the lease request that service server identifies; From pre-configured rental period list, rental period corresponding to this service server is obtained according to service server mark; The lease response message comprising the rental period is returned to this service server.
In this embodiment, need maintenance rental period list, in this rental period list, save the rental period corresponding with each service server.Particularly, service server mark can be set to key, the rental period corresponding with service server is set to the value of this key, forms multiple key-value pair, sets up Hash table and stores.Certainly, those skilled in the art can adopt database mode to carry out the storage and maintenance of rental period list according to the actual requirements.Therefore, carrying out with this service server the embodiment that lease consults the step in the rental period determining this service server is: service server needs to send and carries this service server and identify lease request as SERVER01, control server searches for SERVER01 in rental period list, returns the lease response message comprising the rental period after getting the rental period corresponding with it to SERVER01.In this embodiment, the configuration of rental period list can carry out artificial configuration by operation maintenance personnel, also can arrange the rental period formation rental period list that algorithm calculates each service server applicable automatically.
Give some embodiments of rental period determining service server below:
In yet another embodiment of the present invention, in the method shown in Fig. 1, carry out lease with this service server and consult to determine that the rental period of this service server comprises: the lease request receiving the rental period information of carrying that this service server sends; The rental period of this service server is determined according to the performance index parameter of this service server; The lease response message comprising the rental period is returned to this service server.
In one embodiment of the invention, in the method shown in Fig. 1, carry out lease with this service server and consult to determine that the rental period of this service server comprises: the lease request receiving the rental period information of carrying that this service server sends; Analyze the daily record in this service server preset time period in the past, obtain the Annual distribution information of the traffic carrying capacity of this service server; According to the Annual distribution information of the traffic carrying capacity of this service server and the performance index parameter of this service server, determine the rental period of this service server; The lease response message comprising the rental period is returned to this service server.
In one embodiment of the invention, in said method, performance index parameter comprise following in one or more: by sending the response time parameter that heartbeat packet obtains to this service server; The exchange memory utilization rate of this service server; The memory usage of this service server; The CPU usage of this service server; The hard disk utilization rate of this service server.
In three embodiments above, give the mode in the concrete condition determination service server rental period according to service server, such as, performance index parameter according to service server determines the rental period, specific performance index parameter can obtain response time parameter by sending heartbeat packet to this service server, utilizes TOP order to check the exchange memory utilization rate, memory usage, CPU usage, hard disk utilization rate etc. of service server.The performance of service server can be understood well according to the performance index parameter of service server, that determines thus is also more scientific and reasonable, there will not be and service server is operated the situation of excess load for a long time, it also reduce the possibility that abnormality appears in service server within the rental period.Again such as, analyze the daily record in service server preset time period in the past, obtain the Annual distribution information of the traffic carrying capacity of this service server; According to the Annual distribution information of the traffic carrying capacity of this service server and the performance index parameter of this service server, determine the rental period of this service server.For example, the user of service provider may early/evening, working day/there is different behavior patterns on day off, therefore service server may be different in the traffic carrying capacity of different time sections.Service server be in peak period need continuous process business time, can suitably the time period in rental period be arranged longer, guarantee the treatment effeciency of service server.In a word, operation maintenance personnel as required, can consider the multiple factors determining the rental period.
In one embodiment of the invention, the method shown in Fig. 1 comprises further: when determining the abnormal state of a service server, sends warning message by the warning channel corresponding with this service server to the alert receipt terminal that this service server is corresponding.
Such as, when the rental period of SERVER01 expires, if do not receive the next lease request of SERVER01, determine its abnormal state, according to the warning channel pre-set if the different modes such as note, phone, mail are to the alert receipt terminal transmission warning message of correspondence.Particularly, warning channel can divide different grades according to the significance level of this service server in Business Processing, also can notify after analyzing easily abnormality that the treatment people of different department processes.
Fig. 2 shows a kind of according to an embodiment of the invention structural representation of control server of monitoring business server state, and as shown in Figure 2, the control server 200 of monitoring business server state comprises:
Lease processing unit 210, be suitable for for each service server in monitored service server set, carry out with this service server the rental period that lease consults to determine this service server, the mark of this service server and rental period correspondence are saved in lease management database; Wherein, the rental period comprises rental period initial time and end time in rental period.
Memory cell 220, is suitable for storing lease management database.
Control server shown in Fig. 2 have employed lease mode, consults the rental period (comprising rental period initial time and end time in rental period) of each service server determined in monitored service server set.Such as, SERVER01 and control server are arranged, and the time started in rental period is 2015/11/0616:00, and the end time in rental period is 2015/11/0617:00.For ensureing that service server is time consistency with being responsible for the control server monitor, can require that service server and control server are regularly and the time standard server sync time.In concrete enforcement, also the rental period can be decided to be regular time section, such as one hour, in service server and control server timing respectively, but need like this to guarantee that service server and control server fulfil lease simultaneously.After determining the rental period, need the mark of this service server and rental period correspondence to be saved in lease management database, this service server needs the rental period of preserving oneself to fulfil simultaneously.
Monitoring processing unit 230, is suitable for monitoring each service server according to the information in lease management database; Wherein, for a service server, in its lease time, no longer monitor the state of this service server, if lease processing unit does not receive the next lease request of this service server when its rental period expires, then determine the abnormal state of this service server.
Visible, control server shown in Fig. 2, adopt the mode management service server of lease, particularly, for each service server in monitored service server set, the rental period (comprising rental period initial time and end time in rental period) that lease consults to determine this service server is carried out with this service server, and the mark of this service server and rental period correspondence are saved in lease management database, according to the information in lease management database, each service server is monitored, wherein, no longer monitoring is in the state of the service server in lease time, if but do not receive the next lease request of this service server when a certain rental period expires, then determine the abnormal state of this service server.This technical scheme avoids timer access service server, decrease service server and need request to be processed, service server can be made by more resource for the treatment of business, improve treatment effeciency, decrease wrong report simultaneously, utilize service server initiatively to send request and compare the easier feature of process request, efficiently solve problems of the prior art.
Within the rental period, control server can not monitor the state of this service server, in other words within this period, even if there is abnormal state in service server, this abnormality also can not initiatively confirm by control server.Therefore, in concrete enforcement, how to determine that the rental period of service server is also the problem needing to consider.In one embodiment of the invention, in control server shown in Fig. 2, lease processing unit 210, is suitable for the lease request receiving the rental period information of carrying that this service server sends, from received lease request, obtain rental period information, return lease response message to this service server.
In this embodiment, the rental period information of this service server is set voluntarily by each service server, and carries this rental period information in the lease request sent.And control server directly therefrom obtains rental period information after receiving lease request, and return lease response message to this service server.Determine that the rental period of service server is the easiest, most effective like this.
In one embodiment of the invention, in control server shown in Fig. 2, lease processing unit 210, be suitable for the lease request of carrying service server mark receiving the transmission of this service server, from pre-configured rental period list, obtain rental period corresponding to this service server according to service server mark, return the lease response message comprising the rental period to this service server.
In this embodiment, need maintenance rental period list, in this rental period list, save the rental period corresponding with each service server.Particularly, service server mark can be set to key, the rental period corresponding with service server is set to the value of this key, forms multiple key-value pair, sets up Hash table and stores.Certainly, those skilled in the art can adopt database mode to carry out the storage and maintenance of rental period list according to the actual requirements.Therefore, carrying out with this service server the embodiment that lease consults the step in the rental period determining this service server is: service server needs to send and carries this service server and identify lease request as SERVER01, control server searches for SERVER01 in rental period list, returns the lease response message comprising the rental period after getting the rental period corresponding with it to SERVER01.In this embodiment, the configuration of rental period list can carry out artificial configuration by operation maintenance personnel, also can arrange the rental period formation rental period list that algorithm calculates each service server applicable automatically.
Give some embodiments of rental period determining service server below:
In one embodiment of the invention, in control server shown in Fig. 2, lease processing unit 210, be suitable for the lease request receiving the rental period information of carrying that this service server sends, determine the rental period of this service server according to the performance index parameter of this service server, return the lease response message comprising the rental period to this service server.
In one embodiment of the invention, in the control server shown in Fig. 2, lease processing unit 210, is suitable for the lease request receiving the rental period information of carrying that this service server sends; Analyze the daily record in this service server preset time period in the past, obtain the Annual distribution information of the traffic carrying capacity of this service server; According to the Annual distribution information of the traffic carrying capacity of this service server and the performance index parameter of this service server, determine the rental period of this service server; The lease response message comprising the rental period is returned to this service server.
In one embodiment of the invention, in above-mentioned control server, performance index parameter comprise following in one or more: by sending the response time parameter that heartbeat packet obtains to this service server; The exchange memory utilization rate of this service server; The memory usage of this service server; The CPU usage of this service server; The hard disk utilization rate of this service server.
In three embodiments above, give the mode in the concrete condition determination service server rental period according to service server, such as, performance index parameter according to service server determines the rental period, specific performance index parameter can obtain response time parameter by sending heartbeat packet to this service server, utilizes TOP order to check the exchange memory utilization rate, memory usage, CPU usage, hard disk utilization rate etc. of service server.The performance of service server can be understood well according to the performance index parameter of service server, that determines thus is also more scientific and reasonable, there will not be and service server is operated the situation of excess load for a long time, it also reduce the possibility that abnormality appears in service server within the rental period.Again such as, analyze the daily record in service server preset time period in the past, obtain the Annual distribution information of the traffic carrying capacity of this service server; According to the Annual distribution information of the traffic carrying capacity of this service server and the performance index parameter of this service server, determine the rental period of this service server.For example, the user of service provider may early/evening, working day/there is different behavior patterns on day off, therefore service server may be different in the traffic carrying capacity of different time sections.Service server be in peak period need continuous process business time, can suitably the time period in rental period be arranged longer, guarantee the treatment effeciency of service server.In a word, operation maintenance personnel as required, can consider the multiple factors determining the rental period.
In one embodiment of the invention, in control server shown in Fig. 2, monitoring processing unit 230, being further adapted for when determining the abnormal state of a service server, sending warning message by the warning channel corresponding with this service server to the alert receipt terminal that this service server is corresponding.
Such as, when the rental period of SERVER01 expires, if do not receive the next lease request of SERVER01, determine its abnormal state, according to the warning channel pre-set if the different modes such as note, phone, mail are to the alert receipt terminal transmission warning message of correspondence.Particularly, warning channel can divide different grades according to the significance level of this service server in Business Processing, also can notify after analyzing easily abnormality that the treatment people of different department processes.
Fig. 3 shows server cluster schematic diagram according to an embodiment of the invention, and as shown in Figure 3, this server cluster comprises the control server 200 of a monitoring business server state as described in any one embodiment above-mentioned, and multiple service server 310.Service server 310 sends lease request Request to the control server 200 of monitoring business server state, and the control server 200 of monitoring business server state returns lease response message Response to service server 300.
In sum, technical scheme of the present invention, adopt the mode management service server of lease, particularly, for each service server in monitored service server set, the rental period (comprising rental period initial time and end time in rental period) that lease consults to determine this service server is carried out with this service server, and the mark of this service server and rental period correspondence are saved in lease management database, according to the information in lease management database, each service server is monitored, wherein, no longer monitoring is in the state of the service server in lease time, if but do not receive the next lease request of this service server when a certain rental period expires, then determine the abnormal state of this service server.This technical scheme avoids timer access service server, decrease service server and need request to be processed, service server can be made by more resource for the treatment of business, improve treatment effeciency, decrease wrong report simultaneously, utilize service server initiatively to send request and compare the easier feature of process request, efficiently solve problems of the prior art.In addition, technical scheme provided by the invention can also be utilized to perform to concrete service server operation of rolling off the production line, more easy compared to manual type of the prior art.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.
It should be noted that:
Intrinsic not relevant to any certain computer, virtual bench or miscellaneous equipment with display at this algorithm provided.Various fexible unit also can with use based on together with this teaching.According to description above, the structure constructed required by this kind of device is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the control server of the monitoring business server state of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses a kind of method of A1, monitoring business server state, wherein, the method comprises:
For each service server in monitored service server set, carry out with this service server the rental period that lease consults to determine this service server, the mark of this service server and rental period correspondence are saved in lease management database; Wherein, the described rental period comprises rental period initial time and end time in rental period;
According to the information in lease management database, each service server is monitored; Wherein, for a service server, in its lease time, no longer monitor the state of this service server, if do not receive the next lease request of this service server when its rental period expires, then determine the abnormal state of this service server.
A2, method as described in A1, wherein, describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises:
Receive the lease request of the rental period information of carrying that this service server sends;
Rental period information is obtained from received lease request;
Lease response message is returned to this service server.
A3, method as described in A1, wherein, describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises:
Receive the lease request of carrying service server mark that this service server sends;
From pre-configured rental period list, rental period corresponding to this service server is obtained according to described service server mark;
The lease response message comprising the rental period is returned to this service server.
A4, method as described in A1, wherein, describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises:
Receive the lease request of the rental period information of carrying that this service server sends;
The rental period of this service server is determined according to the performance index parameter of this service server;
The lease response message comprising the rental period is returned to this service server.
A5, method as described in A1, wherein, describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises:
Receive the lease request of the rental period information of carrying that this service server sends;
Analyze the daily record in this service server preset time period in the past, obtain the Annual distribution information of the traffic carrying capacity of this service server;
According to the Annual distribution information of the traffic carrying capacity of this service server and the performance index parameter of this service server, determine the rental period of this service server;
The lease response message comprising the rental period is returned to this service server.
A6, method as described in A4 or A5, wherein, described performance index parameter comprise following in one or more:
By sending the response time parameter that heartbeat packet obtains to this service server;
The exchange memory utilization rate of this service server;
The memory usage of this service server;
The CPU usage of this service server;
The hard disk utilization rate of this service server.
A7, method as described in A1, wherein, the method comprises further:
When determining the abnormal state of a service server, send warning message by the warning channel corresponding with this service server to the alert receipt terminal that this service server is corresponding.
The invention also discloses the control server of B8, a kind of monitoring business server state, wherein, this control server comprises:
Lease processing unit, be suitable for for each service server in monitored service server set, carry out with this service server the rental period that lease consults to determine this service server, the mark of this service server and rental period correspondence are saved in lease management database; Wherein, the described rental period comprises rental period initial time and end time in rental period;
Memory cell, is suitable for storing described lease management database;
Monitoring processing unit, is suitable for monitoring each service server according to the information in lease management database; Wherein, for a service server, in its lease time, no longer monitor the state of this service server, if lease processing unit does not receive the next lease request of this service server when its rental period expires, then determine the abnormal state of this service server.
B9, control server as described in B8, wherein,
Described lease processing unit, is suitable for the lease request receiving the rental period information of carrying that this service server sends, obtains rental period information, return lease response message to this service server from received lease request.
B10, control server as described in B8, wherein,
Described lease processing unit, be suitable for the lease request of carrying service server mark receiving the transmission of this service server, from pre-configured rental period list, obtain rental period corresponding to this service server according to described service server mark, return the lease response message comprising the rental period to this service server.
B11, control server as described in B8, wherein,
Described lease processing unit, be suitable for the lease request receiving the rental period information of carrying that this service server sends, determine the rental period of this service server according to the performance index parameter of this service server, return the lease response message comprising the rental period to this service server.
B12, control server as described in B8, wherein,
Described lease processing unit, is suitable for the lease request receiving the rental period information of carrying that this service server sends; Analyze the daily record in this service server preset time period in the past, obtain the Annual distribution information of the traffic carrying capacity of this service server; According to the Annual distribution information of the traffic carrying capacity of this service server and the performance index parameter of this service server, determine the rental period of this service server; The lease response message comprising the rental period is returned to this service server.
B13, control server as described in B11 or B12, wherein, described performance index parameter comprise following in one or more:
By sending the response time parameter that heartbeat packet obtains to this service server;
The exchange memory utilization rate of this service server;
The memory usage of this service server;
The CPU usage of this service server;
The hard disk utilization rate of this service server.
B14, control server as described in B8, wherein,
Monitoring processing unit, being further adapted for when determining the abnormal state of a service server, sending warning message by the warning channel corresponding with this service server to the alert receipt terminal that this service server is corresponding.

Claims (10)

1. a method for monitoring business server state, wherein, the method comprises:
For each service server in monitored service server set, carry out with this service server the rental period that lease consults to determine this service server, the mark of this service server and rental period correspondence are saved in lease management database; Wherein, the described rental period comprises rental period initial time and end time in rental period;
According to the information in lease management database, each service server is monitored; Wherein, for a service server, in its lease time, no longer monitor the state of this service server, if do not receive the next lease request of this service server when its rental period expires, then determine the abnormal state of this service server.
2. the method for claim 1, wherein describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises:
Receive the lease request of the rental period information of carrying that this service server sends;
Rental period information is obtained from received lease request;
Lease response message is returned to this service server.
3. the method for claim 1, wherein describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises:
Receive the lease request of carrying service server mark that this service server sends;
From pre-configured rental period list, rental period corresponding to this service server is obtained according to described service server mark;
The lease response message comprising the rental period is returned to this service server.
4. the method for claim 1, wherein describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises:
Receive the lease request of the rental period information of carrying that this service server sends;
The rental period of this service server is determined according to the performance index parameter of this service server;
The lease response message comprising the rental period is returned to this service server.
5. the method for claim 1, wherein describedly carry out lease with this service server and consult to determine that the rental period of this service server comprises:
Receive the lease request of the rental period information of carrying that this service server sends;
Analyze the daily record in this service server preset time period in the past, obtain the Annual distribution information of the traffic carrying capacity of this service server;
According to the Annual distribution information of the traffic carrying capacity of this service server and the performance index parameter of this service server, determine the rental period of this service server;
The lease response message comprising the rental period is returned to this service server.
6. the method as described in claim 4 or 5, wherein, described performance index parameter comprise following in one or more:
By sending the response time parameter that heartbeat packet obtains to this service server;
The exchange memory utilization rate of this service server;
The memory usage of this service server;
The CPU usage of this service server;
The hard disk utilization rate of this service server.
7. the method for claim 1, wherein the method comprises further:
When determining the abnormal state of a service server, send warning message by the warning channel corresponding with this service server to the alert receipt terminal that this service server is corresponding.
8. a control server for monitoring business server state, wherein, this control server comprises:
Lease processing unit, be suitable for for each service server in monitored service server set, carry out with this service server the rental period that lease consults to determine this service server, the mark of this service server and rental period correspondence are saved in lease management database; Wherein, the described rental period comprises rental period initial time and end time in rental period;
Memory cell, is suitable for storing described lease management database;
Monitoring processing unit, is suitable for monitoring each service server according to the information in lease management database; Wherein, for a service server, in its lease time, no longer monitor the state of this service server, if lease processing unit does not receive the next lease request of this service server when its rental period expires, then determine the abnormal state of this service server.
9. control server as claimed in claim 8, wherein,
Described lease processing unit, is suitable for the lease request receiving the rental period information of carrying that this service server sends, obtains rental period information, return lease response message to this service server from received lease request.
10. control server as claimed in claim 8, wherein,
Described lease processing unit, be suitable for the lease request of carrying service server mark receiving the transmission of this service server, from pre-configured rental period list, obtain rental period corresponding to this service server according to described service server mark, return the lease response message comprising the rental period to this service server.
CN201510784802.0A 2015-11-16 2015-11-16 Method and system for distributing storage data of internal memory Pending CN105471626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510784802.0A CN105471626A (en) 2015-11-16 2015-11-16 Method and system for distributing storage data of internal memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510784802.0A CN105471626A (en) 2015-11-16 2015-11-16 Method and system for distributing storage data of internal memory

Publications (1)

Publication Number Publication Date
CN105471626A true CN105471626A (en) 2016-04-06

Family

ID=55608940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510784802.0A Pending CN105471626A (en) 2015-11-16 2015-11-16 Method and system for distributing storage data of internal memory

Country Status (1)

Country Link
CN (1) CN105471626A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375415A (en) * 2016-08-31 2017-02-01 东软集团股份有限公司 Dynamic setting method and device of tenancy term
CN106453471A (en) * 2016-07-08 2017-02-22 合网络技术(北京)有限公司 Sending method and apparatus, and obtaining method and apparatus of lease data based on distributed applications
CN108075913A (en) * 2016-11-15 2018-05-25 千寻位置网络有限公司 A kind of monitoring method and its system of broadcasting system service quality
CN108123851A (en) * 2017-12-29 2018-06-05 北京奇虎科技有限公司 The lifetime detection method and device of main and subordinate node synchronization link in distributed system
CN112417011A (en) * 2019-08-22 2021-02-26 北京国双科技有限公司 Data processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090276505A1 (en) * 2007-03-16 2009-11-05 Fujitsu Limited Web service control apparatus and method
CN104243293A (en) * 2014-08-21 2014-12-24 深圳市合信自动化技术有限公司 Automatic heartbeat interval adjustment method, gateway device and server
CN104333465A (en) * 2014-10-31 2015-02-04 北京奇虎科技有限公司 Heartbeat interval setting method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090276505A1 (en) * 2007-03-16 2009-11-05 Fujitsu Limited Web service control apparatus and method
CN104243293A (en) * 2014-08-21 2014-12-24 深圳市合信自动化技术有限公司 Automatic heartbeat interval adjustment method, gateway device and server
CN104333465A (en) * 2014-10-31 2015-02-04 北京奇虎科技有限公司 Heartbeat interval setting method, device and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453471A (en) * 2016-07-08 2017-02-22 合网络技术(北京)有限公司 Sending method and apparatus, and obtaining method and apparatus of lease data based on distributed applications
CN106375415A (en) * 2016-08-31 2017-02-01 东软集团股份有限公司 Dynamic setting method and device of tenancy term
CN106375415B (en) * 2016-08-31 2019-10-22 东软集团股份有限公司 The dynamic setting method and device in rental period
CN108075913A (en) * 2016-11-15 2018-05-25 千寻位置网络有限公司 A kind of monitoring method and its system of broadcasting system service quality
CN108123851A (en) * 2017-12-29 2018-06-05 北京奇虎科技有限公司 The lifetime detection method and device of main and subordinate node synchronization link in distributed system
CN112417011A (en) * 2019-08-22 2021-02-26 北京国双科技有限公司 Data processing method and device

Similar Documents

Publication Publication Date Title
CN105471626A (en) Method and system for distributing storage data of internal memory
US8056082B2 (en) Capacity management and predictive planning systems based on trended rate change of monitored factors and methods thereof
CN108737473B (en) Data processing method, device and system
CN102982141B (en) A kind of method and device realizing distributed data base agency
CN112416969B (en) Parallel task scheduling system in distributed database
US20130117423A1 (en) Methods for managing data synchronization and devices thereof
US20160344582A1 (en) Call home cluster
CN104579765A (en) Disaster tolerance method and device for cluster system
CN103324713A (en) Data processing method and device in multistage server and data processing system
CN113806191A (en) Data processing method, device, equipment and storage medium
US10331484B2 (en) Distributed data platform resource allocator
CN107360035B (en) Data processing method and system
CN108234189B (en) Alarm data processing method and device
CN105100216A (en) Multi-service monitoring method and device
CN110708177B (en) Exception handling method, system and device in distributed system
CN111552746B (en) Data synchronization method, device, electronic equipment and storage medium
CN116594843A (en) Service monitoring method, device and system and electronic equipment
CN105871659A (en) Monitoring method and device of newly added server
CN113965538B (en) Equipment state message processing method, device and storage medium
CN109213769B (en) Data conflict identification method for data object
CN105607983A (en) Data exception monitoring method and apparatus
KR101725192B1 (en) Resource information management and data storage system through the management of the resource template
CN108009209B (en) Method and device for inquiring service blood relationship information
CN110935168A (en) Distributed ID generation method, device and equipment for global uniform architecture
CN114844662B (en) Network security policy management method, device and equipment

Legal Events

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