CN110019520A - Business executes method, system and device - Google Patents
Business executes method, system and device Download PDFInfo
- Publication number
- CN110019520A CN110019520A CN201711229270.XA CN201711229270A CN110019520A CN 110019520 A CN110019520 A CN 110019520A CN 201711229270 A CN201711229270 A CN 201711229270A CN 110019520 A CN110019520 A CN 110019520A
- Authority
- CN
- China
- Prior art keywords
- business
- server
- main
- standby
- user
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F16/275—Synchronous replication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/02—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Business, Economics & Management (AREA)
- Data Mining & Analysis (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Accounting & Taxation (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention discloses a kind of business to execute method, this method comprises: judging the business datum in main business server by main monitoring server, whether synchronous duplication is completed in standby service server, if not duplication completely, then record the corresponding business of the business datum not replicated completely and user, when the service switching of main business server is to for service server, standby service server limitation is notified to execute the business of record, notify the service switching of the other users in main business server other than the user of record to standby service server, carry out normal business, the business of other users will not be affected because of switching, after the business of record is executed by limitation, the service switching of the user recorded in main business server is continued to execute into restricted service to standby service server again.The invention also discloses a kind of business to execute system and device, can reduce user and the limited degree of business in service switching service server.
Description
Technical field
The invention belongs to technical field of mobile terminals more particularly to a kind of business to execute method, system and device.
Background technique
In the Third-party payment platform of mainstream, distributed memory system is all employed, it is general that multimachine room is used to live more
Strategy can continue as user by the way that flow is switched to Backup Data computer room and provide service when there is a computer room failure.But
This between computer room data consistency and data delay have higher requirements.
In the prior art, when an Internet data center (IDC, Internet Data Center) goes wrong
It waits, operation maintenance personnel can first be switched to the flow of user normally from there is abnormal computer room by the SiteServer LBS of front end
In computer room, the active-standby switch of database is then carried out, i.e., Alternative load is upgraded to primary load.By data in handoff procedure
It is set as not writeable, so that fund security is guaranteed, is restored again after data synchronously complete, still, in flow
Being switched to user data in this period before restoring after standby host to data can only read, and cannot modify, prevent user from
Transaction causes the operation of user's fund to be limited comprehensively, and transactional operation can not carry out, and influence the stream compression of system, while also making
It is bad at user experience.
Summary of the invention
The embodiment of the present invention provides a kind of business execution method, system and device, can solve all industry when service switching
Business is prohibited to operate, and the problem that the user experience caused is bad.
First aspect of the embodiment of the present invention provides a kind of business execution method, comprising:
The business datum of main monitoring server monitoring main business server, if be replicated in standby service server completely;
If not duplication completely, records the corresponding business of the business datum not replicated completely and user;
When the standby service server is arrived in the service switching for confirming the main business server, the standby business is notified to take
The business of record is limited in preset executions range by business device, and is issued the before the business of the record is by limitation execution
One switching notice, the user comprising record in first switching notice, the industry of the other users except the user that will be recorded
Business, switches to the standby service server from the main business server and executes unrestricted business;
The second switching notice is issued after the business of the record is executed by limitation, by the industry of the user of the record
Business switches in the standby service server from the main business server, continues to execute limited business.
Second aspect of the embodiment of the present invention provides a kind of business execution system, comprising:
Main monitoring server, main business server and standby service server;
Wherein, the main monitoring server, for monitoring the business datum of the main business server, if duplication completely
In the standby service server;If not duplication completely, records the corresponding business of the business datum not replicated completely and user;
When the standby service server is arrived in the service switching for confirming the main business server, notify the standby service server by note
The business of record is limited in preset execution range, and is issued the first switching before the business of the record is executed by limitation and led to
Know, the user comprising record in first switching notice, the business of the other users except the user that will be recorded, from described
Main business server switches to the standby service server and executes unrestricted business;It is executed in the business of the record by limitation
The second switching notice is issued later, and the business of the user of the record is switched into the standby industry from the main business server
It is engaged in server, continues to execute limited business.
The third aspect of the embodiment of the present invention provides a kind of business executive device, comprising:
Monitoring modular, for monitoring the business datum of main business server, if be replicated in standby service server completely;
Logging modle, if recording the corresponding business of the business datum not replicated completely and user for not duplication completely;
Notification module is logical for when the standby service server is arrived in the service switching for confirming the main business server
Know that the business of record is limited in preset execution range by the standby service server;
The notification module is also used to issue the first switching notice, institute before the business of the record is executed by limitation
State the user comprising record in the first switching notice, the business of the other users except the user that will be recorded, from the main business
Business server switches to the standby service server and executes unrestricted business;
The notification module is also used to issue the second switching notice after the business of the record is executed by limitation, with
The business of the user of the record is switched in the standby service server from the main business server, is continued to execute limited
Business.
From the embodiments of the present invention it is found that business provided by the invention executes method, system and device, pass through main monitoring
Server judges the business datum in main business server, if synchronous duplication is completed in standby service server, if not completely
Duplication, then record the corresponding business of the business datum not replicated completely and user, main business server service switching to standby
When service server, notifies standby service server limitation to execute the business of record, notify in main business server in addition to record
The service switching of other users except user carries out normal business, the business of other users will not to standby service server
Because switching is affected, executed by limitation and then in the business of record by the industry of the user recorded in main business server
Business is switched to standby service server and continues to execute restricted service, the business of the user that duplication service data are abnormal into
The certain limitation of row, can protect service security, while the service impact for the user that exception will occur is reduced to minimum, improves
User experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is the system hardware structure figure that method is executed using business in the embodiment of the present invention;
Fig. 2 is the flow diagram that the business that first embodiment of the invention provides executes method;
Fig. 3 is the flow diagram that the business that second embodiment of the invention provides executes method;
Fig. 4 is the interaction flow schematic diagram that business executes method in the embodiment of the present invention;
Fig. 5 is the structural schematic diagram that the business that third embodiment of the invention provides executes system;
Fig. 6 is the structural schematic diagram that the business that fourth embodiment of the invention provides executes system;
Fig. 7 is the structural schematic diagram for the business executive device that fifth embodiment of the invention provides;
Fig. 8 is the structural schematic diagram for the business executive device that sixth embodiment of the invention provides.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality
Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the art
Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
The typical case scene of the following embodiment of the present invention is in large-scale Third-party payment platform, across active and standby business
Under the scene of server (or across active and standby business computer room), the prison of main monitoring server (or main monitoring computer room) is deployed in by starting
Ranging sequence judges whether replicate business datum completely between active and standby service server (or active and standby business computer room), if not complete
Full duplication, then record the corresponding user of the business datum not replicated completely and business funds number, in active and standby business service
Between device (or active and standby business computer room) when service switchover, notify standby service server (or standby business computer room) to this according to the record
The business not replicated completely carries out limitation execution, such as can freeze this business funds, when executing service switchover not to limit
The service execution by user of execution business processed switches, i.e., temporarily stays in main business server by the business of the user of limitation execution business
On (or main business computer room), business is not executed, when standby service server completes limitation execution operation, i.e., the business funds is frozen
After knot, then standby service server will be cut by the business of the user of limitation execution business, at this time by the use of limitation execution business
Family can carry out limited operation by limit range, specifically only have this business funds to be frozen, and influence is this business money
The corresponding business of gold executes, and not limits by all business of the user of limitation execution business, so that these execute industry by limitation
The limited behavior of the user of business substantially reduces, and ensure that user's fund peace Taiwan investment gold is not suffered a loss, nor affects on active and standby business
The switching of service traffics between server (active and standby business computer room).Specific system structure is as shown in Figure 1.
It, can by taking main business server, standby service server, main monitoring server and standby monitoring server as an example in Fig. 1
With understanding, the above server can respectively correspond main business computer room, standby business computer room, main monitoring computer room and standby monitoring computer room, machine
It include multiple servers in room, implementation principle is identical as the implementation principle of single server, in the guarantor of the embodiment of the present invention
Within the scope of shield.
The system structure includes: service distribution module 10, main business server 20, standby service server 30, main monitoring clothes
Business device 40, standby monitoring server 50, database broker module 60, primary database 70, standby database 80, it should be noted that this hair
Active and standby in bright embodiment is opposite concept, and main business server 20 can be the standby server of standby service server 30.
Wherein, service distribution module 10 is used for according to business process rule, by traffic assignments to main business server 20 or
Standby service server 30, the operation system by taking this traffic assignments is to main business server 20 as an example, in main business server 20
21, by the information of this business, are written in main monitoring server 40 and generate remote journal, and operation system 21 executes after being written successfully
The secondary service logic, while the business information of execution is passed through into the master in the write-in main business server 20 of database broker module 60
In database 70, primary database 70 may include multiple user libraries and business library, with a user library 1 and a business in Fig. 1
For library 1.For example, in Third-party payment platform, transaction transaction is executed, operation system 21 is by the user name of the transaction
The user informations such as title, user contact details are written in user library 1 by database broker module 60, by the trading standard of the transaction
, transaction amount, transaction contact details, the particular contents such as mode of doing business are written in business library 1 by database broker module 60.
Further, database broker module 60 is then written to the business datum in primary database 70, is synchronized to and main business service
Device 20 is in the standby database 80 in the standby service server 30 of main and standby relation.
Monitoring program is provided in main monitoring server 40, operational monitoring program reads local in main monitoring server 40
Remote journal obtains the business information in remote journal, and inquires 70 He of primary database by access database proxy module 60
Standby database 80, it can be determined that whether there is business datum not synchronize and be replicated in primary database 70 and standby database 80, if having not
The business datum of fully synchronized duplication, main monitoring server 40 then record the business datum not replicated completely and the business
The corresponding user of data and business funds number, and service distribution module 10 is notified to there is the business datum not replicated completely, industry
After business distribution module is notified, the notice can be forwarded to give management module (not shown), the comprehensive notice of management module with
And the notice from other modules of system obtained, judge whether the case where having occurred needing service switchover server, the situation
It may include failure of main business server 20 etc..Alternatively, after service distribution module is notified, can voluntarily integrate the notice with
And the notice from other modules of system obtained, judge whether the case where having occurred needing service switchover server.
When confirmation needs to issue a notice in the service switching on main business server 20 to standby service server 30 to master
Monitoring server 40, main monitoring server 40 is by the corresponding user of the business datum not replicated completely of record and business funds number
Volume, notice indicate that standby service server 30 freezes the business funds of the user to standby service server 30, meanwhile, main monitoring
Server 40 notifies service distribution module 10 to switch over, and notifies service distribution module 10 not the business number not replicated completely
According to the service switching of corresponding user to standby service server 30, the business of these users can not be carried out at this time.When standby business takes
After the business completion of device 30 is freezed, main monitoring server 40, main monitoring server 40 is notified to notify service distribution module 10, it will not completely
The service switching of the corresponding user of the business datum of duplication is to standby service server 30, these users can carry out and the jelly at this time
The unrelated business of the fund of knot, limited range are very small.
Last operation maintenance personnel can carry out restoring the operation of business datum, after standby service data are restored, 70 He of primary database
The business datum of standby database 80 is fully synchronized, then these users are carried out with the releasing freeze operation of fund, can be restored just
Normal business operations competence.
It should be noted that being again provided with monitoring program in standby monitoring server 50, there is standby service server 30 to be written
Remote journal, monitoring process is identical as above-mentioned main monitoring server 40, and details are not described herein again.
Further, if main business server 20 and being closer for service server 30, main monitoring server 40
It can merge with standby monitoring server 50 and be set as the same monitoring server, built-in monitoring program, 20 He of main business server
Business datum is all written the monitoring server and generates remote journal by standby service server 30.The function of monitoring program is retouched with above-mentioned
It states identical.
Business in the present embodiment executes the description of the specific technical solution of method referring to following each embodiments.
Fig. 2 is referred to, Fig. 2 is the flow diagram that the business that first embodiment of the invention provides executes method, this method
Include:
The business datum of S101, main monitoring server monitoring main business server, if be replicated in standby business service completely
In device;
It is built-in with monitoring program in main monitoring server, starting the monitoring program can monitor what the business completed generated
Business datum, if complete duplication between service server and standby service server.
If S102, not duplication completely, record the corresponding business of the business datum not replicated completely and user;
It is completely not multiple between main business server and standby service server if corresponding business datum in the remote journal
The corresponding business record of the business datum not replicated completely is then abnormal replication business by system, meanwhile, what record did not replicated completely
The corresponding business of business datum and user.
Further, there is the case where business datum does not replicate completely to correlation module in notice, to provide service switchover
The foundation of server, the correlation module can integrate the notice that the notice and other modules issue, be confirmed whether to need by business from
It is switched in main business server in standby service server, which can be with management module above-mentioned or traffic assignments mould
Block.
S103, when standby service server is arrived in the service switching for confirming main business server, notify standby service server by
The business of record is limited in preset execution range, and before the business of the record is executed by limitation, issues the first switching
It notifies, the user comprising record in switching notice, the business of the other users except the user that will be recorded takes from the main business
Business device switches to this for unrestricted business is executed in service server;
There is not the case where duplication completely in the business datum carried out that comprehensive main monitoring server reports, and,
It is hard to judge that main business server occurs for the other information such as data exchange obstacle, hardware configuration failure that his module reports
The failures such as part, software or network are then needed service switching into standby service server.Before handover, main monitoring is notified to take
Business device.
Main monitoring server notifies standby service server that the business of the record is limited in preset execution range, specifically
Ground freezes the corresponding fund of business of the record.Standby service server executes limitation operation and also needs a little time, in the record
Business executed by limitation before, main monitoring server issues the first switching notice to service distribution module, and first switching is logical
User comprising record in knowing, for notifying the service distribution module by the business of the other users except the user of record, from
The main business server switches to this for unrestricted business is executed in service server.It is not switched in standby service server
User, can not temporarily execute business operation, protect the safety of account.The user being switched in standby service server, can
Normally to execute business operation, influence caused by user is detectable because of switching improves user experience.
S104, the second switching notice is issued after the business of the record is executed by limitation, by the user's of the record
Business switches to this from the main business server for limited business in service server, is continued to execute.
After the operation that standby service server completes the business that limitation executes the record, the business of record this for business clothes
It is engaged in being executed on device by limitation, standby service server then notifies main monitoring server.
Further, main monitoring server issues the second switching notice to the service distribution module, for notifying the business
Distribution module switches to this by the business of the user of the record, from the main business server in service server, the record
The business of user, this for limited business is continued to execute on service server, the limited business is slighter to customer impact,
Specifically, if the corresponding fund of the business for freezing the record, the only corresponding business of part fund cannot be executed, the user
Other business still can be normally carried out.
In the embodiment of the present invention, the business datum in main business server is judged by main monitoring server, if standby
Synchronous duplication is completed in service server, if duplication completely, record the corresponding business of the business datum not replicated completely and
User notifies what standby service server limitation execution recorded when the service switching of main business server is to for service server
Business notifies the service switching of other users other than the user of record in main business server to arrive for service server,
Normal business is carried out, the business of other users will not be affected because of switching, after the business of record is executed by limitation,
The service switching of the user recorded in main business server is continued to execute into restricted service to standby service server again, will be answered
The business for the user that business datum processed is abnormal carries out certain limitation, can protect service security, while exception will occur
The service impact of user be reduced to minimum, improve user experience.
Fig. 3 is referred to, Fig. 3 is the business execution method that second embodiment of the invention provides, this method comprises:
S201, main business server, by the business datum of pending business, are write before execution business as remote journal
Monitoring server is become owner of, if being written successfully, main business server executes pending business;
External service request is introduced into service distribution module, service distribution module business according to belonging to user clothes
Business device is assigned to the transaction system of corresponding service server, in the present embodiment, for being assigned to main business server.
Before execution business, main business server passes through operation system by the business datum of pending business, as remote
Journey log write becomes owner of monitoring server, if being written successfully, main business server executes pending business.The remote journal includes
All information relevant with the business such as target, content, the amount of money, the user of business.After operation system is successfully written, just start to hold
Row this business.
If write-in is unsuccessful, again attempt to the business datum of pending business, main monitoring clothes are written as remote journal
It is engaged in device, after attempting predetermined times, is still written unsuccessful, then returns to miscue to the service distribution module or the management mould
Block.
S202, main business server through database proxy module store business datum to local primary database, number
Business datum in primary database is copied to the standby database of standby service server according to library proxy module;
Business datum is sent to database broker module by main business server, and database broker module is by the business datum
Store the primary database into main business server.Further, database broker module is by the business datum in primary database
It is automatically copied into the standby database of standby service server.
The business datum of primary database, standby database can be inquired by database broker module.
S203, main monitoring server read local remote journal, and by database broker module, inquire primary database
Business datum corresponding with the remote journal in standby database;
It is built-in with monitoring program in main monitoring server, starts the monitoring program and reads main business server write-in local
Remote journal can judge every industry in the remote journal according to the identification information of business, title etc. in remote journal is read
The business datum of business, if complete duplication between service server and standby service server, that is, in the remote journal
Business, synchronous duplication whether is completed between service server and standby service server.
Whether the business datum inquired in the business datum that inquires, and standby database in S204, comparison primary database
Unanimously, if it is inconsistent, confirm the corresponding business datum of main business server medium-long range log, is not replicated in standby business completely
In server;
If consistent, without any record.
The corresponding business of business datum and user that S205, record do not replicate completely;
Duplication does not include not replicating, or only replicate the business datum of part completely.
It records duplication service data and abnormal business and user occurs, for example, the friendship that user A is completed in main business server
The data of easy B are not replicated in completely in standby service server, then record transaction B and user A.
S206, when standby service server is arrived in the service switching for confirming main business server, notify standby service server by
The business of record is limited in preset execution range, and is issued the first switching before the business of record is executed by limitation and led to
Know, the user comprising record in the first switching notice, the business of the other users except the user that will be recorded takes from main business
Business device switches to standby service server and executes unrestricted business;
Main monitoring server notifies standby service server that the business of the record is limited in preset execution range, specifically
Ground freezes the corresponding fund of business of the record.Standby service server executes limitation operation and also needs a little time, in the record
Business executed by limitation before, main monitoring server issues the first switching notice to service distribution module, and first switching is logical
User comprising record in knowing, for notifying the service distribution module by the business of the other users except the user of record, from
The main business server switches to this for unrestricted business is executed in service server.It is not switched in standby service server
User, can not temporarily execute business operation, protect the safety of account.The user being switched in standby service server, can
Normally to execute business operation, influence caused by user is detectable because of switching improves user experience.
S207, the second switching notice is issued after the business of record is executed by limitation, the business for the user that will be recorded
It is switched in standby service server from main business server, continues to execute limited business;
After the operation that standby service server completes the business that limitation executes the record, the business of record this for business clothes
It is engaged in being executed on device by limitation, standby service server then notifies main monitoring server.
Further, main monitoring server issues the second switching notice to the service distribution module, for notifying the business
Distribution module switches to this by the business of the user of the record, from the main business server in service server, the record
The business of user, this for limited business is continued to execute on service server, the limited business is slighter to customer impact,
Specifically, if the corresponding fund of the business for freezing the record, the only corresponding business of part fund cannot be executed, the user
Other business still can be normally carried out.
The business datum of S208, standby monitoring server monitoring main business server, and the business datum of standby service server
It is whether identical, if identical, standby service server is notified to release the limitation to the business of record and execute.
Business is switched to from main business server for after service server, and standby monitoring server is responsible for monitoring business datum
It is synchronous.When operation maintenance personnel restores after synchronization of the business datum of active and standby service server, standby monitoring server monitors standby business and takes
Whether the business datum of business device is all synchronized in main business server.
It is identical with the standby business datum of service server if the business datum of main business server, then notify standby industry
Business server releases the limitation to the business of record and executes, and makes to be normally carried out business by the user of limit service.
One example, when Third-party payment platform is traded, service distribution module takes transaction allocation to main business
It is engaged in device, main monitoring server is written as remote journal in the data that each is traded by the operation system in main business server,
Main monitoring server starting monitoring program reads the remote journal, obtains user A, user B, user C, user D, user E, user
The a plurality of Transaction Information of F, and existed by database broker module polls to a transaction of user A and a transaction of user B
Transaction in standby server, if not duplication completely, records the fund of user A and user B and two transactions of their progress
The amount of money.When the service switching of service distribution module confirmation main business server is to for service server, main business server is logical
Know that standby service server freezes the fund of two transactions of user A and user B, and in the forward business for freezing completion point
The first switching notice is issued with module, includes the name information of user A and user B, traffic assignments mould in the first switching notice
Block switches to standby service server, and its by the business of the other users except user A and user B, from main business server
His user executes unrestricted transaction on standby service server.Second is issued to service distribution module after fund is frozen to cut
Notice is changed, service distribution module switches to the business of user A and user B in standby service server from main business server, and
And user A and user B continues to execute limited business on standby service server.
Fig. 4 is referred to, the interaction flow in the embodiment of the present invention is as shown in Figure 4.Wherein abnormal traffic refers to above-mentioned not complete
The corresponding business of the business datum replicated entirely, abnormal user refer to the corresponding user of abnormal traffic.Shielding abnormal user refers to
When service switchover, the business of abnormal user is without switching.Shielding abnormal user is released to refer to the business progress of abnormal user
The switching of service server.Other details in interactive process refer to the description of foregoing embodiments.
In the embodiment of the present invention, the business datum in main business server is judged by main monitoring server, if standby
Synchronous duplication is completed in service server, if duplication completely, record the corresponding business of the business datum not replicated completely and
User notifies what standby service server limitation execution recorded when the service switching of main business server is to for service server
Business notifies the service switching of other users other than the user of record in main business server to arrive for service server,
Normal business is carried out, the business of other users will not be affected because of switching, after the business of record is executed by limitation,
The service switching of the user recorded in main business server is continued to execute into restricted service to standby service server again, will be answered
The business for the user that business datum processed is abnormal carries out certain limitation, can protect service security, while exception will occur
The service impact of user be reduced to minimum, improve user experience.
Fig. 5 is referred to, Fig. 5 is that the business execution system that third embodiment of the invention provides only is shown for ease of description
Part related to the embodiment of the present invention.The system specifically includes that
Main monitoring server 301, main business server 302 and standby service server 303.
Wherein, main monitoring server 301, for monitoring the business datum of main business server 302, if be replicated in completely
In standby service server 303;If not duplication completely, records the corresponding business of the business datum not replicated completely and user;When
When confirming the service switching of main business server 302 to for service server 303, notify standby service server 303 by record
Business is limited in preset execution range, and the first switching notice is issued before the business of record is executed by limitation, and first
Comprising the user recorded in switching notice, the business of the other users except the user that will be recorded, from main business server 302
It switches to standby service server 303 and executes unrestricted business;The second switching is issued after the business of record is executed by limitation
Notice switches to the business of the user of record in standby service server 303 from main business server 302, continue to execute by
The business of limit.
Fig. 6 is referred to, Fig. 6 is that the business execution system that fourth embodiment of the invention provides only is shown for ease of description
Part related to the embodiment of the present invention.The system includes:
Further, main business server 302 is also used to before execution business, by the business datum of pending business,
Main monitoring server 301 is written as remote journal;
Main business server 302 executes pending business if being also used to be written successfully.
Further, system further include: database broker module 304;
Main business server 302 is also used to store business datum to local main number by database broker module 304
According to library;
Database broker module 304, for the business datum in primary database to be copied to the standby of standby service server 303
Database.
Further, main monitoring server 301 is also used to read local remote journal, and passes through database broker mould
Block 304 inquires the corresponding business datum of remote journal in primary database and standby database;
Main monitoring server 301 is also used to compare and inquire in the business datum inquired in primary database, and standby database
Whether the business datum arrived is consistent, if inconsistent, confirms the corresponding business datum of 302 medium-long range log of main business server,
It is not replicated in completely in standby service server 303.
Further, system further include: standby monitoring server 305;
Standby monitoring server 305, for monitoring the business datum of main business server 302, and standby service server 303
Whether business datum is identical;
If identical, standby service server 303 is notified to release the limitation to the business of record and execute.
The method that system in the embodiment of the present invention is used to execute embodiment described in 2~Fig. 3 of earlier figures, techniques not described
Details is identical as 2~embodiment illustrated in fig. 3 of earlier figures, and details are not described herein again.
In the embodiment of the present invention, the business datum in main business server is judged by main monitoring server, if standby
Synchronous duplication is completed in service server, if duplication completely, record the corresponding business of the business datum not replicated completely and
User notifies what standby service server limitation execution recorded when the service switching of main business server is to for service server
Business notifies the service switching of other users other than the user of record in main business server to arrive for service server,
Normal business is carried out, the business of other users will not be affected because of switching, after the business of record is executed by limitation,
The service switching of the user recorded in main business server is continued to execute into restricted service to standby service server again, will be answered
The business for the user that business datum processed is abnormal carries out certain limitation, can protect service security, while exception will occur
The service impact of user be reduced to minimum, improve user experience.
Fig. 7 is referred to, Fig. 7 is that the business executive device that fifth embodiment of the invention provides only is shown for ease of description
Part related to the embodiment of the present invention.The device can be the main monitoring server in foregoing embodiments, the device packet
It includes:
Monitoring modular 401, for monitoring the business datum of main business server, if be replicated in standby service server completely
In;
Logging modle 402, if recording the corresponding business of the business datum not replicated completely and use for not duplication completely
Family;
Notification module 403, for notifying standby industry when confirming the service switching of main business server to for service server
The business of record is limited in preset execution range by business server;
Notification module 403 is also used to issue the first switching notice, the first switching before the business of record is executed by limitation
Comprising the user recorded in notice, the business of the other users except the user that will be recorded is switched to from main business server
Standby service server executes unrestricted business;
Notification module 403 is also used to issue the second switching notice after the business of record is executed by limitation, will record
The business of user switched in standby service server from main business server, continue to execute limited business.
Techniques not described details in the embodiment of the present invention, it is identical referring to each embodiment shown in 2~Fig. 6 of earlier figures, this
Place repeats no more.
In the embodiment of the present invention, monitoring modular judges the business datum in main business server, if in standby business service
Synchronous duplication is completed in device, if duplication completely, the corresponding business of business datum that logging modle record does not replicate completely and
User, when the service switching of main business server is to for service server, notification module notifies standby service server limitation to hold
The business of row record notifies the service switching of the other users in main business server other than the user of record to standby business
Server carries out normal business, and the business of other users will not be affected because of switching, is limited and is held in the business of record
It goes and then the service switching of the user recorded in main business server is continued to execute into restricted clothes to standby service server
Business, the business for the user that duplication service data are abnormal carry out certain limitation, can protect service security, while will hair
The service impact of raw abnormal user is reduced to minimum, improves user experience.
Fig. 8 is referred to, Fig. 8 is the business executive device that sixth embodiment of the invention provides, which can be aforementioned each
Main monitoring server in embodiment, with 7 shown device of earlier figures the difference is that:
Further, monitoring modular 401 includes:
Reading submodule 4011, for reading local remote journal;
Submodule 4012 is inquired, for inquiring long-range in primary database and standby database by database broker module
The corresponding business datum of log;
Submodule 4013 is compared, is inquired for comparing in the business datum inquired in primary database, and standby database
Business datum it is whether consistent;
Submodule 4014 is confirmed, if confirming the corresponding business number of main business server medium-long range log for inconsistent
According to not being replicated in completely in standby service server.
Techniques not described details in the embodiment of the present invention, it is identical referring to each embodiment shown in 2~Fig. 7 of earlier figures, this
Place repeats no more.
In the embodiment of the present invention, in the embodiment of the present invention, monitoring modular judges the business datum in main business server, is
It is no that synchronous duplication is completed in standby service server, if duplication completely, logging modle do not record the business number not replicated completely
According to corresponding business and user, when the service switching of main business server is to for service server, notification module notifies standby industry
Business server limitation executes the business of record, notifies the industry of the other users in main business server other than the user of record
Business is switched to standby service server, carries out normal business, the business of other users will not be affected because of switching, record
Business executed by limitation and then standby service server continuation arrived into the service switching of the user recorded in main business server
Restricted service is executed, the business for the user that duplication service data are abnormal carries out certain limitation, can protect industry
Business safety, while the service impact for the user that exception will occur is reduced to minimum, improves user experience.
In multiple embodiments provided herein, it should be understood that disclosed method and apparatus can pass through it
Its mode is realized.For example, the embodiment of device described above is only schematical, for example, the division of the module,
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be with
In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling or direct-coupling or communication linkage can be through some interfaces, the INDIRECT COUPLING of device or module or
Communication linkage can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple
On network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair
Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The above are method is executed to business provided by the present invention, business executes the description of system and business executive device,
For those skilled in the art, thought according to an embodiment of the present invention, has in specific embodiments and applications
Change place, to sum up, the contents of this specification are not to be construed as limiting the invention.
Claims (12)
1. a kind of business executes method characterized by comprising
The business datum of main monitoring server monitoring main business server, if be replicated in standby service server completely;
If not duplication completely, records the corresponding business of the business datum not replicated completely and user;
When confirming the service switching of the main business server to the standby service server, the standby service server is notified
The business of record is limited in preset execution range, and issues first before the business of the record is executed by limitation and cuts
Change notice, the user comprising record in first switching notice, the business of the other users except the user that will be recorded, from
The main business server switches to the standby service server and executes unrestricted business;
The record business by limitation execute after issue the second switching notice, by the business of the user of the record from
The main business server switches in the standby service server, continues to execute limited business.
2. the method according to claim 1, wherein the industry of the main monitoring server monitoring main business server
Business data, if be replicated in standby service server completely, include: before
The main business server, by the business datum of pending business, is write before execution business as the remote journal
Enter the main monitoring server;
If being written successfully, the main business server executes the pending business.
3. according to the method described in claim 2, it is characterized in that, the main business server through database proxy module will
Business datum is stored to local primary database;
Business datum in the primary database is copied to the standby number of the standby service server by the database broker module
According to library.
4. according to the method described in claim 3, it is characterized in that, the industry of the main monitoring server monitoring main business server
Business data, if be replicated in completely for including: in service server
The main monitoring server reads local remote journal, and by the database broker module, inquires the main number
According to the corresponding business datum of the remote journal in library and the standby database;
Compare the business datum inquired in the primary database and the business datum inquired in the standby database whether one
It causes;
If inconsistent, confirm the corresponding business datum of remote journal described in the main business server, do not replicate completely
In the standby service server.
5. the method according to claim 1, wherein the business in the record is sent out after being executed by limitation
The business of the user of the record is switched to the standby business service from the main business server by the second switching notice out
In device, continue to execute limited business includes: later
The standby monitoring server monitors the business datum of the main business server and the business number of the standby service server
According to whether identical;
If identical, the standby service server is notified to release the limitation to the business of the record and execute.
6. a kind of business executes system characterized by comprising
Main monitoring server, main business server and standby service server;
Wherein, the main monitoring server, for monitoring the business datum of the main business server, if be replicated in institute completely
It states in standby service server;If not duplication completely, records the corresponding business of the business datum not replicated completely and user;When true
When recognizing the service switching of the main business server to the standby service server, notify the standby service server by record
Business is limited in preset execution range, and issues the first switching notice before the business of the record is executed by limitation,
Comprising the user recorded in first switching notice, the business of the other users except the user that will be recorded, from the master
Service server switches to the standby service server and executes unrestricted business;Execution is limited in the business of the record
After issue the second switching notice, the business of the user of the record is switched into the standby business from the main business server
In server, limited business is continued to execute.
7. system according to claim 6, which is characterized in that the main business server, be also used to execution business it
Before, by the business datum of pending business, the main monitoring server is written as the remote journal;
The main business server executes the pending business if being also used to be written successfully.
8. system according to claim 7, which is characterized in that the system also includes: database broker module;
The main business server is also used to store business datum to local master data by the database broker module
Library;
The database broker module, for copying to the standby service server for the business datum in the primary database
Standby database.
9. system according to claim 8, which is characterized in that
The main monitoring server is also used to read local remote journal, and by the database broker module, inquires institute
State the corresponding business datum of the remote journal in primary database and the standby database;
The main monitoring server is also used to compare the business datum inquired in the primary database and the standby database
In the business datum that inquires it is whether consistent, if inconsistent, confirm that remote journal described in the main business server is corresponding
Business datum, be not replicated in completely in the standby service server.
10. system according to claim 6, which is characterized in that the system also includes: standby monitoring server;
The standby monitoring server, for monitor the main business server business datum and the standby service server
Whether business datum is identical;
If identical, the standby service server is notified to release the limitation to the business of the record and execute.
11. a kind of business executive device characterized by comprising
Monitoring modular, for monitoring the business datum of main business server, if be replicated in standby service server completely;
Logging modle, if recording the corresponding business of the business datum not replicated completely and user for not duplication completely;
Notification module, for when the standby service server is arrived in the service switching for confirming the main business server, notice institute
It states standby service server the business of record is limited in preset execution range;
The notification module, is also used to be issued the first switching notice before the business in the record is executed by limitation, and described the
Comprising the user recorded in one switching notice, the business of the other users except the user that will be recorded takes from the main business
Business device switches to the standby service server and executes unrestricted business;
The notification module is also used to issue the second switching notice after the business of the record is executed by limitation, by institute
The business for stating the user of record switches in the standby service server from the main business server, continues to execute limited industry
Business.
12. device according to claim 11, which is characterized in that the monitoring modular includes:
Reading submodule, for reading local remote journal;
Submodule is inquired, for inquiring in the primary database and the standby database by the database broker module
The corresponding business datum of the remote journal;
Submodule is compared, for comparing the business datum inquired in the primary database and inquiring in the standby database
Business datum it is whether consistent;
Submodule is confirmed, if confirming the corresponding business number of remote journal described in the main business server for inconsistent
According to not being replicated in completely in the standby service server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711229270.XA CN110019520B (en) | 2017-11-29 | 2017-11-29 | Service execution method, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711229270.XA CN110019520B (en) | 2017-11-29 | 2017-11-29 | Service execution method, system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110019520A true CN110019520A (en) | 2019-07-16 |
CN110019520B CN110019520B (en) | 2022-09-23 |
Family
ID=67185913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711229270.XA Active CN110019520B (en) | 2017-11-29 | 2017-11-29 | Service execution method, system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110019520B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113472469A (en) * | 2021-07-27 | 2021-10-01 | 厦门亿联网络技术股份有限公司 | Data synchronization method, device, equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2002340403A1 (en) * | 2001-11-16 | 2003-06-10 | Paralleldb, Incorporated | Data replication system and method |
JP2003337717A (en) * | 2002-05-22 | 2003-11-28 | Nec Corp | Fault recovery synchronizing system of online transaction process |
CN102891849A (en) * | 2012-09-25 | 2013-01-23 | 北京星网锐捷网络技术有限公司 | Service data synchronization method, data recovery method, data recovery device and network device |
US20140143305A1 (en) * | 2012-11-22 | 2014-05-22 | Electronics And Telecommunications Research Institute | Apparatus and system for providing software service using software virtualization and method thereof |
US20140156829A1 (en) * | 2012-12-02 | 2014-06-05 | At&T Intellectual Property L, L.P. | Methods, Systems, and Products for Personalized Monitoring of Data |
CN104158693A (en) * | 2014-08-27 | 2014-11-19 | 乐视网信息技术(北京)股份有限公司 | A method and a system for disaster recovery backup of data service |
CN105207809A (en) * | 2015-08-25 | 2015-12-30 | 广州华多网络科技有限公司 | Data processing method, server, client side and system |
CN105677675A (en) * | 2014-11-20 | 2016-06-15 | 阿里巴巴集团控股有限公司 | Business processing method and device |
CN106411659A (en) * | 2016-11-29 | 2017-02-15 | 福建中金在线信息科技有限公司 | Business data monitoring method and apparatus |
CN107391758A (en) * | 2017-08-24 | 2017-11-24 | 阿里巴巴集团控股有限公司 | Database switching method, device and equipment |
-
2017
- 2017-11-29 CN CN201711229270.XA patent/CN110019520B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2002340403A1 (en) * | 2001-11-16 | 2003-06-10 | Paralleldb, Incorporated | Data replication system and method |
JP2003337717A (en) * | 2002-05-22 | 2003-11-28 | Nec Corp | Fault recovery synchronizing system of online transaction process |
CN102891849A (en) * | 2012-09-25 | 2013-01-23 | 北京星网锐捷网络技术有限公司 | Service data synchronization method, data recovery method, data recovery device and network device |
US20140143305A1 (en) * | 2012-11-22 | 2014-05-22 | Electronics And Telecommunications Research Institute | Apparatus and system for providing software service using software virtualization and method thereof |
US20140156829A1 (en) * | 2012-12-02 | 2014-06-05 | At&T Intellectual Property L, L.P. | Methods, Systems, and Products for Personalized Monitoring of Data |
CN104158693A (en) * | 2014-08-27 | 2014-11-19 | 乐视网信息技术(北京)股份有限公司 | A method and a system for disaster recovery backup of data service |
CN105677675A (en) * | 2014-11-20 | 2016-06-15 | 阿里巴巴集团控股有限公司 | Business processing method and device |
CN105207809A (en) * | 2015-08-25 | 2015-12-30 | 广州华多网络科技有限公司 | Data processing method, server, client side and system |
CN106411659A (en) * | 2016-11-29 | 2017-02-15 | 福建中金在线信息科技有限公司 | Business data monitoring method and apparatus |
CN107391758A (en) * | 2017-08-24 | 2017-11-24 | 阿里巴巴集团控股有限公司 | Database switching method, device and equipment |
Non-Patent Citations (2)
Title |
---|
TING WANG等: "Exploring the benefit of rerouting multi-period traffic to multi-site data centers", 《IEEE/OSA JOURNAL OF OPTICAL COMMUNICATIONS AND NETWORKING》 * |
王海霞等: "IT云服务能力平台业务连续性策略研究", 《移动通信》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113472469A (en) * | 2021-07-27 | 2021-10-01 | 厦门亿联网络技术股份有限公司 | Data synchronization method, device, equipment and storage medium |
CN113472469B (en) * | 2021-07-27 | 2023-12-05 | 厦门亿联网络技术股份有限公司 | Data synchronization method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110019520B (en) | 2022-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109901949B (en) | Application disaster recovery system and method for double-activity data center | |
CN100543690C (en) | The method and system that is used for managing failures | |
CN102891849B (en) | Service data synchronization method, data recovery method, data recovery device and network device | |
CN102411639B (en) | Multi-copy storage management method and system of metadata | |
US9189348B2 (en) | High availability database management system and database management method using same | |
CN101094154B (en) | Multi-master data backup different place protection system and method | |
CN101751415B (en) | Metadata service system, metadata synchronized method and writing server updating method | |
US9798639B2 (en) | Failover system and method replicating client message to backup server from primary server | |
CN105677673B (en) | Method for processing business, apparatus and system | |
CN107241430A (en) | A kind of enterprise-level disaster tolerance system and disaster tolerant control method based on distributed storage | |
CN103548011A (en) | Asynchronous replication in a distributed storage environment | |
MX2007000075A (en) | Method of improving replica server performance and a replica server system. | |
CN102833281B (en) | It is a kind of distributed from the implementation method counted up, apparatus and system | |
CN108932338A (en) | Data-updating method, device, equipment and medium | |
CN102938705A (en) | Method for managing and switching high availability multi-machine backup routing table | |
CN106603279A (en) | Disaster tolerance method and disaster tolerance system | |
CN103136070A (en) | Method and device for processing data disaster tolerance | |
CN108319618A (en) | A kind of data distribution control method, system and the device of distributed memory system | |
CN103473328A (en) | MYSQL (my structured query language)-based database cloud and construction method for same | |
CN106919473A (en) | A kind of data disaster recovery and backup systems and method for processing business | |
CN106502822A (en) | Data read-write method and device | |
CN112190924A (en) | Data disaster tolerance method, device and computer readable medium | |
CN108964986A (en) | Cooperative office system application layer dual-active disaster recovery and backup systems | |
CN109684410A (en) | A kind of system, method and the storage medium of determining master-slave database synchronization delayed time | |
CN110209526A (en) | A kind of accumulation layer synchronization system and storage medium |
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 |