m3db -write the previous data data.

69 views
Skip to first unread message

Anand G

unread,
Mar 3, 2021, 2:44:52 AM3/3/21
to M3
Hai All
        Good afternoon.We are using M3DB in that we are able to write only the current timestamp data. how to write the previous data data.


"timestamp": '\"$(date "+%s")\"',

Example:
     unix_timestamp("2021-01-01 10:30:00.000")

Anand G

unread,
Mar 3, 2021, 2:54:31 AM3/3/21
to M3

how to write the previous date data. For data migration purpose.

Example:
"tags": { "__name__": "third_avenue", "city": "new_york", "checkout": "1" }, "timestamp": '\"$(date "+%s")\"', "value": 3347.26 }'

Asaf Mesika

unread,
Mar 3, 2021, 12:11:00 PM3/3/21
to M3
Currently M3DB doesn't support writing data which earlier than now() - bufferPast in 100%. The latter is a configuration parameter in the namespace you've created and writing the data-point to.
It can receive the write if you turn on the cold write feature (a namespace configuration), and it will write it eventually, but it comes with great performance cost (it have to re-read all the 2 hours block of data from disk and write it again with few new points).
Also, the namespace reverse index is not getting updated to this data point. This code is yet to be written and won't be actively worked on this year to the best of my knowledge.
Reply all
Reply to author
Forward
0 new messages