{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1495","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1495/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1495/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1495/events","html_url":"https://github.com/ipfs/go-ipfs/pull/1495","id":95813103,"number":1495,"title":"Add fixed-period and conditional repo GC","user":{"login":"rht","id":395821,"avatar_url":"https://avatars.githubusercontent.com/u/395821?v=3","gravatar_id":"","url":"https://api.github.com/users/rht","html_url":"https://github.com/rht","followers_url":"https://api.github.com/users/rht/followers","following_url":"https://api.github.com/users/rht/following{/other_user}","gists_url":"https://api.github.com/users/rht/gists{/gist_id}","starred_url":"https://api.github.com/users/rht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rht/subscriptions","organizations_url":"https://api.github.com/users/rht/orgs","repos_url":"https://api.github.com/users/rht/repos","events_url":"https://api.github.com/users/rht/events{/privacy}","received_events_url":"https://api.github.com/users/rht/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/RFM","name":"RFM","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":56,"created_at":"2015-07-18T10:32:32Z","updated_at":"2015-11-26T04:38:27Z","closed_at":"2015-11-10T07:27:14Z","pull_request":{"url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1495","html_url":"https://github.com/ipfs/go-ipfs/pull/1495","diff_url":"https://github.com/ipfs/go-ipfs/pull/1495.diff","patch_url":"https://github.com/ipfs/go-ipfs/pull/1495.patch"},"body":"WIP sketch.\r\n\r\n1. Ok with configurable GC frequency?\r\n2. go-datastore doesn't have size check, so a local system call is used instead\r\n\r\nAddress #972"},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments/159801962","html_url":"https://github.com/ipfs/go-ipfs/pull/1495#issuecomment-159801962","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1495","id":159801962,"user":{"login":"lgierth","id":19248,"avatar_url":"https://avatars.githubusercontent.com/u/19248?v=3","gravatar_id":"","url":"https://api.github.com/users/lgierth","html_url":"https://github.com/lgierth","followers_url":"https://api.github.com/users/lgierth/followers","following_url":"https://api.github.com/users/lgierth/following{/other_user}","gists_url":"https://api.github.com/users/lgierth/gists{/gist_id}","starred_url":"https://api.github.com/users/lgierth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgierth/subscriptions","organizations_url":"https://api.github.com/users/lgierth/orgs","repos_url":"https://api.github.com/users/lgierth/repos","events_url":"https://api.github.com/users/lgierth/events{/privacy}","received_events_url":"https://api.github.com/users/lgierth/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T04:38:27Z","updated_at":"2015-11-26T04:38:27Z","body":"@rht I'm testing this on venus and can't get it to trigger GC, neither periodic, nor via `ipfs cat`\r\n\r\n```json\r\n  \"Datastore\": {\r\n    \"GCPeriod\": \"1m\",\r\n    \"Path\": \"/ipfs/repo/datastore\",\r\n    \"StorageGCWatermark\": 90,\r\n    \"StorageMax\": \"20G\",\r\n    \"Type\": \"leveldb\",\r\n    \"NoSync\": true\r\n  },\r\n```\r\n\r\n```\r\nroot@venus:~# du -sh /ipfs/ipfs_master\r\n27G\t/ipfs/ipfs_master\r\n\r\nroot@venus:~# df -h\r\nFilesystem      Size  Used Avail Use% Mounted on\r\n/dev/vda1        40G   36G  1.9G  96% /\r\nnone            4.0K     0  4.0K   0% /sys/fs/cgroup\r\nudev            991M  4.0K  991M   1% /dev\r\ntmpfs           201M  372K  200M   1% /run\r\nnone            5.0M     0  5.0M   0% /run/lock\r\nnone           1001M  240K 1001M   1% /run/shm\r\nnone            100M     0  100M   0% /run/user\r\n```"}}