Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Nhse o32 orkv.i58 backport #60

Merged
merged 4 commits into from
Jan 24, 2025
Merged

Conversation

martinsumner
Copy link

Optimisations:

- Take the timestamp to the cache after get_stats/0 has returned, so that if get_stats/0 takes > 1s any requests in the queue for riak_kv_http_cache will still use the cache.

- refactor riak_kv_status:aliases/0 to use simple lists rather than orddict.

- remove altogether the sys_monitor_count, it is simply too expensive.  Available as a riak_kv_util module function instead for the experienced operator.
It takes more than 5s on some systems at the moment - and this then dumps an unhelpful crashdump to the user.  Make a longer default timeout, allow the timeout to be passed by the operator, and also return more operator-friendly error on timeout occurring.
@martinsumner
Copy link
Author

This removes a statistic in a minor version release. I think this is acceptable, but will include a specific warning in the release notes and other release announcements. I prefer this to including a dummy statistic which may be misleading.

Copy link

@ThomasArts ThomasArts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, removing a stat in minor release does not sound that bad if it solves some possible bad performance issue

@martinsumner martinsumner merged commit fe9d3ab into openriak-3.2 Jan 24, 2025
1 check passed
@martinsumner martinsumner deleted the nhse-o32-orkv.i58-backport branch January 24, 2025 19:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants