{"id":38636,"date":"2025-04-24T08:11:58","date_gmt":"2025-04-24T00:11:58","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=38636"},"modified":"2025-04-24T08:11:58","modified_gmt":"2025-04-24T00:11:58","slug":"skywalking%e7%9a%84%e7%9b%91%e6%8e%a7%e6%95%b0%e6%8d%ae%e5%a4%87%e4%bb%bd%e5%92%8c%e6%81%a2%e5%a4%8d%e6%9c%ba%e5%88%b6%e6%98%af%e6%80%8e%e6%a0%b7%e7%9a%84","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/38636.html","title":{"rendered":"SkyWalking\u7684\u76d1\u63a7\u6570\u636e\u5907\u4efd\u548c\u6062\u590d\u673a\u5236\u662f\u600e\u6837\u7684"},"content":{"rendered":"<p style=\"text-align: center;\">\n<p><img decoding=\"async\" src=\"https:\/\/pic.zadbj010.com\/2025\/a09ccf0a912a.webp\" alt=\"SkyWalking\u7684\u76d1\u63a7\u6570\u636e\u5907\u4efd\u548c\u6062\u590d\u673a\u5236\u662f\u600e\u6837\u7684\" ><\/p>\n<\/p>\n<p>SkyWalking\u662f\u4e00\u6b3e\u5e7f\u53d7\u6b22\u8fce\u7684\u5f00\u6e90APM\uff08Application Performance Monitoring\uff0c\u5e94\u7528\u6027\u80fd\u76d1\u63a7\uff09\u5de5\u5177\uff0c\u7279\u522b\u9002\u7528\u4e8e\u5fae\u670d\u52a1\u3001Cloud Native\u548c\u5bb9\u5668\u5316\u67b6\u6784\u7684\u5e94\u7528\u3002\u5b83\u7684\u6838\u5fc3\u529f\u80fd\u5305\u62ec\u5206\u5e03\u5f0f\u8ffd\u8e2a\u3001\u670d\u52a1\u7f51\u683c\u9065\u6d4b\u5206\u6790\u3001\u5ea6\u91cf\u805a\u5408\u548c\u53ef\u89c6\u5316\u4e00\u4f53\u5316\u89e3\u51b3\u65b9\u6848\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u76d1\u63a7\u6570\u636e\u7684\u5907\u4efd\u548c\u6062\u590d\u673a\u5236\u5bf9\u4e8e\u786e\u4fdd\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u548c\u6570\u636e\u5b89\u5168\u81f3\u5173\u91cd\u8981\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8SkyWalking\u7684\u76d1\u63a7\u6570\u636e\u5907\u4efd\u548c\u6062\u590d\u673a\u5236\uff0c\u5305\u62ec\u5176\u5de5\u4f5c\u539f\u7406\u3001\u5b9e\u65bd\u6b65\u9aa4\u4ee5\u53ca\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<h2>SkyWalking\u76d1\u63a7\u6570\u636e\u5907\u4efd\u673a\u5236<\/h2>\n<p>SkyWalking\u652f\u6301\u591a\u79cd\u5b58\u50a8\u540e\u7aef\uff0c\u5982Elasticsearch\u3001H2\u3001MySQL\u7b49\uff0c\u672c\u6587\u4ee5Elasticsearch\u4e3a\u4f8b\u8fdb\u884c\u8bf4\u660e\u3002<\/p>\n<h2>\u5907\u4efd\u7c7b\u578b<\/h2>\n<li><strong>\u51b7\u5907\u4efd<\/strong>\uff1a\u505c\u6b62\u670d\u52a1\u540e\u8fdb\u884c\u7684\u5b8c\u6574\u6570\u636e\u62f7\u8d1d\u3002<\/li>\n<li><strong>\u70ed\u5907\u4efd<\/strong>\uff1a\u670d\u52a1\u8fd0\u884c\u65f6\u7684\u589e\u91cf\u6570\u636e\u5907\u4efd\u3002<\/li>\n<li><strong>\u5feb\u7167\u5907\u4efd<\/strong>\uff1a\u5229\u7528\u5b58\u50a8\u5f15\u64ce\u7684\u5feb\u7167\u529f\u80fd\uff08\u5982Elasticsearch Snapshot\uff09\u3002<\/li>\n<h2>\u5907\u4efd\u5b9e\u6218\uff08Elasticsearch\u4e3a\u4f8b\uff09<\/h2>\n<p>1. <strong>\u521b\u5efa\u5907\u4efd\u4ed3\u5e93<\/strong><\/p>\n<p>bash<\/p>\n<p>PUT \/_snapshot\/sw_backup<\/p>\n<p>type&#8221;: &#8220;fs&#8221;,<\/p>\n<p>settings&#8221;: {<\/p>\n<p>location&#8221;: &#8220;\/mnt\/backups\/skywalking&#8221;,<\/p>\n<p>compress&#8221;: true<\/p>\n<p>2. <strong>\u6267\u884c\u5907\u4efd<\/strong><\/p>\n<p>bash<\/p>\n<p>PUT \/_snapshot\/sw_backup\/snapshot_20230701?wait_for_completion=true<\/p>\n<p>indices&#8221;: &#8220;sw_&#8221;,<\/p>\n<p>ignore_unavailable&#8221;: true,<\/p>\n<p>include_global_state&#8221;: false<\/p>\n<p>3. <strong>\u9a8c\u8bc1\u5907\u4efd<\/strong><\/p>\n<p>bash<\/p>\n<p>GET \/_snapshot\/sw_backup\/snapshot_20230701\/_status<\/p>\n<p>\u5178\u578b\u6210\u529f\u54cd\u5e94\uff1a<\/p>\n<p>json<\/p>\n<p>snapshots&#8221;: [<\/p>\n<p>state&#8221;: &#8220;SUCCESS&#8221;,<\/p>\n<p>stats&#8221;: {<\/p>\n<p>number_of_files&#8221;: 42,<\/p>\n<p>processed_files&#8221;: 42,<\/p>\n<p>total_size_in_bytes&#8221;: 10485760<\/p>\n<h2>SkyWalking\u76d1\u63a7\u6570\u636e\u6062\u590d\u673a\u5236<\/h2>\n<h2>\u6062\u590d\u6d41\u7a0b<\/h2>\n<p>1. <strong>\u5173\u95ed\u5199\u5165\uff08\u53ef\u9009\uff09<\/strong><\/p>\n<p>bash<\/p>\n<p>POST <\/p>\n<p>2. <strong>\u6267\u884c\u6062\u590d<\/strong><\/p>\n<p>bash<\/p>\n<p>POST \/_snapshot\/sw_backup\/snapshot_20230701\/_restore<\/p>\n<p>indices&#8221;: &#8220;sw_service&#8221;,<\/p>\n<p>rename_pattern&#8221;: &#8220;sw_(.+)&#8221;,<\/p>\n<p>rename_replacement&#8221;: &#8220;restored_sw_$1<\/p>\n<p>3. <strong>\u91cd\u5efa\u7d22\u5f15\uff08\u5982\u9700\u8981\uff09<\/strong><\/p>\n<p>bash<\/p>\n<p>POST <\/p>\n<h2>\u6700\u4f73\u5b9e\u8df5<\/h2>\n<li>\u5b9a\u671f\u9a8c\u8bc1\u5907\u4efd\u53ef\u6062\u590d\u6027\uff08\u5efa\u8bae\u6bcf\u5b63\u5ea6\u81f3\u5c11\u4e00\u6b21\uff09\u3002<\/li>\n<li>\u5bf9\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u5efa\u8bae\u91c7\u7528\u300c3-2-1\u300d\u539f\u5219\uff1a<\/li>\n<li>3\u4efd\u6570\u636e\u526f\u672c<\/li>\n<li>2\u79cd\u4e0d\u540c\u7684\u5b58\u50a8\u4ecb\u8d28<\/li>\n<li>1\u4efd\u5f02\u5730\u5907\u4efd<\/li>\n<li>\u76d1\u63a7\u5907\u4efd\u4efb\u52a1\u72b6\u6001\uff0c\u8bbe\u7f6e\u5931\u8d25\u544a\u8b66\u3002<\/li>\n<p>SkyWalking\u7684\u76d1\u63a7\u6570\u636e\u5907\u4efd\u548c\u6062\u590d\u673a\u5236\u662f\u786e\u4fdd\u7cfb\u7edf\u53ef\u9760\u6027\u548c\u6570\u636e\u5b89\u5168\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u6211\u4eec\u4e86\u89e3\u4e86SkyWalking\u5982\u4f55\u5229\u7528Elasticsearch\u7684\u5feb\u7167\u529f\u80fd\u8fdb\u884c\u6570\u636e\u5907\u4efd\u548c\u6062\u590d\uff0c\u4ee5\u53ca\u5728\u5b9e\u9645\u64cd\u4f5c\u4e2d\u7684\u6700\u4f73\u5b9e\u8df5\u3002\u8fd9\u4e9b\u4fe1\u606f\u5bf9\u4e8e\u4f7f\u7528SkyWalking\u8fdb\u884c\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u7684\u7528\u6237\u6765\u8bf4\uff0c\u662f\u786e\u4fdd\u6570\u636e\u5b8c\u6574\u6027\u548c\u7cfb\u7edf\u7a33\u5b9a\u6027\u7684\u5173\u952e\u3002\u968f\u7740SkyWalking\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u6211\u4eec\u671f\u5f85\u672a\u6765\u80fd\u6709\u66f4\u591a\u7684\u81ea\u52a8\u5316\u548c\u4f18\u5316\u529f\u80fd\uff0c\u4ee5\u8fdb\u4e00\u6b65\u63d0\u5347\u6570\u636e\u5907\u4efd\u548c\u6062\u590d\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SkyWalking\u662f\u4e00\u6b3e\u5e7f\u53d7\u6b22\u8fce\u7684\u5f00\u6e90APM\uff08Application Performance Monitoring\uff0c\u5e94\u7528\u6027\u80fd\u76d1\u63a7\uff09\u5de5\u5177\uff0c\u7279\u522b\u9002\u7528\u4e8e\u5fae\u670d\u52a1\u3001Cloud Native\u548c\u5bb9\u5668\u5316\u67b6\u6784\u7684\u5e94\u7528\u3002\u5b83\u7684\u6838\u5fc3\u529f\u80fd\u5305\u62ec\u5206\u5e03\u5f0f\u8ffd\u8e2a\u3001\u670d\u52a1\u7f51\u683c\u9065\u6d4b\u5206\u6790\u3001\u5ea6\u91cf\u805a\u5408\u548c\u53ef\u89c6\u5316\u4e00\u4f53\u5316\u89e3\u51b3\u65b9\u6848\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u76d1\u63a7\u6570\u636e\u7684\u5907\u4efd\u548c\u6062\u590d\u673a\u5236\u5bf9\u4e8e\u786e\u4fdd\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u548c\u6570\u636e\u5b89\u5168\u81f3\u5173\u91cd\u8981\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8SkyWalking\u7684\u76d1\u63a7\u6570\u636e\u5907\u4efd\u548c\u6062\u590d\u673a\u5236\uff0c\u5305\u62ec\u5176\u5de5\u4f5c\u539f\u7406\u3001\u5b9e\u65bd\u6b65\u9aa4\u4ee5\u53ca\u6700\u4f73\u5b9e\u8df5\u3002 SkyWalking\u76d1\u63a7\u6570\u636e\u5907\u4efd\u673a\u5236 SkyWalking\u652f\u6301\u591a\u79cd\u5b58\u50a8\u540e\u7aef\uff0c\u5982Elasticsearch\u3001H2\u3001MySQL\u7b49\uff0c\u672c\u6587\u4ee5Elasticsearch\u4e3a\u4f8b\u8fdb\u884c\u8bf4\u660e\u3002 \u5907\u4efd\u7c7b\u578b \u51b7\u5907\u4efd\uff1a\u505c\u6b62\u670d\u52a1\u540e\u8fdb\u884c\u7684\u5b8c\u6574\u6570\u636e\u62f7\u8d1d\u3002 \u70ed\u5907\u4efd\uff1a\u670d\u52a1\u8fd0\u884c\u65f6\u7684\u589e\u91cf\u6570\u636e\u5907\u4efd\u3002 \u5feb\u7167\u5907\u4efd\uff1a\u5229\u7528\u5b58\u50a8\u5f15\u64ce\u7684\u5feb\u7167\u529f\u80fd\uff08\u5982Elasticsearch Snapshot\uff09\u3002 \u5907\u4efd\u5b9e\u6218\uff08Elasticsearch\u4e3a\u4f8b\uff09 1. \u521b\u5efa\u5907\u4efd\u4ed3\u5e93 bash PUT \/_snapshot\/sw_backup type&#8221;: &#8220;fs&#8221;, settings&#8221;: { location&#8221;: &#8220;\/mnt\/backups\/skywalking&#8221;, compress&#8221;: true 2. \u6267\u884c\u5907\u4efd bash PUT \/_snapshot\/sw_backup\/snapshot_20230701?wait_for_completion=true indices&#8221;: &#8220;sw_&#8221;, ignore_unavailable&#8221;: true, include_global_state&#8221;: false 3. \u9a8c\u8bc1\u5907\u4efd bash GET \/_snapshot\/sw_backup\/snapshot_20230701\/_status \u5178\u578b\u6210\u529f\u54cd\u5e94\uff1a json snapshots&#8221;: [ state&#8221;: &#8220;SUCCESS&#8221;, stats&#8221;: { number_of_files&#8221;: 42, processed_files&#8221;: 42, total_size_in_bytes&#8221;: 10485760 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-38636","post","type-post","status-publish","format-standard","hentry","category-discussion"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/38636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/comments?post=38636"}],"version-history":[{"count":1,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/38636\/revisions"}],"predecessor-version":[{"id":38637,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/38636\/revisions\/38637"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=38636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=38636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=38636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}