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 解决一个加好友限制问题 或者有好的方案
  • ¥15 关于#java#的问题,请各位专家解答!
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
  • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?
  • ¥30 求解达问题(有红包)