Conversation
|
Awesome, thanks very much! It may be a week or two before I can get to this as I'm trying to finish up with S.M.A.R.T. support and have a couple other long-waiting PRs at the top of my queue. Don't worry about any merge conflicts that may be introduced in the meantime 👍 |
b3415bb to
9a6da13
Compare
|
The PR is now functional. It does introduce a breaking change within the While I made the argument for just an in memory store, I would like to revisit that. It is not guaranteed the agent will get a connection to the hub before a shutdown. So adding optional persistency seems to be a nice feature. Introducing an option to cache to sqlite wouldn't be too hard to do. |
|
Thanks! Should be able to get to this during this upcoming week. |
|
Apologies, I'm still wrapped up with #1153 and a couple small things. I will switch this to in-progress and try to get to it as soon as I can. |
|
No worries, if you'd have the time to do a review or give some pointers I would be more than happy to continue the development and carry some of the load. |
c49917d to
9eddb8a
Compare
9eddb8a to
3ced946
Compare
|
@henrygd Any chance we can get this moving again? |
|
Sorry for the wait and lack of updates! I have a good idea of what I want to do with this, and made some precursor architectural tweaks. Then had to pause work on the whole project for a bit, and I'm still working through a pile of smaller things that accumulated. My plan is to get #539 added for 0.19 (it's been waiting for nearly a year, and I finally have a Proxmox machine). Then this is the top priority for 0.20. |
|
Great to hear it's on the roadmap. If at that time you could use some help I will be available! |
|
Thanks, I'll let you know! |
📃 Description
This pull request adds offline caching capabilities to the agent as discussed in #1262. The goal is to keep gathering statistics while the agent cannot reach the hub. Once the connection is restored the backlog is committed to the hub.
Currently there is a basic cache implemented for the agent. What still needs to be done before this can be merged:
Closes #1262
🪵 Changelog
➕ Added
Timestampfield to theCombinedDatastructTimestampfield to the database instead of using thecreatedfield. This allows the data to be backfilled.✏️ Changed
AgentResponseSystemDatafield is now an array of[]*system.CombinedData. This is a breaking change for older agents.