Garbage Collector

Garbage Collector (GC) is a concept of ceph which helps to delete data. This feature, help client to experience quick API respond for deleting an object.

After deleting an object by client, RGW, deletes the object index (based on RGW page description), then it acknowledges to the client that the objects have been deleted. Then the GC, creates a list of objects which need to be deleted and after specified time (default 2 hours), it deletes data.

#getting status of GC process:
radosgw-admin gc list

#manually processing GC:
radosgw-admin gc process

#getting minimum wait time for GC
ceph config get client rgw_gc_obj_min_wait

#minimum wait time for GC based on seconds:
ceph config set client rgw_gc_obj_min_wait 60

#period time between GC process
ceph config get client rgw_gc_processor_period

#other configs:
rgw gc max objs (default: 32)
rgw gc obj min wait (default: 7200)
rgw gc processor max time (default: 3600)
rgw gc processor period (default: 3600)

Last updated