

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 了解資料傳輸效能計數器
<a name="transfer-performance-counters"></a>

當您[啟動任務](run-task.md)時， AWS DataSync 會提供計數器，以協助追蹤資料傳輸的效能和進度。

使用以下資訊來了解每個計數器代表什麼。您可以在 DataSync 主控台或 [DescribeTaskExecution](https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html) 回應中檢視這些計數器。有些計數器不適用於每個[任務模式](choosing-task-mode.md)。


| 主控台 | `DescribeTaskExecution` | 任務模式支援 | Description | 
| --- | --- | --- | --- | 
| – | `BytesWritten` | 增強型、基本型 | DataSync 實際寫入目的地位置的邏輯位元組數。 | 
| **資料輸送量** | – | 增強型、基本型 | DataSync 將邏輯位元組寫入目的地位置的速率。<br />如果您使用的是 [DescribeTaskExecution](https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html)，計算此計數器的方式取決於您的任務模式：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/datasync/latest/userguide/transfer-performance-counters.html) | 
| 傳輸的資料 | `BytesTransferred` | 增強型、基本型 | DataSync 在壓縮之前傳送到網路的位元組數 （如果可以壓縮）。<br />如需透過網路傳輸的位元組數，請參閱**網路輸送量** （在主控台中） 或 `BytesCompressed`（在 [DescribeTaskExecution](https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html) 中） 計數器。 | 
| **從目的地刪除** | `FilesDeleted` | 基本 | DataSync 在您目的地位置中實際刪除的檔案、物件和目錄數量。<br />如果您未將任務設定為[刪除目的地中不在來源中的資料](configure-metadata.md#task-option-file-object-handling)：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/datasync/latest/userguide/transfer-performance-counters.html) | 
| **從目的地刪除** |  `FilesDeleted`, `FoldersDeleted`  | 增強型 | DataSync 在您目的地位置實際刪除的檔案或物件數量，以及目錄。<br />如果您未將任務設定為[刪除目的地中不在來源中的資料](configure-metadata.md#task-option-file-object-handling)：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/datasync/latest/userguide/transfer-performance-counters.html) | 
| – | `EstimatedBytesToTransfer` | 增強型、基本型 | DataSync 預期寫入目的地位置的邏輯位元組數。 | 
| – | `EstimatedFilesToDelete` | 基本 | DataSync 預期在您的目的地位置刪除的檔案、物件和目錄數量。<br />如果您未將任務設定為[刪除目的地中不在來源中的資料](configure-metadata.md#task-option-file-object-handling)，則值一律為 `0`。 | 
| – |  `EstimatedFilesToDelete`, `EstimatedFoldersToDelete`  | 增強型 | DataSync 預期在您的目的地位置刪除的檔案或物件數量，以及目錄。<br />如果您未將任務設定為[刪除目的地中不在來源中的資料](configure-metadata.md#task-option-file-object-handling)，則值一律為 `0`。 | 
| – | `EstimatedFilesToTransfer` | 基本 | DataSync 預期透過網路傳輸的檔案、物件和目錄數量。此值會在 DataSync [準備](run-task.md#understand-task-execution-statuses)傳輸時計算。<br />計算方式主要取決於您使用的[傳輸模式](configure-metadata.md#task-option-transfer-mode)：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/datasync/latest/userguide/transfer-performance-counters.html) | 
| – |  `EstimatedFilesToTransfer`, `EstimatedFoldersToTransfer`  | 增強型 | DataSync 預期透過網路傳輸的檔案或物件數量，以及目錄。此值會在 DataSync [準備](run-task.md#understand-task-execution-statuses)傳輸時計算。<br />計算方式主要取決於您使用的[傳輸模式](configure-metadata.md#task-option-transfer-mode)：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/datasync/latest/userguide/transfer-performance-counters.html) | 
| **檔案輸送量** | – | 增強型、基本型 | DataSync 透過網路傳輸檔案、物件和目錄的速率。<br />如果您使用的是 [DescribeTaskExecution](https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html)，計算此計數器的方式取決於您的任務模式：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/datasync/latest/userguide/transfer-performance-counters.html) | 
| – |  `FilesFailed`, `FoldersFailed`  | 增強型 | DataSync 在任務執行期間無法準備、傳輸、驗證和刪除的檔案或物件數量，以及目錄。<br />如果有失敗，您可以分別在目的地主控台計數器**的已準備**、**已轉移**、**已略過**和**已刪除**旁邊看到這些失敗。 | 
| **列於來源** |  `FilesListed.AtSource`, `FoldersListed.AtSource`  | 增強型 | DataSync 在您的來源位置找到的檔案或物件數量，以及目錄。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/datasync/latest/userguide/transfer-performance-counters.html) | 
| – |  `FilesListed.AtDestinationForDelete`, `FoldersListed.AtDestinationForDelete`  | 增強型 | DataSync 在您的目的地位置找到的檔案或物件數量，以及目錄。<br />只有在您將任務設定為[刪除不在來源的目的地中的資料時，](configure-metadata.md#task-option-file-object-handling)此計數器才適用。 | 
| **網路輸送量**\* | `BytesCompressed` | 增強型、基本型 | DataSync 在壓縮後透過網路傳輸的實體位元組數 （如果可以壓縮）。<br />除非資料無法壓縮，否則此數字通常小於**傳輸的資料** （在主控台中） 或 `BytesTransferred`（在 [DescribeTaskExecution](https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html) 中）。<br />\* 對於增強型模式，**網路輸送量**不會顯示在主控台中。 | 
| **壓縮百分比** | – | 增強型、基本型 | DataSync 透過網路傳送資料之前壓縮的傳輸資料百分比。<br />如果您使用的是 [DescribeTaskExecution](https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html)，您可以使用 計算此計數器`1 - BytesCompressed / BytesWritten`。 | 
| **已準備** |  `FilesPrepared`, `FoldersPrepared`  | 增強型 | 比較來源和目的地位置後，DataSync 將嘗試傳輸的檔案或物件數量，以及目錄。<br />在 主控台中，此計數器也可以顯示 DataSync 在準備期間略過的物件數量。如需詳細資訊，請參閱[DataSync 如何準備資料傳輸](how-datasync-transfer-works.md#how-datasync-prepares)。<br />如果您將任務設定為[傳輸所有資料](configure-metadata.md#task-option-transfer-mode)，則此計數器不適用。在這種情況下，DataSync 會將來源的所有內容複製到目的地，而不會比較位置之間的差異。 | 
| **處理速率** | – | 增強型、基本型 | DataSync 讀取來源位置的檔案、物件和目錄的速率。<br />處理速率是以數個 [CloudWatch 指標](monitor-datasync.md#accessing-metrics)為基礎。確切的指標取決於您使用的任務模式。<br />**增強型模式**：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/datasync/latest/userguide/transfer-performance-counters.html)<br />**基本模式：**[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/datasync/latest/userguide/transfer-performance-counters.html) | 
| **剩餘** | – | 基本 | DataSync 預期透過網路傳輸的檔案、物件和目錄的剩餘數量。<br />如果您使用的是 [DescribeTaskExecution](https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html)，您可以從 中減去 `FilesTransferred` 來計算此計數器`EstimatedFilesToTransfer`。 | 
| **已略過**\* | `FilesSkipped` | 基本 | DataSync 在傳輸期間略過的檔案、物件和目錄數量。 | 
| – |  `FilesSkipped`, `FoldersSkipped`  | 增強型 | DataSync 在傳輸期間略過的檔案或物件數量，以及目錄。<br />僅傳輸已變更的資料時，**已略過**的項目會包含在**已準備**的計數器中，或在[傳輸所有資料](configure-metadata.md#task-option-transfer-mode)時包含在**已轉移**的計數器中。 [傳輸模式選項](configure-metadata.md#task-option-transfer-mode) | 
| **已轉移** | `FilesTransferred` | 基本 | DataSync 透過網路傳輸的檔案、物件和目錄數量。當您的任務執行期間從來源讀取物件並透過網路傳送時，此值會定期更新。<br />如果 DataSync 無法傳輸某些內容，則此值可以小於 `EstimatedFilesToTransfer`或 `EstimatedFoldersToTransfer`。在某些情況下，此值也可以大於 `EstimatedFilesToTransfer`或 `EstimatedFoldersToTransfer`。此計數器對於某些位置類型是特定的實作，因此請不要將其用作正在傳輸的內容或監控任務執行的確切指示。 | 
| **已轉移** |  `FilesTransferred`, `FoldersTransferred`  | 增強型 | DataSync 透過網路傳輸的檔案或物件數量，以及目錄。當您的任務執行期間從來源讀取物件並透過網路傳送時，此值會定期更新。<br />如果 DataSync 無法傳輸某些內容，則此值可以小於 `EstimatedFilesToTransfer`或 `EstimatedFoldersToTransfer`。在某些情況下，此值也可以大於 `EstimatedFilesToTransfer`或 `EstimatedFoldersToTransfer`。此計數器對於某些位置類型是特定的實作，因此請不要將其用作正在傳輸的內容或監控任務執行的確切指示。 | 
| **已驗證** | `FilesVerified` | 基本 | DataSync 在您傳輸期間驗證的檔案、物件和目錄數量。<br />當您將任務設定為[僅驗證傳輸的資料](configure-data-verification-options.md)時，DataSync 在某些情況下不會驗證目錄，或無法傳輸的檔案或物件。 | 
| **已驗證** |  `FilesVerified`, `FoldersVerified`  | 增強型 | DataSync 在您傳輸期間驗證的檔案或物件數量，以及目錄。 | 