File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
mse-simple-demo/gateway/src/main/java/com/alibabacloud/mse/demo Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -250,28 +250,6 @@ public void run() {
250250 }
251251 }, 100 , 1000000 / qps , TimeUnit .MICROSECONDS );
252252 // endregion 热点限流
253-
254- // region 隔离规则
255- for (int i = 0 ; i < 8 ; i ++) {
256- int finalI = i ;
257- FLOW_EXECUTOR .scheduleAtFixedRate (new Runnable () {
258- @ Override
259- public void run () {
260- try (CloseableHttpClient httpClient = HttpClientBuilder .create ().build ()) {
261- HttpGet httpGet = new HttpGet ("http://localhost:20000/A/isolate?i_id=" + finalI );
262- httpClient .execute (httpGet );
263- } catch (Exception ignore ) {
264- }
265-
266- try (CloseableHttpClient httpClient = HttpClientBuilder .create ().build ()) {
267- HttpGet httpGet = new HttpGet ("http://localhost:20000/A/dubbo-isolate?i_id=" + finalI );
268- httpClient .execute (httpGet );
269- } catch (Exception ignore ) {
270- }
271- }
272- }, 100 , 1000000 / qps , TimeUnit .MICROSECONDS );
273- }
274- // endregion 隔离规则
275253 }
276254
277255 if (enableSql ) {
You can’t perform that action at this time.
0 commit comments