[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Image garbage collection doesn't work as expected



I think that should work. OpenShift will redownload any image it needs. You could write a script that looks up the image IDs for the various images you want to keep and use "grep -v" to exclude them perhaps when deleting.

On Fri, Jan 8, 2016 at 7:41 AM, v <vekt0r7 gmx net> wrote:
Thanks for the info!

Can I just use "docker rmi $(docker images -q)" until we update to 1.1 or will this break something?

The command above will also delete stuff like "docker.io/openshift/origin-deployer" if it's not being used at the moment. Will OS just re-download those or will it break?

Regards,
v


Am 2016-01-08 um 13:26 schrieb Andy Goldstein:
There is a bug prior to version 1.1 that kept this from working (cAdvisor wasn't able to determine usage correctly with the devicemapper graph driver for Docker).

Andy

On Fri, Jan 8, 2016 at 5:08 AM, v <vekt0r7 gmx net> wrote:
I forgot to mention that I have already done a "systemctl restart origin-node". Do I need to restart docker too for this setting to take effect?


-------- Weitergeleitete Nachricht --------









Hello,

I have modified my /etc/origin/node/node-config.yaml to look like this:

"[...]
volumeDirectory: /var/lib/origin/openshift.local.volumes
kubeletArguments:
  "read-only-port":
    - "10255"
  image-gc-high-threshold:
    - "80"
  image-gc-low-threshold:
    - "70"
podManifestConfig:
  path: openshift.local.manifests
  fileCheckIntervalSeconds: 10"

Yet when I do "lvs" I can see that the lv is 89% full. I'm using the recommended storage method.
The docs say the following: " Image garbage collection relies on disk usage as reported by cAdvisor on the node [...]"
https://docs.openshift.org/latest/admin_guide/garbage_collection.html

Is there any way to see what cAdvisor thinks that the disk usage of the lvm is at the moment? Is there any way to debug this?

Using OS 1.0.6.

Regards,
v



_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users




_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]