Historical Syncs Fail With Errors When Amazon EFS Uses Bursting Throughput
Issue
Historical syncs fail for connections that run on a Hybrid Deployment Agent in Kubernetes with one of the following errors:
Failed to create temp copy of storage file '<file_path>'java.nio.file.NoSuchFileException: <file_path>A timeout occurred while communicating with the source database
Incremental syncs may continue to succeed, even when the persistent volume has free space and node CPU and memory usage appear normal.
Environment
- Deployment model: Hybrid Deployment
- Container platform: Kubernetes on Amazon Elastic Kubernetes Service (Amazon EKS)
- Persistent storage: Amazon Elastic File System (Amazon EFS) with Bursting throughput mode
Resolution
To resolve this issue:
- In the Amazon EFS console, open the file system that backs the Persistent Volume Claim (PVC) you defined in the
data_volume_pvcparameter of yourvalues.yamlfile. - Confirm that its Throughput mode is Bursting. In Amazon CloudWatch, you can also check whether
BurstCreditBalanceapproached zero when the sync failed. - Edit the file system settings and set Throughput mode to Elastic. Alternatively, select Provisioned and set a throughput value that matches your sync volume.
- Save the file system settings.
- In Fivetran, go to your connection page.
- Trigger a historical sync again. For instructions, see How to Trigger Historical Re-Syncs.
You don't need to remount the volume or restart the Hybrid Deployment Agent. For more information, see the Amazon EFS throughput modes documentation and our Hybrid Deployment with Kubernetes setup guide.
Cause
This issue occurs when the Amazon EFS file system that backs your Hybrid Deployment persistent volume uses the Bursting throughput mode and runs out of burst credits.
In Bursting mode, baseline throughput depends on the amount of data stored in the file system. A file system that stores little data has a low baseline throughput and earns burst credits slowly. During a historical sync, we write and read large volumes of temporary data on the persistent volume, quickly consuming burst credits. When the credits run out, Amazon EFS throttles throughput, and file operations slow down or fail.
This throughput limit can affect syncs even when storage capacity, CPU usage, and memory usage appear normal.