Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoC Couch Stats Resource Tracker for tracking process local resource usage #4812

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from

Commits on Oct 11, 2023

  1. Configuration menu
    Copy the full SHA
    be84279 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Configuration menu
    Copy the full SHA
    e5e4820 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. 2 Configuration menu
    Copy the full SHA
    ecda8f3 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. Configuration menu
    Copy the full SHA
    73863a7 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2023

  1. Configuration menu
    Copy the full SHA
    12e0267 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84be4af View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. Configuration menu
    Copy the full SHA
    19224af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cafa512 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Configuration menu
    Copy the full SHA
    996c385 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Configuration menu
    Copy the full SHA
    1bbf7a9 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2023

  1. Configuration menu
    Copy the full SHA
    e70ba4d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    715b524 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2023

  1. Cleanup debug info

    chewbranca committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    be8ab04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c05a0f View commit details
    Browse the repository at this point in the history
  3. Remove debug exit clause

    chewbranca committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    eb20b5d View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2023

  1. Declare missing metrics

    chewbranca committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    f4a712c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c758cb7 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. Configuration menu
    Copy the full SHA
    4f00910 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    887a7f2 View commit details
    Browse the repository at this point in the history
  3. Revert "Use Default in config:get/3 on ets table error"

    This reverts commit 4f00910.
    chewbranca committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    1a1a584 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2023

  1. Flush chttpd_db monitor refs on demonitor

    This ensures that the coordinator process flushes on demonitoring of the
    attachment refs in chttpd_db. The problem here is that it's possible to
    receive a 'DOWN' message for the monitor ref that is not receive'ed,
    causing it to stick around in the coordinator message queue while the
    next http request is handled. The pending message will not become
    apparent until the next fabric call is invoked, as fabric expects to
    have full access to all messages in the calling process, an expectation
    which is violated by the pending message and causes a case clause crash
    in the fabric receive message callbacks.
    
    I noticed this during eunit runs with stubbed attachment handles that
    generate an immediate noproc message on the monitor call. Normal
    operations should not result in an immediate noproc result on monitoring
    the attachment process, however, any failure that causes the attachment
    process to fail between acquisition of the refs and the demonitor calls
    will induce this bug, causing the next http request handled by the
    particular chttpd coordinator pool processs to fail on whatever next
    fabric call is made.
    chewbranca committed Dec 9, 2023
    Configuration menu
    Copy the full SHA
    db1f874 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2023

  1. TMP Hack around issue #4909

    chewbranca committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    50495bf View commit details
    Browse the repository at this point in the history
  2. Avoid mem3_rpc:rexi_call selective receive

    We need to potentially extract the usage delta from the incoming RPC
    message. Rather than pattern match on all possible message formats that
    could potentially include usage deltas, we instead utilize
    rexi_util:extract_delta which matches against tuples ending in
    `{delta, Delta}`, and separates that out from the underlying message.
    
    The subtlety here is that receiving the message to extract the delta
    changes the behavior as this was previously doing a selective receive
    keyed off of the Ref, and then ignoring any other messages that arrived.
    I don't know if the selective receive was intended, but I don't think
    it's appropriate to leave unexpected messages floating around,
    especially given things like issue #4909.
    
    Instead of utilizing a selective receive, this switches to extracting
    the message and delta like we need to do, and then in the event it finds
    unexpected messages they're logged and skipped.
    
    This selective receive was masking the lack of unlink on the linked
    rexi_mon pid in fix #4906. I've also noticed some rpc responses arriving
    late as well, but I haven't tracked that down, so let's log when it does
    happen.
    chewbranca committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    9578773 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

  1. Pass tests and toggle csrt

    chewbranca committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    f77583a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ac17510 View commit details
    Browse the repository at this point in the history
  3. Conditionally log reports

    chewbranca committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    c500f0f View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. Do not persist doc size test config settings

    Most tests should not persist config changes. This is no exception.
    While the test deletes the change afterwards, system halts between setup
    and teardown result in a persisted max doc setting that causes
    unexpected failures on the next test suite that writes a document larger
    than 50 bytes.
    chewbranca committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    d7e9bd9 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. Configuration menu
    Copy the full SHA
    f68005a View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. Configuration menu
    Copy the full SHA
    0371589 View commit details
    Browse the repository at this point in the history