The present application claims priority to U.S. patent application Ser. No. 17/125,236, filed on Dec. 17, 2020, the disclosure of which is incorporated herein by reference for all purposes.
When executing, computer programs and computing processes may often require access to data stored in long-term storage. Such data may be stored using various file system technologies. For example, data may be stored in databases implementing particular file systems. Certain implementations include localized file systems executing on a single computing device and distributed file systems executing on multiple computing devices.
The present disclosure presents new and innovative systems and methods for implementing and managing distributed file systems. In one aspect, a method is provided that includes creating a plurality of containers within a cloud computing environment and executing, within the plurality of containers, a plurality of gateways for a distributed file system. Exports of the distributed file system may be assigned to a subset of the plurality of gateways. The exports may correspond to an exclusive subset of the distributed file system. The method may also include responding to requests to access exports of the distributed file system using containers executing gateways assigned to corresponding exports of the distributed file system.
In a second aspect, a system is provided that includes at least one memory and at least one processor configured to implement a cloud computing environment. Multiple containers may execute within the cloud computing environment and multiple gateways for a distributed file system may execute within the plurality of containers. A subset of the plurality of containers may be assigned to exports of the distributed file system. The exports may correspond to an exclusive subset of the distributed file system. Requests to access exports of the distributed file system may be responded to using containers executing gateways assigned to corresponding exports of the distributed file system.
The features and advantages described herein are not all-inclusive and, in particular, many additional features and advantages will be apparent to one of ordinary skill in the art in view of the figures and description. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and not to limit the scope of the disclosed subject matter.
Different types of file systems may be preferable for use in different types of computing systems. In one specific example, stateful protocols may be used by client devices to access and interact with gateways providing access to the distributed file system. For instance, a distributed file system may be implemented by a network file system (NFS) protocol, such as the NFSv4 protocol. Typically, such distributed file systems are implemented by creating and configuring gateways for the distributed file system on particular, dedicated computing hardware (or dedicated portions of computing hardware). These gateways may be initialized and assigned to handle requests for a particular portion of the distributed file system.
However, once a configuration for a distributed file system is set, it may typically be difficult to expand or otherwise alter the gateways assigned to the distributed file system. In particular, manual intervention may typically be required, with an administrator necessary to recognize bottlenecks, approve reassignments, and/or add gateways to the distributed file system. This can result in performance delays, as particular gateways field larger numbers of requests than others, increasing response latency for the particular gateways. Furthermore, because the gateways may typically be implemented by discrete, assigned computing hardware, it may be difficult both to assign greater computing resources to respond to increased request loads and to add new gateways to the distributed file system. Therefore, there exists a need to enable both computing resource allocation expansion and control for distributed file systems (“horizontal scaling”) and to enable gateways to be easily added to and removed from distributed file systems (“vertical scaling”).
One solution to this problem is to use one or more containers within a cloud computing environment to implement gateways for a distributed file system. In particular, gateways may be configured to receive and process requests to access subsets of the distributed file system (e.g., requests to access “exports” of the distributed file system). Gateways for the distributed file system may be implemented by one or more containers. Individual containers may be assigned to respond to one or more exports associated with the gateways. Distributing the workload for the gateways in this manner may enable both vertical and horizontal scaling of the distributed file system, allowing both additional containers to be assigned to process particular exports of the distributed file system and gateways to be added to the distributed file system as needed (e.g., to address geographical distribution of computing processes accessing the distributed file system.
The cloud computing environment 102 contains a distributed file system 108. The distributed file system 108 may store data for use by computing processes executing on the cloud computing environment 102. For example, while executing, the computing processes (e.g., containers or virtual machines implementing the computing processes) may access the distributed file system 108 to read and/or write data within the distributed file system 108. In particular, the distributed file system 108 may be accessible via one or more gateways 114, 116, 118 contained within the distributed file system 108. For example, the distributed file system 108 may be implemented as an NFS file system (e.g., an NFSv4 file system) and the gateways 114, 116, 118 may be implemented as NFS gateways or similar (e.g., NFS daemons, NFS nodes, NFS clusters). The gateways 114, 116, 118 may be configured to receive and process requests to access data stored within the distributed file system 108 and/or to store or update data within the distributed file system 108. Each of the gateways 114, 116, 118 may be assigned to process requests for an exclusive subset of the distributed file system 108. For example, the gateways 114, 116, 118 may be assigned particular exports of the distributed file system 108, as discussed further below.
In practice, each of the gateways 114, 116, 118 may be implemented using containerization. In particular, each of the gateways 114, 116, 118 may be implemented by one or more containers 120, 122, 124, 126, 128, 130 created by the cloud computing environment 102. For example, the gateways 114, 116, 118 may be implemented as clusters of containers 120, 122, 124, 126, 128, 130 (e.g., “gateway clusters”). In particular, each of the containers 120, 122, 124, 126, 128, 130 that implement a particular gateway 114, 116, 118 may be assigned to respond to requests for different portions of the distributed file system 108 assigned to the corresponding gateway 114, 116, 118. For example, the containers 120, 122, 124, 126, 128, 130 may be assigned to respond to requests for one or more exports of the distributed file system 108.
The distributed file system 108 also includes a location map 112. The location map 112 may store associations between certain portions of the distributed file system 108 (e.g., certain exports of the distributed file system 108) gateways 114, 116, 118, such as addresses to which requests can be sent. In certain instances, each container 120, 122, 124, 126, 128, 130 may be assigned to manage all exports assigned to a corresponding gateway 114, 116, 118. In such instances, the location map 112 may store mappings between particular exports and an identifier of the gateway 114, 116, 118 (e.g., an address for the gateway 114, 116, 118). In additional or alternative implementations, different containers 120, 122, 124, 126, 128, 130 may manage different exports assigned to the gateways 114, 116, 118 and the location map 112 may store mappings between particular exports and an identifier of the container 120, 122, 124, 126, 128, 130 implementing the export (e.g., an address for the container 120, 122, 124, 126, 128, 130). The location map 112 is discussed in greater detail below in connection with
The gateways 114, 116, 118 may be created and updated by a load balancer 110 of the distributed file system 108. The load balancer 110 may be responsible for creating new gateways 114, 116, 118, removing existing gateways 114, 116, 118, adding new containers 120, 122, 124, 126, 128, 130 to particular gateways 114, 116, 118, and/or removing certain containers 120, 122, 124, 126, 128, 130 from particular gateways 114, 116, 118. In particular, the load balancer 110 may be configured to add or remove gateways 114, 116, 118 and/or containers 120, 122, 124, 126, 128, 130 to the distributed file system 108 based on current workloads for existing gateways 114, 116, 118 and/or containers 120, 122, 124, 126, 128. For example, if a particular container 122 of a gateway 114 is experiencing substantially higher request loads than other containers 120, 124 of the gateway 114, the load balancer 110 may add a new container to the gateway 114. Additionally or alternatively, the load balancer 110 may reassign all or part of the exports assigned to the container 122 to the other containers 120, 124. In additional or alternative implementations, if a single container 126 implementing a gateway 116 experiences requests greater than a particular threshold, the load balancer 110 may create a new container to implement the gateway 116 and may assign a portion of the exports for the gateway 116 to the new container. As a further example, if a request is received for a portion of the distributed file system 108 that is not assigned to a gateway, or that is assigned to a gateway implemented by computing devices located far away from a requesting computing device, the load balancer 110 may create a new gateway executing within a new corresponding container for the distributed file system 108 and may assign the requested portion of the distributed file system 108 to the new gateway. Gateway and container scaling are discussed in greater detail below in connection with
As explained further below, adding and removing gateways and containers to the distributed file system 108 may improve both resource utilization by the distributed file system 108 and response latency, as computing resources (and corresponding containers) are assigned to portions of the distributed file system and corresponding gateways that are experiencing the highest request loads. Furthermore, adding additional gateways may improve colocation of the distributed file system 108 with requesting computing processes. Furthermore, using multiple containers to implement gateway clusters improves reliability of the gateway clusters. For example, having multiple containers in a cluster assigned to manage all or part of the exports of a particular gateway may enable improved uptime if one of the containers fails, as each container in the cluster can participate in recovery of the exports (e.g., through coordinated grace periods).
In practice, the cloud computing environment 102 may communicate with the client devices 104, 106 via one or more networks. Furthermore, multiple computing devices implementing the cloud computing environment 102 may communicate with one another via one or more networks. In particular, communications with the one or more may utilize one or more wired network interfaces (e.g., Ethernet interfaces) and/or wireless network interfaces (e.g., Wi-Fi®, Bluetooth®, and/or cellular data interfaces). In certain instances, the network may be implemented as a local network (e.g., a local area network), a virtual private network, L1 and/or a global network (e.g., the Internet).
The cloud computing environment 102 includes a memory 132 and a processor 134. The memory 132 and the processor may implement one or more aspects of the cloud computing environment 102. For example, the memory 132 and the processor 134 may implement the distributed file system 108 and corresponding containers 120, 122, 124, 126, 128, 130. In practice, as explained above, the cloud computing environment 102 may be implemented by multiple computing devices. In such instances, the memory 132 and the processor 134 may be implemented by multiple memories and/or multiple processors of the multiple computing devices implementing the cloud computing environment 102. Furthermore, although not depicted, the client devices 104, 106 may similarly contain memories and/or processors configured to implement one or more operational features of the client devices 104, 106.
The gateway 204 is implemented by two containers 206, 208. Each container 206 is responsible for implementing one or more exports 212, 214, 216, 218. Each of the exports 212, 214, 216, 218 may correspond to a particular, exclusive subsets of the distributed file system 108. For example, the exports 212, 214, 216, 218 may correspond to particular subtrees and/or subdomains of the distributed file system 108. The exports 212, 214, 216, 218 may serve as an access point for a shared subdirectory of the distributed file system 108 (e.g., a subdirectory available for access by computing processes). In particular, the exports 212, 214, 216, 218 may contain or access one or more copies of data stored within the shared subdirectory. In certain instances, the exports 212, 214, 216, 218 may provide access to one or more child directories of an assigned subdirectory, such as all child directories that have not themselves been assigned to a particular export 212, 214, 216, 218. In certain implementations, the exports 212, 214, 216, 218 may be implemented as NFS exports for the distributed file system 108.
Each of the exports 212, 214, 216, 218 may correspond to one or more computing processes 220, 222, 224, 226. For example, the computing processes 220, 222, 224, 226 may be executing and accessing (e.g., reading or writing) data stored within the exports 212, 214, 216, 218 (e.g., data stored within corresponding portions of the distributed file system 108). In response to requests received from the computing processes 220, 222, 224, 226, the containers 206, 208 may provide copies of data and/or may update data stored within the corresponding portions of the distributed file system 108.
The computing processes 220, 222, 224, 226 may be configured to transmit requests directly to the containers 206, 208 implementing the exports 212, 214, 216, 218. For example, the location map 210 may store information regarding which exports 212, 214, 216, 218 are assigned to which containers 206, 208. In particular, the location map 210 may store export identifiers 228, 230, 232, 234 associated with container identifiers 236, 238. The export identifiers 228, 230, 232, 234 may identify a particular portion of the distributed file system 108 (e.g., a particular subtree or particular subdirectory) corresponding to an export 212, 214, 216, 218. The container identifier 236, 238 may identify the containers 206, 208 implementing the exports 212, 214, 216, 218. Additionally or alternatively, the container identifiers 236, 238 may identify an address for the containers 206, 208 to which requests to access the exports 212, 214, 216, 218 may be transmitted. As depicted, the export identifier 228 may correspond to the exports 212, the export identifier 230 may correspond to the exports 214, the export identifier 232 may correspond to the export 216, and the export identifier 234 may correspond to the export 218. As further depicted, the container identifier 236 may correspond to the container 206 and the container identifier 238 may correspond to the container 208.
To initially request data from the distributed file system 108, the computing processes 220, 222, 224, 226 may query the location map 210 for corresponding container identifier 236, 238. The computing processes 220, 222, 224, 226 may then transmit the request directly to the container 206, 208 based on the container identifier 236, 238. In certain implementations, the container identifier 236, 238 may be stored and future requests to access the exports 212, 214, 216, 218 may be transmitted directly to the containers 206, 208 using the previously-stored container identifier 236, 238.
The load balancer 202 may be responsible for creating the containers 206, 208 that implement the gateway 204. For example, the load balancer 202 may be configured to create the containers 206, 208 and to assign the exports 212, 214, 216, 218 managed by each of the containers 206, 208. The load balancer 202 may also monitor operating conditions for the containers 206, 208, such as a number of requests fulfilled by the containers 206, 208 and/or in amounts of computing resources utilized by the containers 206, 208. In certain instances, the load balancer 202 may create new containers 206, 208 and/or may adjust the allocation of exports 212, 214, 216, 218 between the containers 206, 208.
As one specific example, and turning to
In response, the load balancer 202 may create a new container 302 associated with the gateway 204. For example, the load balancer 202 and/or the distributed file system 108 may request the cloud computing environment 102 to create a new container 302 and to assign computing resources (e.g., from the memory 132 and the processor 134) to implement the container 302. The load balancer 202 may then assign the export 218 of the gateway 204 to the container 302, such that the container 302 will respond to requests to access, add, and/or update data within a portion of the distributed file system 108 corresponding to the export 218. The location map 210 may then be updated (e.g., by the load balancer 202, by the distributed file system 108) to add a container identifier 304 associated with the container 302 (e.g., containing an address for the container 302) and reassign the export identifier 234 to the container identifier 304.
The next time the computing process 226 attempts to access the export 218, the computing process 226 may transmit a request to the container 208. In response, the container 208 may transmit an error message because the export 218 is no longer assigned to the container 208. In response to the error message, the computing process 226 may query the location map 210 for the container identifier 304. The computing process 226 may then receive the container identifier 304 and may transmit the request to the container 302 via the address specified in the container identifier 304. In this way, new containers 302 can be added to a gateway 204 of the distributed file system 108 without interrupting operation of the distributed file system 108.
It should be understood that the above scenario 300 is merely exemplary implementation. In practice, the load balancer 202 may respond to overloaded containers 208 in different ways. For example, more than one container 302 may be added to the gateway 204 (e.g., if multiple exports 216, 218 receiving disproportionately large request volumes). Additionally or alternatively, rather than creating a new container 302, the load balancer 202 may reassign and export 218 to a different container 206 that is not currently experiencing high request loads. In such scenarios, the location map 210 may still be updated with a container identifier 236 corresponding to the newly assigned container 206.
Returning to
As one specific example, and turning to
In response to receiving such a request, the load balancer 202 may create a new gateway 312 for the distributed file system 108 and may assign the new gateway 312 to manage an export 316 corresponding to the first directory that has not been directly assigned to a particular gateway 204 of the distributed file system 108 previously. In particular, while creating the new gateway 312 for the distributed file system 108, the distributed file system 108 may create a new container 314 responsible for implementing the new gateway 312. For example, the load balancer 202 and/or the distributed file system 108 may request that the cloud computing environment 102 create the new container 314 and assign computing resources (e.g., from the memory 132 and the processor 134) to implement the container 314. In certain instances, the container 314 may be created on a computing device located near the computing process 318 from which the request to access the first directory was received. An export 316 associated with the first directory may then be assigned to the container 314. The location map 210 may also be updated by adding export identifier 320 associated with the export 316 and a container identifier 322 associated with the container 314 (e.g., containing an address for the container 314).
In response to the request, the computing process 318 may receive an error from the container to which the request was transmitted, indicating that the export 316 is not assigned to that container. The computing process 318 may query be location map 210 for the container identifier 322 associated with the export identifier 320. The computing process 318 may then receive the container identifier 322 and may transmit the request to the container 314 via the address specified in the container identifier 322. In this way, new gateways can be added to a distributed file system 108 without interrupting operation of the distributed file system 108.
It should be understood that the implementations discussed above in connection with
The method 400 may begin with creating a plurality of containers within a cloud computing environment (block 402). For example, a plurality of containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 may be created within a cloud computing environment 102. The containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 may be created in a response to implement a distributed file system 108. For example, a request may be received to initialize a distributed file system 108 (e.g., from a computing process executing on the cloud computing environment 102). Additionally or alternatively, a request may be received to begin executing a computing process that identifies the distributed file system 108 as a dependency for the computing process, and the containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 may be created in response to identifying the dependency. The containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 may be created by the cloud computing environment 102 and/or may be created by a load balancer 110, 202 associated with the distributed file system 108.
A plurality of gateways for the distributed file system may be executed within the plurality of containers (block 404). For example, a plurality of gateways 114, 116, 118, 204, 312 for the distributed file system 108 may execute within the plurality of containers 120, 122, 124, 126, 128, 130206, 208, 302, 314. In particular, each gateway 114, 116, 118, 204, 312 for the distributed file system 108 may be implemented by one or more containers 120, 122, 124, 126, 128, 130. Container identifiers 236, 238, 304, 322 for containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 assigned to implement particular gateways 114, 116, 118, 204, 312 of the distributed file system 108 may be added to a location map 210 associated with the distributed file system 108.
Exports of the distributed file system may be assigned to a subset of the plurality of gateways (block 406). For example, at least a subset of the gateways 114, 116, 118, 204, 312 may be responsible for responding to requests to access, add, or update data stored within particular, exclusive subsets of the distributed file system 108. In particular, exports 212, 214, 216, 218, 316 corresponding to exclusive subsets of the distributed file system 108 may be assigned to the gateways 114, 116, 118. In one example, all exports assigned to a particular gateway 114, 116, 118, 204, 312 may be assigned to each of the containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 implementing the gateways 114, 116, 118, 204, 312. In another example, particular exports 212, 214, 216, 218, 316 may be assigned to individual containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 implementing the gateways 114, 116, 118, 204. The exports 212, 214, 216, 218, 316 may be assigned to the containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 based on various considerations. For example, the exports 212, 214, 216, 218, 316 may be assigned according to a previous implementation configuration for the distributed file system 108 (e.g., the configuration the last time the distributed file system 108 was implemented). Additionally or alternatively, the exports 212, 214, 216, 218, 316 may be assigned based on the computing process whose request triggered initialization of the distributed file system 108. In still further implementations, the distributed file system 108 may be initialized with a single container implementing a single gateway, and additional containers and/or gateways may be added to the distributed file system 108 using techniques similar to those discussed herein in connection with the scenarios 300, 310 and the methods 500, 510. The location table 112, 210 may be updated based on how the exports 212, 214, 216, 218, 316 are assigned to the gateways 114, 116, 118, 204, 312. For example, the location map 112, 210 may be updated to include export identifiers 228, 230, 232, 234, 320 corresponding to the assigned exports 212, 214, 216, 218, 316. In particular, the export identifiers 228, 230, 232, 234, 320 may be added to the location map 112, 210 in association with gateway identifier of an assigned gateway 114, 116, 118, 204, 312 and/or a container identifier 236, 238, 304, 322 of an assigned container 120, 122, 124, 126, 128, 130, 206, 208, 302, 314.
Requests to access exports of the distributed file system may be responded to using containers executing gateways assigned to corresponding exports of the distributed file system (block 408). For example, the distributed file system 108 may respond to requests from computing processes 220, 222, 224, 226, 318 to access particular portions (e.g., particular exports, particular subtrees, particular subdirectories) of the distributed file system 108 using containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 that implement corresponding exports 212, 214, 216, 218, 316. In particular, as explained above, before requesting access to the distributed file system 108, computing processes 220, 222, 224, 226, 318 may request a gateway identifier for a corresponding gateway 114, 116, 118, 204, 312 and/or a container identifier 236, 238, 304, 322 for a corresponding container 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 implementing an export 212, 214, 216, 218, 316 used to access the desired subdirectory or subtree of the distributed file system 108. The gateway identifier and/or the container identifier 236, 238, 304, 322 may identify an address that may be used to communicate with the corresponding gateway 114, 116, 118, 204, 312 (e.g., gateway cluster) and/or container 120, 122, 124, 126, 128, 130, 206, 208, 302, 314. The computing processes 220, 222, 224, 226, 318 may then transmit a request to the specified address in order to access the distributed file system 108. In response, the containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 may process the request, providing access to corresponding portions of the distributed file system (e.g., by providing copies of data within the distributed file system 108, by updating data stored within the distributed file system 108, and/or by adding data to the distributed file system 108).
In this way, the method 400 enables the provisioning of a distributed file system within a cloud computing environment using one or more containers to implement gateways for the distributed file system. Implementing distributed file systems using multiple containers improves the flexibility of how the distributed file systems are deployed. Containerized implementations of distributed file systems and associated gateways may also improve the security of access requests to the distributed file system. For example, the distributed file system may be implemented as part of a cloud computing environment that executes many computing processes associated with multiple users (e.g., multiple entities). The distributed file system may store sensitive or confidential data that should only be accessed by the entity that requested it be implemented. Accordingly, to protect such access, the containers that implement the distributed file system may be configured to only respond to requests that are received from other containers associated with the same entity. For example, a container that receives a request from a particular computing process may analyze metadata associated with a container implementing the computing process. If the metadata indicates that the container implementing the computing process is associated with the same entity as the container implementing the gateway of the distributed file system, the container may proceed with processing the request. If not, the container may determine that the request is unauthorized and may halt processing of the request and/or may transmit an error message (e.g., to an administrator of the cloud computing environment, to the entity associated with the container). In this way, containerized implementations of distributed file systems may ensure that the distributed file system is only accessed by authorized users and authorized computing processes.
Furthermore, and as discussed further below, container-based implementations enable both vertical scaling, where additional gateways can be added to the distributed file system without interrupting access to the distributed file system, and horizontal scaling, where additional containers and computing resources can be added to implement a particular gateway without interrupting access to the distributed file system. Accordingly, such distributed file systems are better able to scale and reallocate resources to respond to changing demand across various exports of the distributed file system. This may help reduce overall computing resource utilization and/or reduce response latency.
To horizontally scale a distributed file system, the method 500 may begin with creating a new container associated with a first gateway (block 502). For example, a load balancer 110, 202 of the distributed file system 108 may determine that a request volume for at least one of the containers 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 implementing the distributed file system 108 exceeds a predetermined threshold. The predetermined threshold may include a total number of requests received in a predetermined period of time (e.g., requests per second, requests per minute) exceeding a predetermined number (e.g., 1000 requests per second, 10,000 requests per second, 100,000 requests per second). The predetermined threshold may additionally or alternatively include the container receiving a percentage of the total requests received for the distributed file system 108 exceeding a predetermined threshold (e.g., 5% of the requests, 10% of the requests, 25% of the requests, 50% of the requests). Additionally or alternatively, the predetermined threshold may include a percentage of requests received by a particular container 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 received for a particular export 212, 214, 216, 218, 316 exceeding a predetermined threshold (e.g., 10% of the requests received by the container, 25% of the requests received by the container, 50% of the requests received by the container, 75% of the requests received by the container). In still further implementations, the predetermined threshold may include one or more performance metrics for the container 120, 122, 124, 126, 128, 130, 206, 208, 302, 314. For example, the predetermined threshold may include one or more of a request response latency for the container 120, 122, 124, 126, 128, 130, 206, 208, 302, 314 and/or a total computing resource utilization (e.g., number of CPU cores, percentage of memory capacity) utilized by the container 120, 122, 124, 126, 128, 130, 206, 208, 302, 314. In response to determining that a predetermined threshold has been exceeded, the balancer 110, 202 may proceed with creating a new container. In one specific example, the load balancer 202 may determine that a request response latency for the container 208 exceeds a predetermined threshold (e.g., 50 ms, 100 ms). In response, the load balancer 202 may create a new container 302 associated with the same gateway 204 as the container 208.
An export may be removed from at least one container (block 504). For example, the load balancer 202 may remove an export 218 from the container 208 associated with the gateway 204. The container 208 may be identified as the container whose request volume and/or performance metrics exceed a predetermined threshold. Additionally or alternatively, we container 208 may be identified as the container with the highest request load. The export 218 removed from the container 208 may be selected as the export 218 with the highest request load. Additionally or alternatively, the exports 218 may be selected such that a predicted request load for the container 208 in the container 302 (e.g., predicted based on recent request loads for the exports 214, 216, 218 originally implemented by the container 208) is approximately equal. For example, the export 218 may have approximately the same number of requests as the exports 214, 216 combined. Accordingly, the export 218 may be selected. In additional or alternative implementations, the load balancer 202 may select more than one export to remove the container 208. For example, in additional alternative implementations, the load balancer 202 may select to remove the exports 214, 216 from the container 208 instead of the exports 218. In removing the export 218 from the container 208, the load balancer 202 and/or the distributed file system 108 may update the location map 210 for the distributed file system 108. For example, the location map 210 may be updated to remove an association between an export identifier 234 associated with the export 218 and a container identifier 238 associated with the container 208.
The exports may be assigned to the new container (block 506). For example, the export 218 may be assigned to the new container 302. In particular, the load balancer 202 may transmit an indication to the container 302 of the exports 218, including a copy and/or a reference of the subset of the distributed file system 108 to be serviced by the container 302. Additionally, the location map 210 may be updated to include an association between the export identifier 234 associated with the export 218 and a container identifier 304 associated with the container 302.
Turning now to
A new container may be created within the cloud computing environment (block 514). For example, a new container 314 may be created within the cloud computing environment 102 implementing the distributed file system 108. The new container 314 may be implemented using techniques similar to those discussed above in connection with block 502 of the method 500. In certain instances, the new container 314 may be implemented on the same computing device as the computing process 318. In additional or alternative implementations, the container 314 may be implemented on a computing device located near the computing device implementing the computing process 318.
A new gateway may be executed within the new container for the distributed file system (block 516). For example, a new gateway 312 may be executed within the new container 314. The new gateway 312 may be configured to route and respond to requests to access portions of the distributed file system 108.
A new export associated with the unassigned portion of the distributed file system may be assigned to the new gateway (block 518). For example, a new export 316 may be assigned to the new gateway 312. In particular, the new export 316 may be assigned to the new container 314 implementing the gateway 312 such that requests to access data associated with the export 316 are processed and responded to by the container 314. In particular, the export 316 may be associated with the unassigned portion of the distributed file system 108 identified in the request received by the computing process 318. Assigning the new export 316 to the new container 314 and the new gateway 312 may include updating the location map 210. In particular, the location map 210 may be updated to include an association between an export identifier 320 associated with the new export 316 and a container identifier 322 associated with the new container 314. As explained further above, in response to the initial request, the computing process 318 may receive an error message indicating that the requested portion of the distributed file system 108 has not been assigned to a particular subtree. In response, the computing process 318 may query the location map 210 for the assigned container. In response, the computing process 318 may receive the container identifier 322, which may be used to directly request access to the export 316 from the container 314. In additional or alternative implementations, in response to the initial request, the load balancer 202 and/or the location map 210 may provide the container identifier 322.
In the above examples, the methods 500, 510 are performed to add gateways and/or containers to a particular distributed file system. In practice, load balancers may also be configured to remove and/or consolidate containers and gateways implementing the distributed file system. In such instances, the containers and/or gateways may be removed or consolidated by performing one or more steps of the methods 500, 510 in reverse. For example, removing a container from a particular gateway may include removing the exports assigned to the container, removing the container from the cloud computing environment 102, and assigning the exports to another container or deleting the exports such that requests for the associated portions of the distributed file system are handled based on exports corresponding to parent directories.
In this way, the methods 500, 510 may enable vertical and/or horizontal scaling of the gateways and containers that implement a distributed file system. Such scaling allows for the computing resources allocated to responding to requests for particular exports to be responsively adjusted based on actual request volumes received for the exports. Furthermore, by adding gateways and/or containers located near associated computing processes, the methods 500, 510 may help improve response latency and reduce network congestion, as the number of requests over long distances across a network is reduced. In still further implementations, overall computing resource utilization may decrease, as computing resources assigned to containers implementing minimally-requested exports are reduced. Relatedly, response latency may improve, as greater computing resources are assigned to exports with high request loads.
All of the disclosed methods and procedures described in this disclosure can be implemented using one or more computer programs or components. These components may be provided as a series of computer instructions on any conventional computer readable medium or machine readable medium, including volatile and non-volatile memory, such as RAM, ROM, flash memory, magnetic or optical disks, optical memory, or other storage media. The instructions may be provided as software or firmware, and may be implemented in whole or in part in hardware components such as ASICs, FPGAs, DSPs, or any other similar devices. The instructions may be configured to be executed by one or more processors, which when executing the series of computer instructions, performs or facilitates the performance of all or part of the disclosed methods and procedures.
It should be understood that various changes and modifications to the examples described here will be apparent to those skilled in the art. Such changes and modifications can be made without departing from the spirit and scope of the present subject matter and without diminishing its intended advantages. It is therefore intended that such changes and modifications be covered by the appended claims.
Number | Date | Country | |
---|---|---|---|
Parent | 17125236 | Dec 2020 | US |
Child | 17670634 | US |