@@ -36,85 +36,226 @@ public class SofaBootRpcProperties {
3636 @ Autowired
3737 private Environment environment ;
3838
39- /* fault-tolerance start */
39+ /**
40+ * whether regulation effective (是否开启单机故障剔除功能)
41+ */
4042 private String aftRegulationEffective ;
43+ /**
44+ * whether regulation effective (是否开启降级)
45+ */
4146 private String aftDegradeEffective ;
47+ /**
48+ * aft time window of caculation (时间窗口)
49+ */
4250 private String aftTimeWindow ;
51+ /**
52+ * aft least invoke times in window (最小调用次数)
53+ */
4354 private String aftLeastWindowCount ;
55+ /**
56+ * aft least exception rate multiple than average exception rate (最小异常率)
57+ */
4458 private String aftLeastWindowExceptionRateMultiple ;
59+
60+ /**
61+ * aft weight was degraded by this rate (降级速率)
62+ */
4563 private String aftWeightDegradeRate ;
64+ /**
65+ * aft weight was recovered by this rate (恢复速率)
66+ */
4667 private String aftWeightRecoverRate ;
68+ /**
69+ * the least weight that aft could degrade one provider (降级最小权重)
70+ */
4771 private String aftDegradeLeastWeight ;
72+
73+ /**
74+ * the max ip numbers that aft could degrade (最大降级 ip)
75+ */
4876 private String aftDegradeMaxIpCount ;
4977 /* fault-tolerance end */
5078
5179 /* Bolt start*/
80+
81+ /**
82+ * the port of bolt (bolt 端口)
83+ */
5284 private String boltPort ;
85+
86+ /**
87+ * the core thread pool size of bolt (bolt 核心线程数)
88+ */
5389 private String boltThreadPoolCoreSize ;
90+
91+ /**
92+ * the max thread pool size of bolt (bolt 最大线程数)
93+ */
5494 private String boltThreadPoolMaxSize ;
95+
96+ /**
97+ * the queue size of bolt server(bolt 线程池队列)
98+ */
5599 private String boltThreadPoolQueueSize ;
100+
101+ /**
102+ * the max accept size of bolt (bolt 服务端允许客户端建立的连接数)
103+ */
56104 private String boltAcceptsSize ;
57105 /* Bolt end*/
58106
59107 /* H2c start*/
108+ /**
109+ * the port of http2 (http2 端口)
110+ */
60111 private String h2cPort ;
112+
113+ /**
114+ * the core thread pool size of http2 (http2 核心线程数)
115+ */
61116 private String h2cThreadPoolCoreSize ;
117+
118+ /**
119+ * the max thread pool size of http2 (http2 最大线程数)
120+ */
62121 private String h2cThreadPoolMaxSize ;
122+
123+ /**
124+ * the queue size of http2 server(http2 线程池队列)
125+ */
63126 private String h2cThreadPoolQueueSize ;
127+
128+ /**
129+ * the max accept size of http2 (http2 服务端允许客户端建立的连接数)
130+ */
64131 private String h2cAcceptsSize ;
65132 /* Bolt end*/
66133
67134 /* rest start*/
135+ /**
136+ * rest host name (rest 绑定的 hostname)
137+ */
68138 private String restHostname ;
139+ /**
140+ * the port of rest (rest 端口)
141+ */
69142 private String restPort ;
143+ /**
144+ * the io thread size of rest io (rest io 线程数)
145+ */
70146 private String restIoThreadSize ;
147+
148+ /**
149+ * rest context path (rest context path)
150+ */
71151 private String restContextPath ;
72152 // has no use
153+ /**
154+ * the core thread pool size of rest (rest 核心线程数)
155+ */
73156 private String restThreadPoolCoreSize ;
157+ /**
158+ * the max thread pool size of rest (rest 最大线程数)
159+ */
74160 private String restThreadPoolMaxSize ;
161+
162+ /**
163+ * the max request size of per request (rest 最大请求大小)
164+ */
75165 private String restMaxRequestSize ;
166+
167+ /**
168+ * whether allow rest telnet (是否允许 rest telnet)
169+ */
76170 private String restTelnet ;
171+ /**
172+ * whether rest server is daemon (是否hold住端口,true的话随主线程退出而退出)
173+ */
77174 private String restDaemon ;
78175 private boolean restSwagger ;
79176 /* rest end */
80177
81178 /* dubbo start*/
179+
180+ /**
181+ * the port of dubbo (dubbo 端口)
182+ */
82183 private String dubboPort ;
184+
185+ /**
186+ * the io thread size of dubbo io (dubbo io 线程数)
187+ */
83188 private String dubboIoThreadSize ;
84189 //has no use
190+ /**
191+ * the core thread pool size of dubbo (dubbo 核心线程数)
192+ */
85193 private String dubboThreadPoolCoreSize ;
194+
195+ /**
196+ * the max thread pool size of dubbo (dubbo 最大线程数)
197+ */
86198 private String dubboThreadPoolMaxSize ;
87199 //has no use
200+ /**
201+ * the queue size of dubbo server(dubbo 线程池队列)
202+ */
88203 private String dubboThreadPoolQueueSize ;
204+ /**
205+ * the max accept size of dubbo (dubbo 服务端允许客户端建立的连接数)
206+ */
89207 private String dubboAcceptsSize ;
90208 /* dubbo end*/
91209
92210 /* registry */
211+ /**
212+ * registry address of rpc server (注册中心的地址)
213+ */
93214 private String registryAddress ;
94215
95- //publish to registry
216+ /**
217+ * virtual host for service publish(服务发布虚拟host)
218+ */
96219 private String virtualHost ;
97220
98- //publish to registry
221+ /**
222+ * virtual port for service publish(服务发布虚拟端口)
223+ */
99224 private String virtualPort ;
100225
101- //publish to registry virtual host range
226+ /**
227+ * ip range which used in multi network interfaces (多网卡 ip 范围)
228+ */
102229 private String enabledIpRange ;
103230
231+ /**
232+ * this bind network interface in multi network interfaces (绑定网卡来选择ip)
233+ */
104234 private String bindNetworkInterface ;
105235
106- // bound server
236+ /**
237+ * bound host (绑定host)
238+ */
107239 private String boundHost ;
108240
109- // disable lookout
241+ /**
242+ * disable lookout (是否关闭lookout )
243+ */
110244 private String lookoutCollectDisable ;
111245
112- //custom registry
246+ /**
247+ * multi registries (多注册中心)
248+ */
113249 private Map <String , String > registries = new HashMap <String , String >();
114250
115- //mesh switch,can be protocol,like bolt,mesh,all,now we only support bolt
251+ /**
252+ * enable mesh,can be protocol,like bolt,mesh,all,now we only support bolt (是否开启mesh支持,目前只支持bolt)
253+ */
116254 private String enableMesh ;
117255
256+ /**
257+ * the reference limit numbers of the same interface could be referred (允许客户端对同一个服务生成的引用代理数量,默认为3)
258+ */
118259 private String consumerRepeatedReferenceLimit ;
119260
120261 private String defaultTracer ;
0 commit comments