vendredi 31 mars 2017

Is there a way to easily make a specific directory slow for a unit test?

My goal is to run a test against a file system which is intentionally slow, to test performance metrics in chaotic storage scenarios. In the same sense that there are ways to limit memory and cpu with cgroups in containers, i've considered wether or not there is a io limitation i can impose.

  • Is there a way to mount a simple file system to a directory which is intentionally slowed down ?
  • Alternatively, is there a way to make a docker container limit disk operation qoutas on a container, by issuing a command line operation (not that the command line operation part is important here - because if I run this on a docker container, it will be started inside of kubernetes for me).

Aucun commentaire:

Enregistrer un commentaire