项目作者: Chassis

项目描述 :
高级语言: Puppet
项目地址: git://github.com/Chassis/Cavalcade.git
创建时间: 2016-04-13T02:45:22Z
项目社区:https://github.com/Chassis/Cavalcade

开源协议:

下载


Cavalcade for Chassis

This is an extension for Chassis to enable Cavalcade.

Cavalcade is a replacement for WordPress’ built-in cron that runs as a daemon on your system. It horizontally scales in production to ensure your scheduled tasks keep up with the scale of your site.

This extension sets up the Cavalcade Runner as a daemon on your system to allow you to replicate production much more easily.

Installation

This extension can be installed the same as any other Chassis extension:

  1. # Clone this repository into your Chassis `extensions` directory:
  2. cd extensions
  3. git clone --recursive git@github.com:Chassis/Cavalcade.git cavalcade
  4. # Re-provision your Chassis box
  5. cd ..
  6. vagrant provision

Alternatively you can add the following to one of your configuration files.

  1. extensions:
  2. - chassis/cavalcade
  3. synced_folders:
  4. logs/upstart: /var/log/upstart

You can monitor the Cavalcade Runner by SSHing into your box, then viewing the /var/log/upstart/cavalcade.log file. To view it live, simply run sudo tail -f /var/log/upstart/cavalcade.log

Troubleshooting

Cavalcade isn’t running!

If Cavalcade doesn’t appear to be running, check /var/log/syslog and look for errors with “cavalcade”. You can also check the Cavalcade log at /var/log/upstart/cavalcade.log for more information.

If you see “cavalcade respawning too fast, stopped”, this typically means that your Cavalcade jobs table hasn’t been created. Make sure you have Cavalcade installed as an MU plugin on your site, then visit your site to ensure Cavalcade creates this table.