Skip to content

Commit

Permalink
Merge branch 'patch-4' of https://github.com/tomswinkels/docs into to…
Browse files Browse the repository at this point in the history
…mswinkels-patch-4
  • Loading branch information
taylorotwell committed Aug 24, 2019
2 parents 0326510 + 7484a10 commit fcb7fff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions horizon.md
Expand Up @@ -65,6 +65,13 @@ Horizon allows you to choose from three balancing strategies: `simple`, `auto`,

The `auto` strategy adjusts the number of worker processes per queue based on the current workload of the queue. For example, if your `notifications` queue has 1,000 waiting jobs while your `render` queue is empty, Horizon will allocate more workers to your `notifications` queue until it is empty. When the `balance` option is set to `false`, the default Laravel behavior will be used, which processes queues in the order they are listed in your configuration.

#### Min/Max processes Options

The `horizon` configuration file allows you to configure the max and min processes. The queue will now autoscale up to the maximum of processes.

'minProcesses' => 1,
'maxProcesses' => 5,

#### Job Trimming

The `horizon` configuration file allows you to configure how long recent and failed jobs should be persisted (in minutes). By default, recent jobs are kept for one hour while failed jobs are kept for a week:
Expand Down

0 comments on commit fcb7fff

Please sign in to comment.