Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Windows Installation Guide

jmuharsky edited this page Jan 21, 2015 · 8 revisions

PerfKit Explorer Installation Guide


PerfKit is a service & web front end for composing queries and dashboards, and sharing the results.

Note the installation instructions below are based on using a Google Cloud Platform Compute instance, using the Windows Server image. Instructions for platform installation may vary depending on your operating system and patch levels.

Set up your workstation


  1. Install the Python 2.7 SDK

  2. Install the Java 7 SDK

  3. Install Git

  4. Install the Google Cloud SDK

    • note: Choose "Python & PHP" from the languages options.
    • note: Restart your shell after installing gcloud to initialize the relevant paths.
  5. Authorize your workstation to connect to Google Cloud resources:

      gcloud auth login
    
  6. Install the Google App Engine SDK for Python.

    • note: The Google App Engine SDK for Windows has a UI as well as a command-line interface (CLI) that can be used to manage, launch and deploy applications. If you are going to use the CLI for deploying the app, you will need to add the App Engine SDK to your PATH so that you can find appcfg.py.
  7. Create a root folder for your source code (i.e.: %HOMEPATH%\Projects) and navigate to it.

  8. Create a GitHub account at http://www.github.com.

  9. Clone this repository:

      git clone https://github.com/GoogleCloudPlatform/PerfKitExplorer.git
    

    If you have connected and authenticated correctly, the source code for PerfKit Explorer will download. Your projects folder will contain:

      (Projects)
        PerfKitExplorer
          bin
          client
          ...
          compile.sh
          app.yaml
    
  10. Change to the PerfKitExplorer folder and download the Closure Tools, which are included as a submodule in the project:

     git submodule update --init
    

Create the App Engine project

  1. Create a Google Cloud project.
  2. Under the API's tab, enable the BigQuery service.

Create the BigQuery repository

  1. Create a Google Cloud project, or user the same one you used for the App Engine project.

  2. Enable billing for your Cloud Project (available from links on the left-hand side) https://console.developers.google.com/project/apps~MYPROJECT/settings

  3. Create a dataset (ex: samples_mart):

      bq mk --project=MYPROJECT samples_mart
    
  4. Change folders to the sample data folder:

      pushd ~/projects/PerfKitExplorer/data/samples_mart
    
  5. Upload the sample data to a new table in your dataset (ex: results):

      bq load --project=MYPROJECT \
        --source_format=NEWLINE_DELIMITED_JSON \
        samples_mart.results \
        ./sample_results.json \
        ./results_table_schema.json
    
      popd
    
  6. Add the service account from your App Engine project as an authorized use of your BigQuery project.

Compile and Deploy PerfKit Explorer

  1. Navigate to the PerfKitExplorer directory:

      cd %HOMEPATH%\Projects\PerfKitExplorer
    
  2. Modify the app.yaml file so that the application name matches the project id you created in the 'Create the App Engine project' step, and the version string is set appropriately. For example:

      application: perfkit-explorer-demo
      version: beta
    
  3. Compile the application.

      compile.cmd
    
  4. You will now find a %HOMEPATH%\Projects\PerfKitExplorer\deploy folder.

  5. Deploy PerfKit Explorer to App Engine.

      appcfg.py --oauth2 update deploy
    
  6. By default the application will be deployed to a build/version specific to your client. For example, with the following app.yaml values:

      version: 15
      application: MYPERFKIT
    

    will deploy to http://15-dot-MYPERFKIT.appspot.com