Giter VIP home page Giter VIP logo

Comments (1)

darrylsosborne avatar darrylsosborne commented on July 30, 2024

You have two options to make updates to WordPress instances.

WordPress instances are members of an Auto Scaling group (ASG) with health checks managed by an application load balancer. The health check service checks /wp-login.php and if it can't access it within the defined threshold (five 5 second timeouts @ 30 second intervals) then it will automatically launch a replacement instance and terminate the old one. Rebooting the instance or stopping the service for too long will cause health checks to fail and initiate a replacement. (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html)

Option 1) You can place an instance into a 'Standby' state to make updates. Standby instances are still in the ASG do not actively handle application traffic and healthchecks are suspended. Once the update is finished, change the instance back to 'InService'. http://docs.aws.amazon.com/autoscaling/latest/userguide/as-enter-exit-standby.html

Option 2) Create a new launch configuration that includes your updates and associate it with the ASG. Running instances don't automatically use the new launch config but any new instances launched as a part of the ASG will. So, double the desired size of the ASG and allow these instances to launch and successfully handle application traffic. Then reverse what you just did, halving the desired size of the ASG. The ASG default termination policy will drain connections on the oldest instances and terminate them, leaving only new instances that have your change (and any future instance launched in the ASG). This way you don't have to manually touch and update each existing instance and any new instance after it launches. (http://docs.aws.amazon.com/autoscaling/latest/userguide/change-launch-config.html)

Hope this helps.

  • Darryl

from aws-refarch-wordpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.