Comments (1)
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)
- Q: Why are no custom NACLs defined?
- Slow Plugin Install time (504 Gateway Timeout errors) HOT 18
- One-Click Cloudformation template in README does not reference latest templates
- reinvent2019
- CloudFront Fails to create HOT 4
- How to update opcache configuration? HOT 1
- Won't work anymore...
- Doesn't work...
- Latest version of PHP HOT 4
- wp-admin not accessible with SSL
- Master template link 404
- EFS Resource Handler
- ElasticFileSystem' must match pattern ^(fs-)([a-z0-9]{8})$ cloudformation error
- EfsSizeMonitorFunction needs to be upgraded to python 3.9
- AutoScaling group in web stack fails to launch, PHP55 not avialable HOT 1
- Error creating stack - DatabaseCluster failed with incorrect MySql Aurora version HOT 1
- Error Creating Stack - AMI missing in Sydney Region HOT 1
- How can I recreate the AMIs with installed software?
- RDS issue HOT 1
- Stack to deploy a highly available, elastic, scalable WordPress environment. This master stack launches multiple nested stacks for different tiers. !! This can only be run in certain AWS Regions - 'us-east-1', 'us-east-2', 'us-west-2', 'eu-west-1'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-refarch-wordpress.