CN106550009A - A kind of method for processing business, system and device - Google Patents
A kind of method for processing business, system and device Download PDFInfo
- Publication number
- CN106550009A CN106550009A CN201610836330.3A CN201610836330A CN106550009A CN 106550009 A CN106550009 A CN 106550009A CN 201610836330 A CN201610836330 A CN 201610836330A CN 106550009 A CN106550009 A CN 106550009A
- Authority
- CN
- China
- Prior art keywords
- business
- main body
- task
- processing
- load evaluation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1034—Reaction to server failures by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multi Processors (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention discloses a kind of method for processing business, including:At least two load evaluation main bodys receive same business task;At least two load evaluation main bodys are independently assessed and obtain corresponding Business Processing main body;Same business task is independently processed by different Business Processing main bodys.The invention also discloses a kind of transaction processing system and device.By the way, the present invention ensure that same business task is at least processed by two different Business Processing main bodys, even if load evaluation main body and Business Processing main body all break down, also be not in loss of traffic, improve the availability of system.
Description
Technical field
The present invention relates to internet, more particularly to a kind of method for processing business, system and device.
Background technology
Load balancing constitutes a server set in a symmetrical manner by multiple servers, and every server all has
Status of equal value, individually can externally provide service and without the auxiliary of other servers.Load-balancing device is according to default
Strategy a certain server that the service request that outside sends is assigned in symmetrical structure on, and receive the clothes of request
Business device is independently processed from the service request.Load balancing can increase handling capacity, Strengthens network data-handling capacity, improve network
Flexibility and availability, solve the problems, such as a large amount of concurrent access services.
In order to meet the demand to operation system high availability, it is proposed that increase a backup machine for load-balancing device,
Backup machine is synchronized and backup to the system information on load-balancing device, and monitors the state of load-balancing device, when negative
When load balancing equipment breaks down, backup machine replaces load-balancing device to carry out traffic assignments work.
Inventor is had found through research, although backup machine is prevented from the system that load-balancing device failure causes
Paralysis, but as same business is only processed on one server, if the server failure of processing business, load balancing
Equipment itself also broke down before the server failure is known, then the business will be lost.
The content of the invention
The invention mainly solves the technical problem of providing a kind of method for processing business, system and device, can solve the problem that existing
The problem of loss of traffic is likely to occur in having technology.
In order to solve above-mentioned technical problem, one aspect of the present invention is:A kind of method for processing business is provided,
Including:At least two load evaluation main bodys receive same business task;At least two load evaluation main bodys are independently assessed
Obtain corresponding Business Processing main body;Same business task is independently processed by different Business Processing main bodys.
Wherein, independently processing same business task by different Business Processing main bodys includes:At different business
Data produced by processing business task are write same main data storing body by reason main body difference processing business task, and right
Same data, each Business Processing main body are answered to be only written a main data storing body.
Wherein, load evaluation main body and Business Processing main body are to operate in the different processes on same server;Or load
Assessment main body is load evaluation device, and Business Processing main body is Service Process Server.
In order to solve above-mentioned technical problem, another technical solution used in the present invention is:A kind of Business Processing side is provided
Method, including:First load evaluation main body receives business task, wherein, business task has at least issued the second load evaluation in addition
Main body;The assessment of first load evaluation independence obtains the first Business Processing main body of processing business task, the first Business Processing
The unassigned business task of main body;Business task is distributed to the first Business Processing main body, and by the first load evaluation main body
One Business Processing main body is different from the second Business Processing main body of the processing business task that the assessment of the second load evaluation main body is obtained.
Wherein, the assessment of the first load evaluation independence obtains the first Business Processing main body of processing business task includes:
First load evaluation main body processes state according at least to the business task of Business Processing main body and Business Processing main body is estimated
To obtain the first Business Processing main body, the wherein business task of Business Processing main body processes whether state refers to Business Processing main body
It has been allocated business task.
In order to solve above-mentioned technical problem, another technical solution used in the present invention is:A kind of Business Processing side is provided
Method, including:First Business Processing main body receives the business task from the first load evaluation main body, wherein, business task is in addition
Second load evaluation main body has been issued at least;First Business Processing main body processing business task, and the first Business Processing main body
Second Business Processing main body of the processing business task obtained different from the assessment of the second load evaluation main body.
Wherein, the first Business Processing main body processing business task includes:First Business Processing main body, the second Business Processing master
Body distinguishes processing business task, the data produced by processing business task is write same main data storing body, and correspondence is same
One data, each Business Processing main body are only written a main data storing body.
Wherein, main data storing body is the database process with automatic backup function;Or main data storing body is data
Server, data server have at least one Backup Data server, and data server can be by automatic duplicating of data extremely
Backup Data server.
In order to solve above-mentioned technical problem, another technical solution used in the present invention is:A kind of Business Processing system is provided
System, including:At least two load evaluation devices and at least two Service Process Server;Wherein, at least two in load evaluation device
It is individual to receive same business task, and independently assessment obtains corresponding Service Process Server;Corresponding Business Processing clothes
Business device independently processes same business task.
Wherein, system further includes data server, and corresponding Service Process Server independently processes same
Business task includes:Corresponding Service Process Server is respectively by the data write data, services produced by processing business task
Device, and the same data of correspondence, each Service Process Server are only written a data server.
In order to solve above-mentioned technical problem, another technical solution used in the present invention is:A kind of device is provided, including:
Receiver module, for receiving business task, wherein, business task has at least issued the second load evaluation main body in addition;Assessment mould
Block, obtains the first Business Processing main body of processing business task, the unassigned industry of the first Business Processing main body for independent evaluations
Business task;Distribute module, for business task is distributed to the first Business Processing main body, and the first Business Processing main body is different
Second Business Processing main body of the processing business task obtained in the assessment of the second load evaluation main body.
In order to solve above-mentioned technical problem, another technical solution used in the present invention is:A kind of device is provided, including:
Receiver module, for receiving the business task from the first load evaluation main body, wherein, business task has at least issued the in addition
Two load evaluation main bodys;Processing module, comments different from the second load for processing business task, and the first Business Processing main body
Estimate the second Business Processing main body of the processing business task that main body assessment is obtained.
In order to solve above-mentioned technical problem, another technical solution used in the present invention is:A kind of device is provided, including:
Processor, transmitters and receivers, processor difference linkup transmit device and receiver;Processor is for receiving industry by receiver
Business task, wherein business task have at least issued the second load evaluation main body in addition;Independent evaluations obtain processing business task
First Business Processing main body, the unassigned business task of the first Business Processing main body;Business task is distributed to by transmitter
First Business Processing main body, and the first Business Processing main body is different from the processing business that the assessment of the second load evaluation main body is obtained
Second Business Processing main body of task.
In order to solve above-mentioned technical problem, another technical solution used in the present invention is:A kind of device is provided, including:
Processor, transmitters and receivers, processor difference linkup transmit device and receiver;Processor for by receiver receive come
From the business task of the first load evaluation main body, wherein, business task has at least issued the second load evaluation main body in addition;Process
Business task, and device is different from the second Business Processing master of the processing business task that the assessment of the second load evaluation main body is obtained
Body.
The invention has the beneficial effects as follows:By same business task is distributed at least two load evaluation main bodys, extremely
Few two load evaluation main bodys are independently assessed and obtain corresponding Business Processing main body, it is ensured that same business task is at least by two
Individual different Business Processing main body is processed, even if load evaluation main body and Business Processing main body all break down, also will not
There is loss of traffic, improve the availability of system.
Description of the drawings
Fig. 1 is the flow chart of method for processing business first embodiment of the present invention;
Fig. 2 is the flow chart that main data storing body is write data in method for processing business second embodiment of the present invention;
Fig. 3 is the flow chart of method for processing business 3rd embodiment of the present invention;
Fig. 4 is the flow chart of method for processing business fourth embodiment of the present invention;
Fig. 5 is the structural representation of transaction processing system first embodiment of the present invention;
Fig. 6 is the structural representation of transaction processing system second embodiment of the present invention;
Fig. 7 is the structural representation of apparatus of the present invention first embodiment;
Fig. 8 is the structural representation of apparatus of the present invention second embodiment;
Fig. 9 is the structural representation of apparatus of the present invention 3rd embodiment;
Figure 10 is the structural representation of apparatus of the present invention fourth embodiment.
Specific embodiment
As shown in figure 1, method for processing business first embodiment of the present invention includes:
S11:At least two load evaluation main bodys receive same business task.
Same business task can be received with all of load evaluation main body, it is also possible to which fractional load assessment main body receives same
One business task.If same business task is assigned to only fractional load assessment main body, load evaluation can be randomly choosed
Main body, it is also possible to load evaluation main body is selected according to default algorithm.Load evaluation main body can be load balancing software pair
The process answered, or the hardware device or server for load balance, i.e. load evaluation device, its quantity are more than or equal to
Two.
S12:At least two load evaluation main bodys are independently assessed and obtain corresponding Business Processing main body.
Each the load evaluation main body for receiving the business task is independently assessed and obtains corresponding Business Processing main body.Industry
It can be to operate in Business Processing process on same server, or independent with load evaluation main body that business processes main body
Service Process Server, its quantity are more than or equal to two.During to ensure that business task is assigned to whole load evaluation main bodys, each
Load evaluation main body can be assessed respectively and obtain different Business Processing main bodys, and the quantity of Business Processing main body can be more than or equal to negative
Carry the quantity of assessment main body.
The Business Processing main body that each load evaluation main body assessment is obtained is different, is to realize this target, and load is commented
Estimating main body needs the business task for obtaining Business Processing main body to process state the business task according at least to Business Processing main body
Process state is estimated, and wherein the business task of Business Processing main body processes state and refers to whether Business Processing main body is divided
With the business task.
Load evaluation main body can select one from Business Processing main body, then according to the Business Processing main body chosen
Business task processes state and is judged.If unassigned business task of the Business Processing main body chosen, at the business
Reason main body is the Business Processing main body that the load evaluation main body assessment is obtained, and otherwise needs to reselect another Business Processing
Then main body processes condition adjudgement according to its business task, and repeat the above steps are until the business task chosen processes master if necessary
The unassigned business task of body
Load evaluation main body can also select corresponding Business Processing main body in selectable Business Processing host complex,
And the business task is distributed to into corresponding Business Processing main body.Do not include being divided in selectable Business Processing host complex
Matched somebody with somebody the Business Processing main body of the business task, if certain Business Processing main body business task process state representation its by
The business task is assigned with, then the Business Processing main body is removed from selectable Business Processing host complex.
Load evaluation main body can randomly choose one from Business Processing main body or selectable Business Processing host complex
It is individual, selected also dependent on default algorithm.Common algorithm has poll, weighting, minimum connection, random and response time
Deng, it is also possible to use combinational algorithm.
Load evaluation main body has the business task that various ways obtain Business Processing main body to process state.
A kind of mode is that load evaluation main body obtains its business task from the Business Processing main body of business task to be distributed
Process state.For example, Business Processing main body A receives the business task of load evaluation main body B distribution, and Business Processing main body A judges
Whether the business task is assigned with by other load evaluation main bodys, if it is refuse this sub-distribution notification payload assessment master
Body B, on the contrary then receive this sub-distribution.If load evaluation main body B receives the refusal notice that Business Processing main body A is sent, weigh
It is new to select Business Processing main body and distribute business task, now do not include Business Processing in selectable Business Processing host complex
Main body A, repeats said process until the business task is by into the distribution of work.
Yet another approach is the business times that load evaluation main body obtains Business Processing main body from other load evaluation main bodys
Business process state.For example, load evaluation main body C assessment obtains Business Processing main body D, and business task is distributed to Business Processing master
During body D, notify that other load evaluation main body Business Processing main bodys D have been assigned the business with broadcast or point-to-point mode
Business Processing main body D is moved from selectable Business Processing host complex after other load evaluation main bodys are notified by task
Remove, need to reselect if Business Processing main body D is had selected for when notified.Except logical when business task is distributed
Know other load evaluation main bodys, it is also possible to notified when assessment is completed.
Yet another approach is the business task process shape that load evaluation main body obtains Business Processing main body from other main bodys
State.For example, load evaluation main body E assessment obtains Business Processing main body F, and reports service management main body, service management main body
The distribution state of business task is have recorded, and judges whether business task is already allocated to Business Processing main body F, if it is led to
Know that load evaluation main body E reselects Business Processing main body, now service management main body can be allocated the business task
Business Processing main body be sent to load evaluation main body E in the lump;Otherwise then business task is distributed to by notification payload assessment main body E
Business Processing main body F simultaneously records this sub-distribution.
S13:Same business task is independently processed by different Business Processing main bodys.
After Business Processing main body receives the business task of distribution, the business task is independently processed.
By the enforcement of above-described embodiment so that same business task is at least carried out by two different Business Processing main bodys
Process, even if load evaluation main body and Business Processing main body all break down, be also not in loss of traffic, improve system can
The property used.
Method for processing business second embodiment of the present invention, is on the basis of method for processing business first embodiment of the present invention
On, further include after step s 13:Different Business Processing main body difference processing business task, by processing business task
Produced data write same main data storing body, and the same data of correspondence, and each Business Processing main body is only written a number
According to storage main body.
Illustrate how to realize that the same data different business of correspondence processes main body and is only written a main data storing body, such as
Shown in Fig. 2, the concrete steps of the data write main data storing body produced by processing business task are included by Business Processing main body:
S141:Reporting service status center with ask write data.
The data state info of service condition central record management business task.Service condition center can be and business
Process main body or main data storing body operates in the server or special of process, or independent operating on same server
Hardware device.There can be backup to prevent the impact of Single Point of Faliure, service condition center.
S142:Receive the data state info of the business task that service condition center is sent in response to write request.
If data state info is not to write, expression does not have other Business Processing main bodys to write data, then jump to step
S143;If data state info represents that existing other Business Processing main bodys start to write data, then jumps to step to start write
Rapid S145;If data state info represents that existing other Business Processing main bodys complete write data, then redirects to complete write
To step S147.
S143:Start to write data into main data storing body, and reporting service status center with by the number of the business task
It is to start write according to state information updating.
Step S144 is connect during Business Processing main body normal work.Main data storing body can be database process or independence
The data server of operation.
In one embodiment of method for processing business of the present invention, main data storing body has automatic backup function, for example
Main data storing body is the database process with automatic backup function, or main data storing body is when being data server, has
At least one Backup Data server, and data server can be by automatic duplicating of data to Backup Data server, can be with
Prevent main data storing body from when breaking down, causing the paralysis of whole system.
S144:Complete to write data, and reporting service status center with the data state info renewal by the business task
To complete write.
Terminate this flow process.
S145:It is data cached to write, and working business status center obtains the data mode letter of the business task again
Breath.
If the data state info reacquired in Preset Time jumps to step S147 to complete write;If
The data state info reacquired in Preset Time writes its of the business task data still to start write before then judging
His Business Processing main body breaks down, and jumps to step S146.
S146:By the data write main data storing body of caching.
Step S144 is jumped to during Business Processing main body normal work.
S147:Clear data.
Terminate this flow process.
By the enforcement of above-described embodiment so that different Business Processing main bodys processes same produced by same business task
One data main data storing body written only once, reduces the wasting of resources, also eliminates many numbers of write same according to the data brought
Problem in terms of step and uniformity.
As shown in figure 3, the executive agent of method for processing business 3rd embodiment of the present invention is load evaluation main body, load is commented
It can be the corresponding process of load balancing software, or the hardware device or server for load balance to estimate main body, i.e.,
Load evaluation device.The embodiment includes:
S21:First load evaluation main body receives business task.
In general, the first load evaluation main body receives business task from router or switch, the business task is another
Second load evaluation main body has been issued at least outward.
S22:The assessment of first load evaluation independence obtains the first Business Processing main body of processing business task.
First load evaluation main body processes state to Business Processing main body according at least to the business task of Business Processing main body
It is estimated to obtain the first Business Processing main body, the wherein business task of Business Processing main body processes state and refers to Business Processing
Whether main body has been allocated business task, the unassigned business task of the first Business Processing main body.First load evaluation main body
There is the business task that various ways obtain Business Processing main body to process state, see method for processing business of the present invention first and implement
Corresponding content in example.First Business Processing main body is different from the process business task that the assessment of the second load evaluation main body is obtained
The second Business Processing main body.
In addition to business task process state, the first load evaluation main body further can be commented according to default algorithm
Estimate.Common algorithm has poll, weighting, minimum connection, random and response time etc., it is also possible to use combinational algorithm.
S23:Business task is distributed to the first Business Processing main body by the first load evaluation main body.
By the enforcement of above-described embodiment so that same business task is at least carried out by two different Business Processing main bodys
Process, even if load evaluation main body and Business Processing main body all break down, be also not in loss of traffic, improve system can
The property used.
As shown in figure 4, the executive agent of method for processing business fourth embodiment of the present invention is Business Processing main body, at business
Reason main body can be that the Business Processing process, or independent business on same server is operated in load evaluation main body
Processing server.The embodiment includes:
S31:First Business Processing main body receives the business task from the first load evaluation main body.
The business task has at least issued the second load evaluation main body in addition.
S32:First Business Processing main body processing business task.
The assessment of second load evaluation main body obtains the second Business Processing main body and the business task is distributed to the second business
Main body is processed, the second Business Processing main body processes the business task, and the first Business Processing main body is with the second Business Processing main body not
Together.
By the enforcement of above-described embodiment so that same business task is at least carried out by two different Business Processing main bodys
Process, even if load evaluation main body and Business Processing main body all break down, be also not in loss of traffic, improve system can
The property used.
In one embodiment of method for processing business of the present invention, the first Business Processing main body, the second Business Processing main body
Data produced by processing business task are write same main data storing body, and correspondence are same by processing business task respectively
Data, each Business Processing main body are only written a main data storing body.The detailed process of write data see business of the present invention
Processing method second embodiment.Different Business Processing main bodys processes the same data produced by same business task and only writes one
Secondary data stores main body, reduces the wasting of resources, in terms of also eliminating many numbers of write according to the data syn-chronization and uniformity for bringing
Problem.
As shown in figure 5, transaction processing system first embodiment of the present invention includes:At least two load evaluation devices 11 and at least
Two Service Process Server 12.In figure, the quantity of load evaluation device 11 and Service Process Server 12 is only illustrated, actual number
Amount can be with more.Load evaluation device 11 can be that operation has the separate server of load balancing software, or for loading
The hardware device of balance.
Two load evaluation devices 11 receive same business task, and independently assessment obtains corresponding Business Processing clothes
Business device 12, and business task is distributed to into corresponding Service Process Server 12 processed.Different load evaluation devices 11 are commented
Estimate the Service Process Server 12 for obtaining different.Corresponding Service Process Server 12 independently processes same business and appoints
Business.
As shown in fig. 6, transaction processing system second embodiment of the present invention, is implemented in transaction processing system of the present invention first
On the basis of example, data server 13 and service condition center 14 are further included.Service condition center is the clothes of independent operating
Business device or special hardware, for recording the data state info of simultaneously management business task.
12 processing business task of Service Process Server and after producing data reporting service status center 14 asking write
The data state info of the business task is issued Service Process Server by data, the response write request of service condition center 14
12.Service Process Server 12 is operated accordingly according to the data state info for receiving.If data state info is not write
Enter, then Service Process Server 12 starts to write data into data server 13, and reporting service status center with by the business
The data state info of task is updated to start write;When write data are normally completed, reporting service status center 14 was with should
The data state info of business task is updated to complete write.If data state info is to start to write, Business Processing service
Device 12 is data cached wouldn't to be write, and working business status center obtains the data state info of the business task again, if pre-
If the data state info reacquired in the time then clears data to complete write.If reacquiring in Preset Time
Still to start write, then other Service Process Server that the business task data is write before judging data state info occur
Failure, then by the data write data server 13 of caching, when then completing to write data, reporting service status center 14 is with general
The data state info of the business task is updated to complete write.If data state info clears data to complete write.
Service Process Server 12 is by the data write data server 13 produced by processing business task, and correspondence is same
One data, each Service Process Server 12 are only written a data server 13, reduce the wasting of resources, also eliminate write many
Number is according to the problem in terms of the data syn-chronization and uniformity for bringing.
In order to prevent impact of the Single Point of Faliure of data server 13 and service condition center 14 to whole system, data clothes
Business device 13 and service condition center 14 can have independent backup server.
As shown in fig. 7, apparatus of the present invention first embodiment includes:
Receiver module 101, for receiving business task, wherein, business task has at least issued the second load evaluation in addition
Main body.
Evaluation module 102, obtains the first Business Processing main body of processing business task for independent evaluations, at the first business
The unassigned business task of reason main body.
Distribute module 103, for business task is distributed to the first Business Processing main body, and the first Business Processing main body
Second Business Processing main body of the processing business task obtained different from the assessment of the second load evaluation main body.
Each module that the device of the present embodiment includes is used to perform the corresponding method for processing business of the present invention of Fig. 3 and Fig. 3
Each step in 3rd embodiment, particular content refer to corresponding 3rd enforcements of method for processing business of the present invention of Fig. 3 and Fig. 3
Example, will not be described here.
As shown in figure 8, apparatus of the present invention second embodiment includes:It is transmitter 210, receiver 220, processor 230, read-only
Memory 240, random access memory 250 and bus 260.
Transmitter 210 is used to send data.
Receiver 220 is used for receiving data.
The operation of 230 control device of processor, processor 230 can also be referred to as CPU (Central Processing
Unit, CPU).A kind of possibly IC chip of processor 230, the disposal ability with signal.Processor
230 can also be general processor, digital signal processor (DSP), special IC (ASIC), ready-made programmable gate array
Or other PLDs, discrete gate or transistor logic, discrete hardware components (FPGA).General processor
Can be microprocessor or the processor can also be any conventional processor etc..
Memory can include read-only storage 240 and random access memory 250, and provide instruction to processor 230
And data.The a part of of memory can also include nonvolatile RAM (NVRAM).
Each component of device is coupled by bus 260, and wherein bus 260 is gone back in addition to including data/address bus
Power bus, controlling bus and status signal bus in addition etc. can be included.But for the sake of for clear explanation, will be various total in figure
Line is all designated as bus 260.
The following element of memory storage, can perform module or data structure, or their subset, or they
Superset:
Operational order:Including various operational orders, for realizing various operations.
Operating system:Including various system programs, for realizing various basic businesses and processing hardware based task.
In embodiments of the present invention, processor 230 by calling the operational order of memory storage, (can deposit by the operational order
Storage is in an operating system), perform following operation:
Processor 230 is used to receive business task by receiver 220, and it is negative that the business task has at least issued second in addition
Assessment main body is carried, independent evaluations obtain the first Business Processing main body of processing business task, and the first Business Processing main body is not divided
With the business task, business task is distributed to by the first Business Processing main body, and the first Business Processing master by transmitter 210
Body is different from the second Business Processing main body of the processing business task that the assessment of the second load evaluation main body is obtained.
Further, processor 230 for according at least to Business Processing main body business task process state to business at
Reason main body is estimated to obtain the first Business Processing main body, and the wherein business task of Business Processing main body processes state and refers to industry
Business processes whether main body has been allocated business task.
As shown in figure 9, apparatus of the present invention 3rd embodiment includes:
Receiver module 301, for receiving the business task from the first load evaluation main body, wherein, business task is in addition
Second load evaluation main body has been issued at least.
Processing module 302, for processing business task, and the first Business Processing main body is different from the second load evaluation master
Second Business Processing main body of the processing business task that body assessment is obtained.
Each module that the device of the present embodiment includes is used to perform the corresponding method for processing business of the present invention of Fig. 4 and Fig. 4
Each step in fourth embodiment, particular content refer to corresponding 3rd enforcements of method for processing business of the present invention of Fig. 4 and Fig. 4
Example, will not be described here.
As shown in Figure 10, apparatus of the present invention fourth embodiment includes:Transmitter 410, receiver 420, processor 430, only
Read memory 440, random access memory 450 and bus 460.
Transmitter 410 is used to send data.
Receiver 420 is used for receiving data.
The operation of 430 control device of processor, processor 430 can also be referred to as CPU (Central Processing
Unit, CPU).A kind of possibly IC chip of processor 430, the disposal ability with signal.Processor
430 can also be general processor, digital signal processor (DSP), special IC (ASIC), ready-made programmable gate array
Or other PLDs, discrete gate or transistor logic, discrete hardware components (FPGA).General processor
Can be microprocessor or the processor can also be any conventional processor etc..
Memory can include read-only storage 440 and random access memory 450, and provide instruction to processor 430
And data.The a part of of memory can also include nonvolatile RAM (NVRAM).
Each component of device is coupled by bus 460, and wherein bus 260 is gone back in addition to including data/address bus
Power bus, controlling bus and status signal bus in addition etc. can be included.But for the sake of for clear explanation, will be various total in figure
Line is all designated as bus 460.
The following element of memory storage, can perform module or data structure, or their subset, or they
Superset:
Operational order:Including various operational orders, for realizing various operations.
Operating system:Including various system programs, for realizing various basic businesses and processing hardware based task.
In embodiments of the present invention, processor 430 by calling the operational order of memory storage, (can deposit by the operational order
Storage is in an operating system), perform following operation:
Processor 430 is used to receive the business task from the first load evaluation main body by receiver 420 and process industry
Business task, wherein, business task has at least issued the second load evaluation main body in addition, and this device is different from the second load evaluation master
Second Business Processing main body of the processing business task that body assessment is obtained.
Further, processor 430 is used to appoint processing business by transmitter 410 and the second Business Processing main body respectively
Data produced by business write same main data storing body, and the same data of correspondence, are only written a main data storing body.
Embodiments of the present invention are the foregoing is only, the scope of the claims of the present invention is not thereby limited, it is every using this
Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, is included within the scope of the present invention.
Claims (14)
1. a kind of method for processing business, it is characterised in that include:
At least two load evaluation main bodys receive same business task;
At least two load evaluations main body is independently assessed and obtains corresponding Business Processing main body;
The same business task is independently processed by the different Business Processing main bodys.
2. method according to claim 1, it is characterised in that
It is described the same business task is independently processed by the different Business Processing main bodys to include:
The different Business Processing main bodys process the business task respectively, will process the data produced by the business task
Same main data storing body, and the same data of correspondence are write, each Business Processing main body is only written once the number
According to storage main body.
3. method according to claim 1, it is characterised in that
The load evaluation main body and the Business Processing main body are to operate in the different processes on same server;Or
The load evaluation main body is load evaluation device, and the Business Processing main body is Service Process Server.
4. a kind of method for processing business, it is characterised in that include:
First load evaluation main body receives business task, wherein, the business task has at least issued the second load evaluation in addition
Main body;
First load evaluation independence assessment obtains processing the first Business Processing main body of the business task, and described the
The unassigned business task of one Business Processing main body;
The business task is distributed to the first Business Processing main body, and described first by the first load evaluation main body
Business Processing main body is different from the second business of the process business task that the second load evaluation main body assessment is obtained
Reason main body.
5. method according to claim 4, it is characterised in that
The first Business Processing main body that the first load evaluation independence assessment obtains processing the business task includes:
The first load evaluation main body processes state to the Business Processing according at least to the business task of Business Processing main body
Main body is estimated to obtain the first Business Processing main body, wherein the business task of the Business Processing main body processes state
Refer to whether the Business Processing main body has been allocated the business task.
6. a kind of method for processing business, it is characterised in that include:
First Business Processing main body receives the business task from the first load evaluation main body, wherein, the business task is in addition
Second load evaluation main body has been issued at least;
The first Business Processing main body processes the business task, and the first Business Processing main body is different from described the
Second Business Processing main body of the process business task that the assessment of two load evaluation main bodys is obtained.
7. method according to claim 6, it is characterised in that
The first Business Processing main body processes the business task to be included:
The first Business Processing main body, the second Business Processing main body process the business task respectively, will process the business
Data produced by task write same main data storing body, and the same data of correspondence, each Business Processing main body
It is only written once the main data storing body.
8. method according to claim 7, it is characterised in that
The main data storing body is the database process with automatic backup function;
Or the main data storing body is data server, the data server has at least one Backup Data server, and
And data server can be by automatic duplicating of data to the Backup Data server.
9. a kind of transaction processing system, it is characterised in that include:
At least two load evaluation devices and at least two Service Process Server;
Wherein, the same business task of at least two receptions in the load evaluation device, and independently assessment obtains corresponding
Service Process Server;
Corresponding Service Process Server independently processes the same business task.
10. system according to claim 9, it is characterised in that
The system further includes data server, and corresponding Service Process Server independently processes described same
Individual business task includes:Corresponding Service Process Server processes the business task respectively, will process the business and appoint
Data produced by business write the data server, and the same data of correspondence, and each Service Process Server is only
Write the once data server.
11. a kind of devices, it is characterised in that include:
Receiver module, for receiving business task, wherein, the business task has at least issued the second load evaluation master in addition
Body;
Evaluation module, obtains processing the first Business Processing main body of the business task, first business for independent evaluations
Process the unassigned business task of main body;
Distribute module, for the business task is distributed at the first Business Processing main body, and first business
Reason main body is different from the second Business Processing main body of the process business task that the second load evaluation main body assessment is obtained.
12. a kind of devices, it is characterised in that include:
Receiver module, for receiving the business task from the first load evaluation main body, wherein, the business task is in addition at least
The second load evaluation main body is issued;
Processing module, for processing the business task, and the first Business Processing main body different from the described second load
Second Business Processing main body of the process business task that assessment main body assessment is obtained.
13. a kind of devices, it is characterised in that include:Processor, transmitters and receivers, the processor connect described respectively
Transmitters and receivers;
The processor is used for by receiver reception business task, wherein the business task at least to have issued second in addition negative
Carry assessment main body;Independent evaluations obtain the first Business Processing main body for processing the business task, the first Business Processing master
The unassigned business task of body;The business task is distributed to by the first Business Processing main body by transmitter, and
And the first Business Processing main body is different from the process business task that the second load evaluation main body assessment is obtained
Second Business Processing main body.
14. a kind of devices, it is characterised in that include:Processor, transmitters and receivers, the processor connect described respectively
Transmitters and receivers;
The processor is used for the business task by receiver reception from the first load evaluation main body, wherein, the business
Task has at least issued the second load evaluation main body in addition;Process the business task, and described device is different from described the
Second Business Processing main body of the process business task that the assessment of two load evaluation main bodys is obtained.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610836330.3A CN106550009B (en) | 2016-09-20 | 2016-09-20 | Service processing method, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610836330.3A CN106550009B (en) | 2016-09-20 | 2016-09-20 | Service processing method, system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106550009A true CN106550009A (en) | 2017-03-29 |
CN106550009B CN106550009B (en) | 2020-01-21 |
Family
ID=58367914
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610836330.3A Active CN106550009B (en) | 2016-09-20 | 2016-09-20 | Service processing method, system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106550009B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1084377A (en) * | 1996-09-09 | 1998-03-31 | Oki Electric Ind Co Ltd | Mutual backup method and routing method for a plurality of servers |
CN101145894A (en) * | 2007-10-29 | 2008-03-19 | 哈尔滨工业大学 | High-reliability arbitration device for highly available dual host fault tolerance system |
CN101917283A (en) * | 2010-07-22 | 2010-12-15 | 北京交通大学 | Two-channel hot standby system and method for realizing two-channel hot standby |
CN102932444A (en) * | 2012-10-29 | 2013-02-13 | 上海银商资讯有限公司 | Load balancing module in financial real-time trading system |
CN103188162A (en) * | 2011-12-30 | 2013-07-03 | 上海盛霄云计算技术有限公司 | Load balancing method and system |
CN103257350A (en) * | 2012-05-07 | 2013-08-21 | 中国交通通信信息中心 | Double-computer duplex automatic switching method |
CN103297502A (en) * | 2013-05-08 | 2013-09-11 | 青岛海信传媒网络技术有限公司 | Load balancing system and method |
CN103560907A (en) * | 2013-10-23 | 2014-02-05 | 曙光信息产业(北京)有限公司 | Management method and device for double machine load balancing devices |
CN105302649A (en) * | 2015-12-03 | 2016-02-03 | 中国联合网络通信集团有限公司 | Disaster recovery backup method and system |
-
2016
- 2016-09-20 CN CN201610836330.3A patent/CN106550009B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1084377A (en) * | 1996-09-09 | 1998-03-31 | Oki Electric Ind Co Ltd | Mutual backup method and routing method for a plurality of servers |
CN101145894A (en) * | 2007-10-29 | 2008-03-19 | 哈尔滨工业大学 | High-reliability arbitration device for highly available dual host fault tolerance system |
CN101917283A (en) * | 2010-07-22 | 2010-12-15 | 北京交通大学 | Two-channel hot standby system and method for realizing two-channel hot standby |
CN103188162A (en) * | 2011-12-30 | 2013-07-03 | 上海盛霄云计算技术有限公司 | Load balancing method and system |
CN103257350A (en) * | 2012-05-07 | 2013-08-21 | 中国交通通信信息中心 | Double-computer duplex automatic switching method |
CN102932444A (en) * | 2012-10-29 | 2013-02-13 | 上海银商资讯有限公司 | Load balancing module in financial real-time trading system |
CN103297502A (en) * | 2013-05-08 | 2013-09-11 | 青岛海信传媒网络技术有限公司 | Load balancing system and method |
CN103560907A (en) * | 2013-10-23 | 2014-02-05 | 曙光信息产业(北京)有限公司 | Management method and device for double machine load balancing devices |
CN105302649A (en) * | 2015-12-03 | 2016-02-03 | 中国联合网络通信集团有限公司 | Disaster recovery backup method and system |
Non-Patent Citations (2)
Title |
---|
王先培: "《测控系统与集成技术》", 31 March 2012 * |
蒋建虎 等: "《水泥厂集散控制系统设计》", 30 November 2013 * |
Also Published As
Publication number | Publication date |
---|---|
CN106550009B (en) | 2020-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110290189B (en) | Container cluster management method, device and system | |
CN108768877B (en) | Distribution method and device of burst traffic and proxy server | |
US8572237B2 (en) | Failover mechanism for distributed process execution | |
CN107682417B (en) | Task allocation method and device for data nodes | |
CN104462370A (en) | Distributed task scheduling system and method | |
CN102263822B (en) | Distributed cache control method, system and device | |
CN110289999B (en) | Data processing method, system and device | |
CN112671928B (en) | Equipment centralized management architecture, load balancing method, electronic equipment and storage medium | |
US20210048956A1 (en) | Storage system, and method and apparatus for allocating storage resources | |
CN110769040B (en) | Access request processing method, device, equipment and storage medium | |
CN111652728B (en) | Transaction processing method and device | |
CN101467391A (en) | Method, equipment and system for distributing medium resource | |
CN114553900B (en) | Distributed block storage management system, method and electronic equipment | |
CN112416594A (en) | Micro-service distribution method, electronic equipment and computer storage medium | |
CN113055493B (en) | Data packet processing method, device, system, scheduling device and storage medium | |
CN109120680A (en) | A kind of control system, method and relevant device | |
CN101674171B (en) | Port configuration management method, single board and port configuration management system | |
CN102546652B (en) | System and method for server load balancing | |
CN106550009A (en) | A kind of method for processing business, system and device | |
CN108632321A (en) | Treating method and apparatus based on scheduling of resource under big data platform | |
CN107682398B (en) | Selection method, device, computer equipment and the storage medium of data sending object | |
CN113923260B (en) | Method, device, terminal and storage medium for processing agent environment | |
CN115913550A (en) | Password resource allocation method, device and equipment | |
CN102868594B (en) | Method and device for message processing | |
US20160261476A1 (en) | Message system for avoiding processing-performance decline |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |