Can I run PerfKitBenchmarker on my local machine or data center?

ehankland edited this page Sep 7, 2016 · 8 revisions

Yes you can use what is called "static machines". Static machine were added to allow any machine with SSH access to be benchmarked by PKB. You can run on static machines with or without installing software.

The file has some examples of use. You can also mix static and provisioned machines.

Here is an example use + config...

./ --benchmarks=iperf --static_vm_file=Siberia.json

Siberia.json file:

    "ip_address": "",
    "user_name": "connormccoy",
    "keyfile_path": "/home/connormccoy/.ssh/google_compute_engine",
    "internal_ip": ""
    "ip_address": "",
    "user_name": "connormccoy",
    "keyfile_path": "/home/connormccoy/.ssh/google_compute_engine",
    "internal_ip": ""

You can read more here

There are other options you can specify like installing software (or not), using only internal IPs, disk config, etc. See all the options here -

The full list of options:

      ip_address: The ip address of the vm.
      user_name: The username of the vm that the keyfile corresponds to.
      keyfile_path: The absolute path of the private keyfile for the vm.
      internal_ip: The internal ip address of the vm.
      zone: The zone of the VM.
      local_disks: A list of the paths of local disks on the VM.
      scratch_disk_mountpoints: A list of scratch disk mountpoints.
      ssh_port: The port number to use for SSH and SCP commands.
      install_packages: If false, no packages will be installed. This is
          useful if benchmark dependencies have already been installed.

The way PKB works is first to uses machines from the static file and then uses machines from whatever cloud you specify. For example if you run a VM to VM benchmark but only configure one machine in the static_machine file you will use that one machine and also one from the Cloud.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.