reverbrain / eblob

Eblob is an append-only low-level IO library, which saves data in blob files. Created as low-level backend for elliptics
GNU Lesser General Public License v3.0
104 stars 29 forks source link

Caching json statistics #92

Closed shaitan closed 9 years ago

shaitan commented 9 years ago

Periodic thread now also dumps JSON statistics. All clients get cached JSON statistics via eblob_stat_json_get. This statistics and some part of it (like dstat and vfs) include timestamps when it was generated. eblob_stat_json_get also checks cached statistics lifetime and if it is greater than doubled timeout of json update, adds 'error' section to json. This section provides error information and tells that returned json is too old. This may occur because of some issue with backend's hardware. Made periodic_timeout configurable and decreased its default to 15.

bioothod commented 9 years ago

Does this pull request need anything else? Should I apply it and build new eblob version?

euroelessar commented 9 years ago

This pull request is ready, please merge it and up the version.