Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Reduce memory usage by starting Puma in single mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Dec 12, 2023
1 parent 4776811 commit a3025ad
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions guide/external-server/.env
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ ADMIN_PASSWORD=my-secret-login-password
#
# Optional: Allow iframe embedding
# FRAME_ANCESTORS=https://my-other-home-automation-software.com
#
# Start web server Puma in single mode (recommended to reduce memory usage)
WEB_CONCURRENCY=0
#

##################################################################
# Influx database settings
Expand Down
1 change: 1 addition & 0 deletions guide/external-server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
- INFLUX_MEASUREMENT_PV
- INFLUX_MEASUREMENT_FORECAST
- INFLUX_POLL_INTERVAL
- WEB_CONCURRENCY
healthcheck:
test: ['CMD-SHELL', 'nc -z 127.0.0.1 3000 || exit 1']
restart: always
Expand Down
4 changes: 4 additions & 0 deletions guide/mqtt-evcc/.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ ADMIN_PASSWORD=my-secret-login-password
#
# Optional: Allow iframe embedding
# FRAME_ANCESTORS=https://my-other-home-automation-software.com
#
# Start web server Puma in single mode (recommended to reduce memory usage)
WEB_CONCURRENCY=0
#

##################################################################
# Influx database settings
Expand Down
1 change: 1 addition & 0 deletions guide/mqtt-evcc/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
- INFLUX_MEASUREMENT_PV
- INFLUX_MEASUREMENT_FORECAST
- INFLUX_POLL_INTERVAL
- WEB_CONCURRENCY
healthcheck:
test: ['CMD-SHELL', 'nc -z 127.0.0.1 3000 || exit 1']
restart: always
Expand Down
4 changes: 4 additions & 0 deletions guide/mqtt-iobroker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ ADMIN_PASSWORD=my-secret-login-password
#
# Optional: Allow iframe embedding
# FRAME_ANCESTORS=https://my-other-home-automation-software.com
#
# Start web server Puma in single mode (recommended to reduce memory usage)
WEB_CONCURRENCY=0
#

##################################################################
# Influx database settings
Expand Down
1 change: 1 addition & 0 deletions guide/mqtt-iobroker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
- INFLUX_MEASUREMENT_PV
- INFLUX_MEASUREMENT_FORECAST
- INFLUX_POLL_INTERVAL
- WEB_CONCURRENCY
healthcheck:
test: ['CMD-SHELL', 'nc -z 127.0.0.1 3000 || exit 1']
restart: always
Expand Down
4 changes: 4 additions & 0 deletions guide/raspberry-pi/.env
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ ADMIN_PASSWORD=my-secret-login-password
#
# Optional: Allow iframe embedding
# FRAME_ANCESTORS=https://my-other-home-automation-software.com
#
# Start web server Puma in single mode (recommended to reduce memory usage)
WEB_CONCURRENCY=0
#

##################################################################
# Influx database settings
Expand Down
1 change: 1 addition & 0 deletions guide/raspberry-pi/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
- INFLUX_MEASUREMENT_PV
- INFLUX_MEASUREMENT_FORECAST
- INFLUX_POLL_INTERVAL
- WEB_CONCURRENCY
healthcheck:
test: ['CMD-SHELL', 'nc -z 127.0.0.1 3000 || exit 1']
restart: always
Expand Down
4 changes: 4 additions & 0 deletions guide/synology/.env
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ ADMIN_PASSWORD=my-secret-login-password
#
# Optional: Allow iframe embedding
# FRAME_ANCESTORS=https://my-other-home-automation-software.com
#
# Start web server Puma in single mode (recommended to reduce memory usage)
WEB_CONCURRENCY=0
#

##################################################################
# Influx database settings
Expand Down
1 change: 1 addition & 0 deletions guide/synology/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
- INFLUX_MEASUREMENT_PV
- INFLUX_MEASUREMENT_FORECAST
- INFLUX_POLL_INTERVAL
- WEB_CONCURRENCY
healthcheck:
test: ['CMD-SHELL', 'nc -z 127.0.0.1 3000 || exit 1']
restart: always
Expand Down

0 comments on commit a3025ad

Please sign in to comment.