CN104184611A - Disaster tolerance site, and service message processing device and method - Google Patents
Disaster tolerance site, and service message processing device and method Download PDFInfo
- Publication number
- CN104184611A CN104184611A CN201410355319.6A CN201410355319A CN104184611A CN 104184611 A CN104184611 A CN 104184611A CN 201410355319 A CN201410355319 A CN 201410355319A CN 104184611 A CN104184611 A CN 104184611A
- Authority
- CN
- China
- Prior art keywords
- service message
- processing unit
- website
- message processing
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a disaster tolerance site, and a service message processing device and method, belonging to the field of service message processing. The method comprises that a service message is received; whether the service message is from a fault site is detected; and if the service message is from the fault site, the service message is distributed to at least one idle service message processing unit of multiple service message processing units of the disaster tolerance site and processed. Thus, the problem of fault diffusion caused by disaster tolerance switching is solved; and even a fault is diffused, diffusion is limited within an isolated scope, and effects beyond the scope are not influenced.
Description
Technical field
The present invention relates to service message process field, particularly a kind of disaster tolerance website, service message processing unit and method.
Background technology
It is a kind of system business message treatment method that disaster tolerance switches.Generally, in jumbo communication system, conventionally a plurality of websites can be formed to a resource pool, when a website in this resource pool breaks down, can switch and the service message of this website is switched to other normal website processes by disaster tolerance.
Shown in Fig. 1 is a kind of resource pool with CSCF (call session control function, CSCF) being comprised of a plurality of websites.This resource pool is comprised of SBC (session border controller, Session Border Controller) and a plurality of websites with CSCF, and wherein, SBC is responsible for the distribution of business, and CSCF is responsible for the processing of business.In this Fig. 1, if certain website in this resource pool (as website 1) is because software/hardware fault, communication line fault or the external environment condition (as earthquake, power breakdown) etc. of communication system are former thereby break down, SBC is when distribution service so, the normal website (as website 2) that the service message of this website will be distributed in this resource pool is processed, thereby realize disaster tolerance, switch, guarantee that the business of this website is normally carried out.
In realizing process of the present invention, inventor finds that prior art at least exists following problem:
Carrying out disaster tolerance while switching, if certain website breaks down when processing the service message of certain class particular type, and when the service message of this particular type being distributed to other normal website and processing, may cause normal website also to break down.Therefore, disaster tolerance switching can cause fault pervasion, and as shown in Figure 1, shown in this Fig. 1 is that the fault of website 1 is being carried out after disaster tolerance switching, for the treatment of the website 2 of the service message of website 1, fault has also occurred to website n.
Summary of the invention
The problem of switching the fault pervasion causing in order to have solved disaster tolerance, the embodiment of the present invention provides a kind of disaster tolerance website, service message processing unit and method.Described technical scheme is as follows:
First aspect, provides a kind of disaster tolerance website, and described disaster tolerance website comprises the service message processing unit of Dispatching Unit and a plurality of mutual isolation:
Described Dispatching Unit, for receiving service message;
Whether described Dispatching Unit is the service message from fault website for detection of described service message;
Described Dispatching Unit, if be the service message from fault website for described service message, at least one the idle service message processing unit described service message being dispensed in described a plurality of service message processing unit is processed.
In conjunction with first aspect, in the possible execution mode of the first of first aspect, the service message processing unit of described free time is the service message processing unit of the reserved service message for the treatment of described fault website of described disaster tolerance website.
In conjunction with first aspect, in the possible execution mode of the second of first aspect,
Described Dispatching Unit, for selecting the minimum one or more service message processing units of described disaster tolerance website present load;
Described Dispatching Unit, obtains the service message processing unit of described free time for the service message that belongs to described disaster tolerance website of the minimum service message processing unit processes of described load all being migrated to service message processing unit described in other in described disaster tolerance website.
In conjunction with first aspect, in the third possible execution mode of first aspect,
Described Dispatching Unit, for detecting respectively the average load of the first module group in described disaster tolerance website and the average load of second unit group, described first module group comprises the service message processing unit for the treatment of the service message of described disaster tolerance website, and described second unit group comprises the service message processing unit for the treatment of the service message from other fault websites;
Described Dispatching Unit, for dynamically adjusting the quantity of the service message processing unit of described first module group and described second unit group according to the average load of described first module group and described second unit group.
In conjunction with the third possible execution mode of first aspect, in the 4th kind of possible execution mode of first aspect,
Described Dispatching Unit, surpasses the first predetermined threshold value for the average load described first module group being detected, and the average load of described second unit group is during lower than the second predetermined threshold value, selects 1 service message processing unit in described second unit group;
Described Dispatching Unit, for migrating to the whole service messages from other fault websites of described service message processing unit for processing other service message processing unit of described second unit group;
Described Dispatching Unit, for calling in described service message processing unit to described first module group.
In conjunction with the third possible execution mode of first aspect, in the 5th kind of possible execution mode of first aspect,
Described Dispatching Unit, for the average load described first module group being detected, lower than the first predetermined threshold value, and the average load of described second unit group is while surpassing the second predetermined threshold value, selects 1 service message processing unit in described first module group;
Described Dispatching Unit, for by belonging to of described service message processing unit for processing described disaster tolerance website whole service messages migrate to other service message processing unit of described first module group;
Described Dispatching Unit, for calling in described service message processing unit to described second unit group.
In conjunction with the 4th kind of possible execution mode of first aspect, or the 5th kind of possible execution mode of first aspect, in the 6th kind of possible execution mode of first aspect,
Described Dispatching Unit, for after calling in described service message processing unit to active cell group, what described active cell group was set to scheduled duration forbids recalling state, described in forbid that the state that recalls refers to the state of forbidding recalling from described active cell group described service message processing unit.
In conjunction with first aspect, or the possible execution mode of the first of first aspect, or the possible execution mode of the second of first aspect, or the third possible execution mode of first aspect, or the 4th kind of possible execution mode of first aspect, or the 5th kind of possible execution mode of first aspect, or the 6th kind of possible execution mode of first aspect, in the 7th kind of possible execution mode of first aspect
Described Dispatching Unit, whether for according to the indicated information of the flag of described service message, detecting described service message is the service message from fault website.
In conjunction with the 7th kind of possible execution mode of first aspect, in the 8th kind of possible execution mode of first aspect,
Described Dispatching Unit, whether the sign of carrying for detection of the flag in described service message is the site identity of disaster tolerance website, the sign that described flag is carried is the sign that described front end network element adds in described service message; If described sign is not the site identity of described disaster tolerance website, described service message is the service message from fault website;
Or,
Whether described Dispatching Unit, carry the first designated identification for detection of the flag in described service message, described the first designated identification sign that to be described front end network element add during for service message from described fault website at described service message; If carry the first designated identification in described flag, described service message is the service message from fault website;
Or,
Whether described Dispatching Unit, carry the second designated identification for detection of the flag in described service message, described the second designated identification sign that to be described front end network element add when described service message is not the service message from fault website; If do not carry the second designated identification in described flag, described service message is the service message from fault website.
Second aspect, provides a kind of service message processing unit, and for disaster tolerance website, described disaster tolerance website comprises the service message processing unit of a plurality of mutual isolation, and described device comprises
Service message receiver module, for receiving service message;
Whether service message detection module is the service message from fault website for detection of described service message;
Service message processing module, when at described service message being the service message from fault website, at least one idle service message processing unit that described service message is dispensed in described a plurality of service message processing unit is processed.
In conjunction with second aspect, in the possible execution mode of the first of second aspect, the service message processing unit of described free time is the service message processing unit of the reserved service message for the treatment of described fault website of described disaster tolerance website.
In conjunction with second aspect, in the possible execution mode of the second of second aspect, described device, also comprises:
Processing unit is selected module, for selecting the minimum one or more service message processing units of described disaster tolerance website present load;
Idle processing unit obtains module, obtains the service message processing unit of described free time for the service message that belongs to described disaster tolerance website of the minimum service message processing unit processes of described load all being migrated to service message processing unit described in other in described disaster tolerance website.
In conjunction with second aspect, in the third possible execution mode of second aspect, described device, also comprises:
Average load detection module, for detecting respectively the average load of the first module group in described disaster tolerance website and the average load of second unit group, described first module group comprises the service message processing unit for the treatment of the service message of described disaster tolerance website, and described second unit group comprises the service message processing unit for the treatment of the service message from other fault websites;
Dynamic adjusting module, for dynamically adjusting the quantity of the service message processing unit of described first module group and described second unit group according to the average load of described first module group and described second unit group.
In conjunction with the third possible execution mode of second aspect, in the 4th kind of possible execution mode of second aspect, described dynamic adjusting module, comprising:
Processing unit selected cell, surpasses the first predetermined threshold value for the average load described first module group being detected, and the average load of described second unit group is during lower than the second predetermined threshold value, selects 1 service message processing unit in described second unit group;
Service message migration units, for migrating to the whole service messages from other fault websites of described service message processing unit for processing other service message processing unit of described second unit group;
Processing unit is called in unit, for described service message processing unit is called in to described first module group.
In conjunction with the third possible execution mode of second aspect, in the 5th kind of possible execution mode of second aspect, described dynamic adjusting module, comprising:
Described processing unit selected cell, be used in the average load that described first module group detected lower than the first predetermined threshold value, and when the average load of described second unit group surpasses the second predetermined threshold value, select 1 service message processing unit in described first module group;
Described service message migration units, for by belonging to of described service message processing unit for processing described disaster tolerance website whole service messages migrate to other service message processing unit of described first module group;
Described processing unit is called in unit, for described service message processing unit is called in to described second unit group.
In conjunction with the 4th kind of possible execution mode of second aspect, or the 5th kind of possible execution mode of second aspect, in the 6th kind of possible execution mode of second aspect, described device, also comprises:
Illegal state arranges module, for after calling in described service message processing unit to active cell group, what described active cell group was set to scheduled duration forbids recalling state, described in forbid that the state that recalls refers to the state of forbidding recalling from described active cell group described service message processing unit.
In conjunction with second aspect, or the possible execution mode of the first of second aspect, or the possible execution mode of the second of second aspect, or the third possible execution mode of second aspect, or the 4th kind of possible execution mode of second aspect, or the 5th kind of possible execution mode of second aspect, or the 6th kind of possible execution mode of second aspect, in the 7th kind of possible execution mode of second aspect
Described service message detection module, whether for according to the indicated information of the flag of described service message, detecting described service message is the service message from fault website.
In conjunction with the 7th kind of possible execution mode of second aspect, in the 8th kind of possible execution mode of second aspect,
Described service message detection module, comprising:
Site identity detecting unit, whether the sign of carrying for detection of the flag in described service message is the site identity of disaster tolerance website, the sign that described flag is carried is the sign that described front end network element adds in described service message; If described sign is not the site identity of described disaster tolerance website, described service message is the service message from fault website;
Or,
The first designated identification detecting unit, for detection of the flag in described service message, whether carry the first designated identification, described the first designated identification sign that to be described front end network element add during for service message from described fault website at described service message; If carry the first designated identification in described flag, described service message is the service message from fault website;
Or,
Whether the second designated identification detecting unit, carry the second designated identification for detection of the flag in described service message, described the second designated identification sign that to be described front end network element add when described service message is not the service message from fault website; If do not carry the second designated identification in described flag, described service message is the service message from fault website.
The third aspect, provides a kind of service message processing method, and for disaster tolerance website, described disaster tolerance website comprises the service message processing unit of a plurality of mutual isolation, and described method comprises:
Receive service message;
Whether detect described service message is the service message from fault website;
If described service message is the service message from fault website, at least one the idle service message processing unit described service message being dispensed in described a plurality of service message processing unit is processed.
In conjunction with the third aspect, in the possible execution mode of the first of the third aspect, the service message processing unit of described free time is the service message processing unit of the reserved service message for the treatment of described fault website of described disaster tolerance website.
In conjunction with the third aspect, in the possible execution mode of the second of the third aspect, described described service message is dispensed to before at least one idle service message processing unit in described a plurality of service message processing unit processes, also comprise:
Select the minimum one or more service message processing units of present load in described disaster tolerance website;
The service message that belongs to described disaster tolerance website of the minimum service message processing unit processes of described load is all migrated to the service message processing unit that service message processing unit described in other in described disaster tolerance website obtains the described free time.
In conjunction with the third aspect, in the third possible execution mode of the third aspect, described method, also comprises:
Detect respectively the average load of the first module group in described disaster tolerance website and the average load of second unit group, described first module group comprises the service message processing unit for the treatment of the service message of described disaster tolerance website, and described second unit group comprises the service message processing unit for the treatment of the service message from other fault websites;
According to the average load of described first module group and described second unit group, dynamically adjust the quantity of the service message processing unit in described first module group and described second unit group.
The third possible execution mode in conjunction with the third aspect, in the 4th kind of possible execution mode of the third aspect, described according to the dynamic quantity of adjusting the service message processing unit in described first module group and described second unit group of the average load of described first module group and described second unit group, comprising:
If the average load of described first module group detected, surpass the first predetermined threshold value, and the average load of described second unit group is lower than the second predetermined threshold value, selects 1 service message processing unit in described second unit group;
Whole service messages from other fault websites of described service message processing unit for processing are migrated to other service message processing unit in described second unit group;
Described service message processing unit is called in to described first module group.
The third possible execution mode in conjunction with the third aspect, in the 5th kind of possible execution mode of the third aspect, described according to the dynamic quantity of adjusting the service message processing unit in described first module group and described second unit group of the average load of described first module group and described second unit group, comprising:
If the average load of described first module group detected lower than the first predetermined threshold value, and the average load of described second unit group is over the second predetermined threshold value, selects 1 service message processing unit in described first module group;
By belonging to of described service message processing unit for processing, whole service messages of described disaster tolerance website migrate to other service message processing unit in described first module group;
Described service message processing unit is called in to described second unit group.
In conjunction with the 4th kind of possible execution mode of the third aspect, or the 5th kind of possible execution mode of the third aspect, in the 6th kind of possible execution mode of the third aspect, described method, also comprises:
After calling in described service message processing unit to active cell group, what described active cell group was set to scheduled duration forbids recalling state, described in forbid that the state that recalls refers to the state of forbidding recalling from described active cell group described service message processing unit.
In conjunction with the third aspect, or the possible execution mode of the first of the third aspect, or the possible execution mode of the second of the third aspect, or the third possible execution mode of the third aspect, or the 4th kind of possible execution mode of the third aspect, or the 5th kind of possible execution mode of the third aspect, or the 6th kind of possible execution mode of the third aspect, in the 7th kind of possible execution mode of the third aspect, whether the described service message of described detection is from the service message of fault website, comprising:
Whether according to the indicated information of the flag in described service message, detecting described service message is the service message from fault website.
The 7th kind of possible execution mode in conjunction with the third aspect, in the 8th kind of possible execution mode of the third aspect, described according to the indicated information of the flag in described service message, whether be from the service message of fault website, comprising if detecting described service message:
Detect whether the sign that the flag in described service message carries is the site identity of disaster tolerance website, the sign that described flag is carried is the sign that described front end network element adds in described service message; If described sign is not the site identity of described disaster tolerance website, described service message is the service message from fault website;
Or,
Whether the flag detecting in described service message carries the first designated identification, described the first designated identification sign that to be described front end network element add during for service message from described fault website at described service message; If carry the first designated identification in described flag, described service message is the service message from fault website;
Or,
Whether the flag detecting in described service message carries the second designated identification, described the second designated identification sign that to be described front end network element add when described service message is not the service message from fault website; If do not carry the second designated identification in described flag, described service message is the service message from fault website.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By receiving service message; Whether detect this service message is the service message from fault website; If this service message is the service message from fault website, at least one the idle service message processing unit this service message being dispensed in the service message processing unit of a plurality of mutual isolation in disaster tolerance website is processed; Solved the problem that disaster tolerance switches the fault pervasion causing; Even if fault is spread, also range of scatter is limited in segregate scope, can not have influence on the effect of other scope.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of resource pool with CSCF being comprised of a plurality of websites that prior art provides;
Fig. 2 is the structural representation of the service message treatment system that provides of the present invention part embodiment;
Fig. 3 is the structural representation of the disaster tolerance website that provides of one embodiment of the invention;
Fig. 4 is the structural representation of the service message treatment system that provides of another part embodiment of the present invention;
Fig. 5 is the structural representation of the disaster tolerance website that provides of another embodiment of the present invention;
Fig. 6 is the block diagram of the service message processing unit that provides of one embodiment of the invention;
Fig. 7 is the block diagram of the service message processing unit that provides of another embodiment of the present invention;
Fig. 8 is the method flow diagram of the service message processing method that provides of one embodiment of the invention;
Fig. 9 is the method flow diagram of the service message processing method that provides of another embodiment of the present invention;
Figure 10 is that a kind of quantity to the service message processing unit of first module group and second unit group that the embodiment of the present invention provides is carried out the schematic diagram of dynamically adjusting;
Figure 11 is the method flow diagram of the service message processing method that provides of another embodiment of the present invention;
Figure 12 is the method flow diagram of the service message processing method that provides of another embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Please refer to Fig. 2, it shows the structural representation of the service message treatment system that the present invention part embodiment provides.This system comprises front end network element 22 and is arranged at least 2 websites of resource pool 24.At least 2 websites of take in figure in resource pool 24 illustrate as website 1 and website 2 as example.
Front end network element 22 is for to each website distribution service message.Front end network element 22 can be a network equipment, such as front end network element 22 can be SBC (session border controller, Session Border Controller).
Front end network element 22 is connected by cable network or wireless network with each website.Also, front end network element 22 is connected respectively with website 2 with website 1 by cable network or wireless network.
Website 1 and website 2 are for the treatment of the service message of front end network element 22 distributions.This website 1 and website 2 can be the websites with CSCF (call session control function, CSCF).In the present embodiment, website 1 comprises 1 Dispatching Unit 241 and a plurality of service message processing unit 243, and website 2 comprises 1 Dispatching Unit 242 and a plurality of service message processing unit 244.
In other words, the processing resource of website 1 is divided into a plurality of service message processing units 243, the processing service message of each service message processing unit 243 for mutually isolating; The processing resource of website 2 is divided into a plurality of service message processing units 244, the processing service message of each service message processing unit 244 for mutually isolating.
In a kind of possible implementation, each service message processing unit 243 and each service message processing unit 244 can be process and/or the threads of isolation mutually; In the possible implementation of another kind, each service message processing unit 243 and each service message processing unit 244 can be the virtual machines of mutually isolating; In another possible implementation, each service message processing unit 243 and each service message processing unit 244 can be the servers of mutually isolating.
Please refer to Fig. 3, it shows the structural representation of the disaster tolerance website that one embodiment of the invention provides.Referring to Fig. 3, this disaster tolerance website can comprise: the service message processing unit 320 of Dispatching Unit 310 and a plurality of mutual isolation.
This Dispatching Unit 310, for receiving service message.
Whether this Dispatching Unit 310 is the service message from fault website for detection of this service message.
This Dispatching Unit 310, if be the service message from fault website for this service message, at least one the idle service message processing unit this service message being dispensed in the plurality of service message processing unit is processed.
In sum, the disaster tolerance website that the embodiment of the present invention provides, Dispatching Unit is by receiving service message; Whether detect this service message is the service message from fault website; If this service message is the service message from fault website, at least one the idle service message processing unit this service message being dispensed in the service message processing unit of a plurality of mutual isolation in disaster tolerance website is processed; Solved the problem that disaster tolerance switches the fault pervasion causing; Even if fault is spread, also range of scatter is limited in segregate scope, can not have influence on the effect of other scope.
Please refer to Fig. 4, it shows the structural representation of the service message treatment system that another part embodiment of the present invention provides.This system comprises front end network element 22 and is arranged at least 2 websites of resource pool 24.At least 2 websites of take in figure in resource pool 24 illustrate as website 1 and website 2 as example.
Different from system shown in Figure 2 is, in native system, a plurality of service message processing units in disaster tolerance website (website 2) are divided into two unit groups, be respectively first module group 262 and second unit group 264, and by detecting the average load of first module group and the average load of second unit group, according to the average load of first module group and second unit group, dynamically adjust the quantity of the service message processing unit in first module group and second unit group.
Wherein, this first module group 262 is the unit group for the treatment of the service message of disaster tolerance website, and this second unit group 264 is the unit group for the treatment of the service message from fault website.
Please refer to Fig. 5, it shows the structural representation of the disaster tolerance website that another embodiment of the present invention provides.Referring to Fig. 5, this disaster tolerance website can comprise: the service message processing unit 520 of Dispatching Unit 510 and a plurality of mutual isolation.
This Dispatching Unit 510, for receiving service message.
Whether this Dispatching Unit 510 is the service message from fault website for detection of this service message.
This Dispatching Unit 510, if be the service message from fault website for this service message, at least one the idle service message processing unit this service message being dispensed in the plurality of service message processing unit is processed.
Alternatively, this idle service message processing unit is the service message processing unit of the reserved service message for the treatment of this fault website of this disaster tolerance website.
Alternatively,
This Dispatching Unit 510, for selecting the minimum one or more service message processing units of this disaster tolerance website present load;
This Dispatching Unit 510, obtains this idle service message processing unit for other this service message processing unit that the service message that belongs to this disaster tolerance website of the minimum service message processing unit processes of this load is all migrated in this disaster tolerance website.
Alternatively,
This Dispatching Unit 510, for detecting respectively the average load of the first module group in this disaster tolerance website and the average load of second unit group, this first module group comprises the service message processing unit for the treatment of the service message of this disaster tolerance website, and this second unit group comprises the service message processing unit for the treatment of the service message from other fault websites;
This Dispatching Unit 510, for dynamically adjusting the quantity of the service message processing unit of this first module group and this second unit group according to the average load of this first module group and this second unit group.
Alternatively,
This Dispatching Unit 510, surpasses the first predetermined threshold value for the average load this first module group being detected, and the average load of this second unit group is during lower than the second predetermined threshold value, selects 1 service message processing unit in this second unit group;
This Dispatching Unit 510, for migrating to the whole service messages from other fault websites of this service message processing unit for processing other service message processing unit of this second unit group;
This Dispatching Unit 510, for calling in this service message processing unit to this first module group.
Alternatively,
This Dispatching Unit 510, for the average load this first module group being detected, lower than the first predetermined threshold value, and the average load of this second unit group is while surpassing the second predetermined threshold value, selects 1 service message processing unit in this first module group;
This Dispatching Unit 510, for migrating to the whole service messages that belong to this disaster tolerance website of this service message processing unit for processing other service message processing unit of this first module group;
This Dispatching Unit 510, for calling in this service message processing unit to this second unit group.
Alternatively,
This Dispatching Unit 510, for after calling in this service message processing unit to active cell group, what this active cell group was set to scheduled duration forbids recalling state, and this forbids that the state that recalls refers to the state of forbidding recalling from this active cell group this service message processing unit.
Alternatively,
This Dispatching Unit 510, whether for according to the indicated information of the flag of this service message, detecting this service message is the service message from fault website.
Alternatively,
This Dispatching Unit 510, whether the sign of carrying for detection of the flag in this service message is the site identity of disaster tolerance website, the sign that this flag is carried is the sign that this front end network element adds in this service message; If this sign is not the site identity of this disaster tolerance website, this service message is the service message from fault website;
Or,
Whether this Dispatching Unit 510, carry the first designated identification for detection of the flag in this service message, this first designated identification sign that to be this front end network element add during for service message from this fault website at this service message; If carry the first designated identification in this flag, this service message is the service message from fault website;
Or,
Whether this Dispatching Unit 510, carry the second designated identification for detection of the flag in this service message, this second designated identification sign that to be this front end network element add when this service message is not the service message from fault website; If do not carry the second designated identification in this flag, this service message is the service message from fault website.
In sum, the disaster tolerance website that the embodiment of the present invention provides, Dispatching Unit is by receiving service message; Whether detect this service message is the service message from fault website; If this service message is the service message from fault website, at least one the idle service message processing unit this service message being dispensed in the service message processing unit of a plurality of mutual isolation in disaster tolerance website is processed; Solved the problem that disaster tolerance switches the fault pervasion causing; Even if fault is spread, also range of scatter is limited in segregate scope, can not have influence on the effect of other scope.
The disaster tolerance website that the embodiment of the present invention provides, Dispatching Unit is by selecting the minimum one or more service message processing units of present load in disaster tolerance website, other this service message processing unit that the service message that belongs to disaster tolerance website of the minimum service message processing unit processes of this load is all migrated in disaster tolerance website obtains idle service message processing unit, to be embodied as the reserved idle service message processing unit of service message from fault website; When having guaranteed reserved idle traffic message processing unit, guaranteed that other service message processing unit in disaster tolerance website can process the service message of disaster tolerance website normally.
The disaster tolerance website that the embodiment of the present invention provides, Dispatching Unit, by detecting the average load of first module group and second unit group, is dynamically adjusted the quantity of the service message processing unit of first module group and second unit group according to this average load; Guaranteed the harmony of the average load of first module group and second unit group in disaster tolerance website.
The disaster tolerance website that the embodiment of the present invention provides, when Dispatching Unit does not surpass the second predetermined threshold value by surpass the average load of the first predetermined threshold value and second unit group in the average load of first module group, from second unit group to first module group, call in a service message processing unit; Guaranteed the priority treatment to the service message in disaster tolerance website.
The disaster tolerance website that the embodiment of the present invention provides, when Dispatching Unit surpasses the second predetermined threshold value by do not surpass the average load of the first predetermined threshold value and second unit group in the average load of first module group, from first module group to second unit group, call in a service message processing unit; Guaranteed to process as much as possible the service message from fault website.
The disaster tolerance website that the embodiment of the present invention provides, Dispatching Unit is by calling in after service message processing unit to active cell group, and what active cell group was set to scheduled duration forbids recalling state; Avoided between first module group and second unit group, calling in frequently or recalling service message processing unit, saved unnecessary loaded down with trivial details step.
The disaster tolerance website that the embodiment of the present invention provides, whether the sign that Dispatching Unit carries by the flag of detection service message is the site identity of disaster tolerance website; Or whether Dispatching Unit carry the first designated identification by detecting being designated of service message, this first designated identification sign that to be front end network element add during for service message from this fault website at this service message; Or whether Dispatching Unit carry the second designated identification by detecting the flag of service message, this second designated identification sign that to be front end network element add when this service message is not the service message from fault website; Enriched the mode of the service message of Dispatching Unit detection failure website.
Please refer to Fig. 6, it shows the block diagram of the service message processing unit that one embodiment of the invention provides.This service message processing unit can be realized and be become the some or all of of Dispatching Unit 242 in system shown in Figure 2 by software, hardware or both combinations.This service message processing unit can comprise: service message receiver module 610, service message detection module 620 and service message processing module 630.
Service message receiver module 610, for receiving service message.
Service message detection module 620, whether the service message receiving for detection of service message receiver module 610 is the service message from fault website.
Service message processing module 630, while being the service message from fault website for this service message detected at service message detection module 620, at least one idle service message processing unit that this service message is dispensed in a plurality of service message processing units is processed.
In sum, the service message processing unit that the embodiment of the present invention provides, by receiving service message; Whether detect this service message is the service message from fault website; If this service message is the service message from fault website, at least one the idle service message processing unit this service message being dispensed in the service message processing unit of a plurality of mutual isolation in disaster tolerance website is processed; Solved the problem that disaster tolerance switches the fault pervasion causing; Even if fault is spread, also range of scatter is limited in segregate scope, can not have influence on the effect of other scope.
Please refer to Fig. 7, it shows the block diagram of the service message processing unit that another embodiment of the present invention provides.This service message processing unit can be realized and be become the some or all of of Dispatching Unit 242 in system shown in Figure 4 by software, hardware or both combinations.This service message processing unit can comprise: service message receiver module 710, service message detection module 720 and service message processing module 730.
Service message receiver module 710, for receiving service message.
Service message detection module 720, whether the service message receiving for detection of service message receiver module 710 is the service message from fault website.
Service message processing module 730, while being the service message from fault website for this service message detected at service message detection module 720, at least one idle service message processing unit that this service message is dispensed in a plurality of service message processing units is processed.
Alternatively, this idle service message processing unit is the service message processing unit of the reserved service message for the treatment of this fault website of this disaster tolerance website.
Alternatively, this device, also comprises:
Processing unit is selected module 740, for selecting the minimum one or more service message processing units of this disaster tolerance website present load;
Idle processing unit obtains module 750, and other this service message processing unit all migrating in this disaster tolerance website for the service message that belongs to this disaster tolerance website of the minimum service message processing unit processes of the load of selecting module 740 to choose processing unit obtains this idle service message processing unit.
Alternatively, this device, also comprises:
Average load detection module 760, for detecting respectively the average load of the first module group in disaster tolerance website and the average load of second unit group, this first module group comprises the service message processing unit for the treatment of the service message of this disaster tolerance website, and this second unit group comprises the service message processing unit for the treatment of the service message from other fault websites;
Dynamic adjusting module 770, dynamically adjusts the quantity of the service message processing unit of first module group and second unit group for the average load of the first module group that detects according to average load detection module 760 and this second unit group.
Alternatively, this dynamic adjusting module 770, comprising:
Processing unit selected cell 771, for the average load of first module group detected at average load detection module 760, surpass the first predetermined threshold value, and the average load of second unit group during lower than the second predetermined threshold value, is selected 1 service message processing unit in second unit group;
Service message migration units 772, migrates to other service message processing unit of this second unit group for the whole service messages from other fault websites of service message processing unit for processing that processing unit selected cell 771 is chosen;
Processing unit is called in unit 773, for the service message processing unit that 772 migrations of service message migration units are obtained, calls in to first module group.
Alternatively, this dynamic adjusting module 770, comprising:
This processing unit selected cell 771, the average load that is used for first module group being detected at average load detection module 760 is lower than the first predetermined threshold value, and when the average load of second unit group surpasses the second predetermined threshold value, select 1 service message processing unit in first module group;
This service message migration units 772, migrates to other service message processing unit of first module group for the whole service messages that belong to disaster tolerance website of service message processing unit for processing that processing unit selected cell 771 is chosen;
This processing unit is called in unit 773, for 772 migrations of service message migration units are obtained to service message processing unit, calls in to second unit group.
Alternatively, this device, also comprises:
Illegal state arranges module 780, for after calling in this service message processing unit to active cell group, what active cell group was set to scheduled duration forbids recalling state, and this forbids that the state that recalls refers to the state of forbidding recalling from active cell group this service message processing unit.
Alternatively,
This service message detection module 720, whether for according to the indicated information of the flag of this service message, detecting this service message is the service message from fault website.
Alternatively,
This service message detection module 720, comprising:
Site identity detecting unit 721, whether the sign that the flag in the service message receiving for detection of service message receiver module 710 is carried is the site identity of disaster tolerance website, and the sign that this flag is carried is the sign that this front end network element adds in this service message; If this sign is not the site identity of this disaster tolerance website, this service message is the service message from fault website;
Or,
The first designated identification detecting unit 722, whether the flag in the service message receiving for detection of service message receiver module 710 carries the first designated identification, this first designated identification sign that to be this front end network element add during for service message from this fault website at this service message; If carry the first designated identification in this flag, this service message is the service message from fault website;
Or,
The second designated identification detecting unit 723, whether the flag in the service message receiving for detection of service message receiver module 710 carries the second designated identification, this second designated identification sign that to be this front end network element add when this service message is not the service message from fault website; If do not carry the second designated identification in this flag, this service message is the service message from fault website.
In sum, the service message processing unit that the embodiment of the present invention provides, by receiving service message; Whether detect this service message is the service message from fault website; If this service message is the service message from fault website, at least one the idle service message processing unit this service message being dispensed in the service message processing unit of a plurality of mutual isolation in disaster tolerance website is processed; Solved the problem that disaster tolerance switches the fault pervasion causing; Even if fault is spread, also range of scatter is limited in segregate scope, can not have influence on the effect of other scope.
The service message processing unit that the embodiment of the present invention provides, by selecting the minimum one or more service message processing units of present load in disaster tolerance website, other this service message processing unit that the service message that belongs to disaster tolerance website of the minimum service message processing unit processes of this load is all migrated in disaster tolerance website obtains idle service message processing unit, to be embodied as the reserved idle service message processing unit of service message from fault website; When having guaranteed reserved idle traffic message processing unit, guaranteed that other service message processing unit in disaster tolerance website can process the service message of disaster tolerance website normally.
The service message processing unit that the embodiment of the present invention provides, by detecting the average load of first module group and second unit group, dynamically adjusts the quantity of the service message processing unit of first module group and second unit group according to this average load; Guaranteed the harmony of the average load of first module group and second unit group in disaster tolerance website.
The service message processing unit that the embodiment of the present invention provides, when the average load that surpasses the first predetermined threshold value and second unit group by the average load in first module group does not surpass the second predetermined threshold value, from second unit group to first module group, call in a service message processing unit; Guaranteed the priority treatment to the service message in disaster tolerance website.
The service message processing unit that the embodiment of the present invention provides, when the average load that does not surpass the first predetermined threshold value and second unit group by the average load in first module group surpasses the second predetermined threshold value, from first module group to second unit group, call in a service message processing unit; Guaranteed to process as much as possible the service message from fault website.
The service message processing unit that the embodiment of the present invention provides, by calling in after service message processing unit to active cell group, what active cell group was set to scheduled duration forbids recalling state; Avoided between first module group and second unit group, calling in frequently or recalling service message processing unit, saved unnecessary loaded down with trivial details step.
The service message processing unit that the embodiment of the present invention provides, whether the sign of carrying by the flag of detection service message is the site identity of disaster tolerance website; Or by detecting being designated of service message, whether carry the first designated identification, this first designated identification sign that to be front end network element add during for service message from this fault website at this service message; Or by detecting the flag of service message, whether carry the second designated identification, this second designated identification sign that to be front end network element add when this service message is not the service message from fault website; Enriched the mode of the service message of detection failure website.
Please refer to Fig. 8, it shows the method flow diagram of the service message processing method that one embodiment of the invention provides.The present embodiment is applied in disaster tolerance website with this service message processing method, and this disaster tolerance website comprises that the service message processing unit of Dispatching Unit and a plurality of mutual isolation is illustrated.Referring to Fig. 8, the method flow process specifically comprises:
801, receive service message.
Whether 802, detect this service message is the service message from fault website.
If 803 these service messages are the service messages from fault website, at least one the idle service message processing unit this service message being dispensed in the plurality of service message processing unit is processed.
In sum, the service message processing method that the embodiment of the present invention provides, by receiving service message; Whether detect this service message is the service message from fault website; If this service message is the service message from fault website, at least one the idle service message processing unit this service message being dispensed in the service message processing unit of a plurality of mutual isolation in disaster tolerance website is processed; Solved the problem that disaster tolerance switches the fault pervasion causing; Even if fault is spread, also range of scatter is limited in segregate scope, can not have influence on the effect of other scope.
Please refer to Fig. 9, it shows the method flow diagram of the service message processing method that another embodiment of the present invention provides.The present embodiment is applied in system shown in Figure 2 with this service message processing method, and supposes that the website 1 in this system is fault website, and website 2 illustrates as the disaster tolerance website of website 1.
Referring to Fig. 9, the method flow process specifically comprises:
901, receive service message.
Wherein, this service message is the service message of front end network element distribution.
When front end network element is website 2 distribution service message, website 2 receives this service message.
Wherein, this service message may be the service message of website 2 self, may be also the service message from fault website.
Particularly, front end network element, can be according to load balancing principle to each website distribution service message when to each website distribution service message.That is, while there is the service message that needs distribution in front end network element, front end network element, in each website, is selected the relatively low website of load, and to this website distribution service message.
But when certain website in resource pool breaks down, this front end network element can will be distributed to the service message of fault website originally, is transmitted to the normal website in this resource pool, thereby the service message of this fault website is carried out to disaster tolerance switching.
902, whether, according to the indicated information of the flag in this service message, detecting this service message is the service message from fault website.
In embodiments of the present invention, for the ease of each website, differentiating service message is the service message of self, or the service message from fault website, front end network element can be arranged with each website, when distribution service message, in this service message, arrange a flag, so that each website is when receiving the service message of front end network element distribution, whether according to the indicated information of the flag in this service message, detecting this service message is the service message forwarding from fault website.
Wherein, this is according to the indicated information of the flag in service message, and the service message that detects this service message and be whether from fault website comprises three kinds of implementations:
The first implementation: whether the sign that the flag in website 2 these service messages of detection is carried is the site identity of disaster tolerance website.The sign that this flag is carried is the sign that front end network element adds in service message; If this sign is not the site identity of disaster tolerance website, this service message is the service message from fault website.
Particularly, front end network element, when distribution service message, can all add sign to the flag of all service messages, and this all service message comprises the service message of disaster tolerance website and the service message of fault website, and preferably, this is designated site identity.
Such as, when front end network element is distributed to website 1 by service message A, in the flag of service message A, add the site identity of website 1; Again such as, when front end network element is distributed to website 2 by service message B, in the flag of service message B, add the site identity of website 2.
Take this service message as SIP (Session Initiation Protocol, conversation initialized protocol) message is example, front end network element can add a SIP header field in the flag of this service message, this header field is just the corresponding site identity of this service message, as, this header field can be Origin-Station:XX, and wherein, XX is the corresponding site identity of this service message.
When disaster tolerance website (website 2) receives this service message, the sign that the sign that Dispatching Unit in this disaster tolerance website (website 2) carries according to the flag in this service message and disaster tolerance website (website 2) are safeguarded, whether the entrained sign of flag detecting in this service message is the site identity of this disaster tolerance website (website 2).If the sign that this flag is carried is not the site identity of disaster tolerance website (website 2), this service message is from fault website service message.
It should be noted that, front end network element is when being forwarded to disaster tolerance website by the service message of fault website, and the sign that can not add the flag of this service message is changed.
Such as, when front end network element is distributed to website 1 by service message A, flag at service message A is added sign, suppose that this is designated Origin-Station:ID-1, when front end network element is dispensed to website 1 by service message A, find that this website 1 breaks down, and this service message A will be distributed to website 2 time, front end network element can not changed the sign of having added in this service message,, front end network element, by still carrying the service message A of the sign of Origin-Station:ID-1, is distributed to website 2.Suppose that the sign that website 2 is safeguarded is Origin-Station:ID-2, because Origin-Station:ID-1 is different from Origin-Station:ID-2, the Dispatching Unit in website 2 will detect the site identity that this sign is not this website 2, thereby the service message that carries this sign is the service message from website 1 (fault website).
The second implementation: whether the flag that website 2 detects in these service messages carries the first designated identification, this first designated identification sign that to be front end network element add during for service message from fault website at this service message; If carry the first designated identification in this flag, this service message is the service message from fault website.
Particularly, front end network element, when distribution service message, can add the first designated identification to the flag of the service message of fault website.Such as, this first designated identification can be " ERROR ", for representing that this service message is the service message from fault website.Preferably, the site identity that this first designated identification is fault website.
Such as, suppose that website 1 is for fault website, website 2 is disaster tolerance website.Front end network element is when distributing to website 2 by the service message of website 1, and the flag in this service message is added the first designated identification, for identifying this service message, is the service message from website 1 (fault website).
The third implementation: whether the flag that website 2 detects in these service messages carries the second designated identification, this second designated identification sign that to be front end network element add when this service message is not the service message from fault website; If do not carry the second designated identification in this flag, this service message is the service message from fault website.
Particularly, front end network element, when distribution service message, can add the second designated identification to the flag of the service message of disaster tolerance website.Such as, this second designated identification can be " NOERROR ", for representing that this service message is the service message of disaster tolerance website.Preferably, the site identity that this second designated identification is disaster tolerance website.
Such as, suppose that website 2 is for disaster tolerance website, service message B is the service message of website 2 self, and front end network element is when distributing to website 2 by service message B, flag at this service message B is added the second designated identification, for representing that this service message is the service message of disaster tolerance website.
When website 2 receives the service message that does not carry this second designated identification, this website 2 just thinks that this service message is the service message from fault website.
If 903 these service messages are the service messages from fault website, at least one the idle service message processing unit this service message being dispensed in a plurality of service message processing units is processed.
Wherein, this idle service message processing unit is the reserved service message processing unit for the treatment of the service message from fault website of disaster tolerance website.
Wherein, this disaster tolerance website a plurality of service message processing units are mutually isolation, also be, when the service message by this from fault website is distributed at least one idle service message processing unit in the plurality of service message processing unit and is processed, can realize to carrying out the isolation processing of the service message of fault website, to avoid fault pervasion.
But, it should be noted that, in embodiments of the present invention, this disaster tolerance website, when the reserved service message processing unit for the treatment of the service message from fault website, can comprise following two steps:
Step 1, website 2 is selected the minimum one or more service message processing units of present load in disaster tolerance website (website 2).
In embodiments of the present invention, website 2 is being that while reserving service message processing unit from the service message of fault website, the Dispatching Unit in website 2 is selected the minimum service message processing unit of load in website 2.
Wherein, website 2 can be selected a service message processing unit that load is minimum, also can in the plurality of service message processing unit, select the relatively low a plurality of service message processing units of load, and the embodiment of the present invention is not construed as limiting this.
Step 2, other service message processing unit that website 2 all migrates to the service message that belongs to disaster tolerance website (website 2) of the minimum service message processing unit processes of this load in disaster tolerance website obtains idle service message processing unit.
When Dispatching Unit in website 2 selects to obtain the minimum one or more service message processing unit of this load, other service message processing units of processing the service message of disaster tolerance website (website 2) that Dispatching Unit in website 2 all migrates to the minimum current service message that belongs to disaster tolerance website (website 2) of processing of service message processing unit of this load in this website 2 are processed, thereby obtain processing the service message processing unit of idle condition.
Also it should be noted that, if in disaster tolerance website (website 2) just there is the service message processing unit in idle condition in itself, so, disaster tolerance website is when the service message receiving from fault website, can be directly by this service message from fault website distribute to this service message processing unit in idle condition and process, and no longer carry out the step of reserved this idle service message processing unit in advance.
Finally need supplementary notes to be, when disaster tolerance website (website 2) is not the reserved service message processing unit of service message from fault website in advance, while there is not the just service message processing unit in idle condition own in website 2 simultaneously yet, website 2, can be for this be from the real-time distribution service message processing unit of the service message of fault website when the service message receiving from fault website.When website 2 divides Ei service message processing unit in real time for this service message from fault website, Dispatching Unit in website 2 can contrast the load of each service message processing unit in disaster tolerance website, determine the minimum service message processing unit of load, the service message that the minimum service message processing unit of this load is being processed migrates in other service message processing units in this disaster tolerance website, obtain a service message processing unit in idle condition, and by the current service message from fault website, distributing to this service message processing unit in idle condition processes.
Such as, supposing has m in website 2, n, p, q, 4 service message processing units, wherein, service message processing unit m, n, the current service message of processing disaster tolerance website of p and q, when website 2 receives the service message from fault website 1, Dispatching Unit in this website 2 can be at service message processing unit m, n, in p and q, determine the minimum service message processing unit of load, suppose that the minimum service message processing unit of the definite load of Dispatching Unit is m, Dispatching Unit is by the current service message of processing of business unit m, migrate to service message processing unit n and/or p and/or q, obtain the service message processing unit m in idle condition, and then Dispatching Unit is by the current service message from fault website 1 receiving, distributing to this industry processing unit m processes.
In sum, the service message processing method that the embodiment of the present invention provides, by receiving service message; Whether according to the indicated information of the flag in this service message, detecting this service message is the service message from fault website; If this service message is the service message from fault website, at least one the idle service message processing unit this service message being dispensed in a plurality of service message processing units is processed; Solved the problem that disaster tolerance switches the fault pervasion causing; Even if fault is spread, also range of scatter is limited in segregate scope, can not have influence on the effect of other scope.
The service message processing method that the embodiment of the present invention provides, by being in advance the service message quotation service message processing unit from fault website, when the service message receiving from fault website, directly this service message is distributed to the reserved service message processing unit in idle condition and process; Guaranteed the timely processing to the service message from fault website.
The service message processing method that the embodiment of the present invention provides, whether the sign of carrying by the flag of detection service message is the site identity of disaster tolerance website, the sign that this flag is carried is the sign that front end network element adds in service message; Or by detecting the flag of service message, whether carry the first designated identification, this first designated identification sign that to be front end network element add during for service message from fault website at this service message; Or whether carry the second designated identification by detecting the flag of service message, this second designated identification sign that to be front end network element add when this service message is not the service message from fault website, whether be the service message that carry out fault website, enriched the mode of the service message of detection failure website if detecting this service message.
The service message processing method that the embodiment of the present invention provides, Dispatching Unit in disaster tolerance website will distributed to from the service message of fault website after at least one service message processing unit in disaster tolerance website processes, be equivalent to two unit groups of existence in this disaster tolerance website, unit group is for the treatment of the service message of disaster tolerance website self, and another unit group is for the treatment of the service message from fault website.So, may be along with disaster tolerance website constantly receives the service message from fault website, being somebody's turn to do can be in overburden state for the treatment of the unit group of the service message from fault website, or, because disaster tolerance website constantly receives self service message, this unit group for the treatment of the service message of disaster tolerance website self can be in overburden state, so, the service message processing method that the embodiment of the present invention provides, also supports the quantity of the service message processing unit of these two unit groups dynamically to adjust.
In a simple example, please refer to Figure 10, a kind of quantity to the service message processing unit of first module group and second unit group that it shows the embodiment of the present invention provides is carried out the schematic diagram of dynamically adjusting, and this schematic diagram is applied to illustrate in the website 2 shown in Fig. 4 with this dynamic adjusting method.Referring to Figure 10, can find out, in disaster tolerance website (website 2), have 6 service message processing units, two unit groups (being respectively first module group and second unit group), every predetermined time interval (5 seconds), the quantity of the service message processing unit of this first module group and second unit group is dynamically adjusted.Such as, in the time of the 0th second, the quantity of the service message processing unit of second unit group is 0, and in other words, now second unit group is non-existent, and also, now all service message processing units in website 2 are all at the service message of processing disaster tolerance website; In the time of the 5th second, the quantity of the service message processing unit of second unit group is 1; In the time of the 10th second, due to more from the service message of fault website, the quantity of the service message processing unit of second unit group is adjusted into 2; In the time of the 15th second, because the average load of second unit group is still very high, the quantity of the service message processing unit of second unit group is adjusted into 3, the like.Concrete adjustment logic can be with reference to shown in following Figure 11 embodiment:
Please refer to Figure 11, it shows the method flow diagram of the service message processing method that another embodiment of the present invention provides.The present embodiment is applied to the website 2 in system shown in Figure 4 with this service message processing method, and the website in this Fig. 41 and website 2 are the website for the treatment of the service message of front end network element distribution, and still suppose that website 1 is for fault website, website 2 is illustrated for normal website (as the disaster tolerance website of website 1).Referring to Figure 11, the method flow process specifically comprises:
1101, receive service message.
This step 1101 is identical or similar with the step 901 in son embodiment illustrated in fig. 9, and the present embodiment does not repeat them here.
1102, whether, according to the indicated information of the flag in service message, detecting this service message is the service message from fault website.
This step 1102 is identical or similar with the step 902 in son embodiment illustrated in fig. 9, and the present embodiment does not repeat them here.
If 1103 these service messages are the service messages from fault website, at least one the idle service message processing unit this service message being dispensed in a plurality of service message processing units is processed.
This step 1103 is identical or similar with the step 903 in son embodiment illustrated in fig. 9, and the present embodiment does not repeat them here.
But it should be noted that, in the present embodiment, Dispatching Unit in website 2 by this service message from fault website distribute to after at least one idle service message processing unit in disaster tolerance website processes, a plurality of service message processing units that are equivalent in this website 2 have been divided into two unit groups, be respectively first module group and second unit group, in the present embodiment, first module group is for the treatment of the service message of disaster tolerance website self, and second unit group is for the treatment of the service message from fault website.
1104, whether detect respectively average load that whether average load of the first module group in disaster tolerance website surpass the first predetermined threshold value and second unit group lower than the second predetermined threshold value.
Wherein, this first module group comprises the service message processing unit for the treatment of the service message of disaster tolerance website, and this second unit group comprises the service message processing unit for the treatment of the service message from other fault websites.
Particularly, Dispatching Unit in disaster tolerance website is by after distributing at least one idle service message processing unit in second unit group and processing from the service message of fault website, this Dispatching Unit can every predetermined time interval to disaster tolerance website in the average load of service message processing unit of first module group and the average load of the service message processing unit of second unit group detect, and whether the average load that judges the service message processing unit of first module group surpasses the first predetermined threshold value, whether the average load of the service message processing unit of second unit group is lower than the second predetermined threshold value.
If the average load of the service message processing unit of this first module group surpasses the first predetermined threshold value, and the average load of the service message processing unit of second unit group is lower than the second predetermined threshold value, performs step 1105; If the average load of the service message processing unit of this first module group is lower than the first predetermined threshold value, and the average load of the service message processing unit of second unit group is over the second predetermined threshold value, performs step 1107.
Wherein, this predetermined time interval can rule of thumb be determined.Alternatively, this predetermined time interval is 5 seconds.
Wherein, this first predetermined threshold value is for weighing the height of average load of the service message processing unit of first module group, when the average load of the service message processing unit in first module group surpasses the first predetermined threshold value, illustrate that now the average load of the service message processing unit of first module group is higher; The average load of the service message processing unit in first module group is during lower than the first predetermined threshold value, illustrates that the average load of the service message processing unit in this first module group is now lower.
Wherein, this first predetermined threshold value can rule of thumb be determined.70% of the maximum average traffic load of the service message processing unit that preferably, this first predetermined threshold value is this first module group.
Wherein, this second predetermined threshold value is for weighing the height of average load of the service message processing unit of second unit group, when the average load of the service message processing unit in second unit group surpasses the second predetermined threshold value, illustrate that now the average load of the service message processing unit of second unit group is higher; The average load of the service message processing unit in second unit group is during lower than the second predetermined threshold value, illustrates that the average load of the service message processing unit in this second unit group is now lower.
Wherein, this second predetermined threshold value can rule of thumb be determined.70% of the maximum average traffic load of the service message processing unit that preferably, this second predetermined threshold value is this second unit group.
If 1105 average loads that first module group detected surpass the first predetermined threshold value, and the average load of second unit group is lower than the second predetermined threshold value, select 1 service message processing unit in second unit group, the whole service messages from other fault websites of this service message processing unit for processing are migrated to other service message processing unit in second unit group.
In above-mentioned steps 1104, if detecting the average load of the service message processing unit of first module group, the Dispatching Unit in website 2 surpasses the first predetermined threshold value, and the average load of the service message processing unit of second unit group is lower than the second predetermined threshold value, the average load of service message processing unit that the higher and second unit group of the average load of the service message processing unit of first module group now is described is lower, now, Dispatching Unit can be called in service message processing unit to first module group from second unit group, to alleviate the load pressure of the service message processing unit of first module group.
Wherein, Dispatching Unit can be selected 1 service message processing unit in second unit group, and the whole service messages from fault website that this service message processing unit is being processed migrate to other service message processing units of second unit group and process.
Alternatively, Dispatching Unit can be from second unit group, 1 service message processing unit of random selection, and other service message processing units that the current whole service messages from fault website of processing of this service message processing unit are migrated in second unit group are processed.
Alternatively, Dispatching Unit can also be according in second unit group, the loading condition of each service message processing unit, from this second unit group, select 1 service message processing unit, and other service message processing units that the current whole service messages from fault website of processing of this service message processing unit are migrated in second unit group are processed, such as, Dispatching Unit can be selected the lower service message processing unit of load in second unit group, and other service message processing units that the current whole service messages from fault website of processing of this service message processing unit are migrated in second unit group are processed.
It should be noted that, if there is the service message processing unit in idle condition in second unit group, Dispatching Unit is preferentially selected this service message processing unit in idle condition.
Also it should be noted that, if the number of the service message processing unit of second unit group is 1, so, this Dispatching Unit can ask front end network element that the current service message from fault website of processing of this service message processing unit is all migrated to other normal websites to process; Or this Dispatching Unit can also ask front end network element that the service message of self is distributed to other normal websites to process; Or this Dispatching Unit can also ask the website of front end network element from other normal websites to self place to call in service message processing unit, the concrete embodiment of the present invention loses and is construed as limiting this.
Also it should be noted that, if it is larger that the average load of the service message processing unit of first module group surpasses the degree of the first predetermined threshold value, may need to call in a plurality of service message processing units to first module group, now, Dispatching Unit can surpass according to this average load a plurality of service message processing units of the definite selection of degree of the first predetermined threshold value.
Wherein, the average load of the service message processing unit of the quantity of the plurality of service message processing unit and first module group surpasses the degree correlation of the first predetermined threshold value.; when this average load surpasses the degree of the first predetermined threshold value when larger; it is larger that Dispatching Unit can be determined the quantity of the plurality of service message processing unit; the degree that surpasses the first predetermined threshold value when this average load hour, it is less that can determine the quantity of the plurality of service message processing unit by Dispatching Unit.
Wherein, the quantity maximum of the plurality of service message processing unit is no more than the total quantity of the service message processing unit in second unit group.In actual applications, can pre-set the quantity of the plurality of service message processing unit and the functional relation that average load surpasses the degree of the first predetermined threshold value, according to this functional relation, determine the quantity of the plurality of service message processing unit.
1106, this service message processing unit is called in to first module group.
After whole service messages from fault website that Dispatching Unit is being processed the service message processing unit of choosing migrate to other service message processing units in second unit group, Dispatching Unit is called in first module group by this service message processing unit.
If 1107 average loads that first module group detected are lower than the first predetermined threshold value, and the average load of second unit group surpasses the second predetermined threshold value, select 1 service message processing unit in first module group, the whole service messages that belong to disaster tolerance website of this service message processing unit for processing are migrated to other service message processing unit in first module group.
In above-mentioned steps 1104, if the Dispatching Unit in website 2 detects the average load of service message processing unit of first module group lower than the first predetermined threshold value, and the average load of the service message processing unit of second unit group surpasses the second predetermined threshold value, the average load of service message processing unit that the lower and second unit group of the average load of the service message processing unit of first module group now is described is higher, now, Dispatching Unit can be called in service message processing unit to second unit group from first module group, to alleviate the load pressure of the service message processing unit of second unit group.
Wherein, Dispatching Unit can be selected 1 service message processing unit in first module group, and the whole service messages that belong to disaster tolerance website that this service message processing unit is being processed migrate to other service message processing units of first module group and process.
Alternatively, Dispatching Unit can be from first module group, 1 service message processing unit of random selection, and other service message processing units that the current whole service messages that belong to disaster tolerance website of processing of this service message processing unit are migrated in first module group are processed.
Alternatively, Dispatching Unit can also be according in first module group, the loading condition of each service message processing unit, from this first module group, select 1 service message processing unit, and other service message processing units that the current whole service messages that belong to disaster tolerance website of processing of this service message processing unit are migrated in first module group are processed, such as, Dispatching Unit can be selected the lower service message processing unit of load in first module group, and other service message processing units that the current whole service messages that belong to disaster tolerance website of processing of this service message processing unit are migrated in first module group are processed.
It should be noted that, if there is the service message processing unit in idle condition in first module group, Dispatching Unit is preferentially selected this service message processing unit in idle condition.
Also it should be noted that, if it is larger that the average load of the service message processing unit of second unit group surpasses the degree of the second predetermined threshold value, may need to call in a plurality of service message processing units to second unit group, now, Dispatching Unit can surpass according to this average load a plurality of service message processing units of the definite selection of degree of the second predetermined threshold value.
Wherein, the average load of the service message processing unit of the quantity of the plurality of service message processing unit and second unit group surpasses the degree correlation of the second predetermined threshold value.; when this average load surpasses the degree of the second predetermined threshold value when larger; it is larger that Dispatching Unit can be determined the quantity of the plurality of service message processing unit; the degree that surpasses the second predetermined threshold value when this average load hour, it is less that can determine the quantity of the plurality of service message processing unit by Dispatching Unit.
In actual applications, can pre-set the quantity of the plurality of service message processing unit and the functional relation that average load surpasses the degree of the second predetermined threshold value, according to this functional relation, determine the quantity of the plurality of service message processing unit.
1108, this service message processing unit is called in to second unit group.
After whole service messages that belong to disaster tolerance website that Dispatching Unit is being processed the service message processing unit of choosing migrate to other service message processing units in first module group, Dispatching Unit is called in second unit group by this service message processing unit.
In sum, the service message processing method that the embodiment of the present invention provides, by receiving service message; Whether detect this service message is the service message from fault website; If this service message is the service message from fault website, at least one the idle service message processing unit this service message being dispensed in the service message processing unit of a plurality of mutual isolation in disaster tolerance website is processed; Solved the problem that disaster tolerance switches the fault pervasion causing; Even if fault is spread, also range of scatter is limited in segregate scope, can not have influence on the effect of other scope.
The service message processing method that the embodiment of the present invention provides, by selecting the minimum one or more service message processing units of present load in disaster tolerance website, other this service message processing unit that the service message that belongs to disaster tolerance website of the minimum service message processing unit processes of this load is all migrated in disaster tolerance website obtains idle service message processing unit, to be embodied as the reserved idle service message processing unit of service message from fault website; When having guaranteed reserved idle traffic message processing unit, guaranteed that other service message processing unit in disaster tolerance website can process the service message of disaster tolerance website normally.
The service message processing method that the embodiment of the present invention provides, by detecting the average load of first module group and second unit group, dynamically adjusts the quantity of the service message processing unit of first module group and second unit group according to this average load; Guaranteed the harmony of the average load of first module group and second unit group in disaster tolerance website.
The service message processing method that the embodiment of the present invention provides, the average load that surpasses the first predetermined threshold value and second unit group by the average load in first module group during lower than the second predetermined threshold value, is called in a service message processing unit from second unit group to first module group; Guaranteed the priority treatment to the service message in disaster tolerance website.
The service message processing method that the embodiment of the present invention provides, while surpassing the second predetermined threshold value by the average load in first module group lower than the average load of the first predetermined threshold value and second unit group, from first module group to second unit group, call in a service message processing unit; Guaranteed to process as much as possible the service message from fault website.
The service message processing method that the embodiment of the present invention provides, by calling in after service message processing unit to active cell group, what active cell group was set to scheduled duration forbids recalling state; Avoided between first module group and second unit group, calling in frequently or recalling service message processing unit, saved unnecessary loaded down with trivial details step.
The service message processing method that the embodiment of the present invention provides, whether the sign of carrying by the flag of detection service message is the site identity of disaster tolerance website; Or by detecting being designated of service message, whether carry the first designated identification, this first designated identification sign that to be front end network element add during for service message from this fault website at this service message; Or by detecting the flag of service message, whether carry the second designated identification, this second designated identification sign that to be front end network element add when this service message is not the service message from fault website; Enriched the mode of the service message of detection failure website.
It should be added that, for fear of call in frequently or recall service message processing unit between first module group and second unit group, Dispatching Unit in website 2 after calling in service message processing unit in active cell group, and what can active cell group be set to scheduled duration forbids recalling state.Wherein, this forbids that the state that recalls refers to the state of forbidding recalling from active cell group service message processing unit.
Preferably, this scheduled duration can be 60 seconds, that is, in 60 seconds after active cell group is called in to service message processing unit, do not allow to recall service message processing unit from this unit group.
Such as, Dispatching Unit in website 2 had been called in service message processing unit from second unit group to first module group before 35 seconds, and the average load that the Dispatching Unit in this website 2 detects the service message processing unit of second unit group after 35 seconds has surpassed the second predetermined threshold value, , need to second unit group, call in service message processing unit from first module group, but be less than 60 due to 35, , the time interval of 35 seconds durations is in the duration of 60 seconds, this first module group is in forbidding recalling state, therefore, Dispatching Unit in this website 2 can not recall service message processing unit to second unit group from this first module group.
Again such as, Dispatching Unit in website 2 had been called in service message processing unit from second unit group to first module group before 67 seconds, and the average load that the Dispatching Unit in this website 2 detects the service message processing unit of second unit group after 67 seconds has surpassed the second predetermined threshold value, , need to second unit group, call in service message processing unit from first module group, and be greater than 60 due to 67, , the time interval of 67 seconds durations has surpassed the duration of 60 seconds, this first module group forbids recalling state in removing, therefore, Dispatching Unit in this website 2 can recall service message processing unit to second unit group from this first module group.
Also it should be noted that, in current unit group when forbidding recalling state, when the Dispatching Unit in website 2 can this forbids recalling status releasing by the time, then according to the loading condition of active cell group and another unit group, from active cell group, recall service message processing unit to another unit group.
The service message processing method that the embodiment of the present invention provides, by calling in after service message processing unit to active cell group, what active cell group was set to scheduled duration forbids recalling state; Avoided between first module group and second unit group, calling in frequently or recalling service message processing unit, saved unnecessary loaded down with trivial details step.
Please refer to Figure 12, it shows the method flow diagram of the service message processing method that another embodiment of the present invention provides.The present embodiment is applied to the website 2 in system shown in Figure 4 with this service message processing method, and the website in this Fig. 41 and website 2 are the website for the treatment of the service message of front end network element distribution, and still suppose that website 1 is for fault website, website 2 is illustrated for normal website (as the disaster tolerance website of website 1).Referring to Figure 12, the method flow process specifically comprises:
1201, receive service message.
This step 1201 is identical or similar with the step 901 in son embodiment illustrated in fig. 9, and the present embodiment does not repeat them here.
1202, whether, according to the indicated information of the flag in service message, detecting this service message is the service message from fault website.
This step 1202 is identical or similar with the step 902 in son embodiment illustrated in fig. 9, and the present embodiment does not repeat them here.
If 1203 these service messages are the service messages from fault website, at least one the idle service message processing unit this service message being dispensed in a plurality of service message processing units is processed.
This step 1203 is identical or similar with the step 903 in son embodiment illustrated in fig. 9, and the present embodiment does not repeat them here.
But it should be noted that, in the present embodiment, Dispatching Unit in website 2 by this service message from fault website distribute to after at least one idle service message processing unit in disaster tolerance website processes, a plurality of service message processing units that are equivalent in this website 2 have been divided into two unit groups, be respectively first module group and second unit group, in the present embodiment, first module group is for the treatment of the service message of disaster tolerance website self, and second unit group is for the treatment of the service message from fault website.
Whether the average load that 1204, detects the service message processing unit in first module group is over the first predetermined threshold value.
In embodiments of the present invention, the service message of website 2 priority treatment disaster tolerance websites, under the prerequisite of service message normal process that guarantees disaster tolerance website, the service message that this website 2 is processed from fault website.
Particularly, Dispatching Unit in disaster tolerance website is by after distributing at least one idle service message processing unit in second unit group and processing from the service message of fault website, this Dispatching Unit can every predetermined time interval to disaster tolerance website in the average load of service message processing unit of first module group detect, and judge whether it surpasses the first predetermined threshold value.If the average load of the service message processing unit of this first module group surpasses the first predetermined threshold value, perform step 1205; If the average load of the service message processing unit of this first module group does not surpass the first predetermined threshold value, perform step 1208.
Wherein, this predetermined time interval is identical with the first predetermined threshold value or similar with the Preset Time interval in embodiment illustrated in fig. 11 with this first predetermined threshold value, and the present embodiment repeats no more this.
If the average load of the service message processing unit of 1205 first module groups surpasses the first predetermined threshold value, whether the quantity that detects the service message processing unit in second unit group is 0.
In above-mentioned steps 1204, if detecting the average load of the service message processing unit of first module group, Dispatching Unit surpasses the first predetermined threshold value, the now average load of the service message processing unit of this first module group of explanation is higher, likely in this first module group part or all of service message processing unit in overburden state.
In order to guarantee the processing to the service message of disaster tolerance website, need to increase the quantity of the service message processing unit of first module group.But for a website, in the situation that not calling in service message processing unit from other website to this website, in this website, the quantity of total service message processing unit is fixed, therefore, if increase the quantity of the service message processing unit of first module group, just need to first module group, call in service message processing unit from second unit group.Before calling in service message processing unit from second unit group to first module group, whether the quantity that need to detect the service message processing unit of second unit group is 0.
If the quantity of the service message processing unit in 1206 second unit groups is not 0, in second unit group, select 1 service message processing unit, the current service message of processing of this service message processing unit is migrated to other service message processing units in second unit group.
When the quantity that the Dispatching Unit in website 2 detects the service message processing unit of second unit group is not 0, Dispatching Unit in this website 2 is selected 1 service message processing unit in second unit group, and other service message processing units that the current service message of processing of this service message processing unit is migrated in second unit group are processed.
Alternatively, Dispatching Unit can be selected at random 1 service message processing unit from second unit group, and other service message processing units that the current service message of processing of this service message processing unit is migrated in second unit group are processed.
Alternatively, Dispatching Unit can also be according in second unit group, the loading condition of each service message processing unit, from this second unit group, select 1 service message processing unit, and other service message processing units that the current service message of processing of this service message processing unit is migrated in second unit group are processed, such as, Dispatching Unit can be selected the lower service message processing unit of load in second unit group, and other service message processing units that the current service message of processing of this service message processing unit is migrated in second unit group are processed.
It should be noted that, if there is the service message processing unit in idle condition in second unit group, Dispatching Unit is preferentially selected this service message processing unit in idle condition.
Also it should be noted that, if the number of the service message processing unit of second unit group is 1, so, this Dispatching Unit can ask front end network element that the current service message of processing of this service message processing unit is migrated to other normal websites to process; Or this Dispatching Unit can also ask front end network element that the service message of self is distributed to other normal websites to process; Or this Dispatching Unit can also ask the website of front end network element from other normal websites to self place to call in service message processing unit, the concrete embodiment of the present invention loses and is construed as limiting this.
Also it should be noted that, if it is larger that the average load of the service message processing unit of first module group surpasses the degree of the first predetermined threshold value, may need to call in a plurality of service message processing units to first module group, now, Dispatching Unit can surpass according to this average load a plurality of service message processing units of the definite selection of degree of the first predetermined threshold value.
Wherein, the average load of the service message processing unit of the quantity of the plurality of service message processing unit and first module group surpasses the degree correlation of the first predetermined threshold value.; when this average load surpasses the degree of the first predetermined threshold value when larger; it is larger that Dispatching Unit can be determined the quantity of the plurality of service message processing unit; the degree that surpasses the first predetermined threshold value when this average load hour, it is less that can determine the quantity of the plurality of service message processing unit by Dispatching Unit.
Wherein, the quantity maximum of the plurality of service message processing unit is no more than the total quantity of the service message processing unit in second unit group.In actual applications, can pre-set the quantity of the plurality of service message processing unit and the functional relation that average load surpasses the degree of the first predetermined threshold value, according to this functional relation, determine the quantity of the plurality of service message processing unit.
1207, this service message processing unit is called in to first module group.
This step 1207 is identical or similar with the step 1106 in embodiment illustrated in fig. 11, and the present embodiment does not repeat them here.
If the average load of the service message processing unit of 1208 first module groups does not surpass the first predetermined threshold value, whether the average load that detects the service message processing unit of second unit group surpasses the second predetermined threshold value.
In above-mentioned steps 1204, if detecting the average load of the service message processing unit of first module group, Dispatching Unit do not surpass the first predetermined threshold value, illustrate that now the average load of the service message processing unit of this first module group is lower, likely the partial service message processing unit of this first module group is processed idle condition.Now, whether the average load that Dispatching Unit detects the service message processing unit of second unit group surpasses the second predetermined threshold value, if the average load of the service message processing unit of this second unit group surpasses the second predetermined threshold value, performs step 1209; If the average load of the service message processing unit of this second unit group does not surpass the second predetermined threshold value, perform step 1212.
Wherein, this second predetermined threshold value is identical or similar with the second predetermined threshold value in embodiment illustrated in fig. 11, and the present embodiment repeats no more this.
If the average load of the service message processing unit of 1209 second unit groups surpasses the second predetermined threshold value, in first module group, select 1 service message processing unit, the current service message of processing of this service message processing unit is migrated to other service message processing units in first module group.
The average load that Dispatching Unit in website 2 detects the service message processing unit of first module group does not surpass the first predetermined threshold value, and when the average load of the service message processing unit of second unit group surpasses the second predetermined threshold value, Dispatching Unit in this website 2 is selected 1 service message processing unit in first module group, and other service message processing units that the current service message of processing of this service message processing unit is migrated in first module group are processed.
Alternatively, Dispatching Unit can be selected at random 1 service message processing unit from first module group, and other service message processing units that the current service message of processing of this service message processing unit is migrated in first module group are processed.
Alternatively, Dispatching Unit can also be according in first module group, the loading condition of each service message processing unit, from this first module group, select 1 service message processing unit, and other service message processing units that the current service message of processing of this service message processing unit is migrated in first module group are processed, such as, Dispatching Unit can be selected the lower service message processing unit of load in first module group, and other service message processing units that the current service message of processing of this service message processing unit is migrated in first module group are processed.
It should be noted that, if there is the service message processing unit in idle condition in first module group, Dispatching Unit is preferentially selected this service message processing unit in idle condition.
Also it should be noted that, if it is larger that the average load of the service message processing unit of second unit group surpasses the degree of the second predetermined threshold value, may need to call in a plurality of service message processing units to second unit group, now, Dispatching Unit can surpass according to this average load a plurality of service message processing units of the definite selection of degree of the second predetermined threshold value.
Wherein, the average load of the service message processing unit of the quantity of the plurality of service message processing unit and second unit group surpasses the degree correlation of the second predetermined threshold value.; when this average load surpasses the degree of the second predetermined threshold value when larger; it is larger that Dispatching Unit can be determined the quantity of the plurality of service message processing unit; the degree that surpasses the second predetermined threshold value when this average load hour, it is less that can determine the quantity of the plurality of service message processing unit by Dispatching Unit.
In actual applications, can pre-set the quantity of the plurality of service message processing unit and the functional relation that average load surpasses the degree of the second predetermined threshold value, according to this functional relation, determine the quantity of the plurality of service message processing unit.
1210, this service message processing unit is called in to second unit group.
This step 1210 is identical or similar with the step 1108 in embodiment illustrated in fig. 11, and the present embodiment does not repeat them here.
If the average load of the service message processing unit of 1211 second unit groups does not surpass the second predetermined threshold value, the quantity of the service message unit of first module group and second unit group is not adjusted.
In above-mentioned steps 1208, if the average load of the service message processing unit of second unit group detected, do not surpass the second predetermined threshold value, illustrate that the number of the service message processing unit of first module group and second unit group now all meets the processing requirements of service message, Dispatching Unit is not adjusted the quantity of the service message processing unit of this first module group and second unit group.
In sum, the service message processing method that the embodiment of the present invention provides, by receiving service message; Whether according to the indicated information of the flag in this service message, detecting this service message is the service message from fault website; If this service message is the service message from fault website, at least one the idle service message processing unit this service message being dispensed in a plurality of service message processing units is processed; Solved the problem that disaster tolerance switches the fault pervasion causing; Even if fault is spread, also range of scatter is limited in segregate scope, can not have influence on the effect of other scope.
The service message processing method that the embodiment of the present invention provides, by being in advance the service message quotation service message processing unit from fault website, when the service message receiving from fault website, directly this service message is distributed to the reserved service message processing unit in idle condition and process; Guaranteed the timely processing to the service message from fault website.
The service message processing method that the embodiment of the present invention provides, by detecting whether the entrained sign of flag of service message is the site identity of disaster tolerance website, the sign that this flag is carried is the sign that front end network element adds in service message; Or by detecting the flag of service message, whether carry the first designated identification, this first designated identification sign that to be front end network element add during for service message from fault website at this service message; Or whether carry the second designated identification by detecting the flag of service message, this second designated identification sign that to be front end network element add when this service message is not the service message from fault website, detect the service message whether this service message carrys out fault website, enriched the mode of the service message of detection failure website.
The service message processing method that the embodiment of the present invention provides, while whether surpassing the first predetermined threshold value by detecting the average load of the service message processing unit of first module group, when the average load of the service message processing unit of this first module group surpasses the first predetermined threshold value, from second unit group to first module group, call in 1 service message processing unit; Guaranteed the priority treatment to the service message of disaster tolerance website.Further, when the average load of the service message processing unit of first module group does not surpass the first predetermined threshold value, whether the average load that detects the service message processing unit of second unit group surpasses the second predetermined threshold value, when the average load of the service message processing unit of this second unit group surpasses the second predetermined threshold value, from first module group to second unit group, call in 1 service message processing unit; When having guaranteed the service message priority treatment to disaster tolerance website, processing as much as possible is from the service message of fault website.
It should be added that, with in like manner embodiment illustrated in fig. 11, in the present embodiment, the Dispatching Unit in website 2 after calling in service message processing unit in active cell group, and what can active cell group be set to scheduled duration forbids recalling state.Wherein, this forbids that the state that recalls refers to the state of forbidding recalling from active cell group service message processing unit.Its specific implementation process is identical or similar with the process in embodiment illustrated in fig. 11, and the present embodiment does not repeat them here.
It should be noted that: the service message processing unit that above-described embodiment provides is when processing service message, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure of the equipment of being about to is divided into different functional modules, to complete all or part of function described above.In addition, service message processing unit and service message processing method embodiment that above-described embodiment provides belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The embodiment of the present invention also provides a kind of service message treatment facility, this equipment comprises transceiver, memory and the processor being connected with transceiver, memory respectively, wherein, in memory, store batch processing code, and this processor is for calling the program code that memory is stored, for carrying out above-mentioned service message processing method.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (27)
1. a disaster tolerance website, is characterized in that, comprises the service message processing unit of Dispatching Unit and a plurality of mutual isolation:
Described Dispatching Unit, for receiving service message;
Whether described Dispatching Unit is the service message from fault website for detection of described service message;
Described Dispatching Unit, if be the service message from fault website for described service message, at least one the idle service message processing unit described service message being dispensed in described a plurality of service message processing unit is processed.
2. disaster tolerance website according to claim 1, is characterized in that, the service message processing unit of described free time is the service message processing unit of the reserved service message for the treatment of described fault website of described disaster tolerance website.
3. disaster tolerance website according to claim 1, is characterized in that,
Described Dispatching Unit, for selecting the minimum one or more service message processing units of described disaster tolerance website present load;
Described Dispatching Unit, obtains the service message processing unit of described free time for the service message that belongs to described disaster tolerance website of the minimum service message processing unit processes of described load all being migrated to service message processing unit described in other in described disaster tolerance website.
4. disaster tolerance website according to claim 1, is characterized in that,
Described Dispatching Unit, for detecting respectively the average load of the first module group in described disaster tolerance website and the average load of second unit group, described first module group comprises the service message processing unit for the treatment of the service message of described disaster tolerance website, and described second unit group comprises the service message processing unit for the treatment of the service message from other fault websites;
Described Dispatching Unit, for dynamically adjusting the quantity of the service message processing unit of described first module group and described second unit group according to the average load of described first module group and described second unit group.
5. disaster tolerance website according to claim 4, is characterized in that,
Described Dispatching Unit, surpasses the first predetermined threshold value for the average load described first module group being detected, and the average load of described second unit group is during lower than the second predetermined threshold value, selects 1 service message processing unit in described second unit group;
Described Dispatching Unit, for migrating to the whole service messages from other fault websites of described service message processing unit for processing other service message processing unit of described second unit group;
Described Dispatching Unit, for calling in described service message processing unit to described first module group.
6. disaster tolerance website according to claim 4, is characterized in that,
Described Dispatching Unit, for the average load described first module group being detected, lower than the first predetermined threshold value, and the average load of described second unit group is while surpassing the second predetermined threshold value, selects 1 service message processing unit in described first module group;
Described Dispatching Unit, for by belonging to of described service message processing unit for processing described disaster tolerance website whole service messages migrate to other service message processing unit of described first module group;
Described Dispatching Unit, for calling in described service message processing unit to described second unit group.
7. according to the disaster tolerance website described in claim 5 or 6, it is characterized in that,
Described Dispatching Unit, for after calling in described service message processing unit to active cell group, what described active cell group was set to scheduled duration forbids recalling state, described in forbid that the state that recalls refers to the state of forbidding recalling from described active cell group described service message processing unit.
8. according to the arbitrary described disaster tolerance website of claim 1 to 6, it is characterized in that,
Described Dispatching Unit, whether for according to the indicated information of the flag of described service message, detecting described service message is the service message from fault website.
9. disaster tolerance website according to claim 8, is characterized in that,
Described Dispatching Unit, whether the sign of carrying for detection of the flag in described service message is the site identity of disaster tolerance website, the sign that described flag is carried is the sign that described front end network element adds in described service message; If described sign is not the site identity of described disaster tolerance website, described service message is the service message from fault website;
Or,
Whether described Dispatching Unit, carry the first designated identification for detection of the flag in described service message, described the first designated identification sign that to be described front end network element add during for service message from described fault website at described service message; If carry the first designated identification in described flag, described service message is the service message from fault website;
Or,
Whether described Dispatching Unit, carry the second designated identification for detection of the flag in described service message, described the second designated identification sign that to be described front end network element add when described service message is not the service message from fault website; If do not carry the second designated identification in described flag, described service message is the service message from fault website.
10. a service message processing unit, is characterized in that, for disaster tolerance website, described disaster tolerance website comprises the service message processing unit of a plurality of mutual isolation, and described device comprises:
Service message receiver module, for receiving service message;
Whether service message detection module is the service message from fault website for detection of described service message;
Service message processing module, when at described service message being the service message from fault website, at least one idle service message processing unit that described service message is dispensed in described a plurality of service message processing unit is processed.
11. devices according to claim 10, is characterized in that, the service message processing unit of described free time is the service message processing unit of the reserved service message for the treatment of described fault website of described disaster tolerance website.
12. devices according to claim 10, is characterized in that, described device, also comprises:
Processing unit is selected module, for selecting the minimum one or more service message processing units of described disaster tolerance website present load;
Idle processing unit obtains module, obtains the service message processing unit of described free time for the service message that belongs to described disaster tolerance website of the minimum service message processing unit processes of described load all being migrated to service message processing unit described in other in described disaster tolerance website.
13. devices according to claim 10, is characterized in that, described device, also comprises:
Average load detection module, for detecting respectively the average load of the first module group in described disaster tolerance website and the average load of second unit group, described first module group comprises the service message processing unit for the treatment of the service message of described disaster tolerance website, and described second unit group comprises the service message processing unit for the treatment of the service message from other fault websites;
Dynamic adjusting module, for dynamically adjusting the quantity of the service message processing unit of described first module group and described second unit group according to the average load of described first module group and described second unit group.
14. devices according to claim 13, is characterized in that, described dynamic adjusting module, comprising:
Processing unit selected cell, surpasses the first predetermined threshold value for the average load described first module group being detected, and the average load of described second unit group is during lower than the second predetermined threshold value, selects 1 service message processing unit in described second unit group;
Service message migration units, for migrating to the whole service messages from other fault websites of described service message processing unit for processing other service message processing unit of described second unit group;
Processing unit is called in unit, for described service message processing unit is called in to described first module group.
15. devices according to claim 13, is characterized in that, described dynamic adjusting module, comprising:
Described processing unit selected cell, be used in the average load that described first module group detected lower than the first predetermined threshold value, and when the average load of described second unit group surpasses the second predetermined threshold value, select 1 service message processing unit in described first module group;
Described service message migration units, for by belonging to of described service message processing unit for processing described disaster tolerance website whole service messages migrate to other service message processing unit of described first module group;
Described processing unit is called in unit, for described service message processing unit is called in to described second unit group.
16. according to the device described in claims 14 or 15, it is characterized in that, described device, also comprises:
Illegal state arranges module, for after calling in described service message processing unit to active cell group, what described active cell group was set to scheduled duration forbids recalling state, described in forbid that the state that recalls refers to the state of forbidding recalling from described active cell group described service message processing unit.
17. according to claim 10 to 15 arbitrary described devices, it is characterized in that,
Described service message detection module, whether for according to the indicated information of the flag of described service message, detecting described service message is the service message from fault website.
18. devices according to claim 17, is characterized in that, described service message detection module, comprising:
Site identity detecting unit, whether the sign of carrying for detection of the flag in described service message is the site identity of disaster tolerance website, the sign that described flag is carried is the sign that described front end network element adds in described service message; If described sign is not the site identity of described disaster tolerance website, described service message is the service message from fault website;
Or,
The first designated identification detecting unit, for detection of the flag in described service message, whether carry the first designated identification, described the first designated identification sign that to be described front end network element add during for service message from described fault website at described service message; If carry the first designated identification in described flag, described service message is the service message from fault website;
Or,
Whether the second designated identification detecting unit, carry the second designated identification for detection of the flag in described service message, described the second designated identification sign that to be described front end network element add when described service message is not the service message from fault website; If do not carry the second designated identification in described flag, described service message is the service message from fault website.
19. 1 kinds of service message processing methods, is characterized in that, for disaster tolerance website, described disaster tolerance website comprises the service message processing unit of a plurality of mutual isolation, and described method comprises:
Receive service message;
Whether detect described service message is the service message from fault website;
If described service message is the service message from fault website, at least one the idle service message processing unit described service message being dispensed in described a plurality of service message processing unit is processed.
20. methods according to claim 19, is characterized in that, the service message processing unit of described free time is the service message processing unit of the reserved service message for the treatment of described fault website of described disaster tolerance website.
21. methods according to claim 19, is characterized in that, described described service message are dispensed to before at least one idle service message processing unit in described a plurality of service message processing unit processes, and also comprise:
Select the minimum one or more service message processing units of present load in described disaster tolerance website;
The service message that belongs to described disaster tolerance website of the minimum service message processing unit processes of described load is all migrated to the service message processing unit that service message processing unit described in other in described disaster tolerance website obtains the described free time.
22. methods according to claim 19, is characterized in that, described method, also comprises:
Detect respectively the average load of the first module group in described disaster tolerance website and the average load of second unit group, described first module group comprises the service message processing unit for the treatment of the service message of described disaster tolerance website, and described second unit group comprises the service message processing unit for the treatment of the service message from other fault websites;
According to the average load of described first module group and described second unit group, dynamically adjust the quantity of the service message processing unit in described first module group and described second unit group.
23. methods according to claim 22, is characterized in that, described according to the dynamic quantity of adjusting the service message processing unit in described first module group and described second unit group of the average load of described first module group and described second unit group, comprising:
If the average load of described first module group detected, surpass the first predetermined threshold value, and the average load of described second unit group is lower than the second predetermined threshold value, selects 1 service message processing unit in described second unit group;
Whole service messages from other fault websites of described service message processing unit for processing are migrated to other service message processing unit in described second unit group;
Described service message processing unit is called in to described first module group.
24. methods according to claim 22, is characterized in that, described according to the dynamic quantity of adjusting the service message processing unit in described first module group and described second unit group of the average load of described first module group and described second unit group, comprising:
If the average load of described first module group detected lower than the first predetermined threshold value, and the average load of described second unit group is over the second predetermined threshold value, selects 1 service message processing unit in described first module group;
By belonging to of described service message processing unit for processing, whole service messages of described disaster tolerance website migrate to other service message processing unit in described first module group;
Described service message processing unit is called in to described second unit group.
25. according to the method described in claim 23 or 24, it is characterized in that, described method, also comprises:
After calling in described service message processing unit to active cell group, what described active cell group was set to scheduled duration forbids recalling state, described in forbid that the state that recalls refers to the state of forbidding recalling from described active cell group described service message processing unit.
26. according to claim 19 to 24 arbitrary described methods, it is characterized in that, whether the described service message of described detection is from the service message of fault website, comprising:
Whether according to the indicated information of the flag in described service message, detecting described service message is the service message from fault website.
27. methods according to claim 26, is characterized in that, described according to the indicated information of the flag in described service message, and whether be from the service message of fault website, comprising if detecting described service message:
Detect whether the sign that the flag in described service message carries is the site identity of disaster tolerance website, the sign that described flag is carried is the sign that described front end network element adds in described service message; If described sign is not the site identity of described disaster tolerance website, described service message is the service message from fault website;
Or,
Whether the flag detecting in described service message carries the first designated identification, described the first designated identification sign that to be described front end network element add during for service message from described fault website at described service message; If carry the first designated identification in described flag, described service message is the service message from fault website;
Or,
Whether the flag detecting in described service message carries the second designated identification, described the second designated identification sign that to be described front end network element add when described service message is not the service message from fault website; If do not carry the second designated identification in described flag, described service message is the service message from fault website.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410355319.6A CN104184611A (en) | 2014-07-24 | 2014-07-24 | Disaster tolerance site, and service message processing device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410355319.6A CN104184611A (en) | 2014-07-24 | 2014-07-24 | Disaster tolerance site, and service message processing device and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104184611A true CN104184611A (en) | 2014-12-03 |
Family
ID=51965371
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410355319.6A Pending CN104184611A (en) | 2014-07-24 | 2014-07-24 | Disaster tolerance site, and service message processing device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104184611A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713134A (en) * | 2015-11-18 | 2017-05-24 | 中国移动通信集团浙江有限公司 | Static IP longest matching-based session border controller (SBC) disaster recovery method and system, and apparatus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101360314A (en) * | 2007-08-02 | 2009-02-04 | 华为技术有限公司 | Method and apparatus implementing disaster accommodation |
CN101790170A (en) * | 2009-01-23 | 2010-07-28 | 中国移动通信集团山东有限公司 | Double-center disaster recovery equipment and resource adjustment method in same |
WO2016045383A1 (en) * | 2014-09-22 | 2016-03-31 | 中兴通讯股份有限公司 | Load balancing method for service processing module, and media server |
-
2014
- 2014-07-24 CN CN201410355319.6A patent/CN104184611A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101360314A (en) * | 2007-08-02 | 2009-02-04 | 华为技术有限公司 | Method and apparatus implementing disaster accommodation |
CN101790170A (en) * | 2009-01-23 | 2010-07-28 | 中国移动通信集团山东有限公司 | Double-center disaster recovery equipment and resource adjustment method in same |
WO2016045383A1 (en) * | 2014-09-22 | 2016-03-31 | 中兴通讯股份有限公司 | Load balancing method for service processing module, and media server |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713134A (en) * | 2015-11-18 | 2017-05-24 | 中国移动通信集团浙江有限公司 | Static IP longest matching-based session border controller (SBC) disaster recovery method and system, and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104468407B (en) | Realize the method and apparatus of business platform resource elasticity distribution | |
CN109857551B (en) | Service resource scheduling method and device based on cloud computing and electronic equipment | |
CN106936618B (en) | Data acquisition method and system | |
CN108055264A (en) | Dispatching device, method and the computer readable storage medium of stream pushing server | |
US20150223252A1 (en) | Resource Allocation Method and Device | |
CN102301664B (en) | Method and device for dispatching streams of multicore processor | |
CN105516347A (en) | Method and device for load balance allocation of streaming media server | |
CN101582850A (en) | Method and system for realizing load balance | |
CN108306763A (en) | Household appliance and its network connection processing method, computer readable storage medium | |
CN114448989B (en) | Method, device, electronic equipment, storage medium and product for adjusting message distribution | |
EP3644646A1 (en) | Load-balancing method and apparatus | |
CN103559093A (en) | Resource allocation method and device for servers | |
CN108173783A (en) | A kind of message treatment method and system | |
EP3026869B1 (en) | Method, device and system for carrying out telecommunication capability group sending | |
CN103944940A (en) | Equipment and method for dynamically configuring proxy server | |
CN111209098A (en) | Intelligent rendering scheduling method, server, management node and storage medium | |
CN104184611A (en) | Disaster tolerance site, and service message processing device and method | |
CN105657009A (en) | Object gateway load balancing system and method, and cross-region object gateway storage system | |
CN106095548A (en) | A kind of method and apparatus distributing interruption in multi-core processor system | |
CN105873223A (en) | Service scheduling method, service scheduling device, wireless network controller and base station | |
CN105025104A (en) | Cloud desktop scheduling method and system | |
CN102231684B (en) | Interface board state detection method, multi-core central processing unit, interface board and router | |
CN106131222A (en) | A kind of server load balancing concocting method and system | |
CN110545332A (en) | Server cluster balancing method and system | |
WO2015101278A1 (en) | Cell activation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141203 |
|
RJ01 | Rejection of invention patent application after publication |