Skip to content

roachprod: Configure Azure disks.#55975

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
miretskiy:azure
Oct 26, 2020
Merged

roachprod: Configure Azure disks.#55975
craig[bot] merged 1 commit intocockroachdb:masterfrom
miretskiy:azure

Conversation

@miretskiy
Copy link
Copy Markdown
Contributor

Add ability to specify the size of the attached disks for Azure.
Use read only caching for Azure premium disks.

Release Notes: None

@miretskiy miretskiy requested a review from arulajmani October 26, 2020 15:27
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

LGTM modulo one suggestion.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @arulajmani and @miretskiy)


pkg/cmd/roachprod/vm/azure/azure.go, line 595 at r1 (raw file):

		case "premium-disk":
			storageAccType = compute.StorageAccountTypesPremiumLRS
			caching = compute.CachingTypesReadOnly

Can we make this configurable and have it default to None? Considering how many times we've gotten burned by hard coded things in roachprod, I think we should surface this to users rather than have them find this "magic" only if they go digging in.

@miretskiy
Copy link
Copy Markdown
Contributor Author

Done. Added --azure-disk-caching flag.

Copy link
Copy Markdown
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

Thanks! one nit but otherwise this should be good to merge.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @miretskiy)


pkg/cmd/roachprod/vm/azure/azure.go, line 605 at r2 (raw file):

			caching = compute.CachingTypesReadOnly
		case "read-write":
			caching = compute.CachingTypesReadWrite

nit: could you add a case for None and a default option so that if the user makes a typo or something they're informed rather than surprised?

@miretskiy
Copy link
Copy Markdown
Contributor Author

done.

Add ability to specify the size of the attached disks for Azure.
Use read only caching for Azure premium disks.

Release Notes: None
Copy link
Copy Markdown
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @miretskiy)

@miretskiy
Copy link
Copy Markdown
Contributor Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 26, 2020

Build succeeded:

@craig craig bot merged commit 4a58b36 into cockroachdb:master Oct 26, 2020
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.

3 participants