...
 
Commits (11)
BSD 2-Clause License
Copyright (c) 2019, Emulab
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# cloudlab-usage
Repository with data and code related to analysis of CloudLab's control framework, facility usage, and its users.
\ No newline at end of file
This repository contains data and code involved in the analysis of ClodLab's
control framework, facility usage, and its users.
The structure of the repository is the following:
- `data/*.csv` files contain CloudLab usage data extracted from the live production databases powering the facility.
To preserve user identities, we excluded columns such as user names, used repositories and scripts, manifests, etc.
and hashed the rest of sensitive information. For details of this anonymization process, refer to
`sql2csv.ipynb` and `manifests2hardware.ipynb` notebooks. The latter processes all manifests
and extracts and saves information about the hardware used in each experiment.
- `usage.ipynb` notebook contains code for analysis of CloudLab usage, from hardware types to reservations.
This notebook loads all CSV files, displays important statistics, and produces many figures
characterizing system's utilization.
## Reproducing Results
Use the button shown below to run analysis notebooks from this repository using Binder.
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/emulab/cloudlab-usage/master)
jupyter contrib nbextension install --user
jupyter nbextension enable --py widgetsnbextension
jupyter nbextension enable python-markdown/main
# Notebooks w/ extensions that auto-run code must be "trusted" to work the first time
jupyter trust usage.ipynb
python-2.7
......@@ -240,9 +240,7 @@
"source": [
"import os, sys\n",
"import pandas as pd\n",
"import mysql.connector as sql\n",
"import numpy as np\n",
"import configparser\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"import matplotlib.ticker as mticker\n",