-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from imzhenyu/imzhenyu
documentation enhancement about scenario configurations
- Loading branch information
Showing
12 changed files
with
429 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[config.args] | ||
;; defined in app config file | ||
;; service_type = <service-type> | ||
|
||
service_type = simple_kv | ||
|
||
[modules] | ||
dsn.app.simple_kv | ||
dsn.tools.common | ||
dsn.tools.emulator | ||
|
||
[apps.server] | ||
type = %service_type% | ||
ports = 54333 | ||
pools = THREAD_POOL_DEFAULT | ||
|
||
[apps.client] | ||
type = %service_type%.client | ||
arguments = localhost:54333 | ||
pools = THREAD_POOL_DEFAULT | ||
|
||
[core] | ||
;tool = nativerun | ||
tool = emulator | ||
toollets = tracer,fault_injector | ||
;toollets = tracer,profiler,fault_injector | ||
|
||
[tools.emulator] | ||
random_seed = 594750959 | ||
|
||
[task..default] | ||
rpc_request_data_corrupted_ratio = 0.00 | ||
rpc_response_data_corrupted_ratio = 0.00 | ||
|
||
; data corrupted type: random/header/body | ||
rpc_message_data_corrupted_type = random | ||
|
||
rpc_request_drop_ratio = 0.001 | ||
rpc_response_drop_ratio = 0.001 | ||
rpc_request_delay_ratio = 0.001 | ||
rpc_response_delay_ratio = 0.001 | ||
disk_read_fail_ratio = 0.001 | ||
disk_write_fail_ratio = 0.001 | ||
|
||
rpc_message_delay_ms_min = 10 | ||
rpc_message_delay_ms_max = 10000 | ||
disk_io_delay_ms_min = 0 | ||
disk_io_delay_ms_max = 0 | ||
execution_extra_delay_us_max = 0 | ||
|
||
[task.RPC_SIMPLE_KV_SIMPLE_KV_READ] | ||
rpc_response_data_corrupted_ratio = 0.01 | ||
|
||
[task.LPC_AIO_IMMEDIATE_CALLBACK] | ||
is_trace = false | ||
is_profile = false | ||
allow_inline = false | ||
disk_write_fail_ratio = 0.0 | ||
|
||
[task.LPC_RPC_TIMEOUT] | ||
is_trace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[config.args] | ||
;; defined in app config file | ||
;; service_type = <service-type> | ||
|
||
service_type = simple_kv | ||
|
||
[modules] | ||
dsn.app.simple_kv | ||
dsn.tools.common | ||
dsn.tools.emulator | ||
|
||
[apps.server] | ||
type = %service_type% | ||
ports = 54333 | ||
pools = THREAD_POOL_DEFAULT | ||
|
||
[apps.client] | ||
type = %service_type%.client | ||
arguments = localhost:54333 | ||
pools = THREAD_POOL_DEFAULT | ||
|
||
[core] | ||
;tool = nativerun | ||
tool = emulator | ||
toollets = tracer | ||
;toollets = tracer,profiler,fault_injector | ||
|
||
[task.LPC_AIO_IMMEDIATE_CALLBACK] | ||
is_trace = false | ||
is_profile = false | ||
allow_inline = false | ||
disk_write_fail_ratio = 0.0 | ||
|
||
[task.LPC_RPC_TIMEOUT] | ||
is_trace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[config.args] | ||
;; defined in app config file | ||
;; service_type = <service-type> | ||
|
||
service_type = simple_kv | ||
|
||
[modules] | ||
dsn.app.simple_kv | ||
dsn.tools.common | ||
|
||
[apps.server] | ||
type = %service_type% | ||
ports = 54333 | ||
pools = THREAD_POOL_DEFAULT | ||
|
||
[apps.client.perf] | ||
type = %service_type%.client.perf | ||
arguments = localhost:54333 | ||
pools = THREAD_POOL_DEFAULT | ||
|
||
[simple_kv.simple_kv.perf-test.case.1] | ||
perf_test_seconds = 20 | ||
perf_test_key_space_size = 100000 | ||
perf_test_concurrency = 10 | ||
perf_test_payload_bytes = 10 | ||
perf_test_timeouts_ms = 10000 | ||
perf_test_hybrid_request_ratio = 1,1,1, | ||
|
||
[core] | ||
tool = nativerun | ||
;tool = emulator | ||
;toollets = profiler | ||
;toollets = tracer,profiler,fault_injector | ||
|
||
[task.LPC_AIO_IMMEDIATE_CALLBACK] | ||
is_trace = false | ||
is_profile = false | ||
allow_inline = false | ||
disk_write_fail_ratio = 0.0 | ||
|
||
[task.LPC_RPC_TIMEOUT] | ||
is_trace = false | ||
|
||
[threadpool.THREAD_POOL_DEFAULT] | ||
worker_count = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
|
||
; | ||
; progressive system complexity for performance tuning: | ||
; | ||
; . single thread for both client and server, workload concurrency set to 1, use emulated network to avoid network cost (delay set to 0) | ||
; . + concurrency | ||
; . + native network | ||
; . + multi-threaded server/client | ||
; | ||
; the similar approach can be applied for correctness debugging | ||
; | ||
|
||
[config.args] | ||
;; defined in app config file | ||
;; service_type = <service-type> | ||
|
||
service_type = simple_kv | ||
|
||
[modules] | ||
dsn.app.simple_kv | ||
dsn.tools.common | ||
dsn.tools.emulator | ||
|
||
[apps..default] | ||
|
||
;network.client.RPC_CHANNEL_TCP = dsn::tools::asio_network_provider, 65536 | ||
network.client.RPC_CHANNEL_TCP = dsn::tools::sim_network_provider, 65536 | ||
network.client.RPC_CHANNEL_UDP = dsn::tools::sim_network_provider, 65536 | ||
|
||
;network.server.0.RPC_CHANNEL_TCP = dsn::tools::asio_network_provider, 65536 | ||
; 0 for any server port | ||
network.server.0.RPC_CHANNEL_TCP = dsn::tools::sim_network_provider, 65536 | ||
network.server.0.RPC_CHANNEL_UDP = dsn::tools::sim_network_provider, 65536 | ||
|
||
[apps.server] | ||
type = %service_type% | ||
ports = 54333 | ||
pools = THREAD_POOL_DEFAULT | ||
|
||
[apps.client.perf] | ||
type = %service_type%.client.perf | ||
arguments = localhost:54333 | ||
pools = THREAD_POOL_DEFAULT | ||
|
||
[simple_kv.simple_kv.perf-test.case.1] | ||
perf_test_seconds = 20 | ||
perf_test_key_space_size = 100000 | ||
perf_test_concurrency = 1 | ||
perf_test_payload_bytes = 10 | ||
perf_test_timeouts_ms = 10000 | ||
perf_test_hybrid_request_ratio = 1,1,1, | ||
|
||
[core] | ||
tool = nativerun | ||
;tool = emulator | ||
;toollets = profiler | ||
;toollets = tracer,profiler,fault_injector | ||
|
||
[tools.emulator] | ||
min_message_delay_microseconds = 0 | ||
max_message_delay_microseconds = 0 | ||
|
||
[task.LPC_AIO_IMMEDIATE_CALLBACK] | ||
is_trace = false | ||
is_profile = false | ||
allow_inline = false | ||
disk_write_fail_ratio = 0.0 | ||
|
||
[task.LPC_RPC_TIMEOUT] | ||
is_trace = false | ||
|
||
[threadpool.THREAD_POOL_DEFAULT] | ||
worker_count = 1 |
Oops, something went wrong.