diff options
author | Ji Chen <insomnia@139.com> | 2016-06-13 04:32:34 +0200 |
---|---|---|
committer | Ji Chen <insomnia@139.com> | 2016-07-22 06:22:12 +0200 |
commit | abe4b1378cc0e23e0da9c76c034c6d592b81b105 (patch) | |
tree | 545e3b31f4cb613aa5035eb01ffd0132e5309d29 /src/rgw/rgw_main.cc | |
parent | Merge pull request #9089 from SirishaGuduru/bugfix15603 (diff) | |
download | ceph-abe4b1378cc0e23e0da9c76c034c6d592b81b105.tar.xz ceph-abe4b1378cc0e23e0da9c76c034c6d592b81b105.zip |
RGW:lifecycle feature[rebase]
As same as amazon S3 interface,"PUT Bucket lifecycle" and
"DELETE Bucket lifecycle" have been implemented,
"GET Bucket lifecycle" not realized yet as S3cmd has not
realize it also.
The feature`s main point is to remove expire file per day.
Files transfer from hot layer to cold layer is not supported.
ToDo:Maybe to transfer from replicate pool to EC pool or
from ssd to sata pool will be valuable.
Now put all buckets which should do lifecycle into shard
objects in .rgw.lc pool.
lifecycle config file format:
<LifecycleConfiguration>
<Rule>
<ID>sample-rule</ID>
<Prefix></Prefix>
<Status>enable</Status>
<Expiration>
<Days>1</Days>
</Expiration>
</Rule>
</LifecycleConfiguration>
Signed-off-by: Ji Chen <insomnia@139.com>
Diffstat (limited to 'src/rgw/rgw_main.cc')
-rw-r--r-- | src/rgw/rgw_main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index 85c044ae275..323a5e7a01d 100644 --- a/src/rgw/rgw_main.cc +++ b/src/rgw/rgw_main.cc @@ -302,7 +302,7 @@ int main(int argc, const char **argv) FCGX_Init(); RGWRados *store = RGWStoreManager::get_storage(g_ceph_context, - g_conf->rgw_enable_gc_threads, g_conf->rgw_enable_quota_threads, + g_conf->rgw_enable_gc_threads, g_conf->rgw_enable_lc_threads, g_conf->rgw_enable_quota_threads, g_conf->rgw_run_sync_thread); if (!store) { mutex.Lock(); |