23 Commits

Author SHA1 Message Date
Klaus Zanders dc3949b686 Remove deprecated on_booted and use after_booted 2026-03-02 10:29:02 +01:00
Ivan Kuchin 6f89ef4526 open app in default browser by pressing Ctrl+T 2025-10-14 13:13:02 +02:00
Markus Kahl 068a4d8620 expose reduced set of metrics used for auto scaling
We have an existing OPENPROJECT_PROMETHEUS_EXPORT which is
using the yabeda gems for prometheus metrics including ones
for puma.

We have found even just requiring those gems to cause a
memory leak in the past so I don't want to rely on this
for this auto scaling use case, especially when we just
need a very reduced set of puma metrics for it.

We have also evaluated the prometheus_exporter gem
as an alternative but it too suffers from a memory leak
in the puma collector specifically.

Hence this very simple metrics endpoint implementation on
top of the existing prometheus metrics.
That being said, by default both cannot be used at the same
time as they use the same port.
You can, however, configure the port for this feature to
avoid it.

We may want to include the web brick server in the health check
in the future, although there is not a whole lot going on
that could cause it to crash.
2025-09-25 11:29:34 +02:00
Alexander Brandon Coles 3eeb5abfab Fix missing copyright notices in config 2025-08-19 17:40:34 +01:00
Alexander Brandon Coles 78ed9ea580 Freeze string literals in config
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze config
2025-08-19 17:04:00 +01:00
Alexander d099ed1efa Add Prometheus integration #60181 2025-04-30 11:10:11 +02:00
Ivan Kuchin 03273b9370 use localhost instead of 127.0.0.1 in puma config 2024-09-30 15:38:18 +02:00
Ivan Kuchin 5b9c6d3957 cleanup puma config comments and configure host to default from HOST and default to 127.0.0.1 2024-09-30 15:38:15 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Oliver Günther 78cc8b30d4 Add Appsignal configuration 2022-06-09 15:51:22 +02:00
Markus Kahl c9256e644c only use puma, introduce rack-timeout (#9718)
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-10-04 15:42:37 +02:00
Oliver Günther dcfa0533ef Merge release/11.3 into dev 2021-06-09 08:58:46 +02:00
Markus Kahl c32b1908ac fix ArgumentError when setting RAILX_MAX_THREADs
actually convert strings to ints so they can be compared
2020-10-08 13:43:57 +01:00
Markus Kahl ae0ae1f51b make sure that max threads are at least min threads 2020-07-10 11:04:43 +01:00
Oliver Günther 2bee73387f Rename web_concurrency variable
[ci skip]
2019-10-07 10:00:38 +02:00
Markus Kahl 60c29cce82 Support using puma if configured via USE_PUMA=true (multithreading) 2019-07-11 10:35:44 +01:00
Oliver Günther 2fc4416601 Store User.current in current thread 2019-07-11 10:34:13 +01:00
a666 e745fcaa56 Correct puma config for easier production usage
Because when starting the application with `puma -C config/puma.rb` leads to the Rails class not being defined, since it has not been loaded yet.
This solves our usage in production, since we dropped unicorn a long time ago.
2019-04-24 12:28:17 -05:00
Oliver Günther 5770b69569 Create puma config for development
[ci skip]
2018-12-07 11:20:35 +01:00
Oliver Günther 5cfe0d017f Test to revert to thin and DatabaseCleaner 2018-03-29 09:05:55 +02:00
Oliver Günther 4f8d0e50d7 Add puma config for development
[ci skip]
2018-03-28 09:22:35 +02:00