Coder Social home page Coder Social logo

perfscale-jupyter-notebooks's Introduction

perfscale-jupyter-notebooks

Jupyter Notebooks used by the Performance & Scale Organization

This page contains files to automate visualizations using jupyter notebooks using Touchstone.

There are 2 different function that can be called by Touchstone

  1. Provides vast amounts of data that is mostly used for calling data with timestamps. This data can not use the aggregate function in the JSON file.

  2. Retrieves data upto 10k records with aggregation function

Below is an example of how to use touchstone with jupyter notebooks

Provide the following details:

uuid="aeed6306-b7e1-11eb-b313-e86a640406b2"
database="elasticsearch"
es_index = "ocm-requests"
es_url = os.environ.get('ES_URL')
benchmark = Benchmark(open("ocm-requests.json"), database)

Touchstone (original function call in jupyter):

  1. This is specified by calling the conn.emit_compute_dict function
  2. Can create aggregations and filter data through touchstone
  3. Limit of 10k records
  4. Returns nested dictionary

example:

for compute in benchmark.compute_map['ocm-requests'] :
    conn=databases.grab(database,es_url)
    result=conn.emit_compute_dict(uuid,
                                  compute,
                                  "ocm-requests",
                                  "uuid")
    mergedicts(result,main)

Touchstone (new function call in jupyter):

  1. This is specified by calling the database_instance.get_timeserices_results
  2. Does not have a limit of 10k
  3. return a dictionary
  4. JSON file must contain "timeseries": true statement

example:

for compute in benchmark.compute_map['ocm-requests'] :
  timeseries_result1 = database_instance.get_timeseries_results(uuid=uuid,
                                                               compute_map = compute,
                                                               index = "ocm-requests",
                                                               identifier="uuid"
                                                              )
  df = pd.DataFrame(timeseries_result1)

Building contaioner image

To build the image

podman build --tag quay.io/cloud-bulldozer/jupyterlab:v$(cat VERSION) -f ci/images/Dockerfile

To run

podman run --rm -p 8888:8888 localhost/jupyterlab:v$(cat VERSION)

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.