id: c25045a34dd6492fbaf743991bdc621a
parent_id: 
item_type: 1
item_id: d7c7d82938af489fab8cac4774d3be42
item_updated_time: 1764345585855
title_diff: "[{\"diffs\":[[1,\"V2Ray均衡负载\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":9}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>V2Ray均衡负载</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"18589\\\"></a>\\\r\\\n<h1>V2Ray均衡负载</h1>\\\r\\\n\\\r\\\n<div>\\\n<span><div><a href=\\\"https://ailitonia.com/archives/v2ray%E5%AE%8C%E5%85%A8%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97/comment-page-1/#balance\\\">https://ailitonia.com/archives/v2ray%E5%AE%8C%E5%85%A8%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97/comment-page-1/#balance</a></div><div><br/></div><div style=\\\"margin: 15px 0px; padding: 15px; border: 0px solid rgb(255, 187, 88); vertical-align: top; text-shadow: rgba(255, 255, 255, 0) 0px 0px 0px; clear: both; background-color: rgb(253, 168, 44);\\\"><h1 style=\\\"margin: 0px 0px 24px; padding: 0px; border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 21px; line-height: 33.6px; font-family: Quicksand, &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: bold; font-size: 21px; line-height: 33.6px; font-family: Quicksand, &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(255, 255, 255); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\">高级功能</span></h1></div><div style=\\\"margin: 0px 0px 20px; padding: 0px; border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 12pt; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\">本章节介绍了 V2Ray 的高级功能。</span></div><div style=\\\"margin: 15px 0px; padding: 15px; border: 0px solid rgb(254, 235, 171); vertical-align: top; text-shadow: rgba(255, 255, 255, 0) 0px 0px 0px; clear: both; background-color: rgb(255, 255, 213);\\\"><h2 style=\\\"margin: 0px 0px 24px; padding: 0px; border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 18px; line-height: 28.8px; font-family: Quicksand, &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: bold; font-size: 18px; line-height: 28.8px; font-family: Quicksand, &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\">均衡负载</span></h2></div><div style=\\\"margin: 0px 0px 20px; padding: 0px; border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 12pt; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(255, 204, 0); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\">相较于 Shadowsocks 等其它的代理，V2Ray 可以配置多服务器实现负载均衡。此处的负载均衡并非是自动选择一个延迟或网速最好的服务器进行连接，而是指多个服务器共同承担网络流量，从而减小单个服务器的资源占用及提高每个服务器的利用率。</span></div><div style=\\\"margin: 0px 0px 20px; padding: 0px; border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 12pt; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: normal; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\">服务器配置：</span></div><div style=\\\"margin: 0px 0px 20px; padding: 0px; border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 12pt; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\">实现负载均衡很简单，在客户端配置同一个 outbound 的 vnext 写入各个服务器的配置即可(前提是服务器已经部署好并能正常使用)。形如：</span></div><div style=\\\"margin: 0px; padding: 0px; border: none; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Courier New&quot;, Courier, monospace; vertical-align: top; overflow-wrap: break-word; background-color: rgb(32, 32, 32); color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;\\\"><div style=\\\"margin: 0px; padding: 0.5em; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: &quot;Courier new&quot;, Courier, monospace; vertical-align: top; overflow-x: auto; background: rgb(68, 68, 68); color: rgb(221, 221, 221);\\\"><div>{</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">inbound</span>&quot;: {</div><div>...</div><div>},</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">outbound</span>&quot;: {</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">protocol</span>&quot;: <span style=\\\"border: 0px; vertical-align: top; color: rgb(221, 136, 136);\\\">&quot;vmess&quot;</span>,</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">settings</span>&quot;: {</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">vnext</span>&quot;: [</div><div>{</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">address</span>&quot;: <span style=\\\"border: 0px; vertical-align: top; color: rgb(221, 136, 136);\\\">&quot;address_of_vps1&quot;</span>,</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">port</span>&quot;: <span style=\\\"border: 0px; vertical-align: top;\\\">8232</span>,</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">users</span>&quot;: [</div><div>{</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">id</span>&quot;: <span style=\\\"border: 0px; vertical-align: top; color: rgb(221, 136, 136);\\\">&quot;1ce383ea-13e9-4939-9b1d-20d67135969a&quot;</span>,</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">alterId</span>&quot;: <span style=\\\"border: 0px; vertical-align: top;\\\">64</span></div><div>}</div><div>]</div><div>},</div><div>{</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">address</span>&quot;: <span style=\\\"border: 0px; vertical-align: top; color: rgb(221, 136, 136);\\\">&quot;address_of_vps2&quot;</span>,</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">port</span>&quot;: <span style=\\\"border: 0px; vertical-align: top;\\\">4822</span>,</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">users</span>&quot;: [</div><div>{</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">id</span>&quot;: <span style=\\\"border: 0px; vertical-align: top; color: rgb(221, 136, 136);\\\">&quot;bc172445-4b5e-49b2-a712-12c5295fd26b&quot;</span>,</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">alterId</span>&quot;: <span style=\\\"border: 0px; vertical-align: top;\\\">64</span></div><div>}</div><div>]</div><div>}</div><div>// 如果还有更多服务器可继续添加</div><div>]</div><div>},</div><div>&quot;<span style=\\\"border: 0px; vertical-align: top;\\\">streamSettings</span>&quot;: {</div><div>...</div><div>}</div><div>},</div><div>...</div><div>}</div></div></div><div style=\\\"margin: 0px 0px 20px; padding: 0px; border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"> </span></div><div style=\\\"margin: 0px 0px 20px; padding: 0px; border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 12pt; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\">原理：V2Ray 是以轮询的方式均衡负载，也就是说当有流量需要通过代理时，首先走第一个 vnext 配置的服务器，有第二个连接就走第二个服务器，接着第三个，以此类推。轮询完一遍又头开始轮询。这样的方式虽然简单粗暴，特别是对于拥有多个性能差的 VPS 的人来说比较有用。另外</span><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 12pt; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32); font-weight: bold;\\\">也许</span><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 12pt; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\">能减小长时间大流量连接单个 IP 的特征，给自己一个心理安慰。</span></div><div style=\\\"margin: 0px 0px 20px; padding: 0px; border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"><span style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 12pt; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\">注意事项：如端口、id 这些在 vnext 数组内的配置项可以各不相同，但是它们的传输层配置（streamSettings）必须一致。</span></div><div style=\\\"margin: 0px 0px 20px; padding: 0px; border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(204, 204, 204); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32);\\\"><a href=\\\"https://ailitonia.com/archives/v2ray%E5%AE%8C%E5%85%A8%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97/comment-page-1/#index\\\" style=\\\"border: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-size: 14px; font-family: &quot;Open Sans&quot;, Helvetica, Arial, Verdana, sans-serif; vertical-align: top; color: rgb(185, 145, 40); letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(32, 32, 32); outline: 0px;\\\">↑返回目录</a></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":15135}]"
metadata_diff: {"new":{"id":"d7c7d82938af489fab8cac4774d3be42","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348825470,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:04:01.872Z
created_time: 2025-11-28T21:04:01.872Z
type_: 13