Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.27 KB

README.md

File metadata and controls

29 lines (20 loc) · 1.27 KB

Phalanx requests/limits assistance tool

This is a Jupyter notebook designed to pull usage data from the monitoring system at https://monitoring.lsst.cloud. It then uses that to make initial guesses at what requests and limits for the various Phalanx apps should be set to.

Requirements

  1. Python 3.11 or later
  2. JupyterLab environment

Installation

  1. Start in the repository root directory
  2. Create a new virtualenv: python3 -m venv <path_to_venv>
  3. Activate it: . <path_to_venv>/bin/activate
  4. Update pip: pip3 install --upgrade pip
  5. Install requirements: pip3 install -r requirements.txt
  6. Create a Jupyter kernel from the virtualenv: python -m ipykernel install --user --name=<new_kernel>

Configuration

  1. Put a token allowing you read access to all InfluxDBv2 buckets in the repository root as influxdb.token

Usage

  1. Open limits.ipynb and select your new kernel as the kernel that will run it in the upper right.
  2. From the JupyterLab Run menu, Restart Kernel and Run All Cells...
  3. After a while, summary.json will contain recommendations for all your Phalanx applications in each environment
  4. From this data, create a set of appropriate generic and site-overridden values for each application