You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alt="Current AWS Lightsail WordPress production architecture with monitoring, automated snapshots, rollback recovery and alerting"
193
194
class="architecture-diagram"
194
195
>
195
196
</a>
196
197
</div>
197
198
198
199
<p>
199
-
Following the incident, the architecture was redesigned to use a snapshot-based recovery strategy with automated retention and monitoring.
200
+
The current production architecture combines AWS Lightsail hosting with automated snapshots, monitoring, alerting and rollback recovery workflows.
201
+
</p>
202
+
203
+
<p>
204
+
The production WordPress site runs on the official AWS Lightsail WordPress blueprint in eu-west-2, using a static IP and DNS-based routing for stable public access.
205
+
</p>
206
+
207
+
<p>
208
+
Automated daily snapshots provide short-term recovery, while EventBridge-triggered Lambda snapshots provide longer-term retention. CloudWatch alarms, Route 53 health checks and SNS notifications monitor availability and operational health.
200
209
</p>
201
210
202
211
<p>
203
-
This improved approach prioritises fast, reliable recovery and removes the need for manual environment reconstruction.
212
+
A separate recovery instance workflow allows snapshots to be restored and tested before cutover, reducing operational risk during migration and disaster recovery scenarios.
<li>Weekly automated snapshots via Lambda (12-month retention, to bypass the above limitation)</li>
218
227
</ul>
219
228
220
-
<p>
221
-
An EventBridge schedule triggers a Lambda function to create weekly snapshots, with CloudWatch monitoring and SNS email alerts for failure detection.
222
-
</p>
229
+
<p>
230
+
An EventBridge schedule triggers a Lambda function to create weekly snapshots, with CloudWatch monitoring and SNS email alerts for failure detection.
231
+
</p>
223
232
224
-
<p>
225
-
This design ensures both short-term recovery and long-term resilience without manual intervention.
226
-
</p>
233
+
<p>
234
+
This design improves both short-term recovery capability and long-term operational resilience without requiring manual intervention.
235
+
</p>
227
236
</div>
228
-
237
+
229
238
<h2>Platform Migration</h2>
230
239
231
240
<divclass="content-block">
@@ -251,6 +260,34 @@ <h2>Platform Migration</h2>
251
260
</p>
252
261
</div>
253
262
263
+
<h2>Monitoring & Operational Stability</h2>
264
+
265
+
<divclass="content-block">
266
+
267
+
<p>
268
+
After migration to the official Lightsail WordPress blueprint, the production site experienced intermittent instability caused by memory pressure on a 1 GB instance with no swap configured.
269
+
</p>
270
+
271
+
<p>
272
+
Investigation showed the issue was most likely caused by temporary RAM exhaustion during periods of increased WordPress, Apache or background maintenance activity.
<li>Configured a persistent 1 GB swap file for improved stability under memory pressure</li>
279
+
<li>Implemented Route 53 HTTPS health checks for external uptime monitoring</li>
280
+
<li>Added CloudWatch alarms and SNS email notifications for outage detection</li>
281
+
<li>Added Lightsail alarms for CPU utilisation, burst capacity and status check failures</li>
282
+
<li>Validated end-to-end alerting using a real Apache outage test</li>
283
+
</ul>
284
+
285
+
<p>
286
+
These changes improved operational visibility and significantly strengthened the resilience of the production environment.
287
+
</p>
288
+
289
+
</div>
290
+
254
291
<h2>Cost</h2>
255
292
256
293
<divclass="content-block">
@@ -288,17 +325,17 @@ <h2>Outcome</h2>
288
325
<li>The site is live in production on the official AWS Lightsail WordPress blueprint.</li>
289
326
<li>HTTPS, redirects, contact forms, analytics and Google Workspace mail flow are working correctly.</li>
290
327
<li>Typical monthly hosting cost was reduced by ~94–96% compared with the previous managed hosting setup.</li>
291
-
<li>Recovery is now based on Lightsail snapshots, automated weekly snapshots and tested rollback workflows.</li>
292
-
<li>The final solution balances simplicity, cost control and operational reliability.</li>
328
+
<li>Recovery and monitoring now include automated snapshots, rollback workflows, Route 53 health checks, CloudWatch alarms and SNS alerting.</li>
329
+
<li>The platform now balances simplicity, cost control, recoverability and operational reliability.</li>
293
330
</ul>
294
331
</div>
295
332
296
333
<h2>Next Steps</h2>
297
334
298
335
<divclass="content-block">
299
-
<p>
300
-
Next steps include improving observability, tightening backup validation, and strengthening recovery documentation. As requirements grow, the architecture could evolve beyond Lightsail to a more modular AWS design.
301
-
</p>
336
+
<p>
337
+
Future improvements could include infrastructure-as-code deployment, centralized logging, enhanced metrics collection and migration to a more modular multi-service AWS architecture if scaling requirements increase.
0 commit comments