{"action":"closed","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/8503","repository_url":"https://api.github.com/repos/coreos/etcd","labels_url":"https://api.github.com/repos/coreos/etcd/issues/8503/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/8503/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/8503/events","html_url":"https://github.com/coreos/etcd/issues/8503","id":255390460,"number":8503,"title":"support <1hr automatic compaction retention","user":{"login":"heyitsanthony","id":16294350,"avatar_url":"https://avatars2.githubusercontent.com/u/16294350?v=4","gravatar_id":"","url":"https://api.github.com/users/heyitsanthony","html_url":"https://github.com/heyitsanthony","followers_url":"https://api.github.com/users/heyitsanthony/followers","following_url":"https://api.github.com/users/heyitsanthony/following{/other_user}","gists_url":"https://api.github.com/users/heyitsanthony/gists{/gist_id}","starred_url":"https://api.github.com/users/heyitsanthony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyitsanthony/subscriptions","organizations_url":"https://api.github.com/users/heyitsanthony/orgs","repos_url":"https://api.github.com/users/heyitsanthony/repos","events_url":"https://api.github.com/users/heyitsanthony/events{/privacy}","received_events_url":"https://api.github.com/users/heyitsanthony/received_events","type":"User","site_admin":false},"labels":[{"id":51525340,"url":"https://api.github.com/repos/coreos/etcd/labels/kind/enhancement","name":"kind/enhancement","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":{"login":"fanminshi","id":4983345,"avatar_url":"https://avatars3.githubusercontent.com/u/4983345?v=4","gravatar_id":"","url":"https://api.github.com/users/fanminshi","html_url":"https://github.com/fanminshi","followers_url":"https://api.github.com/users/fanminshi/followers","following_url":"https://api.github.com/users/fanminshi/following{/other_user}","gists_url":"https://api.github.com/users/fanminshi/gists{/gist_id}","starred_url":"https://api.github.com/users/fanminshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanminshi/subscriptions","organizations_url":"https://api.github.com/users/fanminshi/orgs","repos_url":"https://api.github.com/users/fanminshi/repos","events_url":"https://api.github.com/users/fanminshi/events{/privacy}","received_events_url":"https://api.github.com/users/fanminshi/received_events","type":"User","site_admin":false},"assignees":[{"login":"fanminshi","id":4983345,"avatar_url":"https://avatars3.githubusercontent.com/u/4983345?v=4","gravatar_id":"","url":"https://api.github.com/users/fanminshi","html_url":"https://github.com/fanminshi","followers_url":"https://api.github.com/users/fanminshi/followers","following_url":"https://api.github.com/users/fanminshi/following{/other_user}","gists_url":"https://api.github.com/users/fanminshi/gists{/gist_id}","starred_url":"https://api.github.com/users/fanminshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanminshi/subscriptions","organizations_url":"https://api.github.com/users/fanminshi/orgs","repos_url":"https://api.github.com/users/fanminshi/repos","events_url":"https://api.github.com/users/fanminshi/events{/privacy}","received_events_url":"https://api.github.com/users/fanminshi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-09-05T19:56:52Z","updated_at":"2017-09-29T18:18:52Z","closed_at":"2017-09-29T18:18:52Z","author_association":"CONTRIBUTOR","body":"Systems (e.g., k8s) that expect a lot of writes must implement their own compaction logic to periodically compact etcd at a rate of less than an hour. That is, some agent outside of etcd must be granted ownership of compaction which complicates system design. Since the intent is only etcd should compact more frequently, it would be much simpler to support automatic retention with finer granularity.\r\n\r\nCurrently the flag for configuring the compaction interval is an integer:\r\n```\r\n         --auto-compaction-retention '0'\r\n                auto compaction retention length. 0 means disable auto compaction.\r\n```\r\n\r\nIt could instead be parsed from a string:\r\n```\r\n        --auto-compaction-mode 'periodic'\r\n                'periodic' means hours if an integer or a duration string otherwise, 'revision' means revision numbers to retain by auto compaction\r\n```\r\n\r\nThen, etcd can get 5 minute retention via `time.ParseDuration`:\r\n\r\n`--auto-compaction-retention 5m`\r\n\r\nRelated #8458"}}
{"actor":{"display_login":"fanminshi"}}