Repository navigation
Protocols
Jefferson Smith edited this page May 6, 2021
·
21 revisions
Rough sketch of documentation describing the protocols, scripts, processes, and procedures
- Initial generation scheme
- TrekSoft generation scheme
- Harmonizer integration of IDs across partners
- SenseDoc devices are collected from participants by regional coordinator
- Telemetry data is extracted by coordinator from each device and stored on local computer or institutional data server
- From time to time during the collection period, a batch of these local data files are uploaded to ComputeCanada over SSH
- Incoming files are placed in /projects/def-dfuller/interact/incoming_data/{CITYNAME}/Wave{WAVENUM}/
- Each batch includes the telemetry data itself, plus an MD5 checksum for each file, computed on the local machine prior to upload
- After receiving data files on CC, those MD5 checksums are verified by the data manager, and if any problems are found, the necessary files are re-uploaded
- Once the files have been fully verified, they are normalized for ingest:
- all files are copied to /projects/def-dfuller/interact/permanent_archive/{CITYNAME}/Wave{WAVENUM}/SenseDoc
- This permanent_archive is then organized into a canonical file hierarchy, with data from each contributor stored in its own folder, named as {IID}_{DEVICEID}
- Within each device folder, verify that the crucial file for ingest present: SD{DEVID}fw{OSVER}_{TIMESTAMP}.sdb
- The normalized permanent_archive files are then added to our ProvLog system, which monitors every night to ensure that all files still match the checksums they were uploaded with and have not been deleted or altered on disk during the course of working with them
- This is done by running: provlog -m "Adding to ProvLog after validating upload checksum" -T DIRNAME
- If any changes are detected to logged files on disk, a message is sent to the data manager, who investigates and either restores the data files from backup, or updates the ProvLog record to explain the change, thus ensuring a complete manifest of data changes
- checksums: produced using platform independent ExactFile tool, although any MD5 tool will work
- ProvLog: on ComputeCanada, provenance monitoring is done using our own ProvLog tool, in conjunction with the native crontab system
($sketched)