Data Management Service
The Data Management Service captures data from Viam components and securely syncs data to Viam’s cloud. You can configure capture frequency individually for each component. The service is designed for flexibility and efficiency while preventing data loss, data duplication, and other data management issues.
The service has two parts: Data Capture and Cloud Sync.
The Data Management Service captures data from one or more components locally on the robot’s storage.
The process runs in the background and, by default, stores data in the
If a robot restarts for any reason, capture automatically resumes.
The service can capture data from multiple components at the same or different frequencies. Viam does not impose a lower or upper limit on the frequency of data collection. However, in practice, your hardware may impose limits on the frequency of data collection.
You can change the frequency of data capture at any time for individual components. If you use fragments, you can change the frequency of data capture in real time for some or all robots in a fleet at the component or robot level.
For example, consider a tomato picking robot with a 3D camera and an arm. When you configure the robot, you may set the camera to capture point cloud data at a frequency of 30Hz. For the arm, you may want to capture joint positions at 1Hz. If your requirements change and you want to capture data from both components at 10Hz, you can change the configurations at any time by changing the number.
Data capture is frequently used with Cloud Sync. However, if you want to manage your robot’s captured data yourself, you can enable only data capture without cloud sync.
To configure data capture, see data capture.
The Data Management Service securely syncs the specified data to the cloud at the user-defined frequency. Viam does not impose a minimum or maximum on the frequency of data syncing. However, in practice, your hardware or network speed may impose limits on the frequency of data syncing.
If the internet becomes unavailable or the robot needs to restart during the sync process, the service will try to resume sync indefinitely. When the connection is restored, the service resumes the syncing process where it left off without duplicating data. For more detailed information, see Considerations.
Once the service syncs a file to Viam’s cloud, the service deletes the file locally from the robot’s configured capture location.
As before, consider the example of a tomato picking robot. When you initially set the robot up you may want to sync captured data to the cloud every five minutes. If you change your mind and want your robot to sync less frequently, you can change the sync frequency, for example, to once a day.
To configure cloud sync, see configure cloud sync.
Security: The Data Management Service uses gRPC calls to send and receive data, so your data is encrypted while in flight. When data is stored in the cloud, it is encrypted at rest by the cloud storage provider.
Data Integrity: Viam’s Data Management Service is designed to safeguard against data loss, data duplication and otherwise compromised data.
If the internet becomes unavailable or the robot needs to restart during the sync process, the sync is interrupted. If the sync process is interrupted, the service will retry uploading the data at exponentially increasing intervals until the interval in between tries is at one hour at which point the service retries the sync every hour. When the connection is restored and sync resumes, the service continues sync where it left off without duplicating data.
For example, if the service has uploaded 33% of the data and then the internet connection is severed, sync is interrupted. Once the service retries and successfully connects, data synchronization resumes at 33%.
If you disable cloud sync for a component that was interrupted mid-sync, data capture will not resume.
Storage When a robot loses its internet connection, it cannot resume cloud sync until it can reach the Viam cloud again.
To ensure that the robot can store all data captured while it has no connection, you need to provide enough local data storage.
Currently, the Data Management Service can use the entire available disk space to store data. If the robot loses connectivity and remains disconnected, data capture can eventually use all disk space. Currently, Viam does not safeguard against this.
To use the Data Management Service, add the Data Management Service to your robot. Then configure data capture as needed and configure cloud sync.
For a comprehensive tutorial on data management, see Intro to Data Management.
Accessing and exporting data
Once you have configured data capture and cloud sync, you can view and export your data.
You can use data synced to the cloud to train machine learning models and then deploy these models to your robots from the Viam app. You can also upload and use existing models.
Was this page helpful?
Glad to hear it! If there is anything we could be doing better, please create an issue.
We're sorry about that. If you'd like to talk to us for help, please join the Community Discord. To ensure we know what's wrong with this page, you can also open an issue.