Access Pattern Driven Data Placement in Cloud Storage
20230164219 · 2023-05-25
Inventors
- Wangyuan Zhang (Fremont, CA, US)
- Vivienne Zhang (Santa Clara, CA, US)
- Pramod Gaud (San Jose, CA, US)
- Sangho Yoon (Palo Alto, CA, US)
- Xudong Shi (Sunnyvale, CA, US)
- Saifeng Yao (Fremont, CA, US)
Cpc classification
H04L67/5681
ELECTRICITY
G06F16/183
PHYSICS
H04L67/52
ELECTRICITY
G06F3/067
PHYSICS
H04L67/06
ELECTRICITY
H04L67/568
ELECTRICITY
H04L65/4015
ELECTRICITY
G06N5/01
PHYSICS
H04L67/1097
ELECTRICITY
International classification
H04L67/1097
ELECTRICITY
G06N5/01
PHYSICS
H04L65/401
ELECTRICITY
H04L67/06
ELECTRICITY
Abstract
A system and method for storing data in a distributed network having a plurality of datacenters distributed over a plurality of geographic regions. The method may involve receiving data, including metadata, uploaded to a first datacenter of the distributed network, receiving access information about previous data that was previously stored in the plurality of datacenters of the distributed network, predicting one or more of the plurality of geographic regions from which the uploaded data will be accessed based on the metadata and the access information, and instructing the uploaded data to be transferred from the first datacenter to one or more second datacenters located at each of the one or more predicted geographic regions.
Claims
1. A method for storing a plurality of data items in a distributed network having a plurality of datacenters distributed over a plurality of geographic regions, the method comprising: receiving, by one or more processors, a plurality of first data items uploaded to the distributed network from a plurality of first users, each first data item including metadata, the metadata including an upload geographic region at which the first data item is uploaded and one or more accessed geographic regions at which the first data item is accessed; training, by the one or more processors, a predictive model using the metadata of the plurality of first data items; after training the predictive model using the metadata of the plurality of first data items, receiving, by the one or more processors, a second data item uploaded to the distributed network by a second user; determining, by the one or more processors, one or more storage geographic regions at which the second data item is to be stored based at least in part on the predictive model, wherein at least one of the one or more storage geographic locations at which the second data item is to be stored is different from the upload geographic region at which the second data item was uploaded; and instructing, by the one or more processors, the second data item to be transferred from the upload geographic region of the second data item to one or more datacenters of the one or more storage geographic regions at which the second data item is to be stored.
2. The method of claim 1, further comprising predicting, by the one or more processors, one or more access geographic regions at which the second data item is predicted to be accessed based on the predictive model, wherein the one or more storage geographic regions at which the second data item is to be stored are determined based on the predicted one or more access geographic regions.
3. The method of claim 1, wherein the predictive model is a decision tree model.
4. The method of claim 1, wherein the metadata further includes, and the predictive model is trained with, at least one of: an identification of a datacenter to which the first data item is uploaded; an identification of an uploading user; a time of upload; a size of the first data item; or a name of the first data item.
5. The method of claim 1, wherein the metadata further includes, and the predictive model is trained with, at least one of: one or more second storage geographic regions at which the first data item is stored; or one or more times at which the first data item is accessed; or a number of access requests for the first data item.
6. The method of claim 1, wherein the plurality of first data items includes at least one data file, wherein the metadata of the data file includes file characteristic data, wherein the file characteristic data includes at least one of: a name of the file; a size of the file; or an identification of a directory or a file path at which the file is stored, and wherein the predictive model is trained at least in part using the file characteristic data.
7. The method of claim 1, further comprising: predicting, by the one or more processors, an amount of time until the second data item will be accessed for a first time; for at least one of the determined storage geographic regions of the second data item, selecting, by the one or more processors, one of a first transfer protocol or a second transfer protocol for transferring the second data item to the at least one storage geographic region, based on the predicted amount of time, wherein an average time for the second data item to arrive at the at least one storage geographic region using the first transfer protocol is less than an average time for the second data item to arrive at the at least one storage geographic region using the second transfer protocol; and transferring, by the one or more processors, the second data item from the upload geographic region of the second data item to the at least one storage geographic region of the second data item according to the selected first or second transfer protocol.
8. The method of claim 7, wherein the first transfer protocol comprises cache injection of the second data item to one or more caching servers located at the at least one storage geographic region.
9. The method of claim 8, wherein the second transfer protocol comprises: instructing, by the one or more processors, the second data item to be included in a file including other uploaded data items having a common storage geographic region as the second data item; and instructing, by the one or more processors, the file to be transferred to one or more datacenters located at the common storage geographic region.
10. The method of claim 9, wherein the first transfer protocol comprises transferring the second data item according to the second transfer protocol in addition to the cache injection.
11. A system for storing a plurality of data items in a distributed network having a plurality of datacenters distributed over a plurality of geographic regions, the system comprising: one or more storage devices configured to store a plurality of first data items uploaded to the distributed network from a plurality of first users, each first data item including metadata, the metadata including an upload geographic region at which the first data item is uploaded and one or more accessed geographic regions at which the first data item is accessed; and one or more processors in communication with the one or more storage devices, the one or more processors configured to: train a predictive model using the metadata of the plurality of first data items; after training the predictive model using the metadata of the plurality of first data items, for a second data item uploaded to the distributed network by a second user: determine one or more storage geographic regions at which the second data item is to be stored based at least in part on the predictive model, wherein at least one of the one or more storage geographic locations at which the second data item is to be stored is different from the upload geographic region at which the second data item was uploaded; and instruct the second data item to be transferred from the upload geographic region of the second data item to one or more datacenters of the one or more storage geographic regions at which the second data item is to be stored.
12. The system of claim 11, wherein the one or more processors are configured to predict one or more access geographic regions at which the second data item is predicted to be accessed based on the predictive model, wherein the one or more storage geographic regions at which the second data item is to be stored are determined based on the predicted one or more access geographic regions.
13. The system of claim 11, wherein the predictive model is a decision tree model.
14. The system of claim 11, wherein the metadata further includes, and the predictive model is trained on, at least one of: an identification of a datacenter to which the first data item is uploaded; an identification of an uploading user; a time of upload; a size of the first data item; or a name of the first data item.
15. The system of claim 1, wherein the metadata further includes, and the predictive model is trained on, at least one of: one or more second storage geographic regions at which the first data item is stored; or one or more times at which the first data item is accessed; or a number of access requests for the first data item.
16. The system of claim 14, wherein the plurality of first data items includes at least one data file, wherein the metadata of the data file includes file characteristic data, wherein the file characteristic data includes at least one of: a name of the file; a size of the file; or an identification of a directory or a file path at which the file is stored, and wherein the one or more processors are configured to train the predictive model based at least in part on the file characteristic data.
17. The system of claim 11, wherein the one or more processors are configured to: predict an amount of time until the second data item will be accessed for a first time; and for at least one of the determined storage geographic regions of the second data item, select one of a first transfer protocol or a second transfer protocol for transferring the second data item to the at least one storage geographic region, based on the predicted amount of time, wherein an average time for the second data item to arrive at the at least one storage geographic region using the first transfer protocol is less than an average time for the second data item to arrive at the at least one storage geographic region using the second transfer protocol; and transfer the second data item from the upload geographic region of the second data item to the at least one storage geographic region of the second data item according to the selected first or second transfer protocol.
18. The system of claim 17, wherein the first transfer protocol comprises cache injection of the second data item to one or more caching servers located at the at least one storage geographic region.
19. The system of claim 11, wherein the second transfer protocol comprises: instruction of the second data item to be included in a file including other uploaded data items having a common storage geographic region as the second data item; and instruction of the file to be transferred to one or more datacenters located at the common storage geographic region.
20. The system of claim 19, wherein the first transfer protocol comprises performance of the second transfer protocol in addition to the cache injection.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0025]
[0026]
[0027]
[0028]
[0029]
DETAILED DESCRIPTION
Overview
[0030] The technology relates generally to a system for efficiently storing uploaded data across a distributed network. The system may include a location predictor or prediction program that predicts the location or locations from which an uploaded data file may be accessed in the future. The prediction may be based on uploading and downloading patterns, also referred to as “access patterns,” of previously uploaded data. Predicting access patterns of newly uploaded data can improve storage efficiency of the uploaded data, since the data can be strategically stored close to those locations from which it will be accessed in the future.
[0031] In some implementations, the prediction program can be stored in a distributed network having multiple virtual machines across one or more datacenters. The uploaded data may begin by being stored in any datacenter of the network. Subsequently, the uploaded data is analyzed by the prediction program, and migrated to one or more other datacenters at which the uploaded data is predicted to be downloaded.
[0032] Predictions may be based on metadata included in each of the uploaded data and the previously uploaded data. For example, metadata of previously uploaded data may be used to train a predictive model, whereby the metadata may be related to various predictors of the model. Metadata of the uploaded data may be the same or similar to that of the previously uploaded data, whereby these similarities between the uploaded data and certain previously uploaded data may indicate a future access pattern of the uploaded data.
[0033] In some implementations, the uploaded data may be transferred to the datacenters using offline data migration techniques. For example, separate large files may be set up to store uploaded data based on the destination datacenter of the data, whereby each large file has a different destination datacenter. Newly uploaded data may then be appended to one or more large files based on the datacenters at which the uploaded data is predicted to be downloaded. Data migration of the uploaded data may then be performed on a per-file basis, for instance, when a given file reaches a certain size limit, or after a predefined amount of time, such as 12 hours, has elapsed.
[0034] In some implementations, the metadata may also be used to predict an urgency for migrating the uploaded data to its destination. For example, in the case of broadcast data, such as a streamed file broadcast from one user and made immediately accessible to other users worldwide, may be in high demand across multiple regions both immediately as well as at a later time offline data migration may take too long to deliver the uploaded data to its destination datacenter. In such a case, identifying an urgency of migrating the data may be used to initiate a cache injection of the uploaded data, whereby the data is transferred to a caching server at the destination datacenter from which the data may be served to users locally. The cache injection may be performed in addition to, and prior to, the offline data migration.
[0035] The above implementations can improve storage service of unstructured data within the distributed network, particularly for distributed networks having multiple datacenters spread out across multiple geographic regions. The improved storage service may make data that is uploaded in one part of the world more readily accessible in other parts of the world where the data is commonly accessed. This in turn can result in cost and time savings for users and service providers, since accessing data from a distant location is generally more costly and more time consuming than accessing data from a nearby location.
Example Systems
[0036]
[0037] The datacenters 110a, 110b, 120a, 120b, 130a, 130b, 140a, 140b may be communicatively coupled, for example, over a network (not shown). The datacenters may further communicate with one or more client devices (not shown) over the network. Thus, for example, a client may execute operations in “the cloud.” Such operations may include uploading and accessing data, such as uploaded data 101. Accessing data may include downloading the data, streaming the data, copying data from one folder or directory to another, or any other means by which data is made accessible in response to a user request received at a server of the system 100. In some examples, the datacenters may further communicate with a controller (not shown); thus, accessing the data may include making the data accessible in response to an instruction from the controller.
[0038] The datacenters 110a, 110b, 120a, 120b, 130a, 130b, 140a, 140b may be positioned a considerable distance from one another. For example, the datacenters may be positioned in various countries around the world. The regions 110, 120, 130, 140 may group datacenters in relative proximity to one another. Further, in some examples the datacenters may be virtualized environments. Further, while only a few datacenters are shown, numerous datacenters may be coupled over the network and/or additional networks.
[0039] As shown in
[0040] Each datacenter may also include a number of storage devices or memory 230, such as hard drives, random access memory, disks, disk arrays, tape drives, or any other types of storage devices. The datacenters may implement any of a number of architectures and technologies, including, but not limited to, direct attached storage (DAS), network attached storage (NAS), storage area networks (SANs), fibre channel (FC), fibre channel over Ethernet (FCoE), mixed architecture networks, or the like. The datacenters may include a number of other devices in addition to the storage devices, such as communication devices 260 to enable input and output between the computing devices of the same datacenter or different datacenters, between computing devices of the datacenters and controllers (not shown) of the network system, and between the computing devices of the datacenters and client computing devices (not shown) connected to the network system, such as cabling, routers, etc.
[0041] Memory 230 of each of the computing devices can store information accessible by the one or more processors 220, including data 240 that is received at or generated by the one or more computing devices 210, and instructions 250 that can be executed by the one or more processors 220.
[0042] The data 240 may include stored data 242 such as uploaded data objects, a metadata log 244 tracking metadata of the uploaded data objects 242, as well as one or more migration files 246 and cached data files 248 at which uploaded data objects 242 may be stored before being transferred from one datacenter to another. Details of the above examples of stored data are discussed in greater detail below.
[0043] The instructions 250 may include a location access prediction program 252 configured to predict the location or locations at which a given data object file is likely to be accessed. Such locations may be one or more regions of the distributed network. The instructions 250 may further include a data migration program 254 and a data caching program 256 configured to execute the transfer of data object files stored in the one or more migration files 246 and cached data files 248, respectively. Details of the above examples of stored programs are also discussed in greater detail below.
[0044] In some examples, the controller may communicate with the computing devices in the datacenters, and may facilitate the execution of programs. For example, the controller may track the capacity, status, workload, or other information of each computing device, and use such information to assign tasks. The controller may include a processor and memory, including data and instructions. In other examples, such operations may be performed by one or more of the computing devices in one of the datacenters, and an independent controller may be omitted from the system.
[0045] The uploaded data 101 uploaded to the datacenters may include metadata, indicating various properties of the uploaded data. The metadata may be logged at the datacenter to which the data is uploaded (in the example of
[0046] The metadata 155 may include an identification of a region, datacenter, or both, to which the data is uploaded. As discussed in greater detail below, because uploaded data is strategically migrated between geographical regions, in some cases the location at which the data is uploaded may differ from the location at which the data is stored. Additionally, in some cases, data may be stored in multiple locations, including or excluding the location to which it is uploaded. In such cases, the metadata may further include an identification of the region, datacenter, or both, at which the data is stored.
[0047] Other metadata may include, but is not limited to, a customer identification of the uploading party, an object name, an object type, an object size, a name of a directory or folder to which the data is uploaded (such as a bucket name used to store the object), an object name prefix (such as a file path of the uploaded object if more than one level of directory hierarchy is used to store the object), a time of upload, a time of first download, subsequent downloads are their times, a number of access requests, and so on. Essentially, the metadata may include both properties of the object, as well as a running access log for the object.
[0048] Additionally, in those cases where the data is stored in multiple locations, it should be recognized that each location may be associated with different metadata for the same data object. For example, the object stored in Region 1 may be downloaded sooner than the same object that is stored in Region 2. For further example, the number of access requests for the object may vary from one location to the next. As such, metadata from the uploaded object may be separately logged at each location where the object is ultimately stored. In the example of
[0049] Metadata for each uploaded object may be tracked across the multiple regions using a metadata aggregator 160. The aggregator 160 may be capable of collecting metadata from the metadata logs of each datacenter on a regular basis, such as according to an aggregation schedule. The aggregated metadata may be timestamped to enable changes in the metadata to be tracked over time. For instance, aggregated logs collected by the metadata log aggregator may be categorized according to a duration of time represented by each aggregated log, such as metadata from the previous week, metadata from the previous month, metadata from the previous three months, metadata from a time period longer than the previous three months, and so on. Differences in metadata across the categorized logs may indicate changes in the uploaded data over time, such as an increasing or a decreasing interest in accessing the uploaded data. Additionally, metadata for a given uploaded data object may be tracked as a whole, or per storage location. Thus, the aggregated logs may indicate overall changes in metadata for a given uploaded data object, as well as region-specific or datacenter-specific changes for the uploaded data object.
[0050] The aggregated data may then be fed to a predictive model 170 in order to train the model 170 to predict where future uploaded data is most likely to be accessed. The predictive model 170 may be a machine learning algorithm stored in the system 100, such as at one of the datacenters of the system. The predictive model may be decision tree model, whereby the aggregated data may include information about how often and from where previous uploaded data was accessed, and thus may associate a cost with the placement of the previously uploaded data in the system. Based on this information, the predictive model 170 may determine strategic placements for future uploaded data based on the access patterns of the past uploaded data.
[0051] In other examples, other types of machine learning algorithms may be applied in order to build the predictive model. Also, more heuristic type methods may be possible, whereby certain information may dictate placement of future uploaded data. For example, if several previously uploaded data objects uploaded by a given user have a threshold number of downloads in certain regions, this may warrant future data objects uploaded by that user to be sent to and stored at the regions having the threshold number of downloads.
[0052] The predictive model 170 may be dynamic. For example, the aggregation of metadata and access logs by the aggregator 160 may occur on a consistent, and possible scheduled, basis, such as once every week, once every two weeks, once every month, or less or more frequently. The frequency at which the model is updated may further depend on the nature of data stored and shared on the particular network to which this system 100 is being applied. That is, for some products having relatively slow change, once a month may be sufficient. However, for other platforms or products where user tendencies are constantly changing and access patterns are constantly shifting, a once-a-month update may be insufficient, as more regular updated of the model, such as once a week, may be preferable.
[0053] Once the predictive model 170 has been trained on previously uploaded and stored data, it may be used to predict where current or future uploaded data will most likely be accessed. In the example of
[0054] Storage in the data server 145 is generally permanent, meaning that the data is intended to be stored there and not moved, and thus may remain stored indefinitely or until manually deleted. By contrast, storage in the migration files 190 and caching server 195 is generally temporary, meaning that the data is intended to be transferred to another location and may deleted automatically at a time after the intended transfer. Data transfer operations are discussed in greater detail below in connection with
[0055] Although the migration files 190 are shown separately from the data server in
[0056] The caching servers 195 may be used by the datacenter for both predictive injection caching as described herein, as well as for on-demand caching for actually data requests (as compared to the speculated requests that trigger injection, as described herein).
[0057] For purposes of illustration, the metadata aggregator 160 and the predictive model 170 of
Example Methods
[0058]
[0059] At block 310, data may be uploaded to a datacenter belong to a first region of the network. The uploaded data may include a data object as well as metadata of the uploaded data object, such as a time of upload, a type of data object, a location from which the object is uploaded, and so on.
[0060] At block 320, access information about previously uploaded data that was previously stored in the network may be received and analyzed. The previously uploaded data may have also included metadata at the time of its upload, and may further have additional metadata that was gathered after the upload, such as metadata indicating a time that the previously uploaded data was accessed, locations from which the previously uploaded data was accessed, and so on.
[0061] At block 330, a prediction as to the geographical regions of the network from which the uploaded data is likely to be accessed may be made. This prediction or determination may be based on the metadata of the currently uploaded data, as well as the access information about the previously uploaded data. Additionally, the prediction may precede the currently uploaded data being accessed, whereby the metadata of the currently uploaded data at a time of upload may be sufficient for the prediction. Patterns recognized in the information of the previously uploaded data may indicate a likely outcome for access of the currently uploaded data, and thus may be used to predict an ideal location to store the currently uploaded data. In many cases, it may be preferable to store the uploaded data at the datacenter to which it is originally uploaded. However, in other cases, it may be preferable to additionally, or alternatively, store the uploaded data in a different datacenter, or even if a different geographical region.
[0062] At block 340, the uploaded data is directed to be transferred from the originating datacenter to other datacenters at which the data is likely to be accessed, The other datacenters may be located in geographical regions other than the first geographical region, thus making access to the uploaded data at those other regions more efficient. Efficiency may be a measure of accessing data faster, costing less overall bandwidth, being performed over connection having more available bandwidth, or any combination of these and other factors.
[0063]
[0064] At block 410, one or more geographical regions from which the currently uploaded data will be accessed are predicted. This prediction may be made by an access prediction program, such as access location predictor 180 shown in
[0065] At block 420, the currently uploaded data may be sent, such as copied or moved, to one or more files designated for migration of uploaded data to a destination region other than the first region, such as migrations files 190 of
[0066] At block 430, an amount of time until the currently uploaded data will be accessed at the predicted geographical regions is predicted. This prediction may also be based on an output from the prediction model. In this case, access logs of previously uploaded data fed to the prediction model as training data should include information from which a direction between upload and a first access of the previously uploaded data can be determined or derived, such as an upload time, and a log of a first time or every time at which the data is accessed. The prediction model may recognize access patterns of the previously uploaded data, and may predict based on those patterns when the currently uploaded data is likely to be accessed.
[0067] At block 440, the prediction of when the currently uploaded data is likely to be accessed may be compared to a threshold value, such as an amount of time from a current time. If the predicted amount of time until the currently uploaded data is accessed exceeds or is equal to the threshold amount, meaning that the currently uploaded data is not expected to be accessed on a relatively immediate basis, then operations may conclude, and the data may be migrated at a relatively slow pace using the one or more migration files. Conversely, if the predicted amount of time until the currently uploaded data is accessed is less than the threshold amount, meaning that the currently uploaded data is expected to be accessed on a relatively immediate basis, then operations may continue at block 450, whereby the currently uploaded data is sent (copied or moved) to a caching server, such as caching server 195 of
[0068] In the example of
[0069]
[0070] In the example of
[0071] In the example of Uploaded object 1 (5010, the access location predictor 520 determines that this object is likely to be accessed at Region 2. Therefore, object 1 is moved from the data server to migration file 534, which may be a file dedicated for objects that are to be migrated from the datacenter at which object 1 is uploaded to Region 2.
[0072] As shown in
[0073] In some examples, the migration file may have a predetermined capacity, whereby when moving or copying an object to the migration file causes the migration file to meet or exceed the predetermined capacity, the migration file may transferred to one or more datacenters of the destination region. Additionally, or alternatively, the migration file may be transferred to one or more datacenters of the destination region after a predetermined amount of time has elapsed since creation of the migration file. Operations for transferring the objects are described in greater detail below in connection with
[0074] If it is determined that the object is likely to be accessed from only one region, so then the object may be moved to a single destination, such as in the example of Object 1 (501.sub.1). However, in other cases, it may be determined that an object is likely to be accessed from more than one region, including or excluding the region at which the object is uploaded. In such a case, the access location predictor 520 may determine to move or copy the object to more than one migration file.
[0075] In the example of Uploaded object 2 (5012) the access location predictor 520 determines that this object is likely to be accessed at each of Regions 1, 3 and 4. Therefore, object 2 is copied from the data server to each of migration files 532 and 536, which may be files dedicated for objects that are to be migrated from the datacenter at which object 2 is uploaded to Regions 1 and 3. The object may also remain permanently stored at the data server so that it may be accessed at Region 4.
[0076] As noted above, migration of objects from one region to another may begin after the file has been filled with several data objects. Since the migration file may be large, it may take time before the migration file is filled. However, in some cases, a data object may be in high demand at a remote region of the network, but only for a time before the data migration occurs. In this case, the slow-paced strategic relocation of data objects using migration files would undermine the ability for users of the other regions to efficiently access the data object while it is in high demand. For example, if a user is streaming live video in Europe and several users in the United States wish to access the streamed video immediately, waiting for the video file to migrate from a datacenter in Europe to a datacenter in the United States would not be helpful, and there may not even be a demand for the streamed video anymore after it is stored in the datacenter in the United States.
[0077] In order to address this challenge, the object file may include metadata from which it may be determined how soon after the data is uploaded that it will be accessed. For example, in the system of
[0078] In the example of Uploaded object 3 (5013) the access location predictor 520 determines that this object is likely to be in high demand within a threshold amount of time. Therefore, object 3 is copied from the data server to a caching server 550, so that the file may be injected to the caching servers of remote datacenters in Region 4 as well as in other regions, including but not limited to Region 1, Region 2 and Region 3, based on the determinations of the access location predictor 520. Object 3 may remain stored at the data server of the datacenter.
[0079] In many cases, it may be determined that an uploaded object is likely to be accessed from only the region at which it was uploaded. This may be the case for personally stored files that are not shared among users, or for files that shared among a group of users in close geographic proximity to one another. In such cases, the access location predictor 520 may determine that the uploaded object should not be copied to either a migration file 532, 534, 536 or to a caching server 550. Instead, the object remains stored at a data server of the datacenter where the object was uploaded. In the example of Uploaded object 4 (5014) the access location predictor 520 determines that this object is likely to be accessed at only the originating Region 4. Therefore, object 4 is not copied from the data server.
[0080] It should be noted that keeping a file at a data server, copying the file to a migration file, or copying the file to a caching server, may be treated as independent operations. Thus, the decision to perform one operation does not preclude any other operation from being performed. For example broadcast data, such as a streamed video file, may be in high demand across multiple regions both immediately as well as at a later time. In such a case, it may be determined that the file should remain in the originating data server, as well as copied to both a migration file and caching server to address both long term and short term demand. The determination may be based at least in part on the uploaded data being broadcast data, as well as on other access patterns detected by the predictive model.
[0081] In the example of Uploaded object N (501.sub.N) the access location predictor 520 determines that this object is likely to be in high demand within a threshold amount of time, as well as at a later time, at both Regions 3 and 4. Therefore, object N is copied from the data server to both migration file 536 and caching server 550, so that the object may be injected to the caching servers of Region 3 to address immediate demand, as well as migrated to permanent storage of Region 3 to address long term demand.
[0082]
[0083] In operation, moving the contents of the migration files 644 of the Region 4 datacenter 640a may begin with a data migration controller 650 of the system 600 executing a program whereby the datacenter 610a is queried for files of data stored in its servers. The processor 642 may receive the query, and in response may provide information indicating the destination of each file. In the case of files to be stored at Region 4, whereby the destination is Region 4, the data migration controller 650 may take no further action. Conversely, in the case of files to be stored at other regions, such as Regions 1 and 2, whereby the destination indicated by the file is not Region 4, the data migration controller 650 may determine to initiate a migration of data from the files to the identified destinations. The data migration controller 650 may transmit an instruction to one or more processors of each identified destination, such as processors 612, 622. Based on these instructions, the processors may instruct data servers 614, 624 at their respective locations to perform the data migration, whereby each data server 614, 624 may access and read the respective migration file 644 at Region 4. After reading the migration file 644, the contents of the migration file 644 may be deleted. This process may be repeated for future data objects that are uploaded to the datacenter 610a in Region 4 (640).
[0084] Moving the contents of the caching server 646 of the Region 4 datacenter 640a may begin with the server 646 prefetching the data to be transferred, and injecting it to caching servers 616, 626 of remote datacenters according to instructions of the access location predictor. The injection may be performed on a relatively immediate scale, meaning that there are no further steps to be executed prior to initiating the data injection. This may make the data available in the other datacenters as fast as possible. Unlike data migration, in which data may be stored at a fixed and limited number of datacenters and a fixed and limited number of locations of a destination region, cache injection may place copies of the uploaded and transferred object in multiple datacenters of any given region to which it is sent, including but not limited to caches of all datacenters of the destination region. This may allow for on-demand data to be accessed by many users in a short period of time. Synchronous cache injection is relatively fast and efficient, compared to synchronous replication.
[0085] The above examples refer to data distribution schemes according to datacenters and regions. However, those skilled in the art will readily recognize that the same principles may be applied to other systems in which data is organized differently. The underlying principle is that some portions of a large scale network, such as a global network may be closer to any given user than other parts of the network, and to the extent that one may predict the locations from which data will be accessed, it may be advantageous to move the data after it has been uploaded to closer to those locations where it will be accessed. To this extent, if it can be predicted that a particular one or group of users are likely to access the data in the future, that the data can be moved to datacenters, servers, or other units storage that are closer to the predicted accessing users.
[0086] Additionally, the above examples generally describe locations as being closer to a user when that location is geographically closer. However, those skilled in the art will recognize that “closeness” of data is not necessarily a measure of geographic distance, but rather a measure of cost to access data. Thus, when data is positioned “closer” to a user or group of user, or “closer” to a location from which the data is predicted to be accessed, the location may be chosen so as to reduce overall costs for accessing the data, such as bandwidth, time, fees for bandwidth use being contracting parties, any combination of these or other factors.
[0087] Although the technology herein has been described with reference to particular embodiments, it is to be understood that these embodiments are merely illustrative of the principles and applications of the present technology. It is therefore to be understood that numerous modifications may be made to the illustrative embodiments and that other arrangements may be devised without departing from the spirit and scope of the present technology as defined by the appended claims.