Backup combination computing system, method and program product in a computing environment
By independently executing snapshots and state combinations in the DBaaS system, the problem of data synchronization and failover complexity between multiple storage segment servers is solved, data state acquisition between different instances and multiple servers is achieved, and snapshots are simplified process and improves system flexibility and reliability.
Patent Information
- Application Number
- CN201980060673.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-09-21
- Filing Date
- 2019-06-26
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2039-06-26
AI Technical Summary
Existing DBaaS systems require frequent communication during data synchronization and failover, resulting in high system complexity and dependency, and snapshot coordination between multiple storage segment servers is difficult to achieve.
The state of user data is combined at a specific point in time. Each storage segment server performs snapshots independently without coordination. Log records are re-applied by instantiating additional instances to obtain the data status at a specific point in time, simplifying snapshot logic and improving system resilience.
It realizes the status of obtaining user data between different instances and multiple servers, simplifies the snapshot process, improves the flexibility and reliability of the system, and avoids communication dependence on other servers.
Smart Images

Figure CN112740639B_ABST
Abstract
Description
Background Art
[0001] Various services are now provided in a cloud computing environment. "Cloud computing" is a model for supporting ubiquitous, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage devices, applications, and services). The cloud computing model can also take the form of various application service models, such as, for example, software as a service ("SaaS"), platform as a service ("PaaS"), and infrastructure as a service ("IaaS"). The cloud computing model can also be deployed using different deployment models, such as private clouds, community clouds, public clouds, hybrid clouds, etc. One type of software as a service ("SaaS") is called database as a service (DBaaS).
[0002] Conventional DBaaS is typically implemented in an architecture that includes one primary computing node and one or more secondary computing nodes (each node is often provided as a virtual machine). The primary computing node operates a database server and has a directly attached solid-state drive from which the primary database server can read or write. The secondary computing nodes also operate database servers and also have solid-state drives from which corresponding secondary database servers can read or write. Data on the primary computing node is synchronized with the secondary computing nodes.
[0003] The secondary computing nodes provide redundancy for the purpose of meeting service availability goals. If a primary computing node were to fail, a failover of the database could occur by promoting one of the secondary computing nodes to primary computing node and instantiating additional secondary computing nodes to maintain the required level of redundancy.
[0004] In order to synchronize the data at the primary computing node with the data at the secondary computing node, communication from the primary computing node to the secondary computing node is required. The primary computing node retains a log of the operations that occurred at the primary computing node. The primary computing node can send log records to the secondary computing nodes (either individually or as blocks). The secondary computing nodes each apply the operations specified by the primary computing node and apply their confirmation back to the primary computing node. Once the primary computing node receives such confirmation from the majority (e.g., two of the three secondary computing nodes), the primary computing node has synchronized its data with the secondary computing nodes to the extent that if the primary computing node fails, there is a guarantee that the majority of the secondary computing systems will apply the log records. Therefore, in the case of recovery, even if the newly promoted primary computing node has not yet applied the log records, the newly promoted primary computing node can still update itself with current data by consulting other secondary computing nodes.
[0005] The subject matter claimed herein is not limited to embodiments that solve any disadvantages or that operate only in environments such as described above. Rather, this background is provided merely to illustrate one exemplary technology area in which some embodiments described herein may be practiced. Summary of the invention
[0006] At least some embodiments described herein relate to combining the state of user data at a particular point in time in the context of data being spread across multiple storage segment servers. Furthermore, combining occurs despite the fact that the storage segment servers do not need to coordinate the timing of any snapshots. Rather, the storage segment servers perform snapshots of their individually stored portions of the data without coordination with any other storage segment servers. The particular point in time may be any arbitrary time, such as a time selected by a user.
[0007] For each storage segment server, an additional instance of the storage segment server is instantiated. The additional instance is made to assume the initial state that the corresponding storage segment server had at or before the last snapshot executed by the corresponding storage segment server. The initial time may be at or before any transaction that was pending at the last snapshot. Perhaps the initial time may be at or before any transaction that was pending and affected the portion of the data stored by the corresponding storage segment server. Each of the additional instances then reapplies the recorded records starting at the initial state and continuing until a specific point in time to thereby reach the state of the portion of the data at the specific point in time. Each portion can potentially be combined into all or a subset of a larger set of user data to thereby obtain the user data as it existed at the specific point in time.
[0008] Thus, the principles described herein allow for the capture of the state of user data as it existed at different instances of time, which are selectable by the user and are not limited to the time of the snapshot. Furthermore, this is possible even if the data is distributed across multiple servers that do not need to coordinate the timing of the snapshots. This allows the snapshot logic employed at each bucket server to be simplified, since no communication with other bucket servers is required. Furthermore, the snapshot process is more resilient, since a snapshot on one bucket server does not depend on whether another bucket server is operating normally or even running at all.
[0009] This summary introduces some concepts in a simplified form that will be further described in the detailed description below. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to describe the manner in which the above and other advantages and features of the present invention can be obtained, the invention briefly described above will be described in more detail by reference to specific embodiments of the invention shown in the accompanying drawings. Therefore, these drawings only depict example embodiments of the present invention and should not be considered limiting of the scope of the present invention. With this in mind, example embodiments of the present invention will be described and explained with reference to the accompanying drawings, in which:
[0011] Figure 1 illustrates an environment in which the principles described herein may be employed, the environment comprising a primary computing system, one or more secondary computing systems, a storage segment server between which data is stored, persistent storage, and a logging service for applying log records generated by the primary computing system;
[0012] Figure 2 A flow chart of a method for generating log records and performing write operations is illustrated.
[0013] Figure 3 illustrates a log record including a log sequence number, a description of a change to an increment of a storage segment, and a storage segment identifier to which the change is applied;
[0014] Figure 4 illustrates a block filled with a plurality of log records;
[0015] Figure 5 A flow chart illustrating a method for applying logging to a storage segment;
[0016] Figure 6 An environment is illustrated in which there are storage segment servers that collectively store data, and in which the portion of data held by each storage segment server is independently snapshotted;
[0017] Figure 7 illustrates a flow chart of a method for compiling the state of user data as of a particular point in time according to the principles described herein;
[0018] Fig. 8A Shows Figure 6 a portion of a snapshot timeline in which an initial state of the additional instance of the storage segment server is at the start of the oldest transaction that was active at any snapshot in the last snapshot for any of the data parts;
[0019] Figure 8B Shows Figure 6 A portion of a snapshot timeline in which, for each data portion, the initial state of the additional instance of the storage segment server is at the start of the oldest transaction that was active at the last snapshot of the data portion and includes operations applicable to the data portion.
[0020] Fig.9A illustrates a superset of transactions active at any time in any of the last snapshots before a particular point in time for any portion of the data portion;
[0021] Fig. 9B illustrates a set of transactions active at the time of the last snapshot before a specific point in time for only one portion of data;
[0022] Fig.10 An example computer system is illustrated in which the principles described herein may be employed. DETAILED DESCRIPTION
[0023] At least some embodiments described herein relate to compiling the state of user data as of a particular point in time in the context of data being spread across multiple storage segment servers. Furthermore, the compilation occurs despite the fact that the storage segment servers do not need to coordinate the timing of any snapshots. Rather, the storage segment servers perform snapshots of a portion of their individually stored data without coordination with any other storage segment servers. The particular point in time may be any arbitrary time, such as a time selected by a user.
[0024] For each storage segment server, an additional instance of the storage segment server is instantiated. The additional instance is made to assume the initial state that the corresponding storage segment server had at or before the last snapshot executed by the corresponding storage segment server. The initial time may be at or before any transaction that was pending at the last snapshot. Perhaps the initial time may be at or before any transaction that was pending and affected the portion of the data stored by the corresponding storage segment server. Each of the additional instances then reapplies the logged records starting at the initial state and continuing until a specific point in time to thereby reach the state of the portion of the data as of the specific point in time. Each portion can potentially be assembled into all or a subset of a larger set of user data to thereby obtain the user data as it existed at that specific point in time.
[0025] Thus, the principles described herein allow for the capture of the state of user data as it existed at different instances of time, which are selectable by the user and are not limited to the time of the snapshot. Furthermore, this is possible even if the data is distributed across multiple servers that do not need to coordinate the time of the snapshot. This allows the snapshot logic employed at each bucket server to be simplified, since no communication with other bucket servers is required. Furthermore, the snapshot process is more resilient, since a snapshot on one bucket server does not depend on whether another bucket server is operating normally or even not running at all.
[0026] First, about Figures 1 to 5An example environment including a primary computing system, (multiple) secondary computing systems, and a storage segment server environment will be described. Figures 6 to 9B to describe the state of accessing user data distributed across storage segment servers. Then, because the components described herein are operated by a computing system, the Fig.10 To describe a computing system.
[0027] Figure 1 An environment 100 is shown in which the principles described herein may be employed. By way of example only, the environment 100 may be a network, such as a cloud computing environment. The environment 100 includes a primary computing system 110 on which an application 110A operates. By way of example, the application 110A may be a database server application. The primary computing system 110 may be a physical computing system, such as a computing node in a cloud computing environment, in which case the primary computing system 110 may be described as follows with respect to Fig.10 The computing system 1000 is constructed as described above. Alternatively or additionally, the main computing system 110 may be a virtual machine that simulates a computing system. The application 110A running on the main computing system 110 performs a write operation on the user data. For example, if the application 110A is a database server, the user data may be a database.
[0028] Although not required by the principles described herein, environment 100 also optionally includes (multiple) secondary computing systems 120. Each of the (multiple) secondary computing systems 120 operates a corresponding application, which may be an instance of the same application being executed on primary computing system 110. For example, if application 110A on primary computing system 110 is a database server application, an instance of the database server application may be executed on each of the (multiple) secondary computing systems 120. Each of the (multiple) secondary computing systems 120 may be a physical computing system (such as a computing node in a cloud computing environment), in which case the secondary computing systems may be described as follows with respect to Fig.10 The computing system 1000 is constructed as described above. Alternatively or additionally, each secondary computing system 120 may be a virtual machine simulating a computing system.
[0029] Secondary computing system(s) 120 may include any number of secondary computing systems. In the illustrated embodiment, there are two secondary computing systems 121 and 122 shown, each operating a corresponding application 121A and 122A, respectively. Ellipsis 123 indicates that the principles described herein are not limited to the number of secondary computing systems(s) 120. For example, there may be only one secondary computing system, or there may be a potentially unlimited number of secondary computing systems. Furthermore, due to the second computing system(s) 120, there may even be zero secondary computing systems.
[0030] If the primary computing system 110 fails such that it may not be effectively recovered, one of the secondary computing systems 120 (if any secondary computing systems exist) is promoted to become the new primary computing system, thereby allowing the promoted computing system to perform write operations. Thus, the secondary computing system(s) 120 allow for built-in redundancy within the environment 100. If a secondary computing system is promoted to the primary computing system, a new secondary computing system can be started to replace the promoted computing system and thereby maintain the desired number of secondary computing systems 120. That is, new secondary computing systems can be started and removed independently of whether the primary computing system 110 fails.
[0031] When the primary computing system 110 performs write operations on user data (e.g., a database or database content), the primary computing system 110 records these data operations (as represented by arrow 101A) in the persistent log 131. The persistent log 131 is retained so that the environment 100 can be recovered in the event of a failure. The process of the primary computing system 110 writing to a storage segment (e.g., a page of user data) while persistently recording the write operation will now be described.
[0032] In particular, Figure 2 A flow chart of a method 200 for generating a log record and performing a write operation is illustrated. As an example, the method 200 may be performed by Figure 1 The primary computing system 110 performs the write operation. The primary computing system first reads a particular memory segment (action 201). This ensures that a copy of the memory segment is brought into the primary computing system's cache. The memory segment may have been previously read by the primary computing system, in which case the memory segment will already be in the primary computing system's cache. Otherwise, the primary computing system performs a read operation from the corresponding memory segment server containing the memory segment to be written. For example, in Figure 1 , the primary computing system 110 reads (as represented by arrow 102 ) a memory segment (eg, a page) from the memory segment server 142 .
[0033] The primary computing system then writes to the read (e.g., cached) copy of the storage segment (act 202). And, to create a log record of the write operation (act 203), the incremental changes made or to be made as part of the write operation are determined (act 211). The primary computing system then creates a log record including the incremental changes (act 212). For example, Figure 3A log record 300 is shown, which includes a log sequence number 301, a description of an incremental change 302, and a storage segment identifier 303 to which the change is applied. The log sequence number is a number that uniquely identifies the log record and represents the location of the log record within the log. The log sequence number is typically a monotonically increasing number, so that the higher the log sequence number, the more recently the log record was placed within the log. The log record is written to a persistent log (action 204). For example, in Figure 1 , as represented by arrow 101A, primary computing system 110 writes a log record (eg, log record 300 ) to persistent log 131 .
[0034] In one embodiment, log records are organized into blocks. A block is a unit of storage that can be written and read atomically (i.e., once - so that a write or read is either completed for the entire block, or not performed at all). Typical block sizes will be constant in a computing system, but example block sizes include 512 bytes and 4096 bytes. Because log records can be much smaller than blocks, a block can contain multiple log records. Figure 4 A block 400 is shown filled with a plurality of log records 401, 402, 403, and 404. As an example, Figure 3 The logging record 300 can be Figure 4 402 of log records. Ellipsis 405 indicates that box 400 may include any number of blocks that are suitable for the size of a given log record and the size of the block. It can be said that each log record occupies a "slot" within a block. When a log record is written to a persistent log (such as by Figure 1 Arrows 101A and Figure 2 ), which may be a block of log records written to the persistent log (such as block 400). Thus, the primary computing system 110 may wait for some number of log records to be generated before writing the log records as a block to the persistent log 131.
[0035] Return to Figure 1 , the environment 100 also includes a log service computing system 132. The log service computing system 132 can be a physical computing system, such as the following Fig.10 Alternatively or additionally, the log service computing system 132 may be a virtual machine, or may be an executable component, such as the following: Fig.10 Described executable components 1006. The log service computing system 132 then facilitates write operations executed and logged by the primary computing system 110 to be propagated to the appropriate storage segment servers 140 and to the secondary computing system(s) 120, if any are present.
[0036] The environment 100 also includes a plurality of storage segment servers 140. The data operated by the application 110A on the primary computing system 110 is spread across the storage segment servers 140. Thus, each storage segment server is used to serve (e.g., store) a storage segment corresponding to only a portion of the user data. The storage segment may be, for example, a page of data. Each page of data may include a plurality of blocks.
[0037] For example, as represented by arrow 161, the segment server 141 performs data operations only for the assigned segment set 151. Furthermore, arrow 162 represents that the segment server 142 performs data operations only for its assigned segment set 152, arrow 163 represents that the segment server 143 performs data operations only for its assigned segment set 153, and arrow 164 represents that the segment server 144 performs data operations only for its assigned segment set 154. The ellipses 145 and 155 represent that the principles described herein are not limited to the number of segment servers.
[0038] However, if the memory segments (e.g., pages) assigned to any given memory segment are contiguous within the address space of the user data, it is simpler to identify which memory segment server is assigned to perform data operations for a given memory segment. In addition, since a single read operation can be issued to potentially return many contiguous memory segments, read operations on contiguous memory segments can be performed more efficiently. In one embodiment, the user data is represented within the storage service 170 located below the memory segment servers 140. The user data distributed across the memory segment servers 140 can maintain the same layout and structure as the user data on the storage service 170.
[0039] The storage segment set 151 to the storage segment set 155 are collectively illustrated as the storage segment set 150. When the storage segment server 140 uses the storage service 170 provided by the cloud computing environment to store their corresponding data, the need to perform data size operations is eliminated. For example, such a data size operation can be the performance of a complete backup of all data. Conventionally, each of the primary computing system and the secondary computing system would have to perform a complete backup separately by transmitting data over the network. Therefore, the principles described herein allow for an excellent ability to scale data upward. However, a copy of the storage segment set 151 to the storage segment set 155 can also be retained in the cache at each of the corresponding page servers 141 to the page server 145. This allows for fast access to the storage segment. However, if the storage segment is lost in the cache of the page server 140 (or even if one of the storage segment servers itself is down), the storage segment is still available in the storage service 170 in the cloud computing environment.
[0040] Volume 135 may be mounted to multiple computing systems. For example, a single mounted volume 135 may be included in a drive that is mounted to primary computing system 110 as a read-write volume and to (multiple) secondary computing systems 120 as a read-only volume. Because only one computing system is mounted to the volume as a write volume, multiple computing systems may be mounted to volume 135 without the risk of data corruption due to competing or inconsistent write operations. This may be achieved if only a fixed-size portion of the log exists within volume 135, since even the management data for the volume does not change. Volume 135 may be part of a cloud storage service within a cloud computing environment. For example, storage segment servers 140 and / or secondary computing systems may read log records directly from persistent log 131, rather than from agent 131.
[0041] Figure 5 A flow chart of a method 500 for applying a log record to a storage segment according to the principles described herein is illustrated. The method 500 may be executed for each log record in a plurality of log records identified to be applied. Execution of the method 500 a number of times allows the log to be applied to the appropriate storage segment. That is, the write operation specified in the log record is applied to the storage segment within the appropriate storage segment server. As an example, the method 500 may be executed by Figure 1 The method 500 may be performed by the log service computing system 132. Figure 1 is executed within the environment 100 so that the application Figure 3 300. Thus, now we will Figure 1 and Figure 3 To describe Figure 5 .
[0042] When it is determined that a particular log record is to be applied, method 500 is initiated (act 501). For example, the particular log record may be Figure 3 In response to identifying that a particular log record is to be applied (act 501), the particular log record is applied (act 510). This can be done with respect to a storage segment server corresponding to the storage segment. This can also be done with respect to a secondary computing system.
[0043] Thus, the application of logging (action 510) includes identifying a segment server that is assigned to a particular set of segments, the particular set of segments including the segments to be written in a particular write operation (action 511). In the case where the set of segments is contiguous in address space, the assignment of the set of segments to each segment server can be aligned with the most significant bits of the segment identifier. For example, assume that the segment identifiers range from binary 00000, 00000 (commas are added every five bits to aid the reader) to binary 01101, 01111. In this case, there may be seven segment servers, one for segments with identifiers having four most significant bits of 0000, another for segments with identifiers having four most significant bits of 0001, and so on until the seventh segment is for segments with identifiers having four most significant bits of 0110. Therefore, determining which segment server is assigned to store a particular segment becomes an efficient computation. The log service computing system 132 can therefore determine the appropriate bucket server for the log record 300 based on the bucket identifier 303 .
[0044] The particular storage segment server is then caused to perform a write operation to the storage segment specified in the particular log record (action 512). For example, log service computing system 132 may provide (e.g., as represented by arrow 103B) log record 300 to the appropriate storage segment server (e.g., storage segment server 142). This would indicate the completion of the write operation that was initiated when primary computing system 110 read (e.g., as represented by arrow 102) the storage segment from the storage segment server.
[0045] In one example, the notification (represented by arrow 103B) is not pushed to the appropriate bucket server. Instead, the bucket server queries the log service computing system 132 for the appropriate log record. Thus, providing the appropriate log record to the bucket server may be in response to a request from a particular bucket server. Thus, after the bucket server 143 queries the applicable log entry (as represented by arrow 103A), the bucket server 143 assigned to the bucket being written may be notified of the write operation.
[0046] The log service computing system 132 may have a broker component 133 thereon that handles the processing of incoming requests for log records. The broker 133 may be an executable component on the log service computing system. For example, the broker 133 may be as follows for Fig.10 The executable components 1006 are organized as described.
[0047] Instead of providing one log record at a time, the agent 133 may provide one block at a time. For example, if the agent 133 determines that there are any log records (e.g., any of log records 401, 402, 403, 404, or 405) within a block of log records (e.g., block 400), the agent 133 may send the entire block to a specific storage segment server, and the any log records have a storage segment identifier within the set of storage segments assigned to the specific storage segment server.
[0048] In addition, the agent 133 can ensure that the log record is not communicated to any entity until the log service computing system 132 has been notified that the log record has been securely written to the persistent log 131 (i.e., the log record has become public). This helps the recovery process to be consistent. During recovery, the recovery uses the persistent log 131 to determine which operations have been completed. If other components in the system (e.g., a secondary computing system or a storage segment server) have performed operations that the persistent log 131 is not aware of, the recovery will not be able to reach a reliable state. Then, the user data becomes ambiguous and therefore corrupted.
[0049] The agent 133 may also perform other tasks. For example, the agent 133 may anticipate that the primary computing system 110 (which is the source of the generated log records) is unreliable. To compensate for this, the agent 133 may implement different strategies for deduplicating log records that have been received multiple times from the primary computing system 110. The agent 133 may perform this deduplication by tracking primary computing system generation and by keeping only the most recent generation for all log records. The agent 133 may also anticipate log record loss and compensate for it by filling in the lost log records described below.
[0050] Return to Figure 5 In method 500, the log service computing system also causes the secondary computing system to perform a specific write operation on the copy of the storage segment at the secondary computing system (action 520). This can also be done by transmitting to each secondary computing system 121 and 122 (such as by Figure 1104B and 105B in the persistent log 131. The secondary computing system 120 may be executed by requesting a log record (e.g., log record 300) from the secondary computing system 120. Although the log record may be pushed to the secondary computing system 120, the agent 131 may similarly handle requests for log records from the secondary computing system 120 (as represented by arrows 104A and 105A). Again, the log record may be provided as a block. As a reminder, the agent 133 may ensure that the log record is not transmitted to the secondary computing system 120 unless the log record has been confirmed to be written to the persistent log 131. As a possible optimization, the secondary computing system may also perhaps ignore the log record (and thereby cause a read from the storage segment server) if the log record is for writing to a storage segment that has not yet been cached. In this case, if the secondary computing system later uses the storage segment, the secondary computing node may read the storage segment from the storage segment server (which has already applied the write of the skipped log).
[0051] Figure 6 An environment is illustrated in which there are storage segment servers 610 that collectively store data 620. The storage segment servers 610 are shown to include four storage segment servers 610A to 610D, which respectively represent Figure 1 An example of storage segment servers 141 to 144.
[0052] Each of the storage segment servers 610 stores only a portion of the data 620. For example, the storage segment server 610A stores the data portion 620A, the storage segment server 610B stores the data portion 620B, the storage segment 610C stores the data portion 620C, and the storage segment 610D stores the data portion 620D. In one embodiment, each of the data portions 620A to 620D is stored internally at consecutive addresses in the address space. Therefore, the further to the left the storage location within the data portion 620A, the lower the address within the address space. The same is true for the other data portions 620B, 620C, and 620D. In addition, when put together, the data portions 620A to 620D are also continuous within the address space. Therefore, the data portion 620A has a lower address than the data portion 620B, the data portion 620B has a lower address than the data portion 620C, and the data portion 620C has a lower address than the data portion 620D.
[0053] Each of the segment servers takes a snapshot of its corresponding portion of the data. Figure 6 In the example of , time is represented by arrow 630. A log sequence is also shown and represented by arrow 640. The larger the sequence number of a log record of a log in the log sequence, the more recently the operation represented by the log record was performed.
[0054] In this particular example, storage segment server 610A takes snapshot 641A of data portion 620A at time t3, and takes snapshot 642A of data portion 620A at time t8. Storage segment server 610B takes snapshot 641B of data portion 620B at time t2, takes snapshot 642B of data portion 620B at time t6, and 10 Segment server 610D takes a snapshot 641D of data portion 620D at time t1, a snapshot 642D of data portion 620D at time t5, and a snapshot 643D of data portion 620D at time t9.
[0055] In this example, the snapshot time of each of the segment servers is independent of the other segment servers. Although not required, Figure 6 In the example of , not even a single snapshot occurs at the same time. Each of the snapshots is taken at its own distinct time t1 to t10. More broadly, each of at least some of the storage segment servers takes a snapshot at a time that is independent of other storage segment servers. This means that the storage segment servers do not need to coordinate snapshot times with other storage segment servers, thereby making the snapshot process more resilient.
[0056] Figure 6 A backup combined computing system 650 is also illustrated. The backup combined computing system 650 may be a physical computing system, such as the following Fig.10 Alternatively or additionally, the backup combined computing system 650 may be a virtual machine, or perhaps an executable component, such as the following Fig.10 Executable components 1006 are described.
[0057] Figure 7 A flow chart of a method 700 for combining the state of user data at a particular point in time is illustrated. Figure 6 In the context of the snapshot shown, method 700 may be performed by Figure 6 The backup combination computing system 650 performs. Thus, now only as an example about Figure 7 and about Figure 6 Method 700 is described.
[0058] Method 700 may be performed for any arbitrary point in time. Accordingly, method 700 begins by identifying a particular point in time for which the state of user data is desired (action 701). There are then actions to be performed for each storage segment in the storage segment server. Those actions are contained in Figure 7 For example, the contents of block 710 may be executed for each of the storage segment servers 610A to 610D with respect to its corresponding data portion 620A to 620D.
[0059] Specifically, additional instances of storage segment servers are instantiated (action 711). For example, additional instances of storage segment server 610A are instantiated, which allows storage segment server 610A to continue operating while the additional instances are working to formulate a previous state of data portion 620A. Additionally, additional instances of each of storage segment servers 610B, 610C, and 610D are instantiated, which allows the respective storage segment servers 610B, 610C, and 610D to continue operating during method 700 while the additional instances are working to formulate a previous state of the respective data portions 620B, 620C, and 620D. The backup composite computing system 650 may cause these additional instantiations.
[0060] Then, the additional instance of the storage segment server is caused (e.g., to assemble the instructions of the computing system 650) to assume an initial state (action 712). The initial state is the state that the data portion of the storage segment server had at or before the last snapshot. Then, the additional instance of the storage segment server is caused to begin applying the log records applied by the corresponding storage segment server up to a specific point in time with the initial state (action 713). This causes the additional instance of the storage segment server to reach the specific state as the corresponding data portion existed at the specific point in time.
[0061] For example, Fig. 8A Shows Figure 6800A of a snapshot timeline. However, only snapshot timelines for data portion 620A and data portion 620B are shown. Snapshots 641A and 642A of data portion 620A are shown. In addition, snapshots 641B and 642B of data portion 620B are shown. Assume that a particular point in time for which user data is desired is point 801. The last snapshot for data portion 620A before that particular point in time 801 is snapshot 641A. The last snapshot for data portion 620B before that particular point in time 801 is snapshot 641B. In a non-transactional system, additional instances of storage segment server 610A can simply start at the last snapshot 641A and apply all applicable log records in the log (e.g., persistent log 131) up to point in time 801. Similarly, the additional instance of storage segment server 610B may simply start at the last snapshot 641B and apply all applicable log records in the persistent log up to time point 801 .
[0062] However, in a transactional system, there is an accounting for all transactions that were active at the time of the snapshot. Fig. 8A , assume that line 810 represents the start time of the oldest transaction that is still active at any of the last snapshots (before a particular point in time) for any of the data portions (i.e., time T A ). In this case, each snapshot records all active transactions at the time of the snapshot.
[0063] Assume that, for the snapshot of data portion 620A, at the time of the last snapshot 641A (before the particular point in time 801), three transactions 911, 912, and 913 were pending. Snapshot 641A would also identify three active transactions 911, 912, and 913. Now assume that at the time of the last snapshot 641B (before the particular point in time 801) of data portion 620B, there were three transactions 912, 913, and 914 pending. Snapshot 641B would also identify these three active transactions. The last snapshot (before the particular point in time 801) would also have recorded the transactions that were still pending at the time of the corresponding snapshot. The superset of all active transactions among those active transactions (for all snapshots in the last snapshot of each data portion) would then be taken. For example, Fig.9AAn example superset of transactions 910A is illustrated as including five transactions 911 through 915. As an example, the start of the oldest transaction in the set is represented by line 810. This may be the time of the initial state assumed by all additional instances of the storage segment server, and all instances in the instance apply applicable log records starting at line 810 and proceed to a specific point in time 801. This is represented by arrow 811 for data portion 620A and arrow 812 for data portion 620B.
[0064] Alternatively, the oldest transaction is evaluated independently for each data portion, and additionally considers those transactions that affect the corresponding data portion (e.g., include operations that read from or write to the data portion). Fig. 9B , snapshot 641A may include a record of transaction 910B, which may include only transactions that were active at the time of snapshot 641A and that affected data portion 620A. Figure 8B , the start time of the oldest transaction among such transactions is T C Actually at line 841A. The initial state of the additional example of storage segment server 610A may start with the state of data portion 620A at time 841A, and the applicable log entries are applied to the specific point in time 801 (as represented by arrow 813).
[0065] Similarly, for data portion 620B, the oldest transaction of the transactions that were active at the time of snapshot 641B and that affected only data portion 620B is at time T B The initial state of the additional example of storage segment server 610B may start with the state of data portion 620B at time 841B, and the applicable log entries are applied to the specific point in time 801 (as represented by arrow 814).
[0066] This process may be performed to obtain a specific status of all (or at least some) of the corresponding portions of the user data. Figure 7 , these data portions having the particular state can then be aggregated (action 720) to thereby combine at least a partial (or complete) backup of the data at a particular point in time. This can be accomplished even without coordination of snapshots between the various storage server segments.
[0067] Because the principles described herein operate in the context of a computing system, reference will be made to Fig.10Describe a computing system. Computing systems are now increasingly taking a variety of forms. For example, a computing system may be a handheld device, an appliance, a laptop computer, a desktop computer, a mainframe, a distributed computing system, a data center, or even a device that has not conventionally been considered a computing system, such as a wearable device (e.g., glasses, a watch, a band, etc.). In this specification and claims, the term "computing system" is broadly defined to include any device or system (or combination thereof) that includes at least one physical and tangible processor, and a physical and tangible memory on which computer executable instructions executable by the processor can be located. The memory may take any form and may depend on the nature and form of the computing system. The computing system may be distributed over a network environment and may include multiple constituent computing systems.
[0068] like Fig.10 As shown, in its most basic configuration, computing system 1000 generally includes at least one hardware processing unit 1002 and memory 1004. Memory generally includes at least one hardware processing unit 1002 and memory 1004. Memory 1004 can be physical system memory, which can be volatile, non-volatile, or some combination of the two. The term "memory" may also be used herein to refer to non-volatile mass storage devices such as physical storage media. If the computing system is distributed, the processing, memory and / or storage capabilities may also be distributed.
[0069] The computing system 1000 has a number of structures thereon that are often referred to as "executable components." For example, the memory 1004 of the computing system 1000 is illustrated as including an executable component 1006. The term "executable component" is a name for a structure well known to those of ordinary skill in the computing arts, which structure may be software, hardware, or a combination thereof. For example, when implemented in software, one of ordinary skill in the art will understand that the structure of the executable component may include a software object, routine, method that can be executed on the computing system, whether such executable component is present in the computing system's stack or whether the executable component is present on a computer-readable storage medium.
[0070] In such cases, one of ordinary skill in the art will recognize that the structure of the executable component exists on a computer-readable medium such that the structure of the executable component, when interpreted by one or more processors of a computing system (e.g., by a processor thread), causes the computing system to perform a function. Such a structure may be directly computer-readable by the processor (e.g., if the executable component is a binary). Alternatively, the structure may be organized as interpretable and / or compiled (whether in a single stage or in multiple stages) to generate such a binary that is directly interpretable by the processor. When the term "executable component" is used, such an understanding of the example structure of an executable component is well within the understanding of one of ordinary skill in the computing arts.
[0071] The term "executable component" is also well understood by those of ordinary skill in the art to include structures that are implemented exclusively or almost exclusively in hardware, such as in a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or any other special circuit. Therefore, the term "executable component" is a term for a structure that is well understood by those of ordinary skill in the computing field, whether it is implemented in software, hardware, or a combination. In this specification, the terms "component" or "vertex" and the like may also be used. As used in this specification, and in this case, these terms (whether or not modified by modifying clauses) are also intended to be synonymous with the term "executable component" or a specific type of such an "executable component", and therefore also have a structure that is well understood by those of ordinary skill in the computing field.
[0072] In the following description, embodiments are described with reference to actions performed by one or more computing systems. If such actions are implemented in software, then in response to having executed the computer-executable instructions constituting the executable component, one or more processors (of the associated computing system that performs the action) direct the operation of the computing system. For example, such computer-executable instructions may be embodied on one or more computer-readable media forming a computer program product. Examples of such operations involve manipulation of data.
[0073] Computer-executable instructions (and manipulated data) may be stored in memory 1004 of computing system 1000. Computing system 1000 may also contain communication channels 1008 that allow computing system 1000 to communicate with other computing systems over network 1010, for example.
[0074] Although not all computing systems require a user interface, in some embodiments, computing system 1000 includes a user interface 1012 for docking with a user. User interface 1012 may include output mechanism 1012A and input mechanism 1012B. The principles described herein are not limited to precise output mechanism 1012A or input mechanism 1012B, as this will depend on the nature of the device. However, output mechanism 1012A may include, for example, a speaker, a display, a tactile output, a hologram, a virtual reality, etc. Examples of input mechanism 1012B may include, for example, a microphone, a touch screen, a hologram, a virtual reality, a camera, a keyboard, a mouse of other pointer inputs, any type of sensor, etc.
[0075] The embodiments described herein may include or utilize a dedicated or general-purpose computing system including computer hardware (such as, for example, one or more processors and system memory), as discussed in more detail below. The embodiments described herein also include physical and other computer-readable media for carrying or storing computer-executable instructions and / or data structures. Such computer-readable media can be any available media that can be accessed by a general or dedicated computing system. The computer-readable medium storing computer-executable instructions is a physical storage medium. The computer-readable medium carrying computer-executable instructions is a transmission medium. Therefore, by way of example and not limitation, an embodiment may include at least two obviously different types of computer-readable media: a storage medium and a transmission medium.
[0076] Computer-readable storage media includes RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other physical and tangible storage media that can be used to store desired program code components in the form of computer-executable instructions or data structures and can be accessed by a general-purpose or special-purpose computing system.
[0077] A "network" is defined as one or more data links that support the transport of electronic data between computing systems and / or components and / or other electronic devices. When information is transmitted or provided to a computing system via a network or another communication connection (hardwired, wireless, or a combination of hardwired or wireless), the computing system appropriately treats the connection as a transmission medium. The transmission medium may include a network and / or a data link that may be used to carry desired program code in the form of computer executable instructions or data structures and may be accessed by a general or special computing system. Combinations of the above should also be included within the scope of computer-readable media.
[0078] In addition, when implementing various computing system components, program code components in the form of computer executable instructions or data structures can be automatically transferred from a transmission medium to a storage medium (or vice versa). For example, a computer executable instruction or data structure received over a network or data link can be buffered in RAM within a network interface component (e.g., a "NIC") and then ultimately transferred to a computing system RAM and / or a less volatile storage medium at the computing system. Therefore, it should be understood that a readable medium can be included in a computing system component that also (or even primarily) utilizes a transmission medium.
[0079] Computer executable instructions include, for example, instructions and data that, when executed at a processor, cause a general purpose computing system, a special purpose computing system, or a special purpose processing device to perform certain functions or groups of functions. Alternatively or additionally, the computer executable instructions may configure a computing system to perform certain functions or groups of functions. Computer executable instructions may be, for example, binary or even instructions that have undergone some translation (e.g., compilation) before being directly executed by a processor, such as intermediate format instructions (such as assembly language), or even source code.
[0080] Those skilled in the art will recognize that the present invention can be practiced in a network computing environment with many types of computing system configurations, including personal computers, desktop computers, laptop computers, message processors, handheld devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile phones, PDAs, pagers, routers, switches, data centers, wearable devices (e.g., glasses or watches), etc. The present invention can also be practiced in a distributed system environment, in which local and remote computing systems that are linked (or by a hardwired data link, a wireless data link, or a combination of a hardwired link and a wireless data link) through a network both perform tasks. In a distributed system environment, program components can be located in both local memory devices and remote memory storage devices.
[0081] Those skilled in the art will also appreciate that the present invention may be practiced in a cloud computing environment supported by one or more data centers or portions thereof. The cloud computing environment may be distributed, although this is not required. When distributed, the cloud computing environment may be distributed internationally within an organization and / or have components owned across multiple organizations.
[0082] In this specification and the appended claims, "cloud computing" is defined as a model for supporting on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage devices, applications, and services). The definition of "cloud computing" is not limited to any of the other numerous advantages that can be derived from such a model when properly deployed.
[0083] For example, cloud computing is currently being adopted in the market to provide ubiquitous and convenient on-demand access to a shared pool of configurable computing resources. Furthermore, the shared pool of configurable computing resources can be quickly provisioned through virtualization, released with low management effort or service provider interaction, and then scaled accordingly.
[0084] The cloud computing model can consist of various features, such as on-demand, self-service, broad network access, resource pools, rapid elasticity, measured services, etc. The cloud computing model can also take the form of various application service models, such as software as a service ("SaaS"), platform as a service ("PaaS"), and infrastructure as a service ("IaaS"). It can also be deployed using different deployment models such as private cloud, community cloud, public cloud, hybrid cloud, etc. In this specification and claims, a "cloud computing environment" is an environment in which cloud computing is employed.
[0085] The present invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the present invention. The described embodiments are considered to be illustrative and non-restrictive in all respects. Therefore, the scope of the present invention is indicated by the appended claims rather than the foregoing description. All changes falling within the meaning and equivalent scope of the claims should be included within their scope.
Claims
1. A backup combined computing system in a computing environment, the computing environment comprising a plurality of storage segment servers that collectively store user data, each of the plurality of storage segment servers individually storing a portion of the user data, and each of the plurality of storage segment servers taking a snapshot at an independent time, the backup combined computing system include: one or more processors; as well as one or more computer-readable storage media having computer-executable instructions thereon, the computer-executable instructions being executable by the one or more processors to configure the computing system to combine a state of the user data at a point in time and to at least configure the computing system to: identifying the point in time; and Each of the plurality of storage segment servers performs the following: instantiating an additional instance of the storage segment server; causing the additional instance of the storage segment server to assume an initial state, the respective storage segment server having the initial state at or before a last snapshot of the respective portion of the user data stored by the respective storage segment server; causing the corresponding storage segment server to request from a log service one or more applicable log records specific to the corresponding storage segment server from a log comprising a plurality of log records, the plurality of log records including the one or more applicable log records specific to the corresponding storage segment server and log records that are not applicable to the corresponding storage segment server but applicable to one or more other storage segment servers; causing the respective storage segment server to receive the one or more applicable log records specific to the respective storage segment server and not receive the log records that are not applicable to the respective storage segment server; and causing the additional instance of the storage segment server to start in the initial state by applying only the one or more applicable log records specific to the storage segment server to reach a specific state of the corresponding portion of the user data stored by the corresponding storage segment server at the point in time, the one or more applicable log records being applied by the corresponding storage segment server up to the point in time.
2. The computing system of claim 1 , wherein for at least one of the plurality of segment servers, the initial state that the respective segment server has is at or before the start of any transaction prior to the last snapshot of the respective portion and pending at the time of the last snapshot.
3. The computing system of claim 1 , wherein for at least one of the plurality of segment servers, the initial state that the respective segment server has is prior to the last snapshot of the respective portion and at or before the start of any transaction that was pending at the time of the last snapshot and that changes data within the respective portion of the respective segment server. 4 . The computing system of claim 3 , the initial state being at a different log time for each of the additional instances of the plurality of storage segment servers.
5. The computing system of claim 3 , wherein the at least one respective storage segment server of the plurality of respective storage segment servers records the last snapshot and a list of one or more transactions that were pending at the time of the last snapshot and that change data within the respective portion of the respective storage segment server.
6. The computing system of claim 1 , wherein for each of the plurality of segment servers, the initial state that the respective segment server has is at or before the start of any transaction pending at the time of the last snapshot.
7. The computing system of claim 1 , wherein for each of the plurality of segment servers, the initial state that the respective segment server has is at or before the start of any transaction that was pending at the time of the last snapshot and that changes data within the respective portion of the respective segment server.
8. The computing system of claim 7, the initial state being at a different log time for each of the additional instances of the plurality of storage segment servers.
9. The computing system of claim 1, the computer executable instructions further executable to configure the computing system to: The particular state of the respective portion of the data is collected from each of the additional instances of the plurality of storage segment servers to thereby assemble at least a partial backup of the data at the point in time.
10. The computing system according to claim 1, in, The log records for each different storage segment in the plurality of different storage segments are maintained in a single persistent log.
11. The computing system of claim 10, wherein the log record for each different storage segment of the plurality of different storage segments includes a segment identifier, the segment identifier being used to determine whether a log record is an applicable log record requested by the requesting storage segment server.
12. A method in a computing environment, the computing environment comprising a plurality of storage segment servers collectively storing user data, each of the plurality of storage segment servers individually storing a portion of the user data, and each of the plurality of storage segment servers taking a snapshot at an independent time, the method being used to combine a state of the user data at a point in time, the method include: identifying the time point; as well as For each of the plurality of storage segment servers, perform the following: instantiating an additional instance of the storage segment server; causing the additional instance of the storage segment server to assume an initial state, the respective storage segment server having the initial state at or before a last snapshot of the respective portion of the user data stored by the respective storage segment server; causing the corresponding storage segment server to request from a log service one or more applicable log records specific to the corresponding storage segment server from a log comprising a plurality of log records, the plurality of log records including the one or more applicable log records specific to the corresponding storage segment server and log records that are not applicable to the corresponding storage segment server but applicable to one or more other storage segment servers; causing the respective storage segment server to receive the one or more applicable log records specific to the respective storage segment server and not receive the log records that are not applicable to the respective storage segment server; and causing the additional instance of the storage segment server to start at the initial state by applying only the one or more applicable log records specific to the storage segment server to reach a specific state of the respective portion of the data stored by the respective storage segment server at the point in time, the one or more applicable log records being applied by the respective storage segment server up to the point in time.
13. The method of claim 12, wherein for at least one of the plurality of segment servers, the initial state that the respective segment server has is at or before the start of any transaction prior to the last snapshot of the respective portion and pending at the time of the last snapshot.
14. The method of claim 12 , wherein for at least one of the plurality of segment servers, the initial state that the respective segment server has is prior to the last snapshot of the respective portion and at or before the start of any transaction that was pending at the time of the last snapshot and that changes data within the respective portion of the respective segment server.
15. The method of claim 14, the initial state being at a different log time for each of the additional instances of the plurality of segment servers.
16. The method of claim 12, wherein for each of the plurality of segment servers, the initial state that the respective segment server has is at or before the start of any transaction pending at the time of the last snapshot.
17. The method of claim 12, wherein for each of the plurality of segment servers, the initial state that the respective segment server has is at or before the start of any transaction that was pending at the time of the last snapshot and that changes data within the respective portion of the respective segment server.
18. The method of claim 17, the initial state being at a different log time for each of the additional instances of the plurality of segment servers.
19. The method according to claim 12, further comprising: include: The particular state of the respective portion of the data is collected from each of the additional instances of the plurality of storage segment servers to thereby assemble at least a partial backup of the data at the point in time.
20. A computer program product, comprising one or more computer-readable storage media, the computer-readable storage media excluding transmission media and having computer-executable instructions stored thereon, the computer-executable instructions executable by the one or more processors to configure a computing system to combine a state of user data at a point in time in a computing environment, the computing environment comprising a plurality of storage segment servers that collectively store user data, each of the plurality of storage segment servers individually storing portions of the user data, and each of the plurality of storage segment servers taking snapshots at independent times, and by at least configuring the computing system to: Identify the time point ; as well as For each bucket server in the plurality of bucket servers: instantiating an additional instance of the storage segment server; causing the additional instance of the storage segment server to assume an initial state, the respective storage segment server having the initial state at or before a last snapshot of the respective portion of the user data stored by the respective storage segment server; causing the corresponding storage segment server to request from a log service one or more applicable log records specific to the corresponding storage segment server from a log comprising a plurality of log records, the plurality of log records including the one or more applicable log records specific to the corresponding storage segment server and log records that are not applicable to the corresponding storage segment server but applicable to one or more other storage segment servers; causing the respective storage segment server to receive the one or more applicable log records specific to the respective storage segment server and not receive the log records that are not applicable to the respective storage segment server; and causing the additional instance of the storage segment server to start in the initial state by applying only the one or more applicable log records specific to the storage segment server to reach a specific state of the corresponding portion of the user data stored by the corresponding storage segment server at the point in time, the one or more applicable log records being applied by the corresponding storage segment server up to the point in time.
