Skip to content
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

Merged
merged 3 commits into from Apr 26, 2016
Merged

Automatically create and delete cluster #937

merged 3 commits into from Apr 26, 2016

Conversation

hildrum
Copy link
Contributor

@hildrum hildrum commented Apr 7, 2016

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.

@@ -301,3 +321,8 @@ def Cleanup(benchmark_spec):
command = ("""echo 'disable "{0}"; drop "{0}"; exit' | """
Copy link
Contributor

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.')
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, fixed, thanks.

@hildrum hildrum force-pushed the cloud_bigtable branch 2 times, most recently from 6bc7236 to c2138d1 Compare April 7, 2016 23:58
@hildrum
Copy link
Contributor Author

hildrum commented Apr 8, 2016

PTAL.

@@ -0,0 +1,84 @@
# Copyright 2014 PerfKitBenchmarker Authors. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2016

Copy link
Contributor

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.

@hildrum
Copy link
Contributor Author

hildrum commented Apr 13, 2016

@ehankland @cmccoy PTAL.

FLAGS = flags.FLAGS


class GceBigtableCluster(resource.BaseResource):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GcpBigtableCluster

@hildrum
Copy link
Contributor Author

hildrum commented Apr 13, 2016

Thanks for your comments. Ready for another review.

@ehankland
Copy link
Contributor

LGTM

@hildrum hildrum merged commit f0f4ef1 into master Apr 26, 2016
@hildrum hildrum deleted the cloud_bigtable branch April 26, 2016 17:28
ustiugov pushed a commit to parsa-epfl/PerfKitBenchmarker that referenced this pull request Jun 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants