This tool consolidates all the available tools for the performance audit, from Terminus finding the org and site url, Redis info, New Relic data, btool info, server logs, watchdogs, heaviest tables, slow query logs from master and slave db (for elite) with query digest, biggest blobs, and number of files in the files directory and how big they are.
- Install jq. jq is a lightweight and flexible command-line JSON processor. - https://stedolan.github.io/jq/
- You need to have a working Terminus - https://pantheon.io/docs/terminus/install/
- In order to run the biggest blob in your database, you need to install the Terminus Debugging Tools plugin - https://github.com/pantheon-systems/terminus_debugging_tools
- In order to run a New Relic report on the slowest performing sites, you need to install the New Relic data Terminus plugin - https://github.com/fusionx1/terminus-get-newrelic
- Working mysql client
- Working Yubi Key(Tested on gpg2)
- Edit init.sh and replace line 6 with your terminus path, you may run
which terminus
on your terminal to give you the path) - Setup the new relic image capture https://github.com/fusionx1/newrelic-image-capture-headless-chrome inside Perf-Audit-tool folder
- You must have a working NodeJS and NPM - https://nodejs.org/en/download/
- Python 2.6 or greater - https://www.python.org/downloads/
- The pip package management tool - https://pypi.python.org/pypi/pip
- A google account
- Clone this repository, go to the cloned directory and run the commands below. The output should be displayed on screen.
- Clone https://github.com/fusionx1/newrelic-image-capture-headless-chrome inside Perf-Audit-tool folder
$> cd Perf-Audit-tool
$> [email protected]:fusionx1/newrelic-image-capture-headless-chrome.git nr_image_capture
- Run this inside nr_image_capture folder
npm install --save simple-headless-chrome
-
Turn on the Google Slides API and Google Drive API You may use this guide - https://docs.google.com/document/d/1kOz7pp7dN-6ISkh-vvVFotJH3J57Avuj9GjTSfyoY0I/edit
-
Install python library
pip install --upgrade google-api-python-client
- Make sure shell scripts are executable
Perf-Audit-tool/init.sh and Perf-Audit-tool/nr_image_capture/newrelic_image_capture.sh
$ chmod +x ./init.sh
$ chmod +x ./nr_image_capture/newrelic_image_capture.sh
$ ./init.sh [ORG_UUID][SITENAME][YUBI_KEY]