GithubHelp home page GithubHelp logo

isabella232 / action-scheduler-high-volume Goto Github PK

View Code? Open in Web Editor NEW

This project forked from woocommerce/action-scheduler-high-volume

0.0 0.0 0.0 13 KB

Increase Action Scheduler time limit, queue size and concurrency to process large queues of actions more quickly on high volume websites with more server resources.

Home Page: https://actionscheduler.org/perf/

PHP 100.00%

action-scheduler-high-volume's Introduction

Note: With the major improvements added to Action Scheduler 3.0, most notably the migration to custom tables for storing actions and loopback requests to chain the processing of actions, the tweaks available in this plugin should be required far less often than with earlier versions of Action Scheduler.

The code here remains mostly to demonstrate how to tweak some of the configuration that influences throughput.

Action Scheduler High Volume

Increase the processing thresholds for Action Scheduler to process large queues of actions more quickly. Handy for high volume websites with more server resources.

This plugin will change the Action Scheduler:

  • Time Limit: to process queues for up to 120 seconds, instead of the default limit of 30 seconds*.
  • Batch Size: to process batches of 100 actions and reduce time taken to claim additional actions.
  • Concurrency: to allow 10 concurrent queues to process actions, up from 5.
  • Runner Initialization Rate: to start 5 queues every time WP Cron triggers Action Scheduler (scheduled to be every minute) instead of one queue.

For more details on these changes, refer to the Action Scheduler Performance Tuning guide.

* WP Engine only supports a maximum of 60 seconds per request - if using WP Engine, the time limit set by this plugin in the ashp_increase_time_limit() function will need to be decreased from 120 to 60.

action-scheduler-high-volume's People

Contributors

lcmry avatar thenbrent avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.