Skip to content

Commit

Permalink
Reconfiguring to not persist retained messages to disc. This effectiv…
Browse files Browse the repository at this point in the history
…ely kills the perofrmance by excessive disk I/O...
  • Loading branch information
freol35241 committed Oct 6, 2023
1 parent 158bcdc commit f91840b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 44 deletions.
8 changes: 4 additions & 4 deletions docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ services:
environment:
- EMQX_NAME=pontos-hub
- EMQX_HOST=127.0.0.1
# Retained messages will be persisted to disc to ensure they survive reboots etc
- EMQX_RETAINER__BACKEND__STORAGE_TYPE=disc
# Do NOT allow for subscribers to upgrade QoS
- EMQX_MQTT__UPGRADE_QOS=false
# Rate limit the number of published messages per client on the ws listener
- EMQX_LISTENERS__WS__DEFAULT__MESSAGES_RATE="1000/s"
- EMQX_LISTENERS__WS__DEFAULT__MESSAGES_RATE="5000/s"
# Lets disable the force_shutdown feature to avoid kicking out publishers with a high burst rate of messages
- EMQX_FORCE_SHUTDOWN__ENABLE=false
# Avoid queuing QoS0 messages
- EMQX_MQTT__MQUEUE_STORE_QOS0=false
# Configure logging
Expand Down Expand Up @@ -168,7 +168,7 @@ services:
- PG_CONNECTION_STRING=postgres://pontos_user:${PONTOS_DB_PASSWORD}@db:5432/pontos
- PG_TABLE_NAME=vessel_data.master
- PG_POOL_SIZE=3
- PARTITION_SIZE=1000
- PARTITION_SIZE=5000
- PARTITION_TIMEOUT=5
- DISCARD_NULL_VALUES=true
depends_on:
Expand Down
File renamed without changes.
40 changes: 0 additions & 40 deletions tests/11-test-setup-persistence.bats

This file was deleted.

0 comments on commit f91840b

Please sign in to comment.