CN111737059A - Data backup method and device, electronic equipment and medium - Google Patents
Data backup method and device, electronic equipment and medium Download PDFInfo
- Publication number
- CN111737059A CN111737059A CN202010629292.0A CN202010629292A CN111737059A CN 111737059 A CN111737059 A CN 111737059A CN 202010629292 A CN202010629292 A CN 202010629292A CN 111737059 A CN111737059 A CN 111737059A
- Authority
- CN
- China
- Prior art keywords
- database
- backup
- standby
- function
- databases
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/80—Database-specific techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present disclosure provides a data backup method applied to a non-service architecture, including: determining a backup database for data backup from a database cluster according to a selection strategy in response to acquiring an event that the infrastructure environment changes; generating a function mirror image based on a pre-configured backup function; and controlling the backup database to backup the source data to the target storage area according to the function mirror image in response to the backup function being triggered. The disclosure also provides a data backup device, an electronic device and a medium applied to the non-service architecture.
Description
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a data backup method and apparatus, an electronic device, and a medium.
Background
With the common migration of applications to cloud computing platforms, the data scale is increasing day by day, and higher requirements are put forward for data backup in complex environments.
Disclosure of Invention
In view of the above, the present disclosure provides a data backup method, apparatus, electronic device and medium.
One aspect of the present disclosure provides a data backup method applied to a non-service architecture, including: in response to the event that the acquired infrastructure environment changes, determining a backup database for data backup from a database cluster by a service layer of the non-service architecture according to a selection strategy; generating a function mirror image by utilizing the non-service architecture based on a pre-configured backup function; and in response to the backup function being triggered, controlling the backup database to backup source data to a target storage area according to the function mirror image.
According to an embodiment of the present disclosure, the infrastructure environment includes the database cluster, the database cluster includes a master database and a plurality of slave databases, and retrieving the event of the change of the infrastructure environment includes: acquiring identification information of the master database; determining whether the primary database is switched from a first database to a second database in the plurality of standby databases according to the identification information; determining that the acquired integration facility environment changes if it is determined that the master database is switched from the first database to the second database.
According to an embodiment of the present disclosure, selecting a policy includes: randomly selecting at least one standby database from the plurality of standby databases as a backup database; or selecting at least one standby database from the standby databases as a backup database according to the current operating states of the standby databases; or selecting at least one standby database from the standby databases as a backup database according to the identification information of the standby databases.
According to an embodiment of the present disclosure, the triggering of the backup function includes: the backup function is triggered regularly; or triggered in response to receiving a backup request from a terminal device.
According to an embodiment of the disclosure, the method further comprises: determining whether the first database is switched to a standby database or abandoned in use in order to determine a current standby database of the database cluster.
Another aspect of the present disclosure provides a data backup apparatus applied to a non-service architecture, including: the determining module is used for responding to the acquired event that the infrastructure environment changes, and determining a backup database for data backup from a database cluster by a service layer of the non-service architecture according to a selection strategy; the generating module is used for generating a function mirror image by utilizing the non-service architecture based on a pre-configured backup function; and the backup module is used for controlling the backup database to backup the source data to the target storage area according to the function mirror image in response to the backup function being triggered.
According to an embodiment of the present disclosure, the infrastructure environment includes the database cluster, the database cluster includes a master database and a plurality of slave databases, and the acquiring an event of the change of the infrastructure environment includes: acquiring identification information of the master database; determining whether the primary database is switched from a first database to a second database in the plurality of standby databases according to the identification information; determining that the acquired integration facility environment changes if it is determined that the master database is switched from the first database to the second database.
According to an embodiment of the present disclosure, selecting a policy includes: randomly selecting at least one standby database from the plurality of standby databases as a backup database; or selecting at least one standby database from the standby databases as a backup database according to the current operating states of the standby databases; or selecting at least one standby database from the standby databases as a backup database according to the identification information of the standby databases.
Another aspect of the present disclosure provides an electronic device including: one or more processors; a storage device to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-described method.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates a system architecture for a data backup method applied to a serverless architecture according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a data backup method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a system architecture for implementing a data backup method according to another embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of a data backup device applied to a non-service architecture according to an embodiment of the present disclosure; and
fig. 5 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides a data backup method applied to a non-service architecture, which includes: in response to the event that the acquired infrastructure environment changes, determining a backup database for data backup from a database cluster by a service layer of the non-service architecture according to a selection strategy; generating a function mirror image by utilizing the non-service architecture based on a pre-configured backup function; and in response to the backup function being triggered, controlling the backup database to backup source data to a target storage area according to the function mirror image.
Fig. 1 schematically illustrates a system architecture 100 for a data backup method applied to a serverless architecture according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture may include, for example, a backup data source 110, a target storage area 120, and a non-service architecture platform 130. Among other things, the backup data source 110 may include a database and a file.
Data in a database or file may be backed up to the target storage area 120 using the out-of-service platform 130.
According to an embodiment of the present disclosure, the serverless architecture is a cloud platform architecture, and the basic features are function as a service (FaaS) and event-driven. The serverless architecture can enable developers to get rid of configuration and management work on background infrastructure, does not need to design processing logic related to underlying infrastructure and network configuration in code, and focuses on business logic design of functions.
The serverless architecture platform 130 may be a serverless architecture platform. According to the embodiment of the disclosure, an event and a trigger function can be set on a serverless architecture platform, and when the event occurs, the trigger function is executed.
The serverless architecture is deployed in a FaaS + BaaS mode. Faas (function as service) refers to a function as a service, and an application is released, run, and managed in the form of one or more functions. The Faas platform provides a running environment of functional application, supports various mainstream programming languages such as java and Python, and can automatically compile, build and release functions when the functions are released. The BaaS (backup as service) refers to a back-end as-a-service, and public cloud data center resources are packaged according to a front-end application scene and provided for developers to use through a simplified calling interface.
The server divides part of the applied Function points into functions which are deployed in a FaaS form, the functions support event driving in various forms, and automatic expansion and contraction are carried out according to the independent performance flow of each Function point. The background service is modified by the BaaS, the FaaS can realize the desired function by using simple codes, and meanwhile, the background BaaS service is conveniently called. Compared with the existing Paas cloud container, the FaaS + BaaS mode is lighter, the rapid construction and deployment through source codes are supported directly, automatic expansion and use according to the requirement are supported according to concurrency or resource utilization rate, platform event driving support is provided, and the implementation is simpler and more convenient. Jobs running in an automatic elastic scaling manner under a serverless architecture effectively consume the resources they need, can process large data files in a short time, and can maintain stable response time while the request traffic is rapidly increased.
According to an embodiment of the present disclosure, an event triggering backup may be set on the out-of-service platform 130, and when the event is triggered, the out-of-service platform 130 executes a backup function to backup data in the backup data source 110 to the target storage area 120.
A data backup method applied to a serverless architecture according to an embodiment of the present disclosure is described below with reference to fig. 2.
Fig. 2 schematically shows a flow chart of a data backup method according to an embodiment of the present disclosure.
As shown in fig. 2, the data backup method may include operations S201 to S203.
In operation S201, in response to acquiring an event that the infrastructure environment changes, a backup database for data backup is determined from a database cluster by a service layer of the non-service architecture according to a selection policy.
According to an embodiment of the present disclosure, an infrastructure environment includes a database cluster including a master database and a plurality of slave databases, the changing of the infrastructure environment including: the main database is switched into a second database in the standby databases from the first database, and the first database is used as the standby database; or the primary database is switched from the first database to a second database of the plurality of standby databases and the first database is abandoned. According to the embodiment of the disclosure, the database cluster deployment mode can be a one-master multi-slave architecture, namely, one master database carries traffic load, and high-availability protection is implemented by copying data to a plurality of slave databases. In order to avoid IO contention between backup traffic and traffic load, backups need to be performed on the backup databases of the database cluster. When the primary and standby databases are switched, the primary and standby databases are switched to the primary database, and the implementation nodes of the backup task need to be synchronously adjusted at the moment. In the related art, the backup program needs to be manually adjusted, the operation is complicated and errors are easy to occur, and the data backup method according to the embodiment of the disclosure can determine the backup database from the database cluster according to the selection strategy, does not need to manually adjust the backup program, and is simple to operate.
According to the embodiment of the disclosure, the acquiring the event that the infrastructure environment changes includes: acquiring identification information of the master database; determining whether the primary database is switched from a first database to a second database in the plurality of standby databases according to the identification information; determining that the acquired integration facility environment changes if it is determined that the master database is switched from the first database to the second database. Further comprising:
determining whether the first database is switched to a standby database or abandoned in use in order to determine a current standby database of the database cluster.
For example, a manager of the database cluster actively configures the database cluster, and switches a main database in the database cluster from a first database to a second database, wherein the first database is configured as a standby database. Or, a first database which is a main database in the database cluster is down, a second database is selected from a plurality of standby databases through a random selection strategy to be used as main data, and the first database is abandoned.
According to the embodiment of the disclosure, for example, whether the infrastructure environment changes may be monitored by a FaaS layer in a server architecture. And the base device context send change may be set to trigger an event that determines a backup database from the database cluster. Therefore, when the FaaS layer monitors an event that the infrastructure environment changes, the FaaS layer may determine a backup database for data backup from the database cluster according to a pre-configured selection policy.
According to an embodiment of the present disclosure, the selection policy includes randomly selecting at least one backup database from a plurality of backup databases as the backup database. Or selecting at least one standby database from the standby databases as the backup database according to the current operating states of the standby databases. For example, a backup database with a small amount of resources such as CPUs, memories, and the like among the plurality of backup databases may be selected as the backup database, or a backup database with the smallest load may be selected as the backup database. According to an embodiment of the present disclosure, the selection policy includes selecting at least one backup database from the plurality of backup databases as the backup database according to the identification information of the plurality of backup databases. The identification information may be, for example, the name, number, or address of the database. For example, the plurality of backup databases may be ranked according to the initials of the names of the backup databases, and the backup database ranked first may be selected as the backup database.
In operation S202, a function image is generated using the out-of-service architecture based on the preconfigured backup function.
According to the embodiment of the disclosure, for example, the backup program may be packaged as a backup function, and the server architecture may generate a function mirror image according to the backup function and store the function mirror image in the mirror image warehouse.
In operation S203, in response to the backup function being triggered, the backup database is controlled to backup source data to a target storage area according to the function image.
According to an embodiment of the present disclosure, the backup function being triggered includes the backup function being triggered periodically or in response to receiving a backup request from the terminal device.
For example, a timer may be set in the server architecture to periodically trigger the backup function to be executed.
When the backup function is triggered by an event, a backup function instance of the backup function may be pulled from the mirror repository and executed, the backup function instance being used to backup source data into the target storage area.
According to the embodiment of the disclosure, the data backup method can automatically and lowly determine the backup database for data backup under the condition that the infrastructure environment changes, the backup database does not need to be manually switched, and the data backup method is simple to operate and high in accuracy.
Fig. 3 schematically illustrates a system architecture 300 for implementing a data backup method according to another embodiment of the present disclosure.
As shown in fig. 3, the system architecture 300 may include an event trigger 310, a data processing module 320, and a target storage area 330.
When the infrastructure environment of the database cluster changes, the cluster state monitor adds the change information of the changed infrastructure environment to the event queue. Obtaining change information from the event queue by backup job routing, and triggering execution of a selection task, the selection task may be determining a backup database for data backup from the database cluster according to a selection policy, and the backup job routing may assign the selection task to a function computing node, the function computing node determining a backup database for data backup from the database cluster according to the selection policy.
When the timer 311 monitors that a preset backup time is reached, the time trigger event is added to the event queue, and when the backup job routing acquires the time trigger event from the event queue, the backup job routing triggers execution of the backup function, and the backup function is allocated to the function computing node, and the function computing node backs up data in the backup data source to the target storage area 330.
As shown in fig. 3, target storage area 330 may include cloud storage and tape. The function computing node can firstly backup data in the backup data source to the cloud storage, and correspondingly, the data needing to be stored for a long time can be transferred to the tape storage from the cloud storage.
According to the embodiment of the disclosure, the method can be implemented by a serverless architecture, wherein a timer and a cluster state monitor are arranged on a FaaS layer of the serverless architecture, the FaaS layer monitors a data cluster state in a backup data source, and triggers execution of a backup function and a selection task.
According to the embodiment of the disclosure, in a cloud computing platform, the transfer of a large batch of files to a cloud storage for backup needs to be completed within a specified time. Because of uncertainty of service load, the file backup quantity changes greatly, and may range from several MB to hundreds of GB, it is very difficult to configure the number of backup function instances to ensure that backup is completed according to time-efficiency requirements, and IO flow generated by backup cannot cause significant influence on service load at the same time, but according to the embodiment of the disclosure, the backup function instances are loaded and executed only when a backup request occurs by using the on-demand loading and automatic expansion characteristics of a server architecture, and the number of backup function instances is elastically and automatically expanded or contracted by a cloud computing platform according to data quantity and event drive; when the backup task is idle, the backup function instance is not continuously online and does not continuously occupy resources.
According to an embodiment of the present disclosure, the data backup method may be applied to data backup of transactional data, for example. In the related art, data backup of transaction data usually depends on an SAN storage network and business backup management software, and the problems of heavy and bulky architecture, incapability of elastic capacity expansion, high maintenance cost and the like are solved. According to the embodiment of the disclosure, a backup framework based on serverless is adopted, data processing is completed through execution of various event trigger functions, configuration is not needed, and elastic expansion and load balancing are automatically supported. The method has the advantages that the mixed cloud environment is opened, data backup and distribution can be achieved through few codes, a large number of backup servers are not required to be built, rapid and agile deployment is achieved, and efficiency is improved in the aspects of flexible deployment, cost reduction, maintenance simplification and the like.
According to the embodiment of the disclosure, the core function of data backup is transferred to a serverless architecture, so that the computing resource consumption and the infrastructure maintenance cost of an application cluster can be greatly reduced. In addition, in the server architecture, based on the container technology, the compatibility and the expandability of the system can be greatly improved in server environments of different manufacturers and different models. In addition, the whole capacity and the backup efficiency of the backup system are improved, the easy expansion of distributed storage can meet the increasing data backup requirements, the backup time window is shortened to a certain extent, the backup concurrency is improved, and the throughput capacity of the backup system is integrally improved.
Fig. 4 schematically shows a block diagram of a data backup apparatus 400 applied to a non-service architecture according to an embodiment of the present disclosure.
As shown in fig. 4, the data backup apparatus 400 may include a determination module 410, a generation module 420, and a backup module 430.
The determining module 410, for example, may perform operation S201 described above with reference to fig. 2, for determining, by the service layer of the non-service architecture, a backup database for data backup from the database cluster according to the selection policy in response to acquiring the event that the infrastructure environment changes.
The generating module 420, for example, may perform operation S202 described above with reference to fig. 2, for generating a function image using the out-of-service architecture based on the preconfigured backup function.
The backup module 430, for example, may perform operation S203 described above with reference to fig. 2, for controlling the backup database to backup the source data to the target storage area according to the function image in response to the backup function being triggered.
According to an embodiment of the present disclosure, an infrastructure environment includes the database cluster, the database cluster including a master database and a plurality of slave databases, the infrastructure environment changing including: the primary database is switched to a second database in the standby databases from a first database, and the first database is used as a standby database; or the primary database is switched from a first database to a second database in the plurality of standby databases, and the first database is abandoned.
According to an embodiment of the present disclosure, acquiring an event that an infrastructure environment changes includes: acquiring identification information of the master database; determining whether the primary database is switched from a first database to a second database in the plurality of standby databases according to the identification information; determining that the acquired integration facility environment changes if it is determined that the master database is switched from the first database to the second database.
According to an embodiment of the present disclosure, selecting a policy includes: randomly selecting at least one standby database from the plurality of standby databases as a backup database; or selecting at least one standby database from the standby databases as a backup database according to the current operating states of the standby databases; or selecting at least one standby database from the standby databases as a backup database according to the identification information of the standby databases.
According to an embodiment of the present disclosure, the triggering of the backup function includes: the backup function is triggered regularly; or triggered in response to receiving a backup request from a terminal device.
According to an embodiment of the present disclosure, the no service architecture includes a serverless architecture.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any of the determination module 410, the generation module 420, and the backup module 430 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the determining module 410, the generating module 420, and the backup module 430 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware. Alternatively, at least one of the determining module 410, the generating module 420 and the backup module 430 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
Fig. 5 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, a computer electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. The processor 501 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 501 may also include onboard memory for caching purposes. Processor 501 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are stored. The processor 501, the ROM502, and the RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM502 and/or the RAM 503. Note that the programs may also be stored in one or more memories other than the ROM502 and the RAM 503. The processor 501 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, electronic device 500 may also include an input/output (I/O) interface 505, input/output (I/O) interface 505 also being connected to bus 504. The electronic device 500 may also include one or more of the following components connected to the I/O interface 505: an input portion 507 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program, when executed by the processor 501, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include ROM502 and/or RAM 503 and/or one or more memories other than ROM502 and RAM 503 described above.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.
Claims (10)
1. A data backup method applied to a serverless architecture comprises the following steps:
in response to the event that the acquired infrastructure environment changes, determining a backup database for data backup from a database cluster by a service layer of the non-service architecture according to a selection strategy;
generating a function mirror image by utilizing the non-service architecture based on a pre-configured backup function; and
and in response to the triggering of the backup function, controlling the backup database to backup the source data to the target storage area according to the function mirror image.
2. The method of claim 1, wherein the infrastructure environment comprises the database cluster, the database cluster comprising a master database and a plurality of slave databases,
the acquiring the event that the infrastructure environment changes comprises: acquiring identification information of the master database; determining whether the primary database is switched from a first database to a second database in the plurality of standby databases according to the identification information;
determining that the acquired integration facility environment changes if it is determined that the master database is switched from the first database to the second database.
3. The method of claim 2, wherein the selection policy comprises:
randomly selecting at least one standby database from the plurality of standby databases as a backup database; or
Selecting at least one standby database from the standby databases as a backup database according to the current operating states of the standby databases; or
And selecting at least one standby database from the standby databases as a backup database according to the identification information of the standby databases.
4. The method of claim 1, wherein the backup function being triggered comprises:
the backup function is triggered regularly; or
Triggered in response to receiving a backup request from a terminal device.
5. The method of claim 1, further comprising:
determining whether the first database is switched to a standby database or abandoned in use in order to determine a current standby database of the database cluster.
6. A data backup device applied to a non-service architecture comprises:
the determining module is used for responding to the acquired event that the infrastructure environment changes, and determining a backup database for data backup from a database cluster by a service layer of the non-service architecture according to a selection strategy;
the generating module is used for generating a function mirror image by utilizing the non-service architecture based on a pre-configured backup function; and
and the backup module is used for controlling the backup database to backup the source data to the target storage area according to the function mirror image in response to the backup function being triggered.
7. The apparatus of claim 6, wherein the infrastructure environment comprises the database cluster, the database cluster comprising a master database and a plurality of slave databases,
the event for acquiring the change of the infrastructure environment comprises the following steps:
acquiring identification information of the master database; determining whether the primary database is switched from a first database to a second database in the plurality of standby databases according to the identification information;
determining that the acquired integration facility environment changes if it is determined that the master database is switched from the first database to the second database.
8. The apparatus of claim 7, wherein the selection policy comprises:
randomly selecting at least one standby database from the plurality of standby databases as a backup database; or
Selecting at least one standby database from the standby databases as a backup database according to the current operating states of the standby databases; or
And selecting at least one standby database from the standby databases as a backup database according to the identification information of the standby databases.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-5.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010629292.0A CN111737059B (en) | 2020-07-02 | 2020-07-02 | Data backup method, device, electronic equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010629292.0A CN111737059B (en) | 2020-07-02 | 2020-07-02 | Data backup method, device, electronic equipment and medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111737059A true CN111737059A (en) | 2020-10-02 |
| CN111737059B CN111737059B (en) | 2024-07-02 |
Family
ID=72652622
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010629292.0A Active CN111737059B (en) | 2020-07-02 | 2020-07-02 | Data backup method, device, electronic equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111737059B (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113342803A (en) * | 2021-03-03 | 2021-09-03 | 中国工商银行股份有限公司 | Database updating method, device, equipment and medium |
| CN113608842A (en) * | 2021-09-30 | 2021-11-05 | 苏州浪潮智能科技有限公司 | Container cluster and component management method, device, system and storage medium |
| CN113760868A (en) * | 2021-09-13 | 2021-12-07 | 武汉联影智融医疗科技有限公司 | Data processing method and device and storage service system |
| CN114257597A (en) * | 2021-12-22 | 2022-03-29 | 中国工商银行股份有限公司 | Concurrency control method, device, equipment and medium for function calculation |
| CN114647536A (en) * | 2020-12-17 | 2022-06-21 | 网联清算有限公司 | Database backup method and device |
| CN115080309A (en) * | 2022-06-28 | 2022-09-20 | 中国工商银行股份有限公司 | Data backup system, method, storage medium and electronic device |
| CN118820332A (en) * | 2023-09-05 | 2024-10-22 | 中国移动通信集团浙江有限公司 | Business processing system and method based on in-memory database |
| CN119167030A (en) * | 2024-09-09 | 2024-12-20 | 交通运输部公路科学研究所 | Method for determining infrastructure master data elements for the entire life cycle of highways |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1524224A (en) * | 2001-07-06 | 2004-08-25 | ���������˼�빫˾ | System and method for information backup |
| CN110162427A (en) * | 2018-02-13 | 2019-08-23 | 佳能株式会社 | System and the method for using the system |
| US20190332483A1 (en) * | 2018-04-27 | 2019-10-31 | EMC IP Holding Company LLC | Serverless application operational recovery and manifest creation |
| US20200012569A1 (en) * | 2018-07-05 | 2020-01-09 | EMC IP Holding Company LLC | Methods and systems for serverless data deduplication |
-
2020
- 2020-07-02 CN CN202010629292.0A patent/CN111737059B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1524224A (en) * | 2001-07-06 | 2004-08-25 | ���������˼�빫˾ | System and method for information backup |
| CN110162427A (en) * | 2018-02-13 | 2019-08-23 | 佳能株式会社 | System and the method for using the system |
| US20190332483A1 (en) * | 2018-04-27 | 2019-10-31 | EMC IP Holding Company LLC | Serverless application operational recovery and manifest creation |
| US20200012569A1 (en) * | 2018-07-05 | 2020-01-09 | EMC IP Holding Company LLC | Methods and systems for serverless data deduplication |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114647536A (en) * | 2020-12-17 | 2022-06-21 | 网联清算有限公司 | Database backup method and device |
| CN113342803A (en) * | 2021-03-03 | 2021-09-03 | 中国工商银行股份有限公司 | Database updating method, device, equipment and medium |
| CN113342803B (en) * | 2021-03-03 | 2024-03-12 | 中国工商银行股份有限公司 | Database updating method, device, equipment and medium |
| CN113760868A (en) * | 2021-09-13 | 2021-12-07 | 武汉联影智融医疗科技有限公司 | Data processing method and device and storage service system |
| CN113608842A (en) * | 2021-09-30 | 2021-11-05 | 苏州浪潮智能科技有限公司 | Container cluster and component management method, device, system and storage medium |
| CN114257597A (en) * | 2021-12-22 | 2022-03-29 | 中国工商银行股份有限公司 | Concurrency control method, device, equipment and medium for function calculation |
| CN114257597B (en) * | 2021-12-22 | 2023-12-29 | 中国工商银行股份有限公司 | Concurrent control method, device, equipment and medium for function calculation |
| CN115080309A (en) * | 2022-06-28 | 2022-09-20 | 中国工商银行股份有限公司 | Data backup system, method, storage medium and electronic device |
| CN118820332A (en) * | 2023-09-05 | 2024-10-22 | 中国移动通信集团浙江有限公司 | Business processing system and method based on in-memory database |
| CN118820332B (en) * | 2023-09-05 | 2025-10-31 | 中国移动通信集团浙江有限公司 | Service processing system and method based on memory database |
| CN119167030A (en) * | 2024-09-09 | 2024-12-20 | 交通运输部公路科学研究所 | Method for determining infrastructure master data elements for the entire life cycle of highways |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111737059B (en) | 2024-07-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111737059B (en) | Data backup method, device, electronic equipment and medium | |
| US11593149B2 (en) | Unified resource management for containers and virtual machines | |
| US12081637B2 (en) | Embedded database as a microservice for distributed container cloud platform | |
| US20230161647A1 (en) | Extending the kubernetes api in-process | |
| US20200153898A1 (en) | Automated infrastructure updates in a cluster environment that includes containers | |
| US8793344B2 (en) | System and method for generating a response plan for a hypothetical event | |
| CN111527474B (en) | Dynamic delivery of software functionality | |
| WO2017186124A1 (en) | System, device and process for dynamic tenant structure adjustment in a distributed resource management system | |
| US9591094B2 (en) | Caching of machine images | |
| CN111176818B (en) | Distributed prediction method, device, system, electronic equipment and storage medium | |
| CN100378670C (en) | Logical Partition Computer System and Method for Maintaining Input and Output Capabilities | |
| CN112424765B (en) | Container framework for user-defined functions | |
| US10664278B2 (en) | Method and apparatus for hardware acceleration in heterogeneous distributed computing | |
| US11797287B1 (en) | Automatically terminating deployment of containerized applications | |
| CN115686805A (en) | GPU resource sharing method and device, and GPU resource sharing scheduling method and device | |
| US10171370B1 (en) | Distribution operating system | |
| US12067380B2 (en) | System and method of offloading and migrating management controller functionalities using containerized services and application thereof | |
| US11095501B2 (en) | Provisioning and activating hardware resources | |
| CN113032136A (en) | Power grid analysis task scheduling method and device under multi-cloud environment | |
| CN115328608A (en) | Kubernetes container vertical expansion adjusting method and device | |
| US11650809B2 (en) | Autonomous and optimized cloning, reinstating, and archiving of an application in a containerized platform | |
| US20230062858A1 (en) | Volume remote copy based on application priority | |
| US10572412B1 (en) | Interruptible computing instance prioritization | |
| US20240061698A1 (en) | Managing the assignment of virtual machines to non-uniform memory access nodes | |
| CN120086005A (en) | Storage resource scheduling method, device, medium, equipment and program product |
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 |