puma 8.0.2 → 8.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.md +154 -0
- data/README.md +28 -378
- data/docs/binding.md +135 -0
- data/docs/cluster_mode.md +241 -0
- data/docs/configuration.md +78 -0
- data/docs/{stats.md → control_server.md} +28 -8
- data/docs/{deployment.md → deployment/README.md} +23 -7
- data/docs/{kubernetes.md → deployment/kubernetes.md} +4 -4
- data/docs/{systemd.md → deployment/systemd.md} +4 -2
- data/docs/plugins.md +62 -3
- data/docs/puma_support.md +92 -0
- data/docs/rails_dev_mode.md +2 -2
- data/docs/restart.md +8 -3
- data/docs/signals.md +4 -2
- data/docs/{5.0-Upgrade.md → upgrading/5.0-Upgrade.md} +3 -3
- data/docs/{6.0-Upgrade.md → upgrading/6.0-Upgrade.md} +3 -3
- data/docs/{7.0-Upgrade.md → upgrading/7.0-Upgrade.md} +2 -2
- data/docs/{8.0-Upgrade.md → upgrading/8.0-Upgrade.md} +4 -4
- data/ext/puma_http11/extconf.rb +2 -0
- data/ext/puma_http11/http11_parser.c +6 -2
- data/ext/puma_http11/mini_ssl.c +18 -7
- data/ext/puma_http11/puma_http11.c +28 -3
- data/lib/puma/binder.rb +29 -0
- data/lib/puma/cli.rb +6 -0
- data/lib/puma/client.rb +178 -44
- data/lib/puma/client_env.rb +32 -18
- data/lib/puma/cluster/worker.rb +109 -33
- data/lib/puma/cluster/worker_handle.rb +16 -0
- data/lib/puma/cluster.rb +173 -45
- data/lib/puma/commonlogger.rb +3 -3
- data/lib/puma/configuration.rb +23 -3
- data/lib/puma/const.rb +14 -9
- data/lib/puma/control_cli.rb +14 -3
- data/lib/puma/dsl.rb +279 -92
- data/lib/puma/launcher.rb +6 -4
- data/lib/puma/minissl.rb +98 -56
- data/lib/puma/plugin/systemd.rb +1 -1
- data/lib/puma/reactor.rb +35 -3
- data/lib/puma/response.rb +28 -6
- data/lib/puma/runner.rb +5 -1
- data/lib/puma/sd_notify.rb +4 -1
- data/lib/puma/server.rb +131 -35
- data/lib/puma/thread_pool.rb +12 -1
- data/lib/puma/util.rb +8 -4
- data/lib/puma.rb +1 -1
- metadata +19 -31
- data/docs/fork_worker.md +0 -41
- data/docs/grpc.md +0 -62
- data/docs/jungle/README.md +0 -9
- data/docs/testing_benchmarks_local_files.md +0 -150
- data/docs/testing_test_rackup_ci_files.md +0 -36
- data/ext/puma_http11/PumaHttp11Service.java +0 -17
- data/ext/puma_http11/http11_parser.java.rl +0 -131
- data/ext/puma_http11/http11_parser.rl +0 -149
- data/ext/puma_http11/http11_parser_common.rl +0 -54
- data/ext/puma_http11/no_ssl/PumaHttp11Service.java +0 -15
- data/ext/puma_http11/org/jruby/puma/EnvKey.java +0 -241
- data/ext/puma_http11/org/jruby/puma/Http11.java +0 -321
- data/ext/puma_http11/org/jruby/puma/Http11Parser.java +0 -441
- data/ext/puma_http11/org/jruby/puma/MiniSSL.java +0 -509
- data/tools/Dockerfile +0 -26
- data/tools/trickletest.rb +0 -44
- /data/docs/{nginx.md → deployment/nginx.md} +0 -0
- /data/docs/{jungle → deployment}/rc.d/README.md +0 -0
- /data/docs/{jungle → deployment}/rc.d/puma +0 -0
- /data/docs/{jungle → deployment}/rc.d/puma.conf +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3397d9fda25d3cf43f3074a69c1e3358c0556bf48b73d51b64cc4bc2afa32605
|
|
4
|
+
data.tar.gz: 4401986c2c780aec6c9f087d404c71d5b1fe04e2a835f0f773f70f36d60fbb11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c33226766f891d4f2bfcfb6360a504e55186933fc896a4fa8593b843136a7e26ede1968b884a379f54a89082f67bd6b6486813ff70b0ad6a10d5464f44ccdaa
|
|
7
|
+
data.tar.gz: d25dfe4ae35a65d2b0ed5752717fb42eb405079f38bb7bb55b9b1d37607cbeb55cba7029a7e92121abad3a7995b046d1a3c2c809f8202cece2c832bf64243157
|
data/History.md
CHANGED
|
@@ -1,3 +1,84 @@
|
|
|
1
|
+
## 8.1.2 / 2026-11-17
|
|
2
|
+
|
|
3
|
+
* Security
|
|
4
|
+
* Close a TLS connection when OpenSSL reports a fatal error reading it, rather than buffering everything the client sends until `first_data_timeout`. ([GHSA-4v6q-hvv7-49h9](https://github.com/puma/puma/security/advisories/GHSA-4v6q-hvv7-49h9))
|
|
5
|
+
* On JRuby, stop request headers such as `Query-String` and `Request-Path` from changing `QUERY_STRING`, `PATH_INFO` and the other env keys that come from the request line. ([GHSA-rhww-p99c-hgj9](https://github.com/puma/puma/security/advisories/GHSA-rhww-p99c-hgj9))
|
|
6
|
+
|
|
7
|
+
CVE IDs have been requested for these advisories and will be added here once assigned.
|
|
8
|
+
|
|
9
|
+
## 8.1.1 / 2026-11-15
|
|
10
|
+
|
|
11
|
+
* Bugfixes
|
|
12
|
+
* Fix `pumactl stop` and SIGINT hanging in cluster mode when an `after_stopped` hook owns child processes ([#4135])
|
|
13
|
+
* Fix TLS stream corruption on TruffleRuby when flushing to a full socket ([#4108])
|
|
14
|
+
* Stop shipping development-only files in the gem ([#4124])
|
|
15
|
+
|
|
16
|
+
## 8.1.0 / 2026-11-15
|
|
17
|
+
|
|
18
|
+
* Features
|
|
19
|
+
* Add experimental `mold_worker` cluster mode, an alternative to `fork_worker` where new workers are forked from a retired worker that no longer serves traffic ([#4038], [#4044], [#4055])
|
|
20
|
+
* Add `on_worker_boot` hooks and `hook_error_handler` ([#3982])
|
|
21
|
+
* Add `Puma::Client.connection_closed?` API ([#4019])
|
|
22
|
+
* Add `continue_callback` to answer `Expect: 100-continue` before the request body is read ([#4028])
|
|
23
|
+
* Send a systemd watchdog ping immediately on ready ([#3980])
|
|
24
|
+
* Support the HTTP `QUERY` method ([#3973])
|
|
25
|
+
* Allow a sub-second `worker_check_interval` ([#3964])
|
|
26
|
+
* Add `allow_underscore_headers` option; set it to `false` to discard request headers with underscores in their names ([#3937])
|
|
27
|
+
|
|
28
|
+
* Security (Hardening)
|
|
29
|
+
* Limit the size of a chunked request trailer section ([#4059])
|
|
30
|
+
* Reject unescaped `{`, `}`, `` ` `` and `\` in the request path ([#3976])
|
|
31
|
+
* Reject `Content_Length` and `Transfer_Encoding` framing headers regardless of `allow_underscore_headers` ([#4021])
|
|
32
|
+
* Clear the SSL key password callback after loading the private key ([#4027])
|
|
33
|
+
* Respond with 400 to HTTP/1.1 requests with a missing or empty `Host` header ([#3957])
|
|
34
|
+
* Reject empty chunk sizes ([#3952])
|
|
35
|
+
|
|
36
|
+
* Bugfixes
|
|
37
|
+
* Fix `IO#close` hang when `notify_safely` runs in a signal handler ([#4098])
|
|
38
|
+
* Fix `fork_worker` refork recovery ([#4056])
|
|
39
|
+
* Keep a socket-activated control URL for the control server ([#4037])
|
|
40
|
+
* Close path-backed response files when writing fails ([#4033])
|
|
41
|
+
* Don't send `content-length: 0` on 304 responses with an empty body ([#4036])
|
|
42
|
+
* Fix accepting one more request after the worker shutdown command is sent ([#4032])
|
|
43
|
+
* Honour the `close` option when it appears in a `Connection` header list ([#4031])
|
|
44
|
+
* Fix wakeup deadlock ([#4025])
|
|
45
|
+
* Fix `NoMethodError` when a malformed request has no request line ([#3992])
|
|
46
|
+
* Require `null_io` in `client.rb` so `puma/client` loads on its own ([#4024])
|
|
47
|
+
* Avoid keep-alive requeue into a shutting-down thread pool ([#4016])
|
|
48
|
+
* Fix `CommonLogger` nil-logger fallback to `rack.errors` ([#4023])
|
|
49
|
+
* Fix chunked body parsing when the last-chunk terminator arrives split ([#3970])
|
|
50
|
+
* Run `after_stopped` hooks after request draining ([#4001])
|
|
51
|
+
* Restore admission gate when `queue_requests` is disabled ([#3969])
|
|
52
|
+
* Fix `pool_capacity` leak when extra IO threads exit ([#3968])
|
|
53
|
+
* Fix worker shutdown hang in `notify_safely` ([#3940])
|
|
54
|
+
* Defer removal of `on_booted`, `on_restart` and `on_stopped` to Puma 9 ([#3938])
|
|
55
|
+
* Fix `Configuration#clamp` being called twice in `Launcher` ([#3939])
|
|
56
|
+
|
|
57
|
+
* Docs
|
|
58
|
+
* Add an initial Puma support document ([#3700])
|
|
59
|
+
* Document the bundled `sd_notify` license in the README ([#4102])
|
|
60
|
+
* Add a threat model to `SECURITY.md` ([#4064])
|
|
61
|
+
* Fix typos and grammar in README, CONTRIBUTING and docs ([#4035], [#3974])
|
|
62
|
+
* Improve DSL documentation, including `queue_requests` ([#3966], [#3965])
|
|
63
|
+
|
|
64
|
+
## 8.0.3 / 2026-11-13
|
|
65
|
+
|
|
66
|
+
* Security
|
|
67
|
+
* Close connections whose reactor timeout passed even when another client keeps sending data. ([GHSA-m5xw-3hrw-qcmf](https://github.com/puma/puma/security/advisories/GHSA-m5xw-3hrw-qcmf))
|
|
68
|
+
* Don't block the reactor writing a `100 Continue` or `408` to a client that stops reading. ([GHSA-xw3h-pgr9-3vg7](https://github.com/puma/puma/security/advisories/GHSA-xw3h-pgr9-3vg7))
|
|
69
|
+
* Apply the write timeout to TLS responses and to file responses larger than 64 KB, and don't let a TLS client that stops reading keep its connection alive by sending TLS records with no request data. ([GHSA-x646-wp7c-h9mg](https://github.com/puma/puma/security/advisories/GHSA-x646-wp7c-h9mg))
|
|
70
|
+
* Bound how long a graceful shutdown or restart keeps reading an incomplete request, with the new `shutdown_body_timeout` option (default 25 seconds). ([GHSA-jm4r-w4xx-qxw7](https://github.com/puma/puma/security/advisories/GHSA-jm4r-w4xx-qxw7))
|
|
71
|
+
* Keep `+` literal in bind URL query values, and raise on an invalid `ssl_cipher_filter`. ([GHSA-r885-m39c-939g](https://github.com/puma/puma/security/advisories/GHSA-r885-m39c-939g))
|
|
72
|
+
* Verify the TLS certificate and hostname of `ssl://` control servers in `pumactl`, with the new `--control-ca-file` option for private CAs. ([GHSA-86xc-wrr9-xmmq](https://github.com/puma/puma/security/advisories/GHSA-86xc-wrr9-xmmq))
|
|
73
|
+
* Back off and rate-limit logging when `accept` runs out of file descriptors. ([GHSA-rf6g-xhmp-gm7v](https://github.com/puma/puma/security/advisories/GHSA-rf6g-xhmp-gm7v))
|
|
74
|
+
|
|
75
|
+
CVE IDs have been requested for these advisories and will be added here once assigned.
|
|
76
|
+
|
|
77
|
+
* Bugfixes
|
|
78
|
+
* Send the idle notification from a clustered worker only once per idle period, so the master no longer stops an active cluster or delays an idle shutdown ([#4101])
|
|
79
|
+
* Fix build errors on Windows arm64 with Ruby head ([#4071])
|
|
80
|
+
* Send TLS `close_notify` when closing an SSL connection on JRuby ([#4029])
|
|
81
|
+
|
|
1
82
|
## 8.0.2 / 2026-05-27
|
|
2
83
|
|
|
3
84
|
* Bugfixes
|
|
@@ -45,6 +126,30 @@
|
|
|
45
126
|
* Breaking changes
|
|
46
127
|
* Default production bind address changed from `0.0.0.0` to `::` (IPv6) when a non-loopback IPv6 interface is available; falls back to `0.0.0.0` if IPv6 is unavailable ([#3847])
|
|
47
128
|
|
|
129
|
+
## 7.2.2 / 2026-11-13
|
|
130
|
+
|
|
131
|
+
* Security
|
|
132
|
+
* Close connections whose reactor timeout passed even when another client keeps sending data. ([GHSA-m5xw-3hrw-qcmf](https://github.com/puma/puma/security/advisories/GHSA-m5xw-3hrw-qcmf))
|
|
133
|
+
* Don't block the reactor writing a `100 Continue` or `408` to a client that stops reading. ([GHSA-xw3h-pgr9-3vg7](https://github.com/puma/puma/security/advisories/GHSA-xw3h-pgr9-3vg7))
|
|
134
|
+
* Apply the write timeout to TLS responses and to file responses larger than 64 KB, and don't let a TLS client that stops reading keep its connection alive by sending TLS records with no request data. ([GHSA-x646-wp7c-h9mg](https://github.com/puma/puma/security/advisories/GHSA-x646-wp7c-h9mg))
|
|
135
|
+
* Bound how long a graceful shutdown or restart keeps reading an incomplete request, with the new `shutdown_body_timeout` option (default 25 seconds). ([GHSA-jm4r-w4xx-qxw7](https://github.com/puma/puma/security/advisories/GHSA-jm4r-w4xx-qxw7))
|
|
136
|
+
* Keep `+` literal in bind URL query values, and raise on an invalid `ssl_cipher_filter`. ([GHSA-r885-m39c-939g](https://github.com/puma/puma/security/advisories/GHSA-r885-m39c-939g))
|
|
137
|
+
* Verify the TLS certificate and hostname of `ssl://` control servers in `pumactl`, with the new `--control-ca-file` option for private CAs. ([GHSA-86xc-wrr9-xmmq](https://github.com/puma/puma/security/advisories/GHSA-86xc-wrr9-xmmq))
|
|
138
|
+
* Back off and rate-limit logging when `accept` runs out of file descriptors. ([GHSA-rf6g-xhmp-gm7v](https://github.com/puma/puma/security/advisories/GHSA-rf6g-xhmp-gm7v))
|
|
139
|
+
|
|
140
|
+
CVE IDs have been requested for these advisories and will be added here once assigned.
|
|
141
|
+
|
|
142
|
+
* Bugfixes
|
|
143
|
+
* Send the idle notification from a clustered worker only once per idle period, so the master no longer stops an active cluster or delays an idle shutdown ([#4101])
|
|
144
|
+
* Fix build errors on Windows arm64 with Ruby head ([#4071])
|
|
145
|
+
* Send TLS `close_notify` when closing an SSL connection on JRuby ([#4029])
|
|
146
|
+
|
|
147
|
+
## 7.2.1 / 2026-05-27
|
|
148
|
+
|
|
149
|
+
* Bugfixes
|
|
150
|
+
* Limit and anchor PROXY protocol v1 parsing to prevent abuse via crafted inputs ([#3947])
|
|
151
|
+
* Parse PROXY protocol only once per connection to prevent injection on keep-alive requests ([#3947])
|
|
152
|
+
|
|
48
153
|
## 7.2.0 / 2026-01-20
|
|
49
154
|
|
|
50
155
|
* Features
|
|
@@ -2341,6 +2446,55 @@ be added back in a future date when a java Puma::MiniSSL is added.
|
|
|
2341
2446
|
* Bugfixes
|
|
2342
2447
|
* Your bugfix goes here <Most recent on the top, like GitHub> (#Github Number)
|
|
2343
2448
|
|
|
2449
|
+
[#4135]:https://github.com/puma/puma/pull/4135 "PR by Nate Berkopec, merged 2026-11-15"
|
|
2450
|
+
[#4108]:https://github.com/puma/puma/pull/4108 "PR by Nate Berkopec, merged 2026-11-15"
|
|
2451
|
+
[#4124]:https://github.com/puma/puma/pull/4124 "PR by Nate Berkopec, merged 2026-11-15"
|
|
2452
|
+
[#4059]:https://github.com/puma/puma/pull/4059 "PR by William T. Nelson, merged 2026-11-09"
|
|
2453
|
+
[#3976]:https://github.com/puma/puma/pull/3976 "PR by Maksim Romanov, merged 2026-10-02"
|
|
2454
|
+
[#4021]:https://github.com/puma/puma/pull/4021 "PR by Ted Ford, merged 2026-09-27"
|
|
2455
|
+
[#4027]:https://github.com/puma/puma/pull/4027 "PR by Joshua Young, merged 2026-09-27"
|
|
2456
|
+
[#3957]:https://github.com/puma/puma/pull/3957 "PR by Joel Stimson, merged 2026-07-08"
|
|
2457
|
+
[#3952]:https://github.com/puma/puma/pull/3952 "PR by Ben Kallus, merged 2026-06-22"
|
|
2458
|
+
[#4038]:https://github.com/puma/puma/pull/4038 "PR by Joshua Young, merged 2026-10-16"
|
|
2459
|
+
[#4044]:https://github.com/puma/puma/pull/4044 "PR by Joshua Young, merged 2026-10-24"
|
|
2460
|
+
[#4055]:https://github.com/puma/puma/pull/4055 "PR by Joshua Young, merged 2026-10-25"
|
|
2461
|
+
[#3982]:https://github.com/puma/puma/pull/3982 "PR by Giles, merged 2026-10-16"
|
|
2462
|
+
[#4019]:https://github.com/puma/puma/pull/4019 "PR by Henry Blyth, merged 2026-10-03"
|
|
2463
|
+
[#4028]:https://github.com/puma/puma/pull/4028 "PR by Islam Elsayed, merged 2026-10-03"
|
|
2464
|
+
[#3980]:https://github.com/puma/puma/pull/3980 "PR by Giles, merged 2026-09-27"
|
|
2465
|
+
[#3973]:https://github.com/puma/puma/pull/3973 "PR by Sean Doyle, merged 2026-07-11"
|
|
2466
|
+
[#3964]:https://github.com/puma/puma/pull/3964 "PR by Joshua Young, merged 2026-07-04"
|
|
2467
|
+
[#3937]:https://github.com/puma/puma/pull/3937 "PR by Nate Berkopec, merged 2026-05-27"
|
|
2468
|
+
[#4098]:https://github.com/puma/puma/pull/4098 "PR by Nate Berkopec, merged 2026-11-12"
|
|
2469
|
+
[#4056]:https://github.com/puma/puma/pull/4056 "PR by Joshua Young, merged 2026-10-25"
|
|
2470
|
+
[#4037]:https://github.com/puma/puma/pull/4037 "PR by Shai, merged 2026-10-16"
|
|
2471
|
+
[#4033]:https://github.com/puma/puma/pull/4033 "PR by Oskar Eichler, merged 2026-10-16"
|
|
2472
|
+
[#4036]:https://github.com/puma/puma/pull/4036 "PR by Bruno Tostes, merged 2026-10-16"
|
|
2473
|
+
[#4032]:https://github.com/puma/puma/pull/4032 "PR by kira tully, merged 2026-10-03"
|
|
2474
|
+
[#4031]:https://github.com/puma/puma/pull/4031 "PR by Januth Nimnal, merged 2026-10-03"
|
|
2475
|
+
[#4025]:https://github.com/puma/puma/pull/4025 "PR by Xavier, merged 2026-09-28"
|
|
2476
|
+
[#3992]:https://github.com/puma/puma/pull/3992 "PR by JinHyuk Sung, merged 2026-09-28"
|
|
2477
|
+
[#4024]:https://github.com/puma/puma/pull/4024 "PR by Shane Becker, merged 2026-09-27"
|
|
2478
|
+
[#4016]:https://github.com/puma/puma/pull/4016 "PR by Morax, merged 2026-09-27"
|
|
2479
|
+
[#4023]:https://github.com/puma/puma/pull/4023 "PR by Ethan Stoner, merged 2026-09-27"
|
|
2480
|
+
[#3970]:https://github.com/puma/puma/pull/3970 "PR by Joshua Young, merged 2026-09-03"
|
|
2481
|
+
[#4001]:https://github.com/puma/puma/pull/4001 "PR by Patrik Ragnarsson, merged 2026-08-31"
|
|
2482
|
+
[#3969]:https://github.com/puma/puma/pull/3969 "PR by Joshua Young, merged 2026-07-07"
|
|
2483
|
+
[#3968]:https://github.com/puma/puma/pull/3968 "PR by Joshua Young, merged 2026-07-04"
|
|
2484
|
+
[#3940]:https://github.com/puma/puma/pull/3940 "PR by Jesper Kjeldgaard, merged 2026-06-06"
|
|
2485
|
+
[#3938]:https://github.com/puma/puma/pull/3938 "PR by Patrik Ragnarsson, merged 2026-05-27"
|
|
2486
|
+
[#3939]:https://github.com/puma/puma/pull/3939 "PR by Joshua Young, merged 2026-05-25"
|
|
2487
|
+
[#3700]:https://github.com/puma/puma/pull/3700 "PR by Richard Schneeman, merged 2026-11-13"
|
|
2488
|
+
[#4102]:https://github.com/puma/puma/pull/4102 "PR by Nate Berkopec, merged 2026-11-13"
|
|
2489
|
+
[#4064]:https://github.com/puma/puma/pull/4064 "PR by Nate Berkopec, merged 2026-10-31"
|
|
2490
|
+
[#4035]:https://github.com/puma/puma/pull/4035 "PR by Bastin, merged 2026-10-08"
|
|
2491
|
+
[#3974]:https://github.com/puma/puma/pull/3974 "PR by max, merged 2026-07-30"
|
|
2492
|
+
[#3966]:https://github.com/puma/puma/pull/3966 "PR by Joshua Young, merged 2026-07-04"
|
|
2493
|
+
[#3965]:https://github.com/puma/puma/pull/3965 "PR by Joshua Young, merged 2026-07-04"
|
|
2494
|
+
[#4101]:https://github.com/puma/puma/pull/4101 "PR by Nate Berkopec, merged 2026-11-13"
|
|
2495
|
+
[#4071]:https://github.com/puma/puma/pull/4071 "PR by Nate Berkopec, merged 2026-11-09"
|
|
2496
|
+
[#4029]:https://github.com/puma/puma/pull/4029 "PR by Islam Elsayed, merged 2026-09-28"
|
|
2497
|
+
[#3947]:https://github.com/puma/puma/pull/3947 "PR by Nate Berkopec, merged 2026-05-26"
|
|
2344
2498
|
[#3944]:https://github.com/puma/puma/pull/3944 "PR by Nate Berkopec, merged 2026-05-26"
|
|
2345
2499
|
[#3929]:https://github.com/puma/puma/pull/3929 "PR by Joshua Young, merged 2026-04-26"
|
|
2346
2500
|
[#3928]:https://github.com/puma/puma/pull/3928 "PR by Nate Berkopec, merged 2026-04-16"
|
data/README.md
CHANGED
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
[](https://github.com/puma/puma/actions/workflows/tests.yml?query=branch%3Amain)
|
|
8
8
|
|
|
9
|
+
<a href="https://commitgoods.com/collections/puma?utm_source=github&utm_medium=referral">
|
|
10
|
+
<picture>
|
|
11
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.shopify.com/s/files/1/0101/8752/files/commitgoods-badge-stacked-navy-dark.svg">
|
|
12
|
+
<img src="https://cdn.shopify.com/s/files/1/0101/8752/files/commitgoods-badge-stacked-navy.svg" height="28" alt="Official merch on commitgoods.com">
|
|
13
|
+
</picture>
|
|
14
|
+
</a>
|
|
15
|
+
|
|
9
16
|
Puma is a **simple, fast, multi-threaded, and highly parallel HTTP 1.1 server for Ruby/Rack applications**.
|
|
10
17
|
|
|
11
18
|
## Built For Speed & Parallelism
|
|
@@ -28,7 +35,7 @@ $ puma
|
|
|
28
35
|
```
|
|
29
36
|
|
|
30
37
|
Without arguments, puma will look for a rackup (.ru) file in
|
|
31
|
-
working directory called `config.ru`.
|
|
38
|
+
the working directory called `config.ru`.
|
|
32
39
|
|
|
33
40
|
## SSL Connection Support
|
|
34
41
|
|
|
@@ -88,353 +95,21 @@ You can also find several configuration examples as part of the
|
|
|
88
95
|
For debugging purposes, you can set the environment variable `PUMA_LOG_CONFIG` with a value
|
|
89
96
|
and the loaded configuration will be printed as part of the boot process.
|
|
90
97
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
```
|
|
108
|
-
$ puma -t 8:32 -w 3
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
Or with the `WEB_CONCURRENCY` environment variable:
|
|
112
|
-
|
|
113
|
-
```
|
|
114
|
-
$ WEB_CONCURRENCY=3 puma -t 8:32
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
When using a config file, most applications can simply set `workers :auto` (requires the `concurrent-ruby` gem) to match the number of worker processes to the available processors:
|
|
118
|
-
|
|
119
|
-
```ruby
|
|
120
|
-
# config/puma.rb
|
|
121
|
-
workers :auto
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
See [`workers :auto` gotchas](lib/puma/dsl.rb).
|
|
125
|
-
|
|
126
|
-
Note that threads are still used in cluster mode, and the `-t` thread flag setting is per worker, so `-w 2 -t 16:16` will spawn 32 threads in total, with 16 in each worker process.
|
|
127
|
-
|
|
128
|
-
If `workers` is set to `:auto`, or the `WEB_CONCURRENCY` environment variable is set to `"auto"`, and the `concurrent-ruby` gem is available in your application, Puma will set the worker process count to the result of [available processors](https://msp-greg.github.io/concurrent-ruby/Concurrent.html#available_processor_count-class_method).
|
|
129
|
-
|
|
130
|
-
For an in-depth discussion of the tradeoffs of thread and process count settings, [see our docs](docs/deployment.md).
|
|
131
|
-
|
|
132
|
-
In cluster mode, Puma can "preload" your application. This loads all the application code *prior* to forking. Preloading reduces total memory usage of your application via an operating system feature called [copy-on-write](https://en.wikipedia.org/wiki/Copy-on-write).
|
|
133
|
-
|
|
134
|
-
If the number of workers is greater than 1 (and `--prune-bundler` has not been specified), preloading will be enabled by default. Otherwise, you can use the `--preload` flag from the command line:
|
|
135
|
-
|
|
136
|
-
```
|
|
137
|
-
$ puma -w 3 --preload
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
Or, if you're using a configuration file, you can use the `preload_app!` method:
|
|
141
|
-
|
|
142
|
-
```ruby
|
|
143
|
-
# config/puma.rb
|
|
144
|
-
workers 3
|
|
145
|
-
preload_app!
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
Preloading can’t be used with phased restart, since phased restart kills and restarts workers one-by-one, and preloading copies the code of master into the workers.
|
|
149
|
-
|
|
150
|
-
#### Cluster mode hooks
|
|
151
|
-
|
|
152
|
-
When using clustered mode, Puma's configuration DSL provides `before_fork`, `before_worker_boot`, and `after_worker_shutdown`
|
|
153
|
-
hooks to run code when the master process forks, the child workers are booted, and after each child worker exits respectively.
|
|
154
|
-
|
|
155
|
-
It is recommended to use these hooks with `preload_app!`, otherwise constants loaded by your
|
|
156
|
-
application (such as `Rails`) will not be available inside the hooks.
|
|
157
|
-
|
|
158
|
-
```ruby
|
|
159
|
-
# config/puma.rb
|
|
160
|
-
before_fork do
|
|
161
|
-
# Add code to run inside the Puma master process before it forks a worker child.
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
before_worker_boot do
|
|
165
|
-
# Add code to run inside the Puma worker process after forking.
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
after_worker_shutdown do |worker_handle|
|
|
169
|
-
# Add code to run inside the Puma master process after a worker exits. `worker.process_status` can be used to get the
|
|
170
|
-
# `Process::Status` of the exited worker.
|
|
171
|
-
end
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
In addition, there is an `before_refork` and `after_refork` hooks which are used only in [`fork_worker` mode](docs/fork_worker.md),
|
|
175
|
-
when the worker 0 child process forks a grandchild worker:
|
|
176
|
-
|
|
177
|
-
```ruby
|
|
178
|
-
before_refork do
|
|
179
|
-
# Used only when fork_worker mode is enabled. Add code to run inside the Puma worker 0
|
|
180
|
-
# child process before it forks a grandchild worker.
|
|
181
|
-
end
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
```ruby
|
|
185
|
-
after_refork do
|
|
186
|
-
# Used only when fork_worker mode is enabled. Add code to run inside the Puma worker 0
|
|
187
|
-
# child process after it forks a grandchild worker.
|
|
188
|
-
end
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
Importantly, note the following considerations when Ruby forks a child process:
|
|
192
|
-
|
|
193
|
-
1. File descriptors such as network sockets **are** copied from the parent to the forked
|
|
194
|
-
child process. Dual-use of the same sockets by parent and child will result in I/O conflicts
|
|
195
|
-
such as `SocketError`, `Errno::EPIPE`, and `EOFError`.
|
|
196
|
-
2. Background Ruby threads, including threads used by various third-party gems for connection
|
|
197
|
-
monitoring, etc., are **not** copied to the child process. Often this does not cause
|
|
198
|
-
immediate problems until a third-party connection goes down, at which point there will
|
|
199
|
-
be no supervisor to reconnect it.
|
|
200
|
-
|
|
201
|
-
Therefore, we recommend the following:
|
|
202
|
-
|
|
203
|
-
1. If possible, do not establish any socket connections (HTTP, database connections, etc.)
|
|
204
|
-
inside Puma's master process when booting.
|
|
205
|
-
2. If (1) is not possible, use `before_fork` and `before_refork` to disconnect the parent's socket
|
|
206
|
-
connections when forking, so that they are not accidentally copied to the child process.
|
|
207
|
-
3. Use `before_worker_boot` to restart any background threads on the forked child.
|
|
208
|
-
4. Use `after_refork` to restart any background threads on the parent.
|
|
209
|
-
|
|
210
|
-
#### Master process lifecycle hooks
|
|
211
|
-
|
|
212
|
-
Puma's configuration DSL provides master process lifecycle hooks `after_booted`, `before_restart`, and `after_stopped`
|
|
213
|
-
which may be used to specify code blocks to run on each event:
|
|
214
|
-
|
|
215
|
-
```ruby
|
|
216
|
-
# config/puma.rb
|
|
217
|
-
after_booted do
|
|
218
|
-
# Add code to run in the Puma master process after it boots,
|
|
219
|
-
# and also after a phased restart completes.
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
before_restart do
|
|
223
|
-
# Add code to run in the Puma master process when it receives
|
|
224
|
-
# a restart command but before it restarts.
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
after_stopped do
|
|
228
|
-
# Add code to run in the Puma master process when it receives
|
|
229
|
-
# a stop command but before it shuts down.
|
|
230
|
-
end
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
### Error handling
|
|
234
|
-
|
|
235
|
-
If Puma encounters an error outside of the context of your application, it will respond with a 400/500 and a simple
|
|
236
|
-
textual error message (see `Puma::Server#lowlevel_error` or [server.rb](https://github.com/puma/puma/blob/main/lib/puma/server.rb)).
|
|
237
|
-
You can specify custom behavior for this scenario. For example, you can report the error to your third-party
|
|
238
|
-
error-tracking service (in this example, [rollbar](https://rollbar.com)):
|
|
239
|
-
|
|
240
|
-
```ruby
|
|
241
|
-
lowlevel_error_handler do |e, env, status|
|
|
242
|
-
if status == 400
|
|
243
|
-
message = "The server could not process the request due to an error, such as an incorrectly typed URL, malformed syntax, or a URL that contains illegal characters.\n"
|
|
244
|
-
else
|
|
245
|
-
message = "An error has occurred, and engineers have been informed. Please reload the page. If you continue to have problems, contact support@example.com\n"
|
|
246
|
-
Rollbar.critical(e)
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
[status, {}, [message]]
|
|
250
|
-
end
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
### Binding TCP / Sockets
|
|
254
|
-
|
|
255
|
-
Bind Puma to a socket with the `-b` (or `--bind`) flag:
|
|
256
|
-
|
|
257
|
-
```
|
|
258
|
-
$ puma -b tcp://127.0.0.1:9292
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
To use a UNIX Socket instead of TCP:
|
|
262
|
-
|
|
263
|
-
```
|
|
264
|
-
$ puma -b unix:///var/run/puma.sock
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
If you need to change the permissions of the UNIX socket, just add a umask parameter:
|
|
268
|
-
|
|
269
|
-
```
|
|
270
|
-
$ puma -b 'unix:///var/run/puma.sock?umask=0111'
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
Need a bit of security? Use SSL sockets:
|
|
274
|
-
|
|
275
|
-
```
|
|
276
|
-
$ puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert'
|
|
277
|
-
```
|
|
278
|
-
#### Self-signed SSL certificates (via the [`localhost`] gem, for development use):
|
|
279
|
-
|
|
280
|
-
Puma supports the [`localhost`] gem for self-signed certificates. This is particularly useful if you want to use Puma with SSL locally, and self-signed certificates will work for your use-case. Currently, the integration can only be used in MRI.
|
|
281
|
-
|
|
282
|
-
Puma automatically configures SSL when the [`localhost`] gem is loaded in a `development` environment:
|
|
283
|
-
|
|
284
|
-
Add the gem to your Gemfile:
|
|
285
|
-
```ruby
|
|
286
|
-
group(:development) do
|
|
287
|
-
gem 'localhost'
|
|
288
|
-
end
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
And require it implicitly using bundler:
|
|
292
|
-
```ruby
|
|
293
|
-
require "bundler"
|
|
294
|
-
Bundler.require(:default, ENV["RACK_ENV"].to_sym)
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
Alternatively, you can require the gem in your configuration file, either `config/puma/development.rb`, `config/puma.rb`, or set via the `-C` cli option:
|
|
298
|
-
```ruby
|
|
299
|
-
require 'localhost'
|
|
300
|
-
# configuration methods (from Puma::DSL) as needed
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
Additionally, Puma must be listening to an SSL socket:
|
|
304
|
-
|
|
305
|
-
```shell
|
|
306
|
-
$ puma -b 'ssl://localhost:9292' -C config/use_local_host.rb
|
|
307
|
-
|
|
308
|
-
# The following options allow you to reach Puma over HTTP as well:
|
|
309
|
-
$ puma -b ssl://localhost:9292 -b tcp://localhost:9393 -C config/use_local_host.rb
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
[`localhost`]: https://github.com/socketry/localhost
|
|
313
|
-
|
|
314
|
-
#### Controlling SSL Cipher Suites
|
|
315
|
-
|
|
316
|
-
To use or avoid specific SSL ciphers for TLSv1.2 and below, use `ssl_cipher_filter` or `ssl_cipher_list` options.
|
|
317
|
-
|
|
318
|
-
##### Ruby:
|
|
319
|
-
|
|
320
|
-
```
|
|
321
|
-
$ puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert&ssl_cipher_filter=!aNULL:AES+SHA'
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
##### JRuby:
|
|
325
|
-
|
|
326
|
-
```
|
|
327
|
-
$ puma -b 'ssl://127.0.0.1:9292?keystore=path_to_keystore&keystore-pass=keystore_password&ssl_cipher_list=TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA'
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
To configure the available TLSv1.3 ciphersuites, use `ssl_ciphersuites` option (not available for JRuby).
|
|
331
|
-
|
|
332
|
-
##### Ruby:
|
|
333
|
-
|
|
334
|
-
```
|
|
335
|
-
$ puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert&ssl_ciphersuites=TLS_AES_256_GCM_SHA384:TLS_AES_128_GCM_SHA256'
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
See https://www.openssl.org/docs/man1.1.1/man1/ciphers.html for cipher filter format and full list of cipher suites.
|
|
339
|
-
|
|
340
|
-
Disable TLS v1 with the `no_tlsv1` option:
|
|
341
|
-
|
|
342
|
-
```
|
|
343
|
-
$ puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert&no_tlsv1=true'
|
|
344
|
-
```
|
|
345
|
-
|
|
346
|
-
#### Controlling OpenSSL Verification Flags
|
|
347
|
-
|
|
348
|
-
To enable verification flags offered by OpenSSL, use `verification_flags` (not available for JRuby):
|
|
349
|
-
|
|
350
|
-
```
|
|
351
|
-
$ puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert&verification_flags=PARTIAL_CHAIN'
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
You can also set multiple verification flags (by separating them with a comma):
|
|
355
|
-
|
|
356
|
-
```
|
|
357
|
-
$ puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert&verification_flags=PARTIAL_CHAIN,CRL_CHECK'
|
|
358
|
-
```
|
|
359
|
-
|
|
360
|
-
List of available flags: `USE_CHECK_TIME`, `CRL_CHECK`, `CRL_CHECK_ALL`, `IGNORE_CRITICAL`, `X509_STRICT`, `ALLOW_PROXY_CERTS`, `POLICY_CHECK`, `EXPLICIT_POLICY`, `INHIBIT_ANY`, `INHIBIT_MAP`, `NOTIFY_POLICY`, `EXTENDED_CRL_SUPPORT`, `USE_DELTAS`, `CHECK_SS_SIGNATURE`, `TRUSTED_FIRST`, `SUITEB_128_LOS_ONLY`, `SUITEB_192_LOS`, `SUITEB_128_LOS`, `PARTIAL_CHAIN`, `NO_ALT_CHAINS`, `NO_CHECK_TIME`
|
|
361
|
-
(see https://www.openssl.org/docs/manmaster/man3/X509_VERIFY_PARAM_set_hostflags.html#VERIFICATION-FLAGS).
|
|
362
|
-
|
|
363
|
-
#### Controlling OpenSSL Password Decryption
|
|
364
|
-
|
|
365
|
-
To enable runtime decryption of an encrypted SSL key (not available for JRuby), use `key_password_command`:
|
|
366
|
-
|
|
367
|
-
```
|
|
368
|
-
$ puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert&key_password_command=/path/to/command.sh'
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
`key_password_command` must:
|
|
372
|
-
|
|
373
|
-
1. Be executable by Puma.
|
|
374
|
-
2. Print the decryption password to stdout.
|
|
375
|
-
|
|
376
|
-
For example:
|
|
377
|
-
|
|
378
|
-
```shell
|
|
379
|
-
#!/bin/sh
|
|
380
|
-
|
|
381
|
-
echo "this is my password"
|
|
382
|
-
```
|
|
383
|
-
|
|
384
|
-
`key_password_command` can be used with `key` or `key_pem`. If the key
|
|
385
|
-
is not encrypted, the executable will not be called.
|
|
386
|
-
|
|
387
|
-
### Control/Status Server
|
|
388
|
-
|
|
389
|
-
Puma has a built-in status and control app that can be used to query and control Puma.
|
|
390
|
-
|
|
391
|
-
```
|
|
392
|
-
$ puma --control-url tcp://127.0.0.1:9293 --control-token foo
|
|
393
|
-
```
|
|
394
|
-
|
|
395
|
-
Puma will start the control server on localhost port 9293. All requests to the control server will need to include control token (in this case, `token=foo`) as a query parameter. This allows for simple authentication. Check out `Puma::App::Status` or [status.rb](https://github.com/puma/puma/blob/main/lib/puma/app/status.rb) to see what the status app has available.
|
|
396
|
-
|
|
397
|
-
You can also interact with the control server via `pumactl`. This command will restart Puma:
|
|
398
|
-
|
|
399
|
-
```
|
|
400
|
-
$ pumactl --control-url 'tcp://127.0.0.1:9293' --control-token foo restart
|
|
401
|
-
```
|
|
402
|
-
|
|
403
|
-
To see a list of `pumactl` options, use `pumactl --help`.
|
|
404
|
-
|
|
405
|
-
### Configuration File
|
|
406
|
-
|
|
407
|
-
You can also provide a configuration file with the `-C` (or `--config`) flag:
|
|
408
|
-
|
|
409
|
-
```
|
|
410
|
-
$ puma -C /path/to/config
|
|
411
|
-
```
|
|
412
|
-
|
|
413
|
-
If no configuration file is specified, Puma will look for a configuration file at `config/puma.rb`. If an environment is specified (via the `--environment` flag or through the `APP_ENV`, `RACK_ENV`, or `RAILS_ENV` environment variables) Puma looks for a configuration file at `config/puma/<environment_name>.rb` and then falls back to `config/puma.rb`.
|
|
414
|
-
|
|
415
|
-
If you want to prevent Puma from looking for a configuration file in those locations, include the `--no-config` flag:
|
|
416
|
-
|
|
417
|
-
```
|
|
418
|
-
$ puma --no-config
|
|
419
|
-
|
|
420
|
-
# or
|
|
421
|
-
|
|
422
|
-
$ puma -C "-"
|
|
423
|
-
```
|
|
424
|
-
|
|
425
|
-
The other side-effects of setting the environment are whether to show stack traces (in `development` or `test`), and setting RACK_ENV may potentially affect middleware looking for this value to change their behavior. The default puma RACK_ENV value is `development`. You can see all config default values in `Puma::Configuration#puma_default_options` or [configuration.rb](https://github.com/puma/puma/blob/61c6213fbab/lib/puma/configuration.rb#L182-L204).
|
|
426
|
-
|
|
427
|
-
Check out `Puma::DSL` or [dsl.rb](https://github.com/puma/puma/blob/main/lib/puma/dsl.rb) to see all available options.
|
|
428
|
-
|
|
429
|
-
## Restart
|
|
430
|
-
|
|
431
|
-
Puma includes the ability to restart itself. When available (MRI, Rubinius, JRuby), Puma performs a "hot restart". This is the same functionality available in *Unicorn* and *NGINX* which keep the server sockets open between restarts. This makes sure that no pending requests are dropped while the restart is taking place.
|
|
432
|
-
|
|
433
|
-
For more, see the [Restart documentation](docs/restart.md).
|
|
434
|
-
|
|
435
|
-
## Signals
|
|
436
|
-
|
|
437
|
-
Puma responds to several signals. A detailed guide to using UNIX signals with Puma can be found in the [Signals documentation](docs/signals.md).
|
|
98
|
+
## Documentation
|
|
99
|
+
|
|
100
|
+
* [Configuration](docs/configuration.md)
|
|
101
|
+
* [Cluster mode](docs/cluster_mode.md)
|
|
102
|
+
* [Binding TCP / Sockets and SSL](docs/binding.md)
|
|
103
|
+
* [Control/Status Server and stats](docs/control_server.md)
|
|
104
|
+
* [Restart](docs/restart.md)
|
|
105
|
+
* [Signals](docs/signals.md)
|
|
106
|
+
* [Plugins](docs/plugins.md)
|
|
107
|
+
* [Deployment](docs/deployment/README.md)
|
|
108
|
+
* [Running Puma in Rails development mode](docs/rails_dev_mode.md)
|
|
109
|
+
* [Compile options](docs/compile_options.md) and [Java options](docs/java_options.md)
|
|
110
|
+
* [Architecture](docs/architecture.md)
|
|
111
|
+
* [Support policy](docs/puma_support.md)
|
|
112
|
+
* [Upgrade guides](docs/upgrading)
|
|
438
113
|
|
|
439
114
|
## Platform Constraints
|
|
440
115
|
|
|
@@ -442,38 +117,11 @@ Some platforms do not support all Puma features.
|
|
|
442
117
|
|
|
443
118
|
* **JRuby**, **Windows**: server sockets are not seamless on restart, they must be closed and reopened. These platforms have no way to pass descriptors into a new process that is exposed to Ruby. Also, cluster mode is not supported due to a lack of fork(2).
|
|
444
119
|
* **Windows**: Cluster mode is not supported due to a lack of fork(2).
|
|
445
|
-
* **Kubernetes**: The way Kubernetes handles pod shutdowns interacts poorly with server processes implementing graceful shutdown, like Puma. See the [kubernetes section of the documentation](docs/kubernetes.md) for more details.
|
|
446
|
-
|
|
447
|
-
## Deployment
|
|
120
|
+
* **Kubernetes**: The way Kubernetes handles pod shutdowns interacts poorly with server processes implementing graceful shutdown, like Puma. See the [kubernetes section of the documentation](docs/deployment/kubernetes.md) for more details.
|
|
448
121
|
|
|
449
|
-
|
|
122
|
+
## Merchandise
|
|
450
123
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
It is common to use process monitors with Puma. Modern process monitors like systemd or rc.d
|
|
455
|
-
provide continuous monitoring and restarts for increased reliability in production environments:
|
|
456
|
-
|
|
457
|
-
* [rc.d](docs/jungle/rc.d/README.md)
|
|
458
|
-
* [systemd](docs/systemd.md)
|
|
459
|
-
|
|
460
|
-
Community guides:
|
|
461
|
-
|
|
462
|
-
* [Deploying Puma on OpenBSD using relayd and httpd](https://gist.github.com/anon987654321/4532cf8d6c59c1f43ec8973faa031103)
|
|
463
|
-
|
|
464
|
-
## Community Extensions
|
|
465
|
-
|
|
466
|
-
### Plugins
|
|
467
|
-
|
|
468
|
-
* [puma-metrics](https://github.com/harmjanblok/puma-metrics) — export Puma metrics to Prometheus
|
|
469
|
-
* [puma-plugin-statsd](https://github.com/yob/puma-plugin-statsd) — send Puma metrics to statsd
|
|
470
|
-
* [puma-plugin-systemd](https://github.com/sj26/puma-plugin-systemd) — deeper integration with systemd for notify, status and watchdog. Puma 5.1.0 integrated notify and watchdog, which probably conflicts with this plugin. Puma 6.1.0 added status support which obsoletes the plugin entirely.
|
|
471
|
-
* [puma-plugin-telemetry](https://github.com/babbel/puma-plugin-telemetry) - telemetry plugin for Puma offering various targets to publish
|
|
472
|
-
* [puma-acme](https://github.com/anchordotdev/puma-acme) - automatic SSL/HTTPS certificate provisioning and setup
|
|
473
|
-
|
|
474
|
-
### Monitoring
|
|
475
|
-
|
|
476
|
-
* [puma-status](https://github.com/ylecuyer/puma-status) — Monitor CPU/Mem/Load of running puma instances from the CLI
|
|
124
|
+
Puma stickers, shirts, hoodies, and mugs are available at [commitgoods.com](https://commitgoods.com/collections/puma?utm_source=github&utm_medium=referral).
|
|
477
125
|
|
|
478
126
|
## Contributing
|
|
479
127
|
|
|
@@ -482,3 +130,5 @@ Find details for contributing in the [contribution guide](CONTRIBUTING.md).
|
|
|
482
130
|
## License
|
|
483
131
|
|
|
484
132
|
Puma is copyright Evan Phoenix and contributors, licensed under the BSD 3-Clause license. See the included LICENSE file for details.
|
|
133
|
+
|
|
134
|
+
Puma includes a copy of [`sd_notify`](https://github.com/agis/ruby-sdnotify) (commit `cca575c`), licensed under the MIT license. See [`lib/puma/sd_notify.rb`](lib/puma/sd_notify.rb) for the license text.
|