Can one use Kaniko with a RAMdisk to improve snapshotting performance? #1310
Labels
area/performance
issues related to kaniko performance enhancement
kind/question
Further information is requested
priority/p3
agreed that this would be good to have, but no one is available at the moment.
Hi,
We use Kaniko within Gitlab (using our own GItlab environment and GItlab runner, all within AWS/EKS) to build some fairly complex Docker images. We've recently observed that the "snapshotting" which Kaniko performs makes it impractical to build our most complex Docker image, because it takes too long to run. Within Gitlab, we run Kaniko by invoking '/kaniko/executor' and we're currently using gcr.io/kaniko-project/executor:debug
That Gitlab runner is already using an SSD for /var/lib/docker but we wonder if we could obtain better performance if we used a RAMdisk for the portions of the filesystem which Kaniko is snapshotting.
Our initial analysis suggests that Kaniko might be snapshotting '/' but hopefully that's incorrect.
Can you advise us which filesystems we should use RAMdisks for? Perhaps there's a way to configure this in our /kaniko/.docker/config.json file ? And perhaps we can mount a RAMdisk volume from the Gitlab runner.
Thanks.
The text was updated successfully, but these errors were encountered: