consul: set disable-keepalives false

This commit is contained in:
Gyu-Ho Lee 2016-04-18 15:57:10 -07:00
parent acf739c8f5
commit fd766e0764
4 changed files with 172 additions and 0 deletions

View File

@ -0,0 +1,89 @@
titles:
- Write 2M keys, 1000-client (etcdv3 100-conns), 8-byte key, 256-byte value
step1:
- data_path_list:
- 2016041801/01-etcdv2-1-monitor.csv
- 2016041801/01-etcdv2-2-monitor.csv
- 2016041801/01-etcdv2-3-monitor.csv
data_benchmark_path: 2016041801/01-etcdv2-timeseries.csv
output_path: 2016041801/01-etcdv2-aggregated.csv
step2:
- data_list:
- path: 2016041801/01-etcdv2-aggregated.csv
name: etcd_v2
output_path: 2016041801/01-all-aggregated.csv
step3:
- data_path: 2016041801/01-all-aggregated.csv
plot_list:
- lines:
- column: avg_latency_ms_etcd_v2
legend: etcd v2
x_axis: Second
y_axis: Latency(millisecond)
output_path_list:
- 2016041801/01-avg-latency-ms.svg
- 2016041801/01-avg-latency-ms.png
- lines:
- column: throughput_etcd_v2
legend: etcd v2
x_axis: Second
y_axis: Throughput
output_path_list:
- 2016041801/01-throughput.svg
- 2016041801/01-throughput.png
- lines:
- column: avg_cpu_etcd_v2
legend: etcd v2
x_axis: Second
y_axis: CPU
output_path_list:
- 2016041801/01-avg-cpu.svg
- 2016041801/01-avg-cpu.png
- lines:
- column: avg_memory_mb_etcd_v2
legend: etcd v2
x_axis: Second
y_axis: Memory(MB)
output_path_list:
- 2016041801/01-avg-memory.svg
- 2016041801/01-avg-memory.png
step4:
preface: |
- Google Cloud Compute Engine
- 8 vCPUs + 16GB Memory + 50GB SSD
- 1 machine(client) of 16 vCPUs + 30GB Memory + 50GB SSD
- Ubuntu 15.10
- Go 1.6, 1.7
- Java 8
- Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
- Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)
- Consul v0.6.4
- etcd v3 (master branch)
- Zookeeper v3.4.8
results:
- images:
- image_title: 2016041801/01-avg-latency-ms
image_path: https://storage.googleapis.com/dbtester-results/2016041801/01-avg-latency-ms.svg
image_type: remote
- image_title: 2016041801/01-throughput
image_path: https://storage.googleapis.com/dbtester-results/2016041801/01-throughput.svg
image_type: remote
- image_title: 2016041801/01-avg-cpu
image_path: https://storage.googleapis.com/dbtester-results/2016041801/01-avg-cpu.svg
image_type: remote
- image_title: 2016041801/01-avg-memory
image_path: https://storage.googleapis.com/dbtester-results/2016041801/01-avg-memory.svg
image_type: remote
output_path: 2016041801/README.md

View File

@ -0,0 +1,40 @@
database: etcdv2
test_name: 01-etcdv2
google_cloud_project_name: etcd-development
google_cloud_storage_key_path: /home/gyuho/gcloud-key.json
google_cloud_storage_bucket_name: dbtester-results
google_cloud_storage_sub_directory: 2016041801
peer_ips:
- 10.240.0.7
- 10.240.0.13
- 10.240.0.15
agent_port: 3500
database_port: 2379
# start database by sending RPC calls to agents
step1:
skip: false
zookeeper_max_client_connections: 5000
zookeeper_snap_count: 100000
# start benchmark
step2:
skip: false
bench_type: write
local_read: true
result_path: timeseries.csv
connections: 1000
clients: 1000
key_size: 8
value_size: 256
total_requests: 2000000
etcdv3_compaction_cycle: 0
# after benchmark
step3:
skip: false
result_path: result.log

View File

@ -0,0 +1,40 @@
database: etcdv3
test_name: 01-etcdv3
google_cloud_project_name: etcd-development
google_cloud_storage_key_path: /home/gyuho/gcloud-key.json
google_cloud_storage_bucket_name: dbtester-results
google_cloud_storage_sub_directory: 2016041801
peer_ips:
- 10.240.0.7
- 10.240.0.13
- 10.240.0.14
agent_port: 3500
database_port: 2379
# start database by sending RPC calls to agents
step1:
skip: false
zookeeper_max_client_connections: 5000
zookeeper_snap_count: 100000
# start benchmark
step2:
skip: false
bench_type: write
local_read: true
result_path: timeseries.csv
connections: 100
clients: 1000
key_size: 8
value_size: 256
total_requests: 2000000
etcdv3_compaction_cycle: 0
# after benchmark
step3:
skip: false
result_path: result.log

View File

@ -151,6 +151,9 @@ func mustCreateConnsConsul(endpoints []string, total int) []*consulapi.KV {
dialTotal++
dcfg := consulapi.DefaultConfig()
tr, _ := dcfg.HttpClient.Transport.(*http.Transport)
tr.DisableKeepAlives = false
dcfg.Address = endpoint // x.x.x.x:8500
cli, err := consulapi.NewClient(dcfg)
if err != nil {