Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
6fde5a17
Commit
6fde5a17
authored
Aug 22, 2018
by
TousakaRin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust test cases
parent
6ae39ecd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
67 deletions
+40
-67
settings.flags
example/auto_concurrency_limiter/settings.flags
+17
-3
settings_sync_usleep.flags
example/auto_concurrency_limiter/settings_sync_usleep.flags
+0
-12
test_case.json
example/auto_concurrency_limiter/test_case.json
+23
-52
No files found.
example/auto_concurrency_limiter/settings.flags
View file @
6fde5a17
--case_file=test_case_test
#client settings
--case_file=test_case_test.json
--client_qps_change_interval_us=50000
--max_retry=0
--auto_cl_overload_threshold=0.3
--auto_cl_initial_max_concurrency=16
#auto_cl settings
--auto_cl_initial_max_concurrency=40
--auto_cl_max_explore_ratio=0.3
--auto_cl_min_explore_ratio=0.06
--auto_cl_change_rate_of_explore_ratio=0.02
--auto_cl_reduce_ratio_while_remeasure=0.9
--auto_cl_latency_fluctuation_correction_factor=2
#server setings for async sleep
--latency_change_interval_us=50000
--server_bthread_concurrency=4
--server_sync_sleep_us=2500
--use_usleep=false
#server setings for sync sleep
#--latency_change_interval_us=50000
#--server_bthread_concurrency=16
#--server_max_concurrency=15
#--server_sync_sleep_us=2500
#--use_usleep=true
example/auto_concurrency_limiter/settings_sync_usleep.flags
deleted
100644 → 0
View file @
6ae39ecd
--case_file=test_case_test
--client_qps_change_interval_us=50000
--max_retry=0
--auto_cl_overload_threshold=0.3
--auto_cl_initial_max_concurrency=16
--latency_change_interval_us=50000
--server_bthread_concurrency=16
--server_max_concurrency=15
--server_sync_sleep_us=2500
--use_usleep=true
example/auto_concurrency_limiter/test_case.json
View file @
6fde5a17
...
...
@@ -29,12 +29,6 @@
"max_concurrency"
:
"auto"
,
"qps_stage_list"
:
[
{
"lower_bound"
:
100
,
"upper_bound"
:
1500
,
"duration_sec"
:
10
,
"type"
:
2
},
{
"lower_bound"
:
1500
,
"upper_bound"
:
1500
,
...
...
@@ -59,12 +53,6 @@
"max_concurrency"
:
"auto"
,
"qps_stage_list"
:
[
{
"lower_bound"
:
100
,
"upper_bound"
:
300
,
"duration_sec"
:
10
,
"type"
:
2
},
{
"lower_bound"
:
300
,
"upper_bound"
:
1800
,
...
...
@@ -89,12 +77,6 @@
"max_concurrency"
:
"auto"
,
"qps_stage_list"
:
[
{
"lower_bound"
:
200
,
"upper_bound"
:
3000
,
"duration_sec"
:
20
,
"type"
:
2
},
{
"lower_bound"
:
3000
,
"upper_bound"
:
3000
,
...
...
@@ -118,12 +100,6 @@
"max_concurrency"
:
"auto"
,
"qps_stage_list"
:
[
{
"lower_bound"
:
200
,
"upper_bound"
:
3000
,
"duration_sec"
:
20
,
"type"
:
2
},
{
"lower_bound"
:
3000
,
"upper_bound"
:
3000
,
...
...
@@ -213,70 +189,65 @@
]
},
{
"case_name"
:
"qps_
fluctuate_noload, latency_fluctuate_noload
"
,
"case_name"
:
"qps_
stable_noload, latency_leap_raise
"
,
"max_concurrency"
:
"auto"
,
"qps_stage_list"
:
[
{
"lower_bound"
:
1
00
,
"upper_bound"
:
3
00
,
"duration_sec"
:
1
0
,
"lower_bound"
:
3
00
,
"upper_bound"
:
18
00
,
"duration_sec"
:
2
0
,
"type"
:
2
},
{
"lower_bound"
:
3
00
,
"lower_bound"
:
18
00
,
"upper_bound"
:
1800
,
"duration_sec"
:
19
0
,
"type"
:
1
"duration_sec"
:
22
0
,
"type"
:
2
}
],
"latency_stage_list"
:
[
{
"lower_bound"
:
30000
,
"upper_bound"
:
30000
,
"duration_sec"
:
100
,
"type"
:
2
},
{
"lower_bound"
:
50000
,
"upper_bound"
:
50000
,
"duration_sec"
:
2
00
,
"type"
:
1
"duration_sec"
:
1
00
,
"type"
:
2
}
]
},
{
"case_name"
:
"qps_
stable_noload, latency_leap_raise
"
,
"case_name"
:
"qps_
fluctuate_noload, latency_fluctuate_noload
"
,
"max_concurrency"
:
"auto"
,
"qps_stage_list"
:
[
{
"lower_bound"
:
300
,
"upper_bound"
:
1800
,
"duration_sec"
:
20
,
"type"
:
2
},
{
"lower_bound"
:
1800
,
"upper_bound"
:
1800
,
"duration_sec"
:
220
,
"type"
:
2
"duration_sec"
:
190
,
"type"
:
1
}
],
"latency_stage_list"
:
[
{
"lower_bound"
:
30000
,
"upper_bound"
:
30000
,
"duration_sec"
:
100
,
"type"
:
2
},
{
"lower_bound"
:
50000
,
"upper_bound"
:
50000
,
"duration_sec"
:
1
00
,
"type"
:
2
"duration_sec"
:
2
00
,
"type"
:
1
}
]
}
]}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment