# Redis : AOF 관련 오류 및 504 timeout

디스크가 SSD가 아닌 경우 AOF 쓰기작업 디스크가 느려서 발생 하며, 주로 발생되는 증상은 한꺼번에 많은 파일을 동기화하는 과정에서 504 timeout이 나오는 증상이 발생 합니다.

<p class="callout warning">Asynchronous AOF fsync is taking too long (disk is busy?).  
Writing the AOF buffer without waiting for fsync to complete, this may slow down Redis.  
</p>

```shell
 docker run --name redis \
     -p 6379:6379 \
     -v /volume1/docker/redis/data:/data \
     -e TZ=Asia/Seoul \
     -d redis:latest redis-server --appendonly yes --appendfsync no
```

이 경우 Redis Container 설치 시 "--appendfsync no" 옵션을 넣어 줍니다.