- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.1k
 
Couch stats resource tracker v3 rebase main #5602
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
          
     Open
      
      
            chewbranca
  wants to merge
  112
  commits into
  main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
couch-stats-resource-tracker-v3-rebase-main
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
  
     Open
                    Changes from 94 commits
      Commits
    
    
            Show all changes
          
          
            112 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      e9c4383
              
                Add Couch Stats Resource Tracker (CSRT)
              
              
                chewbranca e5835fc
              
                Remove no longer used conf_get fun
              
              
                chewbranca d1176b2
              
                Cleanup Dialyzer specs
              
              
                chewbranca 18d5b0f
              
                Fix type in metric name
              
              
                chewbranca eaf2363
              
                Update CSRT tests for ioq parallel read changes
              
              
                chewbranca 2345968
              
                Add csrt_logger:register_matcher
              
              
                chewbranca 776d714
              
                Rework changes_processed vs rows
              
              
                chewbranca 57118ab
              
                Format code
              
              
                chewbranca ae0cb07
              
                CI Bump..
              
              
                chewbranca 9be2a57
              
                Create delta prior to deleting the context
              
              
                chewbranca b9a0ccd
              
                Updates based on PR feedback
              
              
                chewbranca 2cfcf59
              
                Address more PR feedback
              
              
                chewbranca 22af987
              
                Fix erlfmt-check
              
              
                chewbranca ad60c3c
              
                Rework and fix csrt_util init_p ini lookup tests
              
              
                chewbranca 389c396
              
                Rework delta handling back to normal process_message semantics
              
              
                chewbranca a1ccdbf
              
                More cleanup
              
              
                chewbranca 954584b
              
                Erlfmt rexi_tests.erl
              
              
                chewbranca b04c2d8
              
                Revert "CI Bump.."
              
              
                chewbranca 3d7e655
              
                More PR cleanup
              
              
                chewbranca e873eb2
              
                More cleanup
              
              
                chewbranca ab98716
              
                Cleanup #rctx{} and other reworkings
              
              
                chewbranca 7f0c41d
              
                make erlfmt-format
              
              
                chewbranca d866a61
              
                Cleanup csrt_query:field/2
              
              
                chewbranca 4d2a5ba
              
                Clarify is_rctx_stat_field
              
              
                chewbranca 8604aca
              
                Fix csrt:inc/N typespec
              
              
                chewbranca 2131fb6
              
                Batch accumulate_delta updates in single ets:update_counter call
              
              
                chewbranca c9738fe
              
                Fixup csrt_logger report tests
              
              
                chewbranca fa6db32
              
                Update deregister logic and testing
              
              
                chewbranca 64e0e84
              
                make erlfmt-format
              
              
                chewbranca 9623db8
              
                Assert registered matchers persist a after global reload
              
              
                chewbranca 92738f9
              
                Cleanup is_enabled settings
              
              
                chewbranca c9e3ae1
              
                Rework updated_at logic
              
              
                chewbranca a2cd51f
              
                Add csrt_logger:matcher_on_long_reqs
              
              
                chewbranca 837f6d1
              
                Cleanup Dialyzer findings
              
              
                chewbranca a1dc061
              
                make erlfmt-format
              
              
                chewbranca 5deaa68
              
                Test csrt_util:field for all #rctx{} fields
              
              
                chewbranca 5110c41
              
                Use dedicated transient CSRT supervisor
              
              
                chewbranca 113633f
              
                Cleanup delta handling and type specs
              
              
                chewbranca 7417e2a
              
                Fixup maybe_add_delta type restrucuring
              
              
                chewbranca cc0a806
              
                make erlfmt-format
              
              
                chewbranca 4ef6dd7
              
                Add csrt:proc_window based on recon:proc_window
              
              
                chewbranca 97ae684
              
                Add dedicated toggle to disable #rpc_worker{} reporting
              
              
                chewbranca 7153559
              
                make erlfmt-format
              
              
                chewbranca 0eb72fd
              
                Remove extraneous function head
              
              
                chewbranca e64607a
              
                Cleanup instantiation of base #rctx{} match spec
              
              
                chewbranca 2c9f5d5
              
                Fix csrt_logger dbname io tests
              
              
                chewbranca 18769c4
              
                make erlfmt-format
              
              
                chewbranca c50264f
              
                Cleanup matchers
              
              
                chewbranca c4fb87e
              
                Rework csrt_logger:add_matcher error type
              
              
                chewbranca 6218296
              
                Cleanup Dialyzer and a few other things
              
              
                chewbranca 8a21722
              
                Simple make_dt time conversions
              
              
                chewbranca d4e53b7
              
                Cleanup MatcherGen error handling
              
              
                chewbranca fb05f92
              
                make erlfmt-format
              
              
                chewbranca b4827b8
              
                Remove debug TODO
              
              
                chewbranca 5b3167d
              
                Update HTTP API
              
              
                iilyak 45495fc
              
                Hook in http updates and simple matcher querying
              
              
                chewbranca e259e52
              
                Add typespecs to sort_by/group_by/count_by
              
              
                iilyak cc7f8ab
              
                Factor out csrt_entry.erl
              
              
                iilyak ba42c8a
              
                Support more key types in csrt_entry:key/1
              
              
                iilyak 8b0147f
              
                Replace csrt_util:map_to_rctx/1 with csrt_entry:from_map/1
              
              
                iilyak 65b9e40
              
                Swap order of arguments in csrt_entry:value for consistency
              
              
                iilyak fa0880d
              
                Move rctx_record_info/0 to csrt_entry
              
              
                iilyak b723df5
              
                Move JSON conversion to csrt_entry
              
              
                iilyak 9947f4d
              
                Rewrite csrt_query to support declarative queries
              
              
                iilyak a5d486d
              
                Create csrt_test_helper.erl
              
              
                iilyak ae39d22
              
                Add csrt_query_tests.erl suite
              
              
                iilyak fb2c8c2
              
                Add csrt_httpd_tests.erl suite
              
              
                iilyak 6414dc2
              
                Add docs and various cleanup
              
              
                chewbranca 93bc894
              
                Remove obsolete http logic
              
              
                chewbranca e6b0212
              
                Allow undefined in csrt:to_json/1
              
              
                chewbranca debe52f
              
                Update CSRT documentation
              
              
                chewbranca 2357812
              
                Address PR feedback
              
              
                chewbranca d757add
              
                Remove config lookups from should_track_init_p
              
              
                chewbranca 8457fe4
              
                Do not import query DSL functions from csrt
              
              
                iilyak b762046
              
                Toggle default enablements
              
              
                chewbranca 38608f7
              
                Add more docs and additional PR cleanup
              
              
                chewbranca 38a53a0
              
                Extract CSRT into dedicated couch_srt application
              
              
                chewbranca 86ba96b
              
                make erlfmt-format
              
              
                chewbranca 00a02af
              
                Add all_coordinators and all_rpc_workers matchers
              
              
                chewbranca d5561f2
              
                Don't report null JSON values
              
              
                chewbranca 1380b09
              
                Cleanup couch_srt_logger_tests duplication and imports
              
              
                chewbranca eb92a4d
              
                Update couch_srt_query:group_by to use ets:select/3
              
              
                chewbranca 828667e
              
                Rework documentation from PR feedback and move into official docs
              
              
                chewbranca 1ff2376
              
                make erlfmt-format
              
              
                chewbranca 711b070
              
                More PR cleanup
              
              
                chewbranca d5241e7
              
                Fix Sphinx docs make check
              
              
                chewbranca 6481338
              
                Cleanup typos found in PR review
              
              
                chewbranca 71d11ea
              
                Fix few typos in the docs
              
              
                iilyak 2418297
              
                Return proper error when multiple keys are provided
              
              
                iilyak 6c0ab49
              
                Add HTTP API docs for CSRT
              
              
                iilyak 690554d
              
                Lint the CSRT documentation
              
              
                iilyak da87fc3
              
                Use json_string() type inside json_spec()
              
              
                iilyak 4a2af49
              
                Fix typos in CSRT docs
              
              
                iilyak 13e75ae
              
                Update links in CSRT docs
              
              
                iilyak 3c95f0b
              
                Use 'orelse' instead of 'or' in matcher
              
              
                iilyak 0775436
              
                Fix typos and formatting of docs
              
              
                iilyak ef409f0
              
                Match on error:badrag on ets operations
              
              
                iilyak 9e29cfd
              
                Make docs linter happy
              
              
                iilyak 36feba6
              
                Select from ets table in batches of 5000 elements
              
              
                iilyak c5b9fe0
              
                Swtich topK from list to gb_sets
              
              
                iilyak 163ae6f
              
                Rename function in test (to avoid import conflict)
              
              
                iilyak 02b8dd9
              
                Add property test for topK
              
              
                iilyak 525f951
              
                Call maybe_apply_limit from run
              
              
                iilyak 27d4123
              
                Simplify `topK`
              
              
                iilyak 0bd2369
              
                Do not run t_sort_by_multiple_keys twice
              
              
                iilyak 721056e
              
                Ajust property tests for topK
              
              
                iilyak 6147c22
              
                [linter] Run erlfmt
              
              
                iilyak 60a5a52
              
                Increase time to allow collection of deltas
              
              
                iilyak 77ce7f5
              
                Do not use randomize_testing for couch_srt_query_tests suite
              
              
                iilyak c6dc147
              
                Increase wait time even further
              
              
                iilyak 4b4a895
              
                Replace sleeps with wait
              
              
                iilyak 6c505f4
              
                [linter] Run erlfmt
              
              
                iilyak File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -47,6 +47,7 @@ | |
| couch_log, | ||
| couch_event, | ||
| ioq, | ||
| couch_srt, | ||
| couch_stats, | ||
| couch_dist, | ||
| couch_quickjs | ||
| 
          
            
          
           | 
    ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.