Requirements:
- JDK 8/9/11 (oracle or openjdk)
Steps to setup the scripts:
mkdir benches
cd benches
curl https://artifacts.elastic.co/downloads/logstash/logstash-7.6.0.tar.gz | tar -zxf -
cd logstash-7.6.0
| ## reconnect_attempt is a sum of read_timeout + reconnect_attemp[num_retry] | |
| # root@bpf-1:~# gem list | grep redis | |
| # redis (5.3.0) | |
| # redis-client (0.22.2) | |
| redis = Redis.new(reconnect_attempts: [1, 2, 2]) and read/write timeout to 1 has the same result | |
| 4 0.000420099 ::1 → ::1 RESP 125 Request: set mykey myvalue | |
| 12 2.003689140 ::1 → ::1 RESP 125 Request: set mykey myvalue | |
| 20 5.008092178 ::1 → ::1 RESP 125 Request: set mykey myvalue | |
| 28 8.012216273 ::1 → ::1 RESP 125 Request: set mykey myvalue |
Requirements:
Steps to setup the scripts:
mkdir benches
cd benches
curl https://artifacts.elastic.co/downloads/logstash/logstash-7.6.0.tar.gz | tar -zxf -
cd logstash-7.6.0
| #!/usr/bin/env/ruby | |
| # frozen_string_literals: true | |
| # | |
| # | |
| require 'bunny' | |
| require 'pry' | |
| require 'logger' | |
| host = 'localhost' | |
| vhost = '/' |
| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| # | |
| require 'bunny' | |
| require 'logger' | |
| host = 'localhost' | |
| queue = 'test1' | |
| vhosts = ['/'] | |
| exchange = 'amq.topic' |
I hereby claim:
To claim this, I am signing this object: