{"action":"created","issue":{"url":"https://api.github.com/repos/MSOpenTech/redis/issues/352","repository_url":"https://api.github.com/repos/MSOpenTech/redis","labels_url":"https://api.github.com/repos/MSOpenTech/redis/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/MSOpenTech/redis/issues/352/comments","events_url":"https://api.github.com/repos/MSOpenTech/redis/issues/352/events","html_url":"https://github.com/MSOpenTech/redis/issues/352","id":115730961,"number":352,"title":"AOF file does not get rewritten","user":{"login":"chester89","id":190332,"avatar_url":"https://avatars.githubusercontent.com/u/190332?v=3","gravatar_id":"","url":"https://api.github.com/users/chester89","html_url":"https://github.com/chester89","followers_url":"https://api.github.com/users/chester89/followers","following_url":"https://api.github.com/users/chester89/following{/other_user}","gists_url":"https://api.github.com/users/chester89/gists{/gist_id}","starred_url":"https://api.github.com/users/chester89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chester89/subscriptions","organizations_url":"https://api.github.com/users/chester89/orgs","repos_url":"https://api.github.com/users/chester89/repos","events_url":"https://api.github.com/users/chester89/events{/privacy}","received_events_url":"https://api.github.com/users/chester89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-08T12:26:05Z","updated_at":"2016-04-21T10:54:25Z","closed_at":null,"body":"When I put Redis in production, I also declared I want AOF file to be rewritten when certain criterias are met:\r\nappendonly yes\r\nappendfilename myfilename.aof\r\n\r\nappendfsync everysec\r\nno-appendfsync-on-rewrite no\r\nauto-aof-rewrite-percentage 100\r\nauto-aof-rewrite-min-size 64mb\r\naof-load-truncated yes\r\n\r\nBut lately I noticed that the AOF file is 82Mb already and it doesn't get compacted. Did I misread the docs or is my configuration wrong? When I did initial tests for the system with 2101 build, AOF rewriting was working fine. Now I'm on 2103 (recently updated from 2101)"},"comment":{"url":"https://api.github.com/repos/MSOpenTech/redis/issues/comments/212855369","html_url":"https://github.com/MSOpenTech/redis/issues/352#issuecomment-212855369","issue_url":"https://api.github.com/repos/MSOpenTech/redis/issues/352","id":212855369,"user":{"login":"enricogior","id":3206696,"avatar_url":"https://avatars.githubusercontent.com/u/3206696?v=3","gravatar_id":"","url":"https://api.github.com/users/enricogior","html_url":"https://github.com/enricogior","followers_url":"https://api.github.com/users/enricogior/followers","following_url":"https://api.github.com/users/enricogior/following{/other_user}","gists_url":"https://api.github.com/users/enricogior/gists{/gist_id}","starred_url":"https://api.github.com/users/enricogior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enricogior/subscriptions","organizations_url":"https://api.github.com/users/enricogior/orgs","repos_url":"https://api.github.com/users/enricogior/repos","events_url":"https://api.github.com/users/enricogior/events{/privacy}","received_events_url":"https://api.github.com/users/enricogior/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T10:54:25Z","updated_at":"2016-04-21T10:54:25Z","body":"@chester89 \r\nsure, it's safe to call BGREWRITEAOF and it shouldn't cause a significant downtime, since it runs on a different process (performance may way depending on the hardware). There is only a small amount of time (in the order of milliseconds) to synchronize the two processes, but no downtime while the child process persists the AOF file to disk."}}