{"action":"opened","number":396,"pull_request":{"url":"https://api.github.com/repos/codership/galera/pulls/396","id":65039386,"html_url":"https://github.com/codership/galera/pull/396","diff_url":"https://github.com/codership/galera/pull/396.diff","patch_url":"https://github.com/codership/galera/pull/396.patch","issue_url":"https://api.github.com/repos/codership/galera/issues/396","number":396,"state":"open","locked":false,"title":"use minherit(INHERIT_NONE) on FreeBSD to speed up process spawning for Galera SST","user":{"login":"AndreasVerhoeven","id":168214,"avatar_url":"https://avatars.githubusercontent.com/u/168214?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasVerhoeven","html_url":"https://github.com/AndreasVerhoeven","followers_url":"https://api.github.com/users/AndreasVerhoeven/followers","following_url":"https://api.github.com/users/AndreasVerhoeven/following{/other_user}","gists_url":"https://api.github.com/users/AndreasVerhoeven/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasVerhoeven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasVerhoeven/subscriptions","organizations_url":"https://api.github.com/users/AndreasVerhoeven/orgs","repos_url":"https://api.github.com/users/AndreasVerhoeven/repos","events_url":"https://api.github.com/users/AndreasVerhoeven/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasVerhoeven/received_events","type":"User","site_admin":false},"body":"On Linux, the gucache is marked as MADV_DONTFORK to speed up Galera's usage of fork(). On FreeBSD, MADV_DONTFORK doesn't exists, so we should use the equivalent minherit(ptr, size, INHERIT_NONE).\r\n\r\nThis fixes an issue on FreeBSD where forking() for SST by a donor can take a long time (up to 30s) and stop the donor from responding to keepalives with a sufficiently gucache size. The cluster could get partitioned and stop responding while the IST was running or the IST could fail. By ensuring that the buffer pools are not forked() along, fork() is no longer slow and the donor stays reachable.\r\n\r\nA similar pull request has been sent to percona/percona-xtradb-cluster, for the bufferpool, which is marked as MADV_DONTFORK on Linux as well.","created_at":"2016-04-02T14:28:32Z","updated_at":"2016-04-02T14:28:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codership/galera/pulls/396/commits","review_comments_url":"https://api.github.com/repos/codership/galera/pulls/396/comments","review_comment_url":"https://api.github.com/repos/codership/galera/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codership/galera/issues/396/comments","statuses_url":"https://api.github.com/repos/codership/galera/statuses/c146703b3823b7b32f664a276198e7c1c57d81bc","head":{"label":"AndreasVerhoeven:3.x","ref":"3.x","sha":"c146703b3823b7b32f664a276198e7c1c57d81bc","user":{"login":"AndreasVerhoeven","id":168214,"avatar_url":"https://avatars.githubusercontent.com/u/168214?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasVerhoeven","html_url":"https://github.com/AndreasVerhoeven","followers_url":"https://api.github.com/users/AndreasVerhoeven/followers","following_url":"https://api.github.com/users/AndreasVerhoeven/following{/other_user}","gists_url":"https://api.github.com/users/AndreasVerhoeven/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasVerhoeven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasVerhoeven/subscriptions","organizations_url":"https://api.github.com/users/AndreasVerhoeven/orgs","repos_url":"https://api.github.com/users/AndreasVerhoeven/repos","events_url":"https://api.github.com/users/AndreasVerhoeven/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasVerhoeven/received_events","type":"User","site_admin":false},"repo":{"id":55298022,"name":"galera","full_name":"AndreasVerhoeven/galera","owner":{"login":"AndreasVerhoeven","id":168214,"avatar_url":"https://avatars.githubusercontent.com/u/168214?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasVerhoeven","html_url":"https://github.com/AndreasVerhoeven","followers_url":"https://api.github.com/users/AndreasVerhoeven/followers","following_url":"https://api.github.com/users/AndreasVerhoeven/following{/other_user}","gists_url":"https://api.github.com/users/AndreasVerhoeven/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasVerhoeven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasVerhoeven/subscriptions","organizations_url":"https://api.github.com/users/AndreasVerhoeven/orgs","repos_url":"https://api.github.com/users/AndreasVerhoeven/repos","events_url":"https://api.github.com/users/AndreasVerhoeven/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasVerhoeven/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AndreasVerhoeven/galera","description":"Synchronous multi-master replication library","fork":true,"url":"https://api.github.com/repos/AndreasVerhoeven/galera","forks_url":"https://api.github.com/repos/AndreasVerhoeven/galera/forks","keys_url":"https://api.github.com/repos/AndreasVerhoeven/galera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndreasVerhoeven/galera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndreasVerhoeven/galera/teams","hooks_url":"https://api.github.com/repos/AndreasVerhoeven/galera/hooks","issue_events_url":"https://api.github.com/repos/AndreasVerhoeven/galera/issues/events{/number}","events_url":"https://api.github.com/repos/AndreasVerhoeven/galera/events","assignees_url":"https://api.github.com/repos/AndreasVerhoeven/galera/assignees{/user}","branches_url":"https://api.github.com/repos/AndreasVerhoeven/galera/branches{/branch}","tags_url":"https://api.github.com/repos/AndreasVerhoeven/galera/tags","blobs_url":"https://api.github.com/repos/AndreasVerhoeven/galera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndreasVerhoeven/galera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndreasVerhoeven/galera/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndreasVerhoeven/galera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndreasVerhoeven/galera/statuses/{sha}","languages_url":"https://api.github.com/repos/AndreasVerhoeven/galera/languages","stargazers_url":"https://api.github.com/repos/AndreasVerhoeven/galera/stargazers","contributors_url":"https://api.github.com/repos/AndreasVerhoeven/galera/contributors","subscribers_url":"https://api.github.com/repos/AndreasVerhoeven/galera/subscribers","subscription_url":"https://api.github.com/repos/AndreasVerhoeven/galera/subscription","commits_url":"https://api.github.com/repos/AndreasVerhoeven/galera/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndreasVerhoeven/galera/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndreasVerhoeven/galera/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndreasVerhoeven/galera/issues/comments{/number}","contents_url":"https://api.github.com/repos/AndreasVerhoeven/galera/contents/{+path}","compare_url":"https://api.github.com/repos/AndreasVerhoeven/galera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndreasVerhoeven/galera/merges","archive_url":"https://api.github.com/repos/AndreasVerhoeven/galera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndreasVerhoeven/galera/downloads","issues_url":"https://api.github.com/repos/AndreasVerhoeven/galera/issues{/number}","pulls_url":"https://api.github.com/repos/AndreasVerhoeven/galera/pulls{/number}","milestones_url":"https://api.github.com/repos/AndreasVerhoeven/galera/milestones{/number}","notifications_url":"https://api.github.com/repos/AndreasVerhoeven/galera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndreasVerhoeven/galera/labels{/name}","releases_url":"https://api.github.com/repos/AndreasVerhoeven/galera/releases{/id}","deployments_url":"https://api.github.com/repos/AndreasVerhoeven/galera/deployments","created_at":"2016-04-02T14:11:27Z","updated_at":"2016-04-02T14:11:30Z","pushed_at":"2016-04-02T14:14:06Z","git_url":"git://github.com/AndreasVerhoeven/galera.git","ssh_url":"git@github.com:AndreasVerhoeven/galera.git","clone_url":"https://github.com/AndreasVerhoeven/galera.git","svn_url":"https://github.com/AndreasVerhoeven/galera","homepage":null,"size":14295,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"3.x"}},"base":{"label":"codership:3.x","ref":"3.x","sha":"7a264badde93c5af9de552db301b697d6315fdd2","user":{"login":"codership","id":1644626,"avatar_url":"https://avatars.githubusercontent.com/u/1644626?v=3","gravatar_id":"","url":"https://api.github.com/users/codership","html_url":"https://github.com/codership","followers_url":"https://api.github.com/users/codership/followers","following_url":"https://api.github.com/users/codership/following{/other_user}","gists_url":"https://api.github.com/users/codership/gists{/gist_id}","starred_url":"https://api.github.com/users/codership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codership/subscriptions","organizations_url":"https://api.github.com/users/codership/orgs","repos_url":"https://api.github.com/users/codership/repos","events_url":"https://api.github.com/users/codership/events{/privacy}","received_events_url":"https://api.github.com/users/codership/received_events","type":"Organization","site_admin":false},"repo":{"id":18951393,"name":"galera","full_name":"codership/galera","owner":{"login":"codership","id":1644626,"avatar_url":"https://avatars.githubusercontent.com/u/1644626?v=3","gravatar_id":"","url":"https://api.github.com/users/codership","html_url":"https://github.com/codership","followers_url":"https://api.github.com/users/codership/followers","following_url":"https://api.github.com/users/codership/following{/other_user}","gists_url":"https://api.github.com/users/codership/gists{/gist_id}","starred_url":"https://api.github.com/users/codership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codership/subscriptions","organizations_url":"https://api.github.com/users/codership/orgs","repos_url":"https://api.github.com/users/codership/repos","events_url":"https://api.github.com/users/codership/events{/privacy}","received_events_url":"https://api.github.com/users/codership/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codership/galera","description":"Synchronous multi-master replication library","fork":false,"url":"https://api.github.com/repos/codership/galera","forks_url":"https://api.github.com/repos/codership/galera/forks","keys_url":"https://api.github.com/repos/codership/galera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codership/galera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codership/galera/teams","hooks_url":"https://api.github.com/repos/codership/galera/hooks","issue_events_url":"https://api.github.com/repos/codership/galera/issues/events{/number}","events_url":"https://api.github.com/repos/codership/galera/events","assignees_url":"https://api.github.com/repos/codership/galera/assignees{/user}","branches_url":"https://api.github.com/repos/codership/galera/branches{/branch}","tags_url":"https://api.github.com/repos/codership/galera/tags","blobs_url":"https://api.github.com/repos/codership/galera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codership/galera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codership/galera/git/refs{/sha}","trees_url":"https://api.github.com/repos/codership/galera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codership/galera/statuses/{sha}","languages_url":"https://api.github.com/repos/codership/galera/languages","stargazers_url":"https://api.github.com/repos/codership/galera/stargazers","contributors_url":"https://api.github.com/repos/codership/galera/contributors","subscribers_url":"https://api.github.com/repos/codership/galera/subscribers","subscription_url":"https://api.github.com/repos/codership/galera/subscription","commits_url":"https://api.github.com/repos/codership/galera/commits{/sha}","git_commits_url":"https://api.github.com/repos/codership/galera/git/commits{/sha}","comments_url":"https://api.github.com/repos/codership/galera/comments{/number}","issue_comment_url":"https://api.github.com/repos/codership/galera/issues/comments{/number}","contents_url":"https://api.github.com/repos/codership/galera/contents/{+path}","compare_url":"https://api.github.com/repos/codership/galera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codership/galera/merges","archive_url":"https://api.github.com/repos/codership/galera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codership/galera/downloads","issues_url":"https://api.github.com/repos/codership/galera/issues{/number}","pulls_url":"https://api.github.com/repos/codership/galera/pulls{/number}","milestones_url":"https://api.github.com/repos/codership/galera/milestones{/number}","notifications_url":"https://api.github.com/repos/codership/galera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codership/galera/labels{/name}","releases_url":"https://api.github.com/repos/codership/galera/releases{/id}","deployments_url":"https://api.github.com/repos/codership/galera/deployments","created_at":"2014-04-19T21:29:08Z","updated_at":"2016-03-29T04:10:06Z","pushed_at":"2016-04-02T14:28:32Z","git_url":"git://github.com/codership/galera.git","ssh_url":"git@github.com:codership/galera.git","clone_url":"https://github.com/codership/galera.git","svn_url":"https://github.com/codership/galera","homepage":null,"size":14253,"stargazers_count":111,"watchers_count":111,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":134,"forks":45,"open_issues":134,"watchers":111,"default_branch":"3.x"}},"_links":{"self":{"href":"https://api.github.com/repos/codership/galera/pulls/396"},"html":{"href":"https://github.com/codership/galera/pull/396"},"issue":{"href":"https://api.github.com/repos/codership/galera/issues/396"},"comments":{"href":"https://api.github.com/repos/codership/galera/issues/396/comments"},"review_comments":{"href":"https://api.github.com/repos/codership/galera/pulls/396/comments"},"review_comment":{"href":"https://api.github.com/repos/codership/galera/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codership/galera/pulls/396/commits"},"statuses":{"href":"https://api.github.com/repos/codership/galera/statuses/c146703b3823b7b32f664a276198e7c1c57d81bc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":0,"changed_files":1}}