Update Puma config to support phased restarts

Besides phased restarts, we also add further config options and configure the systemd integration (activated sockets, watchdog).
This commit is contained in:
Sebastian Serth
2023-10-08 12:26:05 +02:00
parent e55528c598
commit 4653e93d13
2 changed files with 54 additions and 16 deletions

View File

@ -6,6 +6,11 @@ The following environment variables are specifically support in CodeOcean and ar
|- |- |- |
| `RAILS_ENV` | `development` | Specifies the Rails environment which can be configured using the files in `config/environments` |
| `RAILS_RELATIVE_URL_ROOT` | `/` | Specifies the subpath of the application, used for links and assets |
| `WEB_CONCURRENCY` | Number of physical CPU cores | Puma worker count in production or staging for cluster mode |
| `RAILS_MAX_THREADS` | `5` | Maximum Puma thread count per worker |
| `RAILS_MIN_THREADS` | `$RAILS_MIN_THREADS` | Minimum Puma thread count per worker |
| `PORT` | `7000` | Default port for the web server |
| `PIDFILE` | `tmp/pids/server.pid` | Location of the file to store the Puma process ID |
| `SENTRY_DSN` | ` ` | Specifies the [Sentry error reporting](https://sentry.io) endpoint for the Rails server |
| `SENTRY_JAVASCRIPT_DSN` | ` ` | Specifies the [Sentry error reporting](https://sentry.io) endpoint for the frontend used by browsers |
| `SENTRY_CURRENT_ENV` | ` ` | Specifies the [Sentry](https://sentry.io) environment used for error reporting |