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

Add util/test package #31

Merged
merged 7 commits into from
Sep 7, 2021
Merged

Add util/test package #31

merged 7 commits into from
Sep 7, 2021

Commits on Sep 2, 2021

  1. Normalise the tokens in the external representation of the ring.

    This should remove the repetition of the ingester ID - a ~25 character string, repeated 128 times (3kb) for each ingester, allocated every 5 seconds.  For a 10 ingester cluster, thats 60KB/s of allocations (1/5s * 10 ingesters * 128 tokens * 10 ingester).  Yes, its N^2.
    
    Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
    tomwilkie authored and Tyler Reid committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    74e91a7 View commit details
    Browse the repository at this point in the history
  2. Implement kv.Client based on memberlist library. (#1727)

    Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
    pstibrany authored and Tyler Reid committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    b66a40f View commit details
    Browse the repository at this point in the history
  3. Ensure queries return correctly during rolling upgrades of stateful c…

    …luster with RF 3 and only 3 nodes. (#2503)
    
    * Use a real ring with mock KV when testing distributor.
    
    This is to teast out errors in the replication logic.
    
    Signed-off-by: Tom Wilkie <tom@grafana.com>
    
    * Extend distributor test to cover the case RF=3 with 2 ingesters.
    
    Signed-off-by: Tom Wilkie <tom@grafana.com>
    
    * Ensure ring correctly calculates the number of allowed failures when RF=3 and #ingesters=2.
    
    Signed-off-by: Tom Wilkie <tom@grafana.com>
    
    * Add changelog and review feedback.
    
    Signed-off-by: Tom Wilkie <tom@grafana.com>
    
    * Refactor some distributor tests to try and get them to pass.
    
    Signed-off-by: Tom Wilkie <tom@grafana.com>
    
    * Speed up tests but polling more frequently.
    
    Signed-off-by: Tom Wilkie <tom@grafana.com>
    
    * Fix same bug on the write path.
    
    Signed-off-by: Tom Wilkie <tom@grafana.com>
    
    * Tidy up the distributor tests.
    
    Signed-off-by: Tom Wilkie <tom@grafana.com>
    
    * Make test correctly handle RF3 and 2 ingesters - previously was succeeding when it shouldn't
    
    Signed-off-by: Tom Wilkie <tom@grafana.com>
    
    * Update pkg/ring/ring.go
    
    Co-Authored-By: Jacob Lisi <jacob.t.lisi@gmail.com>
    Signed-off-by: Tom Wilkie <tom@grafana.com>
    
    Co-authored-by: Jacob Lisi <jacob.t.lisi@gmail.com>
    2 people authored and Tyler Reid committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    b26d9c9 View commit details
    Browse the repository at this point in the history
  4. Added benchmarks on blocks storage (#2658)

    * Added benchmarks on blocks storage
    
    Signed-off-by: Marco Pracucci <marco@pracucci.com>
    
    * Moved ResetTimer()
    
    Signed-off-by: Marco Pracucci <marco@pracucci.com>
    pracucci authored and Tyler Reid committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    eae17d2 View commit details
    Browse the repository at this point in the history
  5. Disable DNS resolution for testing. (#3464)

    Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
    pstibrany authored and Tyler Reid committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    68e6f14 View commit details
    Browse the repository at this point in the history
  6. Move test to it's own package

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    522c326 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2021

  1. Update poll description

    Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
    Tyler Reid committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    301d015 View commit details
    Browse the repository at this point in the history