负载平衡Web服务器+保存内容同步 [英] Load balancing web servers + keeping content synced

查看:173
本文介绍了负载平衡Web服务器+保存内容同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在考虑实施EC2的弹性负载平衡的功能,但我运行一个Web应用程序(在LAMP栈),有频繁的变化,不知道最常见的策略是保持应用程序的同步服务器之间是负载平衡。该数据库将在别处住,所以我只是担心,(在这一点上)关于保持实际脚本同步,当我做出改变。

解决方案

解决这个问题的方法之一是使用的持续集成可与的rsync 和构建服务器上的项目,这是不是现在。

有一大群可用的插件(PHPUnit的,code覆盖,code分析等):

詹金斯

如何:

  1. 安装詹金斯
  2. 配置项目(可能是您code应该是在一些code版本系统)与詹金斯
    1. 配置服务器,项目的路径,pre-作业,作业后,等。
  3. 制定工作计划/任务。
  4. 就是这样,做的。

参考:

  1. 配置:
    1. 配置 - 例1
    2. 初始配置
      1. 配置工作
  2. http://agile.dzone.com/news/continuous-integration-php

I'm considering implementing EC2's Elastic Load Balancing features, but I'm running a web application (on the LAMP stack) that has frequent changes and wondering what the most common strategy is for keeping the application in sync between the servers that are load balanced. The database would live elsewhere, so I'm only worried (at this point) about keeping the actual scripts in sync when I make changes.

解决方案

The one way of addressing this problem is using a continuous integration which can transfer your files with rsync and build the project on the servers, this is not just yet.

There are quite a bunch of plugins available (PHPUnit, Code Coverage, Code Analysis, etc):

Jenkins

How:

  1. Install Jenkins
  2. Configure your project (probably you code should be in some code-version-system) with Jenkins

    1. Configure the servers, project-path, pre-job, post-job, etc.

  3. Schedule the work/job.
  4. That's it, done.

Reference:

  1. Configuration:

    1. configuring - ex.1
    2. Initial configuration

      1. Configuring the jobs

  2. http://agile.dzone.com/news/continuous-integration-php

这篇关于负载平衡Web服务器+保存内容同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆