tari-project / tari

The Tari protocol
https://tari.com
BSD 3-Clause "New" or "Revised" License
354 stars 219 forks source link

feat: add proxy monerod resiliency #6637

Closed hansieodendaal closed 1 month ago

hansieodendaal commented 1 month ago

Description

Added resiliency to the merge mining proxy monerod connection:

Motivation and Context

All the things addressed in this PR were handled inadequately.

How Has This Been Tested?

Stress test results

method: get_height, tick: 1.00s
  1: method: get_height; time now: 07:41:12.966; duration: 354.83ms, response length: 124
  2: method: get_height; time now: 07:41:14.976; duration: 367.71ms, response length: 124
  3: method: get_height; time now: 07:41:16.974; duration: 360.16ms, response length: 124
  4: method: get_height; time now: 07:41:18.976; duration: 354.45ms, response length: 124
  5: method: get_height; time now: 07:41:20.990; duration: 373.91ms, response length: 124
  ...
method: get_version, tick: 1.00s
  1: method: get_version; time now: 07:41:22.963; duration: 355.97ms, response length: 686
  2: method: get_version; time now: 07:41:25.003; duration: 378.83ms, response length: 686
  3: method: get_version; time now: 07:41:26.978; duration: 369.92ms, response length: 686
  4: method: get_version; time now: 07:41:28.978; duration: 362.31ms, response length: 686
  5: method: get_version; time now: 07:41:30.979; duration: 358.23ms, response length: 686
  ...
method: get_block_template, tick: 1.00s
  1: method: get_block_template; time now: 07:41:33.023; duration: 408.98ms, response length: 1490
  2: method: get_block_template; time now: 07:41:35.007; duration: 388.51ms, response length: 1490
  3: method: get_block_template; time now: 07:41:37.002; duration: 388.86ms, response length: 1490
  4: method: get_block_template; time now: 07:41:39.005; duration: 386.01ms, response length: 1490
  5: method: get_block_template; time now: 07:41:41.018; duration: 410.48ms, response length: 1490
  ...

image

image

What process can a PR reviewer use to test or verify this change?

Breaking Changes

github-actions[bot] commented 1 month ago

Test Results (CI)

    2 files     86 suites   23m 54s :stopwatch: 1 339 tests 1 339 :white_check_mark: 0 :zzz: 0 :x: 2 677 runs  2 677 :white_check_mark: 0 :zzz: 0 :x:

Results for commit 81f423bb.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 1 month ago

Test Results (Integration tests)

 2 files  + 2  11 suites  +11   24m 37s :stopwatch: + 24m 37s 36 tests +36  34 :white_check_mark: +34  0 :zzz: ±0  2 :x: +2  38 runs  +38  36 :white_check_mark: +36  0 :zzz: ±0  2 :x: +2 

For more details on these failures, see this check.

Results for commit 81f423bb. ± Comparison against base commit c6cbbc1f.

:recycle: This comment has been updated with latest results.