[STGSUB] Grow the customersdot staging VM size
Production Change
Change Summary
As a mitigation for avoiding OOM on customers.gitlab.com as seen in https://gitlab.com/gitlab-com/gl-infra/production/-/issues/7589 we want to increase the memory of this node. Since it's a single node we'll require downtime to change the machine type. This CR is for staging where we will test first that we can change the machine type without losing the persistent disks.
Related MR for updating Terraform: https://ops.gitlab.net/gitlab-com/gl-infra/config-mgmt/-/merge_requests/4068
This change is to test growing the instance size in staging of the customers VM. This is being done manually because our Terraform uses exceptions to not modify instance types, so changes there have no effect on existing VMs.
Change Details
- Services Impacted - ServiceCustomersDot
- Change Technician - @cmcfarland
- Change Reviewer - @skarbek and @msmiley
- Time tracking - 15 minutes
- Downtime Component - 5 minutes
Detailed steps for the change
Change Steps - steps to take to execute the change
Estimated Time to Complete (mins) - Estimated Time to Complete in Minutes
-
Set label changein-progress /label ~change::in-progress -
Create disk snapshot of customers VM data disk
gcloud --project gitlab-subscriptions-staging compute snapshots create prod7590 --source-disk customers-01-inf-stgsub --source-disk-zone us-east1-c
-
Note the time for recording the downtime: 19:09 UTC -
Stop stgsub customers VM
gcloud --project gitlab-subscriptions-staging compute instances stop customers-01-inf-stgsub
-
Change stgsub customers VM size/type
gcloud --project gitlab-subscriptions-staging compute instances set-machine-type customers-01-inf-stgsub --machine-type n1-standard-8
-
Start stgsub customers VM
gcloud --project gitlab-subscriptions-staging compute instances start customers-01-inf-stgsub
-
Note the time for recording the downtime: 19:14 UTC -
Set label changecomplete /label ~change::complete
Rollback
Rollback steps - steps to be taken in the event of a need to rollback this change
Estimated Time to Complete (mins) - Estimated Time to Complete in Minutes
-
If the machine type change does not work, we can just start the VM up again and verify it's returned to operating status. -
If the machine type change causes the system to not start or start with missing data, we should stop the VM, and replace the disk with the snapshot copy (and possibly revert the machine type change). -
Set label changeaborted /label ~change::aborted
Monitoring
Key metrics to observe
- Metric: Metric Name
- Location: Dashboard URL
- What changes to this metric should prompt a rollback: Describe Changes
Change Reviewer checklist
-
Check if the following applies: - The scheduled day and time of execution of the change is appropriate.
- The change plan is technically accurate.
- The change plan includes estimated timing values based on previous testing.
- The change plan includes a viable rollback plan.
- The specified metrics/monitoring dashboards provide sufficient visibility for the change.
-
Check if the following applies: - The complexity of the plan is appropriate for the corresponding risk of the change. (i.e. the plan contains clear details).
- The change plan includes success measures for all steps/milestones during the execution.
- The change adequately minimizes risk within the environment/service.
- The performance implications of executing the change are well-understood and documented.
- The specified metrics/monitoring dashboards provide sufficient visibility for the change.
- If not, is it possible (or necessary) to make changes to observability platforms for added visibility?
- The change has a primary and secondary SRE with knowledge of the details available during the change window.
- The labels blocks deployments and/or blocks feature-flags are applied as necessary
Change Technician checklist
-
Check if all items below are complete: - The change plan is technically accurate.
- This Change Issue is linked to the appropriate Issue and/or Epic
- Change has been tested in staging and results noted in a comment on this issue.
- A dry-run has been conducted and results noted in a comment on this issue.
- For C1 and C2 change issues, the change event is added to the GitLab Production calendar.
- For C1 and C2 change issues, the SRE on-call has been informed prior to change being rolled out. (In #production channel, mention
@sre-oncalland this issue and await their acknowledgement.) - For C1 and C2 change issues, the SRE on-call provided approval with the eoc_approved label on the issue.
- For C1 and C2 change issues, the Infrastructure Manager provided approval with the manager_approved label on the issue.
- Release managers have been informed (If needed! Cases include DB change) prior to change being rolled out. (In #production channel, mention
@release-managersand this issue and await their acknowledgment.) - There are currently no active incidents that are severity1 or severity2
- If the change involves doing maintenance on a database host, an appropriate silence targeting the host(s) should be added for the duration of the change.