AWS Storage Gateway User Guide
Managing Bandwidth
been uploaded to Amazon S3 can be lost. You can prevent such data loss by following the steps before
you restart or stop the EC2 instance that hosts your gateway.
These steps in this following procedure are specific for file gateways.
To prevent data loss in file gateways that use ephemeral disks
1. Stop all the processes that are writing to the file share.
2. Subscribe to receive notification from CloudWatch Events. For information, see
.
3. Call the
to get notified when data that is written, up until the ephemeral
storage was lost, has been durably stored in Amazon S3.
4. Wait for the API to complete and you receive a notification id.
You receive a CloudWatch event with the same notification id.
5. Verify that the
CachePercentDirty
metric for your file share is 0. This confirms that all your data
has been written to Amazon S3. For information about file share metrics, see
6. You can now restart or stop the file gateway without risk of losing any data.
Managing Bandwidth for Your Gateway
You can limit (or throttle) the upload throughput from the gateway to AWS or the download throughput
from your AWS to your gateway. Using bandwidth throttling helps you to control the amount of network
bandwidth used by your gateway. By default, an activated gateway has no rate limits on upload or
download.
You can specify the rate limit by using the AWS Management Console, or programmatically by using
either the AWS Storage Gateway API (see
) or an AWS Software Development
Kit (SDK). By throttling bandwidth programmatically, you can change limits automatically throughout
the day
—
for example, by scheduling tasks to change the bandwidth.
Topics
•
Changing Bandwidth Throttling Using the Storage Gateway Console (p. 224)
•
Updating Gateway Bandwidth Rate Limits Using the AWS SDK for Java (p. 225)
•
Updating Gateway Bandwidth Rate Limits Using the AWS SDK for .NET (p. 226)
•
Updating Gateway Bandwidth Rate Limits Using the AWS Tools for Windows PowerShell (p. 227)
Note
Configuring bandwidth rate limit is currently not supported in the file gateway type.
Changing Bandwidth Throttling Using the Storage
Gateway Console
The following procedure shows you how to change a gateway's bandwidth throttling from the AWS
Storage Gateway console.
To change a gateway's bandwidth throttling using the console
1. Open the AWS Storage Gateway console at
https://console.amazonaws.cn/storagegateway/home
.
2. In the navigation pane, choose
Gateways
, and then choose the gateway you want to manage.
3. On the
Actions
menu, choose
Edit Bandwidth Rate Limit
.
API Version 2013-06-30
224