apache / apache/couchdb

Add stats to erlfdb

Open
#3,427 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Erlang
Stars
7k
Forks
1.1k
Avg merge
1d 16h
Merged PRs (30d)
9

Description

It would be nice have erlfdb emit extra stats such as counts for each types of error codes, how many times transactions retry, number of started transactions and some others.

@davisp already has a handy-dandy branch with some stats kept in C++ using some of the newer atomic features: https://github.com/davisp/couchdb-erlfdb/commit/187b585b0bc7c2bcc27fd875f3d59e54a9c028ac so one idea is to expand it.

The other idea is to depend on `couch_stats` and add some of the couch_stats metrics in erlang. That might be easier but the dependency on `couch_stats` might be a bit gross.

Contributor guide

Open the contributing guide

Research direction

Start with the linked couchdb-erlfdb commit and compare its C++ statistics approach with the proposed couch_stats dependency. Done means agreeing on an approach and adding metrics for error-code counts, transaction retries, started transactions, and other selected erlfdb activity.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, erlang
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.