From 6edaef09c23cdc37c15983ac4711a9e5ed304d6e Mon Sep 17 00:00:00 2001 From: Ashwin Srinivasan <93744978+assrinivasan@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:30:39 -0700 Subject: [PATCH] Added 'last_sync_time' field to STORAGE_INFO schema in STATE_DB (#1784) * Added 'last_sync_time' field to STORAGE_INFO schema in STATE_DB * Modified format of last_sync_time to user friendly format * Refined time format, added format info to all sync times * Clarified the timezone as UTC for both sync times --- doc/storagemond/storagemond-hld.md | 35 ++++++++++++++++-------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/doc/storagemond/storagemond-hld.md b/doc/storagemond/storagemond-hld.md index f4c83e1a52..8c49703a28 100644 --- a/doc/storagemond/storagemond-hld.md +++ b/doc/storagemond/storagemond-hld.md @@ -3,7 +3,8 @@ | Rev | Date | Author | Change Description | |:---:|:-----------:|:------------------:|-----------------------------------| - | 0.1 | | Ashwin Srinivasan | Initial version | + | 0.1 | | Ashwin Srinivasan | Initial version | + | 0.2 | 2024-23-08 | Ashwin Srinivasan | STORAGE_INFO schema change | ## 1. Overview @@ -370,18 +371,19 @@ key = STORAGE_INFO| ; This key is for informatio ; field = value -device_model = STRING ; Describes the Vendor information of the disk (Static) -serial = STRING ; Describes the Serial number of the disk (Static) -temperature_celsius = STRING ; Describes the operating temperature of the disk in Celsius (Dynamic) -total_fsio_reads = STRING ; Describes the total number of filesystem reads completed successfully (Dynamic) -total_fsio_writes = STRING ; Describes the total number of filesystem writes completed successfully (Dynamic) -latest_fsio_reads = STRING ; Describes the latest number of filesystem reads completed successfully (Dynamic) -latest_fsio_writes = STRING ; Describes the latest number of filesystem writes completed successfully (Dynamic) -disk_io_reads = STRING ; Describes the total number of reads completed successfully from the SSD (Bytes) (Dynamic) -disk_io_writes = STRING ; Describes the total number of writes completed on the SSD (Bytes) (Dynamic) -reserved_blocks = STRING ; Describes the reserved blocks count of the SSD (Dynamic) -firmware = STRING ; Describes the Firmware version of the SSD (Dynamic) -health = STRING ; Describes the overall health of the SSD as a % value based on several SMART attrs (Dynamic) +device_model = STRING ; Describes the Vendor information of the disk (Static) +serial = STRING ; Describes the Serial number of the disk (Static) +temperature_celsius = STRING ; Describes the operating temperature of the disk in Celsius (Dynamic) +total_fsio_reads = STRING ; Describes the total number of filesystem reads completed successfully (Dynamic) +total_fsio_writes = STRING ; Describes the total number of filesystem writes completed successfully (Dynamic) +latest_fsio_reads = STRING ; Describes the latest number of filesystem reads completed successfully (Dynamic) +latest_fsio_writes = STRING ; Describes the latest number of filesystem writes completed successfully (Dynamic) +disk_io_reads = STRING ; Describes the total number of reads completed successfully from the SSD (Bytes) (Dynamic) +disk_io_writes = STRING ; Describes the total number of writes completed on the SSD (Bytes) (Dynamic) +reserved_blocks = STRING ; Describes the reserved blocks count of the SSD (Dynamic) +firmware = STRING ; Describes the Firmware version of the SSD (Dynamic) +health = STRING ; Describes the overall health of the SSD as a % value based on several SMART attrs (Dynamic) +last_sync_time = STRING ; The latest successful sync time (in UTC) of disk attribtes to STATE_DB (YYYY:MM:DD HH:MM:SS) (Dynamic) ``` NOTE: disk_io_reads and disk_io_writes return total LBAs read/written. 'LBA' stands for Logical Block Address. @@ -420,7 +422,8 @@ admin@str2-dx010-acs-7:~$ redis-cli -n 6 22) "863702" 23) "reserved_blocks" 24) "135" - +25) "last_sync_time" +26) "2024-10-02 23:49:41" ``` @@ -429,11 +432,11 @@ admin@str2-dx010-acs-7:~$ redis-cli -n 6 ``` ; Defines information for FS Stats synchronization -key = STORAGE_INFO|FSSTATS_SYNC ; This key is for information pertaining to synchronization of FSIO Reads/Writes +key = STORAGE_INFO|FSSTATS_SYNC ; This key is for information pertaining to synchronization of FSIO Reads/Writes ; field = value -successful_sync_time = STRING ; The latest successful sync time of FSIO reads and writes to file in UNIX timestamp format +successful_sync_time = STRING ; The latest successful sync time (in UTC) of FSIO reads and writes to file ("YYYY:MM:DD HH:MM:SS" format) ```