Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support Processing Units #34

Merged
merged 11 commits into from
Sep 10, 2021
Merged

Support Processing Units #34

merged 11 commits into from
Sep 10, 2021

Conversation

apstndb
Copy link
Contributor

@apstndb apstndb commented Aug 10, 2021

What this PR does / Why we need it

To keep compatibility, this PR simply adds

  • spec
    • maxProcessingUnits
    • minProcessingUnits
  • status
    • desiredProcessingUnits
    • currentProcessingUnits

and support both of *ProcessingUnits and *Nodes.

In wording, I want to propose:

  • Use "compute capacity" as the abstract term.
  • Use "processing units(PU)" as the base unit for compute capacity.
  • Use "nodes" as the supplementary unit which is equals to 1000 PU.

See also https://cloud.google.com/spanner/docs/compute-capacity?hl=en for the official use of these terms.

Which issue(s) this PR fixes

Fixes #26

@apstndb apstndb marked this pull request as ready for review August 13, 2021 11:43
@apstndb apstndb requested a review from a team as a code owner August 13, 2021 11:43
Copy link
Contributor

@rustycl0ck rustycl0ck left a comment

Choose a reason for hiding this comment

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

Just some queries to clarify my understanding

Co-authored-by: tkuchiki <kuchiki.taku@gmail.com>
@apstndb apstndb requested a review from tkuchiki September 10, 2021 03:48
Copy link
Contributor

@tkuchiki tkuchiki left a comment

Choose a reason for hiding this comment

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

LGTM

@tkuchiki tkuchiki merged commit 766c015 into mercari:master Sep 10, 2021
@apstndb apstndb deleted the processing-units branch September 13, 2021 04:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suppor low cost instances(a.k.a. Processing Units)
3 participants