Giter VIP home page Giter VIP logo

search-blitz's Introduction

search-blitz

The purpose of search-blitz is to provide a baseline for our search performance. Search-blitz calls the GraphQL API of Sourcegraph.com for typical queries in regular intervals collecting performance metrics relevant for search. The set of queries is fixed. The queries are segmented by type, and performance metrics are available for each segment on dedicated instances of Prometheus and Grafana. The raw data, including links to Jaeger traces, are available as logs (stream and file).

How to track your query

  1. Create a new file in ./data
    • Give it a name that is descriptive for the type of queries you want to track. The file name without extension is used as label for prometheus metrics.
    • Add 1 query per line.
  2. Deploy

How to deploy a new version

  1. Merge your changes to main
  2. Build and upload a new docker image:
    ./scripts/build.sh <next-version, e.g. 0.0.2>
    
  3. Update the image tag in deploy-sourcegraph-dot-com
    ./scripts/update-deploy-sourcegraph-dot-com.sh <next-version, e.g. 0.0.2>
    

How to access the Grafana dashboard

kubectl port-forward search-blitz-0 3000:3000 -n monitoring

open http://localhost:3000

Credentials: 1password.

How to download logs

Logs are stored in search-blitz-data/logs on the persistent volume which is attached to all containers.

kubectl cp monitoring/search-blitz-0:search-blitz-data/logs -c search-blitz .

Logs are rotated every 10 mb.

Search-blitz user

search-blitz calls the GraphQL API with a token of a dedicated user.

Credentials: 1password.

search-blitz's People

Contributors

stefanhengl avatar camdencheek avatar

Watchers

Dominic Cooney avatar Cezary Bartoszuk avatar Rishabh Mehrotra avatar Yink Teo avatar  avatar Steve Yegge avatar Nelson Araujo avatar Kerberos avatar Christy Haragan avatar James Cloos avatar Rijnard van Tonder avatar Felipe Janer avatar Rafał Gajdulewicz avatar  avatar Murat Sutunc avatar Artem Ruts avatar Will Dollman avatar  avatar  avatar Christina Forney avatar Bill Creager avatar Chris Sells avatar Alex Fogg avatar Ryan avatar Prosper Otemuyiwa avatar Stephen Gutekanst avatar  avatar Rik avatar Sanjeev Sekar avatar  avatar Dulani Wallace avatar Taiyab Raja avatar Samson Goddy avatar Christoph Hegemann avatar Cesar Jimenez avatar Shivasurya avatar Rok Novosel avatar Jason Gornall avatar  avatar Vincent avatar Ryan Aznar avatar Serina Clark avatar Daniel Dides avatar Geoffrey Gilmore avatar Kevin Wojkovich avatar Megan avatar Rami avatar DJ Shinndig avatar Joel Kwartler avatar Bill Caplan avatar Maedah Batool avatar  avatar Adham Khalifa avatar Nate Tang avatar Mohammad Alam avatar Ben Gordon avatar Erik Seliger avatar Alicja Suska avatar Robert Lin avatar  avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.