Repository navigation
Conversation
cx* server types are no longer offered in any EU location, and hel1 lacks cpx52/62. Use the same matrix in cd.sh and cd_staging.sh with cpx types first and dedicated ccx types as fallback, and restore LOCATIONS in cd.sh. Only run terraform destroy once all server type pairs of a location are exhausted. Within a location, already provisioned servers are kept (server_type is ignored on them) and only missing ones are created with the next pair. Also add the missing ignore_changes on the staging datanode.
cx53 is not offered in any EU location and hel1 lacks cpx62. Use cpx62 with the dedicated ccx43 (same 16 vCPU) as fallback, align the location order with the other CD scripts, and only destroy once a location is exhausted.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes https://wearezeta.atlassian.net/browse/CO-67
Stacked on #950 (needs its
ignore_changes = [server_type]). Will be retargeted tomasteronce #950 is merged.Change type
Basic information
Testing
Tracking
changelog.dMotivation
CI often fails because Hetzner has no capacity for the requested VM types. On top of that, every failed attempt destroyed all VMs that had already been provisioned.
Objective
cx*types are no longer offered in any EU location, and hel1 does not offer cpx52/62. Dedicatedccx*types are offered in every location.cd.shandcd_staging.shnow use the same matrix: cpx first, ccx as fallback. TheLOCATIONSarray is restored incd.sh.terraform destroynow runs only once all server type pairs of a location are exhausted. Within a location, existing servers are kept and only missing ones are created with the next pair.wiab-staging-hetzner: adds the missingignore_changes = [server_type]ondatanode.Reason
Staying in the EU keeps artifact downloads close. ash/hil only offer the old cpx generation, and sin is far away. ccx costs more, but these VMs are short-lived.
Use case
Caveats:
offline/cd_demo.sh: same treatment,SERVER_TYPES=("cpx62" "ccx43")(cx53is not offered in the EU,ccx43keeps 16 vCPU), location order aligned, destroy only once a location is exhausted.