New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically create and delete cluster #937
Conversation
@@ -301,3 +321,8 @@ def Cleanup(benchmark_spec): | |||
command = ("""echo 'disable "{0}"; drop "{0}"; exit' | """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: you could probably skip this if the cluster is being deleted.
FLAGS.google_bigtable_zone_name, | ||
FLAGS.google_bigtable_cluster_name) | ||
logging.info('Found cluster: %s', cluster) | ||
logging.info('No cluster; will create in Prepare.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this gets logged even if you found a cluster
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, fixed, thanks.
6bc7236
to
c2138d1
Compare
PTAL. |
@@ -0,0 +1,84 @@ | |||
# Copyright 2014 PerfKitBenchmarker Authors. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2016
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should probably be called gcp_bigtable, rather than gce.
@ehankland @cmccoy PTAL. |
FLAGS = flags.FLAGS | ||
|
||
|
||
class GceBigtableCluster(resource.BaseResource): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GcpBigtableCluster
Thanks for your comments. Ready for another review. |
LGTM |
* Automatically create and delete cluster
Automatically create and delete a bigtable cluster if none if specified on the command line. This means the benchmark is runnable without any extra flags.
@cmccoy PTAL.