Docker Community Forums

Share and learn in the Docker community.

Docker Stats for BLOCK I/O Write is Zero with AWS EBS attached volume

docker

(Spellmarius) #1

I’m running docker daemon on an AWS EC2 instance with EBS attached volume. (gp2)
No stats are reported for BLOCK I/O Write.

e.g.
$ docker run -d ubuntu bash -c “for i in {0…1000000}; do echo ‘test’ >> test.txt; done”
$ docker stats

CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
dbf61b32848f stoic_jepsen 100.23% 183.4MiB / 3.858GiB 4.64% 828B / 0B 0B / 0B 1

Cgroup file also report zero for Writes:
$ cat /sys/fs/cgroup/blkio/blkio.throttle.io_service_bytes

1:0 Read 12288
1:0 Write 0
1:0 Sync 0
1:0 Async 12288
1:0 Total 12288
Total 95232241152

I’m running Ubuntu:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial

Is there any configuration that I’m missing in order to enable Block I/O stats?