Giter Club home page Giter Club logo

search-indexer's Introduction

search-indexer

Index resources for search.

Development

  1. Setup development make setup
  2. Run tests make tests
  3. Run locally make run

Explore other supported tasks with make help.

Unit Test

Unit tests mock the pgx connection object. More info: https://github.com/driftprogramming/pgxpoolmock

Scale Test

Prerequisites:

You must have python, pip and locust installed

Running Locust

  1. Once we have the search indexer running with steps above, navigate to the test folder and run the following command: locust -f locust-clusters.py

  2. Follow the url provided (http://localhost:8089) and input load parameters in ui prompt. Alternatively, we can just use this one line command instead of the UI for more automatated flow: locust -f locust-clusters.py --headless --users 10 --spawn-rate 5 -H https://localhost:3010

For more on locust visit https://docs.locust.io/en/stable/index.html

Running Locust inside your cluster

  1. Build the docker image.
    docker build -f Dockerfile.locust .
    
  2. Publish the docker image.
  3. Deploy the following job on your cluster
    oc apply -f test/locustJob.yaml
    

Rebuild Date: 2022-09-26

search-indexer's People

Contributors

jlpadilla avatar sherinv avatar anxhela21 avatar dislbenn avatar mqhackett avatar xrajesh avatar

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.