{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-skywalking/pulls/comments/239139288","pull_request_review_id":181846782,"id":239139288,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTEzOTI4OA==","diff_hunk":"@@ -0,0 +1,26 @@\n+# Backend upgrade\n+First and most important thing is, SkyWalking agent caching the key-value of the metadata, i.e., the service id and service name, the serice instance id and service instance name, the endpoint id and endpoint name. The backend will not working after you clear the metadata from elasticsearch database but not restart the agent.\n+\n+**Remember to convert metadata from the old models to the new models.** \n+\n+There are three ways for upgrade SkyWalking.\n+1. Upgrade without transform metadata\n+1. Upgrade by transform metadata\n+\n+## Upgrade without transform metadata\n+1. Shutdown the backend and clean the buffer data\n+1. Shutdown the database and clean the models\n+1. Download the release package and unpack it\n+1. Setting the `application.yml`\n+1. Setting the `gRPCPort` to be different from the old edition **It's very important**\n+1. Startup the database\n+1. Startup the backend \n+1. Startup the agent one by one\n+\n+## Upgrade by migration metadata\n+1. To view the model changes from the release note.\n+1. Write data migration scripts\n+1. Backup databse data\n+1. Migrate data to a new database","path":"docs/en/setup/backend/backend-upgrade.md","position":24,"original_position":24,"commit_id":"d487fb52f02074f4dc8f7f4b85faa11de4bd3370","original_commit_id":"d487fb52f02074f4dc8f7f4b85faa11de4bd3370","user":{"login":"wu-sheng","id":5441976,"node_id":"MDQ6VXNlcjU0NDE5NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5441976?v=4","gravatar_id":"","url":"https://api.github.com/users/wu-sheng","html_url":"https://github.com/wu-sheng","followers_url":"https://api.github.com/users/wu-sheng/followers","following_url":"https://api.github.com/users/wu-sheng/following{/other_user}","gists_url":"https://api.github.com/users/wu-sheng/gists{/gist_id}","starred_url":"https://api.github.com/users/wu-sheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wu-sheng/subscriptions","organizations_url":"https://api.github.com/users/wu-sheng/orgs","repos_url":"https://api.github.com/users/wu-sheng/repos","events_url":"https://api.github.com/users/wu-sheng/events{/privacy}","received_events_url":"https://api.github.com/users/wu-sheng/received_events","type":"User","site_admin":false},"body":"You already use migrate here, should be same in title.","created_at":"2018-12-05T16:28:45Z","updated_at":"2018-12-05T16:33:37Z","html_url":"https://github.com/apache/incubator-skywalking/pull/2004#discussion_r239139288","pull_request_url":"https://api.github.com/repos/apache/incubator-skywalking/pulls/2004","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-skywalking/pulls/comments/239139288"},"html":{"href":"https://github.com/apache/incubator-skywalking/pull/2004#discussion_r239139288"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-skywalking/pulls/2004"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-skywalking/pulls/2004","id":236235814,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2MjM1ODE0","html_url":"https://github.com/apache/incubator-skywalking/pull/2004","diff_url":"https://github.com/apache/incubator-skywalking/pull/2004.diff","patch_url":"https://github.com/apache/incubator-skywalking/pull/2004.patch","issue_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/2004","number":2004,"state":"open","locked":false,"title":"Create backend-upgrade.md","user":{"login":"peng-yongsheng","id":16147247,"node_id":"MDQ6VXNlcjE2MTQ3MjQ3","avatar_url":"https://avatars0.githubusercontent.com/u/16147247?v=4","gravatar_id":"","url":"https://api.github.com/users/peng-yongsheng","html_url":"https://github.com/peng-yongsheng","followers_url":"https://api.github.com/users/peng-yongsheng/followers","following_url":"https://api.github.com/users/peng-yongsheng/following{/other_user}","gists_url":"https://api.github.com/users/peng-yongsheng/gists{/gist_id}","starred_url":"https://api.github.com/users/peng-yongsheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peng-yongsheng/subscriptions","organizations_url":"https://api.github.com/users/peng-yongsheng/orgs","repos_url":"https://api.github.com/users/peng-yongsheng/repos","events_url":"https://api.github.com/users/peng-yongsheng/events{/privacy}","received_events_url":"https://api.github.com/users/peng-yongsheng/received_events","type":"User","site_admin":false},"body":"A document for how to upgrade the SkyWalking to new edition.\r\n\r\n","created_at":"2018-12-05T16:19:25Z","updated_at":"2018-12-05T16:33:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18c2465ac1e39e14644a41b759006441bf40aa34","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":693236725,"node_id":"MDU6TGFiZWw2OTMyMzY3MjU=","url":"https://api.github.com/repos/apache/incubator-skywalking/labels/document","name":"document","color":"d4c5f9","default":false}],"milestone":{"url":"https://api.github.com/repos/apache/incubator-skywalking/milestones/31","html_url":"https://github.com/apache/incubator-skywalking/milestone/31","labels_url":"https://api.github.com/repos/apache/incubator-skywalking/milestones/31/labels","id":3695964,"node_id":"MDk6TWlsZXN0b25lMzY5NTk2NA==","number":31,"title":"6.0.0-beta","description":"","creator":{"login":"wu-sheng","id":5441976,"node_id":"MDQ6VXNlcjU0NDE5NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5441976?v=4","gravatar_id":"","url":"https://api.github.com/users/wu-sheng","html_url":"https://github.com/wu-sheng","followers_url":"https://api.github.com/users/wu-sheng/followers","following_url":"https://api.github.com/users/wu-sheng/following{/other_user}","gists_url":"https://api.github.com/users/wu-sheng/gists{/gist_id}","starred_url":"https://api.github.com/users/wu-sheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wu-sheng/subscriptions","organizations_url":"https://api.github.com/users/wu-sheng/orgs","repos_url":"https://api.github.com/users/wu-sheng/repos","events_url":"https://api.github.com/users/wu-sheng/events{/privacy}","received_events_url":"https://api.github.com/users/wu-sheng/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":115,"state":"open","created_at":"2018-09-28T07:58:28Z","updated_at":"2018-12-05T16:19:25Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/apache/incubator-skywalking/pulls/2004/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-skywalking/pulls/2004/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-skywalking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/2004/comments","statuses_url":"https://api.github.com/repos/apache/incubator-skywalking/statuses/d487fb52f02074f4dc8f7f4b85faa11de4bd3370","head":{"label":"apache:peng-yongsheng-patch-2","ref":"peng-yongsheng-patch-2","sha":"d487fb52f02074f4dc8f7f4b85faa11de4bd3370","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":45721011,"node_id":"MDEwOlJlcG9zaXRvcnk0NTcyMTAxMQ==","name":"incubator-skywalking","full_name":"apache/incubator-skywalking","private":false,"owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/apache/incubator-skywalking","description":"A distributed tracing system, and APM ( Application Performance Monitoring )","fork":false,"url":"https://api.github.com/repos/apache/incubator-skywalking","forks_url":"https://api.github.com/repos/apache/incubator-skywalking/forks","keys_url":"https://api.github.com/repos/apache/incubator-skywalking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-skywalking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-skywalking/teams","hooks_url":"https://api.github.com/repos/apache/incubator-skywalking/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-skywalking/events","assignees_url":"https://api.github.com/repos/apache/incubator-skywalking/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-skywalking/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-skywalking/tags","blobs_url":"https://api.github.com/repos/apache/incubator-skywalking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-skywalking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-skywalking/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-skywalking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-skywalking/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-skywalking/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-skywalking/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-skywalking/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-skywalking/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-skywalking/subscription","commits_url":"https://api.github.com/repos/apache/incubator-skywalking/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-skywalking/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-skywalking/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-skywalking/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-skywalking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-skywalking/merges","archive_url":"https://api.github.com/repos/apache/incubator-skywalking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-skywalking/downloads","issues_url":"https://api.github.com/repos/apache/incubator-skywalking/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-skywalking/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-skywalking/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-skywalking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-skywalking/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-skywalking/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-skywalking/deployments","created_at":"2015-11-07T03:30:36Z","updated_at":"2018-12-05T13:37:22Z","pushed_at":"2018-12-05T16:19:25Z","git_url":"git://github.com/apache/incubator-skywalking.git","ssh_url":"git@github.com:apache/incubator-skywalking.git","clone_url":"https://github.com/apache/incubator-skywalking.git","svn_url":"https://github.com/apache/incubator-skywalking","homepage":"https://skywalking.incubator.apache.org/","size":141684,"stargazers_count":5130,"watchers_count":5130,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1597,"mirror_url":null,"archived":false,"open_issues_count":93,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1597,"open_issues":93,"watchers":5130,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"5f5be776015e16ccad1184730c23f6276022ee08","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":45721011,"node_id":"MDEwOlJlcG9zaXRvcnk0NTcyMTAxMQ==","name":"incubator-skywalking","full_name":"apache/incubator-skywalking","private":false,"owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/apache/incubator-skywalking","description":"A distributed tracing system, and APM ( Application Performance Monitoring )","fork":false,"url":"https://api.github.com/repos/apache/incubator-skywalking","forks_url":"https://api.github.com/repos/apache/incubator-skywalking/forks","keys_url":"https://api.github.com/repos/apache/incubator-skywalking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-skywalking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-skywalking/teams","hooks_url":"https://api.github.com/repos/apache/incubator-skywalking/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-skywalking/events","assignees_url":"https://api.github.com/repos/apache/incubator-skywalking/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-skywalking/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-skywalking/tags","blobs_url":"https://api.github.com/repos/apache/incubator-skywalking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-skywalking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-skywalking/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-skywalking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-skywalking/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-skywalking/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-skywalking/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-skywalking/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-skywalking/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-skywalking/subscription","commits_url":"https://api.github.com/repos/apache/incubator-skywalking/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-skywalking/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-skywalking/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-skywalking/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-skywalking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-skywalking/merges","archive_url":"https://api.github.com/repos/apache/incubator-skywalking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-skywalking/downloads","issues_url":"https://api.github.com/repos/apache/incubator-skywalking/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-skywalking/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-skywalking/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-skywalking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-skywalking/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-skywalking/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-skywalking/deployments","created_at":"2015-11-07T03:30:36Z","updated_at":"2018-12-05T13:37:22Z","pushed_at":"2018-12-05T16:19:25Z","git_url":"git://github.com/apache/incubator-skywalking.git","ssh_url":"git@github.com:apache/incubator-skywalking.git","clone_url":"https://github.com/apache/incubator-skywalking.git","svn_url":"https://github.com/apache/incubator-skywalking","homepage":"https://skywalking.incubator.apache.org/","size":141684,"stargazers_count":5130,"watchers_count":5130,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1597,"mirror_url":null,"archived":false,"open_issues_count":93,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1597,"open_issues":93,"watchers":5130,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-skywalking/pulls/2004"},"html":{"href":"https://github.com/apache/incubator-skywalking/pull/2004"},"issue":{"href":"https://api.github.com/repos/apache/incubator-skywalking/issues/2004"},"comments":{"href":"https://api.github.com/repos/apache/incubator-skywalking/issues/2004/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-skywalking/pulls/2004/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-skywalking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-skywalking/pulls/2004/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-skywalking/statuses/d487fb52f02074f4dc8f7f4b85faa11de4bd3370"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"wu-sheng"}}