persist client session on disk to recover session after broker reboot

5 views
Skip to first unread message

Jérémy Jauzion

unread,
Jun 4, 2021, 10:43:16 AMJun 4
to emqtt
I am unable to configure the broker to persist client session on disk. Whenever I reboot EMQX, I loose the session info.


I start the broker using a docker compose :

emqx1:
image: emqx/emqx:v4.0.0
environment:
- EMQX_NAME=emqx
- EMQX_NODE__NAME=emqx.local.node
- EMQX_HOST=node1.emqx.io
- EMQX_CLUSTER__DISCOVERY=static
- EMQX_RETAINER__STORAGE_TYPE=disc
volumes:
- emqx-data:/opt/emqx/data
- emqx-etc:/opt/emqx/etc
- emqx-log:/opt/emqx/log
ports:
- 18083:18083
- 1883:1883
- 8081:8081
networks:
gateway-api:
aliases:
- node1.emqx.io
Reply all
Reply to author
Forward
0 new messages