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

minimize downtime during new deployments #322

Closed
wants to merge 1 commit into from

Conversation

LesnyRumcajs
Copy link
Member

Summary of changes
Changes introduced in this pull request:

  • this lifecycle option should minimize the downtime caused by re-deployments by first creating the new service and only then scraping the old one.

Reference issue to close (if applicable)

Closes

Other information and links

@LesnyRumcajs LesnyRumcajs requested a review from a team as a code owner October 24, 2023 12:21
@LesnyRumcajs LesnyRumcajs requested review from ruseinov and lemmih and removed request for a team October 24, 2023 12:21
@github-actions
Copy link

Forest: Calibnet Infrastructure Plan: success

Show Plan
module.calibnet.data.digitalocean_project.forest_project: Reading...
module.calibnet.data.digitalocean_ssh_keys.keys: Reading...
module.calibnet.data.digitalocean_ssh_keys.keys: Read complete after 0s [id=ssh_keys/14512061520513425405]
module.calibnet.digitalocean_droplet.forest: Refreshing state... [id=379939055]
module.calibnet.digitalocean_firewall.forest_firewall: Refreshing state... [id=179cfbb1-b532-4d06-bce7-334ec185ea3d]
module.calibnet.data.digitalocean_project.forest_project: Read complete after 1s [id=da5e6601-7fd9-4d02-951e-390f7feb3411]
module.calibnet.digitalocean_project_resources.connect_forest_project: Refreshing state... [id=da5e6601-7fd9-4d02-951e-390f7feb3411]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.calibnet.digitalocean_droplet.forest will be updated in-place
  ~ resource "digitalocean_droplet" "forest" {
        id                   = "379939055"
        name                 = "forest-calibnet"
        tags                 = [
            "calibnet",
        ]
      # Warning: this attribute value will be marked as sensitive and will not
      # display in UI output after applying this change. The value is unchanged.
      ~ user_data            = (sensitive value)
        # (23 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Saved the plan to: tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "tfplan"

Copy link
Contributor

@lemmih lemmih left a comment

Choose a reason for hiding this comment

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

Create-before-destroy caused problems in the past with NewRelic. But I trust you can do the NewRelic configuration to properly deal with this.

@LesnyRumcajs
Copy link
Member Author

Create-before-destroy caused problems in the past with NewRelic. But I trust you can do the NewRelic configuration to properly deal with this.

@lemmih What kind of problems?

@lemmih
Copy link
Contributor

lemmih commented Oct 24, 2023

Create-before-destroy caused problems in the past with NewRelic. But I trust you can do the NewRelic configuration to properly deal with this.

@lemmih What kind of problems?

I don't know any of the details but there were problems with telling NewRelic which nodes were supposed to be up and which were not.

@LesnyRumcajs
Copy link
Member Author

Alright, let me look into it more beforehand, then. Sounds fishy.

@LesnyRumcajs LesnyRumcajs marked this pull request as draft October 24, 2023 15:20
@ruseinov
Copy link

Looks ok, I'll approve. Curious about the newrelic issue.

@samuelarogbonlo
Copy link
Contributor

Alright, let me look into it more beforehand, then. Sounds fishy.

it has been fixed, the problem was new-relic was monitoring all nodes with the agent installed not the ones that was supposed to be online, since then we have added the optional installation of new relic and also filtered to specific hosts.

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