def METHOD_NAME(benchmark_spec):
  """Install tomcat on one VM and wrk on another.
  Args:
    benchmark_spec: The benchmark specification. Contains all data that is
        required to run the benchmark.
  """
  tomcat_vm = benchmark_spec.vm_groups['server'][0]
  wrk_vm = benchmark_spec.vm_groups['client'][0]
  tomcat_vm.AllowPort(tomcat.TOMCAT_HTTP_PORT)
  background_tasks.RunThreaded(
      (lambda f: f()),
      [
          functools.partial(_PrepareServer, tomcat_vm),
          functools.partial(_PrepareClient, wrk_vm),
      ],
  )