douke6857 2015-01-16 11:50
浏览 61
已采纳

W3Total缓存缓存设置仅影响具有负载均衡器的多个AWS EC2设置上的单个EC2实例?

I have an Wordpress website, which was been set using AWS by a hosting provider. The hosting setup contains 2 EC2 instances, A memcached server, an amazon load balancer and a 2 seperate database servers (One is a master and one is a slave replication, using Hyper DB). The Wordpress site would also connect to a cloudfront CDN. The setup has the ability to autoscale spawning new EC2 servers when the load increases.

Currently I am in the middle of setting up the CDN using W3Total cache. However I have come across an issue where I have saved CDN settings to enable and when I reload the page responsible for enabling the CDN, it shows that the CDN is disabled.

Upon trying to set this a few times, I realised that the whenever I make any change to any W3Total cache setting, such as the CDN, they are only set to the instance that originally saved those settings. It does not propagate over to the other EC2 instances and I would have to repeat the same process to ensure consistency across all instances.

Then I'm also worried what would happen when my setup spawns new EC2 instances, if in this situation then I don't think the settings carry forward.

Can somebody please explain to me whether or not this is completely normal on cloud based setups, such as AWS, or is there really an underlying issue?

Would also it be possible have a situation where if I save my W3Total cache settings, it gets updated on all of my EC2 instances instead of having to change the cache settings one machine at a time?

Any feedback would be greatly appreciated. Thanks.

  • 写回答

1条回答 默认 最新

  • dsu5188 2015-01-20 06:38
    关注

    Stupid me.

    I found out that W3Total Cache stores each of their config settings in a config file on a particular server. In order for the config settings to sync up with every server, we can download a settings file from one server and upload it to the other server.

    Thanks.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 PointNet++的onnx模型只能使用一次
  • ¥20 西南科技大学数字信号处理
  • ¥15 有两个非常“自以为是”烦人的问题急期待大家解决!
  • ¥30 STM32 INMP441无法读取数据
  • ¥15 R语言绘制密度图,一个密度曲线内fill不同颜色如何实现
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动
  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥500 把面具戴到人脸上,请大家贡献智慧,别用大模型回答,大模型的答案没啥用
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。