def ConfigureAndStart(server, seed_node_ips=None):
  server.Install('aerospike_server')
  seed_node_ips = seed_node_ips or [server.internal_ip]

  if FLAGS.aerospike_storage_type == DISK:
    if FLAGS.data_disk_type == disk.LOCAL:
      devices = server.GetLocalDisks()
    else:
      devices = [scratch_disk.GetDevicePath()
                 for scratch_disk in server.scratch_disks]
  else:
    devices = []

  server.RenderTemplate(data.ResourcePath('aerospike.conf.j2'),
                        AEROSPIKE_CONF_PATH,
                        {'devices': devices,
                         'seed_addresses': seed_node_ips})

  for scratch_disk in server.scratch_disks:
    server.RemoteCommand('sudo umount %s' % scratch_disk.mount_point)

  server.RemoteCommand('cd %s && make init' % AEROSPIKE_DIR)
  server.RemoteCommand('cd %s; nohup sudo make start &> /dev/null &' %
                       AEROSPIKE_DIR)
  time.sleep(5)  # Wait for server to come up
Prepare the Aerospike server on a VM.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_packages/aerospike_server.py/ConfigureAndStart