Not sure exactly what happened but Postgresql flooded all the available SSD space and obviously crashed. It has written a lot of data in the pg_wal folder. Most likely it was caused by replication. The postgresql instance that crashed was a subscriber and publisher at the same time. Even so, it was not a heavy write replication, I mean the data that needed to be replicated was rarely updated. Has anyone else encountered such an issue?