Manage cloud resources
This topic describes how to manage cloud resources in the on-premises file gateway console, including binding and unbinding cloud resources, and speed testing.
Prerequisites
-
You have deployed an on-premises file gateway client. For more information, see Deploy an on-premises file gateway console.
An OSS Bucket is created.
ImportantA file gateway supports only OSS Buckets of the Standard, Infrequent Access (IA), and Archive storage classes. OSS Buckets with the back-to-source feature enabled are not supported.
Avoid connecting a gateway directly to an Archive OSS Bucket. If files will not be modified for a long time after being written, consider using a Standard or IA bucket. You can then use lifecycle rules to transition the storage class of the objects to Archive or Cold Archive. This approach is more cost-effective and efficient because it avoids unnecessary restore operations.
When a client writes a file to the gateway, the gateway records at least two actions: writing the file and setting the file's modification time. The gateway attempts to merge these actions, but may still initiate multiple operations on the OSS Bucket for a single file. Setting the modification time translates to modifying the object's metadata in the OSS Bucket by using the CopyObject API. For Archive or Cold Archive objects, this requires a time-consuming restore operation, which can slow down uploads and even cause write failures if the cache disk does not have enough space to upload the data in time.
Bind a cloud resource
Create shared resources that use OSS buckets as backend storage. A file gateway supports multiple cloud resources, with each shared resource corresponding to one bucket.
By default, data written to a Cloud Storage Gateway from a client is uploaded to the OSS bucket in real time. You can also configure a sync delay of up to 120 seconds when you create a share.
Depending on your business requirements, you can bind a cloud resource by using the standard method or the custom method.
Standard method
-
On the on-premises console for the file gateway, go to the Cloud Resource Settings page and click Bind.
-
In the Bind Cloud Resource dialog box, configure the following parameters.
Parameter
Description
Resource name
Enter a name for the cloud resource.
cross-region binding
Configure cross-region binding.
-
Yes: Allows the file gateway to access an OSS bucket in a different region.
-
No: Allows the file gateway to access only a bucket in the same region.
NoteTo ensure accurate data synchronization, logging, and operations management, the time zones of the file gateway and the OSS bucket must be identical.
region
Select the region where the bucket is located.
Bucket name
Select the bucket that you want to bind.
Use SSL
If you select Yes, the gateway uses SSL to access the OSS bucket.
-
-
Click OK to bind the cloud resource.
Custom method
-
On the on-premises console for the file gateway, go to the Cloud Resource Settings page and click Bind.
-
In the Bind Cloud Resource dialog box, configure the following parameters.
Parameter
Description
Resource name
Enter a name for the cloud resource.
Use custom region
Select Use Custom Region.
endpoint
The endpoint of the OSS bucket. Example: oss-cn-hangzhou.aliyuncs.com
Bucket name
Enter the name of the OSS bucket that you want to bind.
AccessKey ID
Enter your Access Key ID.
AccessKey Secret
Enter your Access Key Secret.
Use SSL
If you select Yes, the gateway uses SSL to access the OSS bucket.
-
Click OK to bind the cloud resource.
Related operations
On the Cloud Resources page, you can also perform the following operations.
|
Actions |
Description |
|
Unbind |
Find the target cloud resource and click Unbind. After you unbind the cloud resource, its data remains. You can then access and delete the data in the Object Storage Service (OSS) console. |
|
Speed test |
Find the target cloud resource and click Speed Test to test its upload and download speeds. |