CN110333974A - A kind of switching method and equipment of cloud storage service - Google Patents
A kind of switching method and equipment of cloud storage service Download PDFInfo
- Publication number
- CN110333974A CN110333974A CN201910476478.4A CN201910476478A CN110333974A CN 110333974 A CN110333974 A CN 110333974A CN 201910476478 A CN201910476478 A CN 201910476478A CN 110333974 A CN110333974 A CN 110333974A
- Authority
- CN
- China
- Prior art keywords
- equipment
- information
- carry
- cloud disk
- main equipment
- 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/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
-
- 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
-
- 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/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Computer And Data Communications (AREA)
Abstract
This application discloses a kind of switching method of cloud storage service and equipment, which comprises when monitoring device detects main equipment delay machine, receives the first control instruction that monitoring device is sent;First control instruction carries the program identification information of primary database startup program, to the disc id information of carry cloud disk and the start-up parameter information of main equipment.And carry cloud disk is waited for according to disc id information carry, it is located in primary database to carry cloud disk, and start-up parameter information is parsed according to the corresponding primary database startup program of program identification information, and primary database is started based on start-up parameter obtained after parsing.In this way, stand-by equipment can be enabled in the case where delay machine occurs for main equipment to substitute main equipment, do not need maintenance personnel and replace main equipment manually, reduces system to the dependence of maintenance personnel, reduce O&M manpower.
Description
Technical field
This application involves Internet communication technology field more particularly to the switching methods and equipment of a kind of cloud storage service.
Background technique
With the rapid development of computer technology, information-based to play more and more important angle in human society life
Color.People can download film from the Internet, TV play, (mobile phone, IPAD, notes on novel or documents and materials to terminal device
This computer), to enrich the amusement and recreation and work and study life of people.However, the memory space of terminal device is limited, people
Can only be by deleting the file in memory space come for subsequent content update vacating space, this operation causes people first to want
When the file deleted before obtaining, need to be downloaded again after online search.The appearance of cloud disk solves above-mentioned
The problem of, data can be stored in cloud disk by the server of the offer cloud disk of application program docking on terminal device by user
In, it directly read, played or is downloaded by cloud disk so as to subsequent.
Each server has its corresponding cloud disk, and when user needs to upload files to cloud disk, user passes through client
Data processing request is sent to intermediate server, intermediate server receives the data processing request, and after being calculated, determination will be located
The server where the cloud disk of the data processing request is managed, the server which being forwarded to where cloud disk, with
Server and client side where making the cloud disk establishes communication connection, and client can access the server where cloud disk,
Data or downloading data are read in cloud disk or upload data.However, when the intermediate server breaks down, intermediate meter
Calculate step and forwarding step not can be carried out, service cannot be provided for user by consequently leading to cloud disk, can only wait fault restoration or
Person maintenance personnel replaces intermediate server manually, in this way, resulting in the high dependence to maintenance personnel, increases O&M manpower.
Summary of the invention
The embodiment of the present application provides switching method, equipment and the storage medium of a kind of cloud storage service, can set in master
In the case where the raw delay machine of preparation, stand-by equipment is enabled to substitute main equipment, is reduced system to the dependence of maintenance personnel, is reduced fortune
Tie up manpower.
On the one hand, the embodiment of the present application provides a kind of switching method of cloud storage service, this method comprises:
When monitoring device detects main equipment delay machine, the first control instruction of monitoring device transmission is received;This first
Control instruction carries the program identification information of primary database startup program, disc id information and main equipment to carry cloud disk
Start-up parameter information;
Carry cloud disk is waited for according to disc id information carry, is located in primary database to carry cloud disk;
Start-up parameter information is parsed according to the corresponding primary database startup program of program identification information;
Start primary database based on start-up parameter obtained after parsing.
On the other hand a kind of switching equipment of cloud storage service is provided, which includes:
Receiving module, for when monitoring device detects main equipment delay machine, receiving the first control of monitoring device transmission
System instruction;First control instruction carries the program identification information of primary database startup program, the disc identifier letter to carry cloud disk
The start-up parameter information of breath and main equipment;
Cloud disk handling module is located at primary database to carry cloud disk for waiting for carry cloud disk according to disc id information carry
In;
Message processing module, for according to the corresponding primary database startup program parsing start-up parameter letter of program identification information
Breath;
Database starting module, for starting primary database based on start-up parameter obtained after parsing.
On the other hand a kind of computer readable storage medium is provided, at least one instruction, extremely is stored in storage medium
A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, code set or instruction set are added by processor
It carries and executes to realize the switching method such as above-mentioned cloud storage service.
On the other hand a kind of switching method of cloud storage service is provided, this method comprises:
When detecting main equipment delay machine, the first control instruction is sent to stand-by equipment;First control instruction carries main number
According to the program identification information of library startup program, to the disc id information of carry cloud disk and the start-up parameter information of main equipment so that
Stand-by equipment is based on disc id information carry and waits for carry cloud disk;And journey is started according to the corresponding primary database of program identification information
Sequence parses start-up parameter information;And start primary database based on the data after parsing;It is located in primary database to carry cloud disk.
On the other hand a kind of switching equipment of cloud storage service is provided, which includes:
Sending module, for sending the first control instruction to stand-by equipment when detecting main equipment delay machine;First control refers to
It enables and carries the program identification information of primary database startup program, to the disc id information of carry cloud disk and the starting ginseng of main equipment
Number information, so that stand-by equipment is based on disc id information carry and waits for carry cloud disk;And according to the corresponding master of program identification information
Database startup program parses start-up parameter information;And start primary database based on the data after parsing;To carry cloud disk position
In primary database.
On the other hand a kind of computer readable storage medium is provided, at least one instruction, extremely is stored in storage medium
A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, code set or the instruction set are by processor
It loads and executes to realize the switching method such as above-mentioned cloud storage service.
Switching method, equipment and the storage medium of cloud storage service provided by the embodiments of the present application have following technology effect
Fruit:
Stand-by equipment can receive the first control that monitoring device is sent and refer to when monitoring device detects main equipment delay machine
It enables;First control instruction carry primary database startup program program identification information, to carry cloud disk disc id information and
The start-up parameter information of main equipment.And carry cloud disk is waited for according to disc id information carry, it is located in primary database to carry cloud disk,
And start-up parameter information is parsed according to the corresponding primary database startup program of program identification information, and based on obtaining after parsing
Start-up parameter start primary database.In this way, stand-by equipment can be enabled in the case where delay machine occurs for main equipment to substitute master
Equipment does not need maintenance personnel and replaces main equipment manually, reduces system to the dependence of maintenance personnel, reduces O&M manpower.
Detailed description of the invention
It in ord to more clearly illustrate embodiments of the present application or technical solution in the prior art and advantage, below will be to implementation
Example or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, the accompanying drawings in the following description is only
It is only some embodiments of the present application, for those of ordinary skill in the art, without creative efforts,
It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of schematic diagram of application environment provided by the embodiments of the present application;
Fig. 2 is a kind of schematic diagram of application environment provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of the switching method of cloud storage service provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of cloud storage service switching system provided by the embodiments of the present application;
Fig. 5 is a kind of flow diagram of the switching method of cloud storage service provided by the embodiments of the present application;
Fig. 6 is a kind of flow diagram of the switching method of cloud storage service provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of the switching equipment of cloud storage service provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of the switching equipment of cloud storage service provided by the embodiments of the present application;
Fig. 9 is a kind of hardware configuration frame of the server of the switching method of cloud storage service provided by the embodiments of the present application
Figure.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, those of ordinary skill in the art without making creative work it is obtained it is all its
His embodiment, shall fall in the protection scope of this application.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or server need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
Referring to Fig. 1, Fig. 1 is a kind of schematic diagram of application environment provided by the embodiments of the present application, including monitoring device
101, main equipment 102, first server 103, stand-by equipment 104, primary database 1031 and to carry cloud disk 1032.Wherein,
One server 103 includes primary database 1031, is located in the primary database 1031 to carry cloud disk 1032.The embodiment of the present application
In, primary database 1031 is the storage region for the data that client uploads in first server 103.It can be with to carry cloud disk 1032
It is one piece of storage region in primary database 1031, can also be the entire storage region of primary database 1031, is enterprises and individuals
The service such as storage, reading or downloading of data is provided.In the embodiment of the present application, monitoring device 104 can be server, may be used also
To be a monitoring module in the terminals such as computer.Monitoring device 104 respectively with main equipment 102, first server 103
There are communication links with stand-by equipment 104, to carry out the switching of stand-by equipment 104 after subsequent 102 delay machine of main equipment.
In the embodiment of the present application, before 102 delay machine of main equipment, main equipment 102 and first server 103 constitute one
Database purchase service system.Main equipment 102 can be a server, establish communication for client corresponding with user
After connection, the data processing request that client is sent is received, data processing request may include data upload requests, reading data
Request or data download request.The data processing request can be sent to first server 103 by main equipment 102, so that the
One server 103 can be established with client and be communicated to connect, in this way, client can access primary database by network remote
1031, it stores data in in carry cloud disk 1032 or to read data or downloading data in carry cloud disk 1032.
When monitoring device 101 detects 102 delay machine of main equipment, primary database starting can be sent to stand-by equipment 104
The start-up parameter information of the program identification information of program, the disc id information to carry cloud disk 1032 and main equipment 102.So that standby
It can be somebody's turn to do according to the disc id information carry to carry cloud disk 1032 to carry cloud disk 1032, according to program identification with equipment 104
The corresponding primary database startup program of information parses start-up parameter information, and based on start-up parameter obtained after parsing starting master
Database 1031.In this way, stand-by equipment 104 constitutes a data inventory instead of main equipment 102 and first server 103
Store up service system.And main equipment 102 becomes new stand-by equipment after being repaired.Optionally, stand-by equipment 104 can be
One server.
It is the address of cloud disk to carry cloud disk in the embodiment of the present application, as shown in Figure 1, to set based on carry cloud disk 1032
Standby 102 cloud disk in delay machine front mount on the master after 102 delay machine of main equipment, will be unloaded to carry cloud disk from main equipment,
On carry to stand-by equipment 104.
It, can be to be deposited as shown in Figure 1, forming a cloud by a main equipment and a first server in the embodiment of the present application
Service system is stored up, which is located in the first server, is located in the primary database to carry cloud disk.
In an alternative embodiment, a cloud storage clothes can be made of a main equipment and Duo Tai first server
Business system, primary database are located in more first servers, that is to say, that more first servers constitute a distribution and deposit
Accumulation can also be counted as multiple sub- cloud disks to carry cloud disk, be located in more first servers.In this way, main equipment receives
After the data processing request sent to client, the data processing request can be sent to according to identity information of client etc.
Wherein one or more first servers.
In an alternative embodiment, a cloud storage clothes can be made of more main equipments and Duo Tai first server
Business system, wherein main equipment and first server correspond, and form the subsystem of the database purchase service system.Fig. 2 is
A kind of schematic diagram of application environment provided by the embodiments of the present application, the schematic diagram include monitoring device 201, main equipment 202, master set
Standby 204, first server 203, first server 205, stand-by equipment 206, primary database 2031, primary database 2051, wait hang
Carry cloud disk 2032 and to carry cloud disk 2052.Wherein, main equipment 202 and first server 203 are corresponding, first server 203
Including primary database 2031, it is located in primary database 2031 to carry cloud disk 2032.Main equipment 204 and first server 205 are right
It answers, first server 205 includes primary database 2051, is located in primary database 2051 to carry cloud disk 2052.When any
When platform main equipment (such as 202) delay machine, stand-by equipment 206 can replace the main equipment 202 and first server 203 of the delay machine
The subsystem of composition data library storage service system.And the main equipment 202 of delay machine is after being repaired, and is become new and spare is set
It is standby.In actual application scenarios, different topology layouts can be carried out according to its actual demand application.
In the embodiment of the present application, communication link, monitoring device between monitoring device and main equipment and between stand-by equipment
Communication link, the communication link (do not show, but there are in fact in Fig. 2) between monitoring device and first server, master set
Communication link between standby communication link and stand-by equipment and first server between first server is (in master in Fig. 2
Exist after equipment delay machine) can be optic communication links, can be ethernet communication link, can also be optic communication links and
The combination of ethernet communication link.The selection of communications link type can according to the actual situation depending on.
A kind of specific embodiment of the switching method of cloud storage service of the application introduced below, Fig. 3 is the embodiment of the present application
A kind of flow diagram of the switching method of the cloud storage service provided, present description provides the sides of such as embodiment or flow chart
Method operating procedure, but based on routine or may include more or less operating procedure without creative labor.Embodiment
In the step of enumerating sequence be only one of numerous step execution sequences mode, do not represent and unique execute sequence.In reality
When system or server product in border execute, it can be executed according to embodiment or method shown in the drawings sequence or parallel
It executes (such as environment of parallel processor or multiple threads).Specifically as shown in figure 3, this method may include:
S301: when monitoring device detects main equipment delay machine, which sends the first control to stand-by equipment and refers to
It enables, which carries the program identification information of primary database startup program, to the disc id information of carry cloud disk
With the start-up parameter information of main equipment.
Total in the case where illustrating a main equipment and a first server below based on Fig. 1, the application are real
It applies in example, before S301, needs to build cloud storage service switching system.Fig. 4 is that a kind of cloud provided by the embodiments of the present application is deposited
The structural schematic diagram of storage service switching system, including monitoring device 401, main equipment 402, first server 403, stand-by equipment
404, second server 405, the primary database 4031 in first server 403, in primary database 4031 wait hang
Carry cloud disk 4032, the standby database 4051 in second server 405 and the occupy-place cloud in standby database 4051
Disk 4052.In the embodiment of the present application, occupy-place cloud disk 4052 be cloud disk of the 402 delay machine front mount of main equipment on stand-by equipment, one
As, the occupy-place cloud disk not storing data, when for the switching of subsequent cloud storage, for the occupy-place on stand-by equipment to carry cloud disk.
In the embodiment of the present application, be before client serviced in entire cloud storage service switching system need based on
Equipment and stand-by equipment creation respectively need the cloud disk of carry, and carry cloud disk created.As shown in figure 4, being created for main equipment
It builds up to carry cloud disk, and the carry band carry cloud disk, in the embodiment of the present application, carry cloud disk can specifically be shown as will be wait hang
It carries in the program of disc id information write-in main equipment of cloud disk.Similarly, create occupy-place cloud disk for stand-by equipment, and carry this account for
Position cloud disk.To be stored with the data file of primary database, journal file and control file in carry cloud disk.
Installation database startup program and cloud storage service software on main equipment and stand-by equipment, by communication link and
Corresponding server establishes communication connection, so as to subsequent entire cloud storage service switching system be clients providing data storage,
Reading or download service.In the embodiment of the present application, database startup program can be the program in log-on data library, can also be by
Referred to as database instance, be access and using database a process, after database instance is activated, just it is accessible and
Use database.Database can be relevant database, such as Oracle, DB2, PostgreSQL, Microsoft SQL
Server, Microsoft Access, MySQL or tide K-DB;Database can also be non-relational data, such as
Redis, MongoDB or Neo4j etc..In the embodiment of the present application, cloud storage service software can be used for being installed in one or
On person more main equipments and stand-by equipment, distributed storage cluster is formed in conjunction with Ethernet.
In the embodiment of the present application, the reason of main equipment delay machine in S301, can be there are many situation.It is described below two kinds
Situation, one is main equipment crash, another kind is that main equipment needs routine maintenance, closes cloud storage service by technical staff.Base
In the above two host delay machine the case where, Fig. 5 is a kind of stream of the switching method of cloud storage service provided by the embodiments of the present application
Journey schematic diagram, this method comprises:
S501: monitoring device sends the first request to main equipment.
In the embodiment of the present application, first request can be for check main equipment and other equipment communication link whether just
Often operation.Monitoring device can send the first request to main equipment in real time, can so be immediately detected after main equipment crash.
Or the first request is sent according to preset time period.Optionally, the first request can be ping order.
S503: monitoring device sends the second request to main equipment.
In the embodiment of the present application, whether the second request can be normal for the cloud storage service that detects main equipment.Monitoring
Equipment can send the second request to main equipment in real time, can so be immediately detected after cloud storage service is closed.Or
The second request is sent according to preset time period.
S505: monitoring device judges whether to receive the first reply, wherein first replys corresponding first request.If so,
Go to S507;If it is not, going to S509.
In the embodiment of the present application, monitoring device receives the communication link that the first reply then shows main equipment and other equipment
It operates normally, main equipment does not crash, and otherwise, main equipment has crashed, and hand-operated forced closing main equipment or utilization are with outer system
System closes main equipment.
S507: monitoring device judges whether to receive the second reply, wherein second replys corresponding second request.If so,
Main equipment does not have delay machine, operates normally, if it is not, going to S513.
S509: monitoring device sends third request to information back-up equipment.
In the embodiment of the present application, entire cloud storage service switching system shown in Fig. 4 further comprises information back-up equipment, or
Person, entire cloud storage service switching system include information back-up module, which can be built in monitoring device
Or in other equipment, required start-up parameter information is provided as monitoring device when main equipment delay machine to prevent.
Optionally, third request is for requesting the equipment for receiving third request to send start-up parameter letter to monitoring device
Breath.
S511: information back-up equipment sends start-up parameter information to monitoring device, terminates this process.
In the embodiment of the present application, start-up parameter information may include the memory size of first database, to carry cloud disk
Data capacity, to position etc. of the carry cloud disk in first database.
S513: monitoring device sends third request to main equipment.
S515: main equipment sends start-up parameter information to monitoring device.
In the embodiment of the present application, the information that information back-up equipment or main equipment are sent to monitoring device is in addition to start-up parameter
It can also include the client-side information of main equipment service: including subscriber identity information (user name: cell-phone number, wechat except information
Number, QQ number, mailbox etc.), the password authentication information (character password, finger-print cipher, sound password etc.) of user, in client
The data of biography, which disclose, is ready to indicate information etc..
In the embodiment of the present application, the operation order of S503 and S505 can be adjusted, and monitoring device can be first to main equipment
The first request is sent, decides whether to send the second request to main equipment according to whether receiving the first reply.If main equipment does not have
The first reply is received, then sends third request to information back-up equipment, and receive the start-up parameter of information back-up equipment return
Information, in this case, monitoring device do not have to send the second request to main equipment.If main equipment receives the first reply, after
Continue to main equipment and put the second request, if monitoring device receives the second reply, shows that main equipment does not have delay machine, also normally transporting
Row;If being not received by the second reply, show that main equipment cannot provide cloud storage service, then needs to send to main equipment
Third request, and receive the start-up parameter information of return.
S303: stand-by equipment should be to carry cloud disk, to carry cloud disk position according to the disc id information carry to carry cloud disk
In primary database.
In the embodiment of the present application, monitoring device can send third control to the corresponding first server of primary database and refer to
It enables, which carries the identity information of stand-by equipment, in addition, first control instruction also carries primary database
The identity information of corresponding first server.Identity information of the first server based on stand-by equipment, stand-by equipment are based on first
The identity information of server establishes ethernet communication link between first server and stand-by equipment.
In the embodiment of the present application, due to a cloud disk can only carry on one device, in a kind of optional embodiment,
In the case where main equipment can send first to monitoring device and reply and cannot send the second reply to monitoring device, monitoring
Equipment can send the second control instruction to main equipment, so that main equipment unloading should be hung to carry cloud disk for subsequent stand-by equipment
Carrying should prepare to carry cloud disk.Optionally, main equipment can should disconnect and first server in unloading after carry cloud disk
Communication connection, in this way, the power consumption of whole system can be saved.
It, just can be in main equipment due to only on main equipment and stand-by equipment after carry cloud disk in the embodiment of the present application
With installation database startup program on stand-by equipment and cloud storage service software.Optionally, install database startup program and
After cloud storage service software, so that it may select to retain the cloud disk after carry according to practical situations, or unloading
Cloud disk.
In a kind of optional real-time mode, before step S303 or before step S301, stand-by equipment can be right
The occupy-place cloud disk of carry is unloaded, and disconnects the communication connection with second server, is receiving monitoring device transmission
First control instruction can directly carry out step S303, i.e. stand-by equipment should according to the disc id information carry to carry cloud disk
To carry cloud disk.
In another optional embodiment, stand-by equipment is installing database startup program and cloud storage service software
Later, the communication link for not unloading the occupy-place cloud disk and second server also normally connects.When stand-by equipment is locally mounted with
When occupy-place cloud disk, stand-by equipment is based on the disc id information to carry cloud disk received, by the occupy-place cloud disk of local carry
Disc id information replaces with the disc id information for waiting for carry cloud disk.Specifically, occupy-place cloud can be locally-located in stand-by equipment
File where the disc id information of disk replaces with the disc id information of the occupy-place cloud disk in file to carry cloud disk
Disc id information.
The disc id information of the occupy-place cloud disk of local carry is replaced in stand-by equipment and is believed to the disc identifier of carry cloud disk
After breath, stand-by equipment unloads the occupy-place cloud disk.After stand-by equipment and first server establish communication connection, carry should be to carry
Cloud disk.In this way, the occupy-place cloud disk disguise as of carry is waited for carry cloud disk, is unloaded in stand-by equipment before carry waits for carry cloud disk
After carrying the occupy-place cloud disk, Automatic Storage Management software (the Automatic Storage of stand-by equipment can be directly initiated
Management, ASM) carry waits for carry cloud disk, conveniently and efficiently carry out equipment switching.
Optionally, stand-by equipment can disconnect the communication connection with second server after unloading the occupy-place cloud disk.
S305: stand-by equipment parses start-up parameter information according to the corresponding primary database startup program of program identification information.
In the embodiment of the present application, a kind of optional stand-by equipment starts journey according to the corresponding primary database of program identification information
Sequence is to be in the embodiment of start-up parameter information, and stand-by equipment sets primary database for ORACLE_SID environmental variance and starts
The program identification information of program, that is, primary database Instance Name use primary database Eample Analysis start-up parameter information, creation
Adump and diagnostic dest catalogue.
In the embodiment of the present application, it has been briefly described above on main equipment and stand-by equipment and has been fitted with database startup program, it is main
What equipment and stand-by equipment were installed can be same database startup program.Optionally, primary database startup program is only pacified
A kind of address of the database startup program of dress on the master, receives the program identification information of the primary database startup program
Mean that stand-by equipment can be directly using the database startup program parsing start-up parameter information in stand-by equipment.
Optionally, although main equipment and stand-by equipment installation be same database startup program, can be based on
Database startup program in different program identification informations and stand-by equipment parses the start-up parameter information of different main equipments.Base
For example in Fig. 2, there are two different main equipments 202 and main equipment 204 in whole system, wherein main equipment 202, master
What equipment 204 and stand-by equipment were installed is same database startup program, but the data of main equipment 202 and main equipment 204
The program identification information of library startup program is different, it is assumed that 202 delay machine of main equipment, monitoring device is by main equipment 202
Start-up parameter information is sent to stand-by equipment 206, and only stand-by equipment is by the corresponding primary database startup program of main equipment 202
Program identification information is written in the database startup program of stand-by equipment, just can parse the start-up parameter of main equipment 202.Together
Reason, it is assumed that the start-up parameter information of main equipment 204 is sent to stand-by equipment 206 by 204 delay machine of main equipment, monitoring device, only
There is stand-by equipment by the database of the program identification information write-in stand-by equipment of the corresponding primary database startup program of main equipment 204
In startup program, the start-up parameter of main equipment 204 just can parse.In this way, more ensure that the reliability of entire handoff procedure.
Optionally, although main equipment and stand-by equipment installation be same database startup program, in practical application mistake
Cheng Zhong may be iterated the database startup program in the main equipment of normal use.It is spare after switching in order to guarantee
Equipment uses the database startup program of latest edition, includes the database startup program of latest edition in program identification information.
Stand-by equipment receives the program identification information, and therefrom parsing obtains the database startup program and the latest edition of latest edition
Database startup program version number, determine the version number of original database startup program and latest edition in stand-by equipment
The version number of this database startup program is compared.If comparison result is consistent, the data that then be used directly in stand-by equipment
Library startup program parses start-up parameter information, if comparison result is inconsistent, according to the database startup program pair of latest edition
The database startup program of stand-by equipment is iterated, and based on the database startup program parsing start-up parameter letter after iteration
Breath.
S307: stand-by equipment is based on start-up parameter obtained after parsing and starts primary database, is located at main number to carry cloud disk
According in library.
Based on above-mentioned embodiment, the embodiment of the present application provides a kind of switching method of optional cloud storage service, complete
The entire switching flow of whole introduction.Fig. 6 is that a kind of process of the switching method of cloud storage service provided by the embodiments of the present application is shown
It is intended to, this method comprises:
S601: monitoring device sends the first request and the second request to main equipment.
S603: monitoring device judges whether to receive the first reply, if so, going to S605;If it is not, going to S607;
S605: monitoring device judges whether to receive the second reply, if so, main equipment does not have delay machine, operates normally, if
It is no, go to S611;
S607: monitoring device sends third request to information back-up equipment;
S609: information back-up equipment sends start-up parameter information to monitoring device;In this case, based on main equipment delay machine
Equipment crashes, and thus goes to S619;
S611: monitoring device sends third request to main equipment;
S613: main equipment sends start-up parameter information to monitoring device;
S615: monitoring device sends the second control instruction to main equipment;
S617: main equipment is unloaded to carry cloud disk;
S619: monitoring device sends the first control instruction to stand-by equipment, which carries primary database
The program identification information of startup program, to the disc id information of carry cloud disk and the start-up parameter information of main equipment;
S621: stand-by equipment is based on the disc id information to carry cloud disk received, by the occupy-place cloud disk of local carry
Disc id information replace with the disc id information for waiting for carry cloud disk;
S623: stand-by equipment unloads the occupy-place cloud disk of carry;
S625: spare to set in the case where stand-by equipment and the corresponding first server of primary database establish communication connection
The standby disc id information carry according to carry cloud disk should be to carry cloud disk;
S627: stand-by equipment parses start-up parameter information according to the corresponding primary database startup program of program identification information;
S629: stand-by equipment is based on start-up parameter obtained after parsing and starts primary database.
In the embodiment of the present application, the first control instruction also carries the network Service name of the main equipment, stand-by equipment according to
The network services the name creation network port, to support the storage service of the corresponding client of main equipment.A kind of optional embodiment party
In formula, stand-by equipment and first server establish ethernet communication link, based on start-up parameter obtained after parsing starting first
Primary database in server, after receiving the data processing request of client, after calculating, by the data processing request
It is sent to first server, in this way, the accessible primary database of client, is stored data in in carry cloud disk, Huo Zhe
To read data in carry cloud disk, or to carry cloud disk download data.And after main equipment is switched, event can carried out
Barrier becomes entire cloud storage service switching system stand-by equipment after repairing uses.
The embodiment of the present application also provides a kind of switching equipment of cloud storage service, Fig. 7 is provided by the embodiments of the present application
A kind of structural schematic diagram of the switching equipment of cloud storage service, as shown in fig. 7, the equipment includes:
Receiving module 701 is used for when monitoring device detects main equipment delay machine, receives the first control that monitoring device is sent
System instruction;First control instruction carries the program identification information of primary database startup program, the disc identifier letter to carry cloud disk
The start-up parameter information of breath and main equipment;
Cloud disk handling module 702 is located at master data to carry cloud disk for waiting for carry cloud disk according to disc id information carry
In library;
Message processing module 703 is used to parse start-up parameter according to the corresponding primary database startup program of program identification information
Information;
Database starting module 704 is used to start primary database based on start-up parameter obtained after parsing.
In a kind of optional embodiment, the equipment further include:
When being locally mounted with occupy-place cloud disk, message processing module is used to believe the disc identifier of the occupy-place cloud disk of local carry
Breath replaces with the disc id information to carry cloud disk;
Cloud disk handling module is for unloading occupy-place cloud disk.
In a kind of optional embodiment, the equipment further include:
Communication building block is used to also carry the identity of the corresponding first server of primary database in the first control instruction
In the case where information, ethernet communication link is established according to the identity information of first server and first server.
In a kind of optional embodiment, the equipment further include:
Network port creation module is used in the case where the first control instruction also carries the network Service name of main equipment,
The name creation network port is serviced according to network, to support the storage service of the corresponding client of main equipment.
Apparatus and method for embodiment in the apparatus embodiments is based on similarly application design.
The embodiment of the present application also provides a kind of switching equipment of cloud storage service, Fig. 8 is provided by the embodiments of the present application
A kind of structural schematic diagram of the switching equipment of cloud storage service, as shown in figure 8, the equipment includes:
Sending module 801 is used to send the first control instruction to stand-by equipment when detecting main equipment delay machine;First control
Instruction carries the program identification information of primary database startup program, to the disc id information of carry cloud disk and the starting of main equipment
Parameter information, so that stand-by equipment is based on disc id information carry and waits for carry cloud disk;And it is corresponding according to program identification information
Primary database startup program parses start-up parameter information;And start primary database based on the data after parsing;To carry cloud disk
In primary database.
In a kind of optional embodiment, the equipment further include:
Sending module is used to send the second control instruction to main equipment, so that main equipment unloading is to carry cloud disk
In a kind of optional embodiment, the equipment further include:
The start-up parameter information that receiving module is used to receive main equipment or information back-up equipment is sent.
In a kind of optional embodiment, the equipment further include:
Sending module is used to send third control instruction to the corresponding first server of primary database;Third control instruction is taken
Identity information with stand-by equipment, so that first server establishes ether according to the identity information and stand-by equipment of stand-by equipment
Network Communication link.
Apparatus and method for embodiment in the apparatus embodiments is based on similarly application design.
Embodiment of the method provided by the embodiment of the present application can be filled in terminal, server or similar operation
Set middle execution.For running on the server, Fig. 9 is a kind of switching method of cloud storage service provided by the embodiments of the present application
Server hardware block diagram.As shown in figure 9, the server 900 can because configuration or performance are different generate it is bigger
Difference may include one or more central processing unit (Central Processing Units, CPU) 910 (processors
910 can include but is not limited to the processing unit of Micro-processor MCV or programmable logic device FPGA etc.), for storing data
Memory 930, storage medium 920 (such as one or one of one or more storage application programs 923 or data 922
A above mass memory unit).Wherein, memory 930 and storage medium 920 can be of short duration storage or persistent storage.Storage
It may include one or more modules in the program of storage medium 920, each module may include to one in server
Series of instructions operation.Further, central processing unit 910 can be set to communicate with storage medium 920, in server 900
The upper series of instructions operation executed in storage medium 920.Server 900 can also include one or more power supplys 960,
One or more wired or wireless network interfaces 950, one or more input/output interfaces 940, and/or, one
Or more than one operating system 921, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM,
FreeBSDTM etc..
Input/output interface 940 can be used for that data are received or sent via a network.Above-mentioned network is specifically real
Example may include the wireless network that the communication providers of server 900 provide.In an example, input/output interface 940 includes
One network adapter (Network Interface Controller, NIC), can pass through base station and other network equipment phases
Even so as to be communicated with internet.In an example, input/output interface 940 can be radio frequency (Radio
Frequency, RF) module, it is used to wirelessly be communicated with internet.
It will appreciated by the skilled person that structure shown in Fig. 9 is only to illustrate, not to above-mentioned electronic device
Structure cause to limit.For example, server 900 may also include than shown in Fig. 9 more perhaps less component or have with
Different configuration shown in Fig. 9.
Embodiments herein additionally provides a kind of storage medium, and the storage medium may be disposed among server to protect
It deposits for realizing relevant at least one instruction of switching method of cloud storage service a kind of in embodiment of the method, an at least Duan Cheng
Sequence, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or the instruction set are added by the processor
Carry and execute the switching method to realize the cloud storage service of above method embodiment offer.
Optionally, in the present embodiment, above-mentioned storage medium can be located in multiple network servers of computer network
At least one network server.Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, only
Read memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), movement
The various media that can store program code such as hard disk, magnetic or disk.
By the embodiment of the switching method of above-mentioned cloud storage service provided by the present application, equipment or storage medium as it can be seen that originally
Monitoring device is received when detecting main equipment delay machine by stand-by equipment in application, the first control instruction of transmission;First control
System instruction carries the program identification information of primary database startup program, to the disc id information of carry cloud disk and opening for main equipment
Dynamic parameter information.And carry cloud disk is waited for according to disc id information carry, it is located in primary database to carry cloud disk, and according to journey
The corresponding primary database startup program of sequence identification information parses start-up parameter information, and is based on start-up parameter obtained after parsing
Start primary database.In this way, can enable stand-by equipment in the case where delay machine occurs for main equipment to substitute main equipment, be not required to
It wants maintenance personnel to replace main equipment manually, reduces system to the dependence of maintenance personnel, reduce O&M manpower
It should be understood that above-mentioned the embodiment of the present application sequencing is for illustration only, do not represent the advantages or disadvantages of the embodiments.
And above-mentioned this specification specific embodiment is described.Other embodiments are within the scope of the appended claims.One
In a little situations, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment and
Still desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or company
Continuous sequence is just able to achieve desired result.In some embodiments, multitasking and parallel processing it is also possible or
It may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for equipment reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and
Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.
Claims (10)
1. a kind of switching method of cloud storage service, which is characterized in that the described method includes:
When monitoring device detects main equipment delay machine, the first control instruction that the monitoring device is sent is received;Described first
Program identification information, the disc id information to carry cloud disk and the master that control instruction carries primary database startup program set
Standby start-up parameter information;
It is described to be located in the primary database to carry cloud disk to carry cloud disk according to the disc id information carry;
The start-up parameter information is parsed according to the corresponding primary database startup program of described program identification information;
Start the primary database based on start-up parameter obtained after parsing.
2. the method according to claim 1, wherein the method is also wrapped when being locally mounted with occupy-place cloud disk
It includes:
The disc id information of the occupy-place cloud disk of local carry is replaced with into the disc id information to carry cloud disk;
Unload the occupy-place cloud disk.
3. the method according to claim 1, wherein first control instruction also carries the primary database
The identity information of corresponding first server;
The method also includes:
Ethernet communication link is established according to the identity information of the first server and the first server.
4. the method according to claim 1, wherein first control instruction also carries the main equipment
Network Service name;
The method also includes:
The name creation network port is serviced according to the network, to support the storage service of the corresponding client of the main equipment.
5. a kind of switching method of cloud storage service characterized by comprising
When detecting main equipment delay machine, the first control instruction is sent to stand-by equipment;First control instruction carries main number
According to the program identification information of library startup program, to the disc id information of carry cloud disk and the start-up parameter information of the main equipment,
So that the stand-by equipment is based on described in the disc id information carry to carry cloud disk;And according to described program identification information
Corresponding primary database startup program parses the start-up parameter information;And start the master data based on the data after parsing
Library;It is described to be located in the primary database to carry cloud disk.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
The second control instruction is sent to the main equipment, so that main equipment unloading is described to carry cloud disk.
7. according to the method described in claim 5, it is characterized in that, the method also includes:
Receive the start-up parameter information of the main equipment or the transmission of information back-up equipment.
8. according to the method described in claim 5, it is characterised by comprising:
Third control instruction is sent to the corresponding first server of the primary database;The third control instruction carries described
The identity information of stand-by equipment, so that identity information and the stand-by equipment of the first server according to the stand-by equipment
Establish ethernet communication link.
9. a kind of switching equipment of cloud storage service characterized by comprising
Receiving module, the first control sent for when monitoring device detects main equipment delay machine, receiving the monitoring device
Instruction;First control instruction carries the program identification information of primary database startup program, to the disc identifier of carry cloud disk
The start-up parameter information of information and the main equipment;
Cloud disk handling module is used for according to the disc id information carry to carry cloud disk, described to be located to carry cloud disk
In the primary database;
Message processing module is joined for parsing the starting according to the corresponding primary database startup program of described program identification information
Number information;
Database starting module, for starting the primary database based on start-up parameter obtained after parsing.
10. a kind of switching equipment of cloud storage service characterized by comprising
Sending module, for sending the first control instruction to stand-by equipment when detecting main equipment delay machine;First control refers to
Order carries the program identification information of primary database startup program, to the disc id information of carry cloud disk and opening for the main equipment
Dynamic parameter information, so that the stand-by equipment is based on described in the disc id information carry to carry cloud disk;And according to described
The corresponding primary database startup program of program identification information parses the start-up parameter information;And it is opened based on the data after parsing
Move the primary database;It is described to be located in the primary database to carry cloud disk.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910476478.4A CN110333974B (en) | 2019-06-03 | 2019-06-03 | Switching method and device of cloud storage service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910476478.4A CN110333974B (en) | 2019-06-03 | 2019-06-03 | Switching method and device of cloud storage service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110333974A true CN110333974A (en) | 2019-10-15 |
CN110333974B CN110333974B (en) | 2022-04-15 |
Family
ID=68141013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910476478.4A Active CN110333974B (en) | 2019-06-03 | 2019-06-03 | Switching method and device of cloud storage service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110333974B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021213171A1 (en) * | 2020-04-24 | 2021-10-28 | 北京金山云网络技术有限公司 | Server switching method and apparatus, management node and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917038A (en) * | 2012-10-10 | 2013-02-06 | 江苏物联网研究发展中心 | Cloud computation based remote service system for medical internet of things |
CN202798798U (en) * | 2012-07-17 | 2013-03-13 | 江西省电力公司信息通信分公司 | High availability system based on cloud computing technology |
CN103226483A (en) * | 2013-03-25 | 2013-07-31 | 成都瑞科电气有限公司 | DHBS (dual hot-backup system) and method thereof based on SOA (service-oriented architecture) and cloud storage |
CN104239164A (en) * | 2013-06-19 | 2014-12-24 | 国家电网公司 | Cloud storage based disaster recovery backup switching system |
CN106817402A (en) * | 2016-11-29 | 2017-06-09 | 上海亿账通互联网科技有限公司 | Data cached processing method and processing device |
CN107911238A (en) * | 2017-11-13 | 2018-04-13 | 郑州云海信息技术有限公司 | One kind is based on IPSAN servers two unit standby method and system |
CN108351824A (en) * | 2015-10-30 | 2018-07-31 | Netapp股份有限公司 | Method, equipment and medium for executing handover operation between calculate node |
CN109144403A (en) * | 2017-06-19 | 2019-01-04 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus for cloud disk pattern switching |
-
2019
- 2019-06-03 CN CN201910476478.4A patent/CN110333974B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202798798U (en) * | 2012-07-17 | 2013-03-13 | 江西省电力公司信息通信分公司 | High availability system based on cloud computing technology |
CN102917038A (en) * | 2012-10-10 | 2013-02-06 | 江苏物联网研究发展中心 | Cloud computation based remote service system for medical internet of things |
CN103226483A (en) * | 2013-03-25 | 2013-07-31 | 成都瑞科电气有限公司 | DHBS (dual hot-backup system) and method thereof based on SOA (service-oriented architecture) and cloud storage |
CN104239164A (en) * | 2013-06-19 | 2014-12-24 | 国家电网公司 | Cloud storage based disaster recovery backup switching system |
CN108351824A (en) * | 2015-10-30 | 2018-07-31 | Netapp股份有限公司 | Method, equipment and medium for executing handover operation between calculate node |
CN106817402A (en) * | 2016-11-29 | 2017-06-09 | 上海亿账通互联网科技有限公司 | Data cached processing method and processing device |
CN109144403A (en) * | 2017-06-19 | 2019-01-04 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus for cloud disk pattern switching |
CN107911238A (en) * | 2017-11-13 | 2018-04-13 | 郑州云海信息技术有限公司 | One kind is based on IPSAN servers two unit standby method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021213171A1 (en) * | 2020-04-24 | 2021-10-28 | 北京金山云网络技术有限公司 | Server switching method and apparatus, management node and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110333974B (en) | 2022-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI473029B (en) | Extensible and programmable multi-tenant service architecture | |
CN106850746B (en) | The method and device of smooth service upgrading | |
CN110414771A (en) | Update method, device, server and the client of enterprise organization structure data | |
CN108632367A (en) | Account correlating method and information-pushing method | |
US10621651B2 (en) | Automatic recharge system and method, and server | |
CN105867837A (en) | Method, equipment and system for updating configurations of clients in distributed high-speed cache systems | |
JP3581779B2 (en) | Multi-server workflow system | |
US20140244589A1 (en) | Server, backup system and backup method | |
CN110719209A (en) | Cluster network configuration method, system, equipment and readable storage medium | |
CN111459749A (en) | Prometous-based private cloud monitoring method and device, computer equipment and storage medium | |
CN113626286A (en) | Multi-cluster instance processing method and device, electronic equipment and storage medium | |
CN111737236A (en) | Data management method and system for intelligent express cabinet service | |
CN108733515A (en) | Dispatching method, file backup method, device and the storage medium of file backup | |
CN109271235B (en) | Database cluster establishment method and device | |
CN110333974A (en) | A kind of switching method and equipment of cloud storage service | |
CN113114503B (en) | Deployment method and device based on application delivery network requirements | |
CN102946407B (en) | The response of unexpected collaboration server is transmitted when reconnecting | |
CN113992662A (en) | File transmission method, device and storage medium | |
CN110764838B (en) | Service model loading method and system, electronic equipment and storage medium | |
CN113300866B (en) | Node capacity control method, device, system and storage medium | |
CN108270858A (en) | A kind of private cloud framework and its data processing method based on API gateway | |
CN109840094B (en) | Database deployment method and device and storage equipment | |
CN114598680B (en) | Domain name management method, device and storage medium | |
US20230040676A1 (en) | Network service construction system and network service construction method | |
CN115098020A (en) | Storage management method, device 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 |