From e4a78d2aaedab3dc18baf8f49d7b5e6707994367 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 21 Aug 2012 15:01:28 -0700 Subject: [PATCH] config_opts: add gc configurables 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 --- src/common/config_opts.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 199cad4562947..834fa9843e51f 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -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. -- 2.39.5