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

Kubernetes sandbox reliability updates. #2626

Merged
merged 5 commits into from
Mar 8, 2017
Merged

Kubernetes sandbox reliability updates. #2626

merged 5 commits into from
Mar 8, 2017

Conversation

thompsonja
Copy link
Contributor

Main updates:

  • Update helm vttablet template: Add cell to tablet pod name, clean shard name for non-StatefulSet tablets.
  • Update subprocesses to use sys.exit to return values, and updated subprocess component to correctly fail when scripts return non-zero values.
  • Fix tablet count for wait_for_mysql script when using > 1 cell.

Copy link
Contributor

@michael-berlin michael-berlin left a comment

Choose a reason for hiding this comment

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

LGTM after comments are addressed.

return
logging.fatal('Timed out waiting for initial reparent.')
return 0
logging.error('Timed out waiting for initial reparent.')
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a new line before this line to make it more readable?

while len(master_tablets) < num_shards:
if time.time() - start_time > timeout_s:
logging.error('Timed out waiting to find a replica tablet')
return 1
for shard_name in sharding_utils.get_shard_names(num_shards):
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a newline before this to make it more readable?

@@ -176,9 +176,10 @@ volumes:
{{- $tablet := index . 4 -}}
{{- with $tablet.vttablet -}}
{{- $0 := $.Values.vttablet -}}
{{- $cellClean := $cell.name | replace "_" "-" -}}
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed offline, please fold this into the "format-shard-name" function and rename it to e.g. "clean-label-name".

@thompsonja-bot
Copy link

Review status: 0 of 8 files reviewed at latest revision, 3 unresolved discussions.


helm/vitess/templates/_vttablet.tpl, line 179 at r2 (raw file):

Previously, michael-berlin (Michael Berlin) wrote…

As discussed offline, please fold this into the "format-shard-name" function and rename it to e.g. "clean-label-name".

Done.


test/cluster/sandbox/initial_reparent.py, line 32 at r2 (raw file):

Previously, michael-berlin (Michael Berlin) wrote…

Add a newline before this to make it more readable?

Done.


test/cluster/sandbox/initial_reparent.py, line 64 at r2 (raw file):

Previously, michael-berlin (Michael Berlin) wrote…

Add a new line before this line to make it more readable?

Done.


Comments from Reviewable

@thompsonja
Copy link
Contributor Author

thompsonja commented Mar 8, 2017

LGTM

Approved with PullApprove

@thompsonja thompsonja merged commit e7d11ff into vitessio:master Mar 8, 2017
@thompsonja thompsonja deleted the sandbox_updates branch March 8, 2017 00:08
frouioui pushed a commit to planetscale/vitess that referenced this pull request Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants