Coder Social home page Coder Social logo

logextractor's Introduction

Log Extractor

Search Indexer

Performance Test

How To Use

  1. First run a set of bulk requests against the search-indexer instance. An example bulk request script can be found at scripts/bulk_request.sh. Navigate to the pod on Kubernetes and run the script inline (use "()"). For example:
(
#!/bin/sh
i=0
m="GREG"
while [ "$i" -ne 100 ]
do
eval 'curl -u sba:dev -o /dev/null -s -w %{time_total} --url "http://localhost:8080/rest/api/search?searchTerm=$m$i$m&systemAreaId=DEFAULT"'
echo ""
sleep 0.2
i=$((i + 1))
done
$SHELL
)
  1. Go to Grafana and extract the logs over that time period. (You can filter by app and namespace). It's likely that this will comprise multiple files, you do not need to collate them into a single file.
  2. Paste these log files into a directory named logs_in in this project's working directory
  3. Run Main
  4. The extracted times for each metric category should be contained in a correspondingly named file in extracted_out ( also in the working directory)

Notes

If you want to rerun the test, you should change the m variable to a different keyword to prevent any Lucene caches from kicking in

logextractor's People

Contributors

anilbanarsee avatar

Watchers

 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.