]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
config_opts: add gc configurables
authorYehuda Sadeh <yehuda@inktank.com>
Tue, 21 Aug 2012 22:01:28 +0000 (15:01 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 21 Aug 2012 22:33:36 +0000 (15:33 -0700)
rgw_gc_max_objs: num of objects to used for gc shards
rgw_gc_obj_min_wait: min time for an object to become visible to gc
rgw_gc_processor_max_time: max time a for a single gc processor cycle
rgw_gc_processor_period: period between processors start

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/common/config_opts.h

index 199cad4562947b260ae6c43308e40977f1d5052b..834fa9843e51f8ae1b78bc8a98c89e785c2e561b 100644 (file)
@@ -423,6 +423,10 @@ OPTION(rgw_intent_log_object_name, OPT_STR, "%Y-%m-%d-%i-%n")  // man date to se
 OPTION(rgw_intent_log_object_name_utc, OPT_BOOL, false)
 OPTION(rgw_init_timeout, OPT_INT, 30) // time in seconds
 OPTION(rgw_mime_types_file, OPT_STR, "/etc/mime.types")
+OPTION(rgw_gc_max_objs, OPT_INT, 32)
+OPTION(rgw_gc_obj_min_wait, OPT_INT, 2 * 3600)    // wait time before object may be handled by gc
+OPTION(rgw_gc_processor_max_time, OPT_INT, 3600)  // total run time for a single gc processor work
+OPTION(rgw_gc_processor_period, OPT_INT, 3600)  // gc processor cycle time
 
 // This will be set to true when it is safe to start threads.
 // Once it is true, it will never change.