Skip to content

Commit 9555e96

Browse files
Document using wildcards in Horizon environments (#9706)
* document wildcard in horizon environments * Update horizon.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 329323e commit 9555e96

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

horizon.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ After installation, the primary Horizon configuration option that you should fam
7474
],
7575
],
7676

77+
You may also define a wildcard environment (`*`) which will be used when no other matching environment is found:
78+
79+
'environments' => [
80+
// ...
81+
82+
'*' => [
83+
'supervisor-1' => [
84+
'maxProcesses' => 3,
85+
],
86+
],
87+
],
88+
7789
When you start Horizon, it will use the worker process configuration options for the environment that your application is running on. Typically, the environment is determined by the value of the `APP_ENV` [environment variable](/docs/{{version}}/configuration#determining-the-current-environment). For example, the default `local` Horizon environment is configured to start three worker processes and automatically balance the number of worker processes assigned to each queue. The default `production` environment is configured to start a maximum of 10 worker processes and automatically balance the number of worker processes assigned to each queue.
7890

7991
> [!WARNING]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy