Skip to content

feat(localenv): add histogram for outgoing payment completion time#3438

Merged
njlie merged 1 commit into
mainfrom
nl/3397/payment-completion-histogram
May 28, 2025
Merged

feat(localenv): add histogram for outgoing payment completion time#3438
njlie merged 1 commit into
mainfrom
nl/3397/payment-completion-histogram

Conversation

@njlie
Copy link
Copy Markdown
Contributor

@njlie njlie commented May 21, 2025

Changes proposed in this pull request

  • Collects and publishes the telemetry on how long a Rafiki instance takes to complete processing an outgoing payment.
  • Adds a graph in the local environment's Grafana dashboard to display the times spent processing an outgoing payment.

Context

Closes #3397 / RAF-1048.

Checklist

  • Related issues linked using fixes #number
  • Tests added/updated
  • Make sure that all checks pass
  • Bruno collection updated (if necessary)
  • Documentation issue created with user-docs label (if necessary)
  • OpenAPI specs updated (if necessary)

@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2025

Deploy Preview for brilliant-pasca-3e80ec canceled.

Name Link
🔨 Latest commit 484fa8a
🔍 Latest deploy log https://app.netlify.com/projects/brilliant-pasca-3e80ec/deploys/682e4a9c1fa7c800070cbcae

@github-actions github-actions Bot added pkg: backend Changes in the backend package. type: source Changes business logic labels May 21, 2025
@github-actions
Copy link
Copy Markdown

🚀 Performance Test Results

Test Configuration:

  • VUs: 4
  • Duration: 1m0s

Test Metrics:

  • Requests/s: 45.80
  • Iterations/s: 15.28
  • Failed Requests: 0.00% (0 of 2754)
📜 Logs

> performance@1.0.0 run-tests:testenv /home/runner/work/rafiki/rafiki/test/performance
> ./scripts/run-tests.sh -e test "-k" "-q" "--vus" "4" "--duration" "1m"

Cloud Nine GraphQL API is up: http://localhost:3101/graphql
Cloud Nine Wallet Address is up: http://localhost:3100/
Happy Life Bank Address is up: http://localhost:4100/
cloud-nine-wallet-test-backend already set
cloud-nine-wallet-test-auth already set
happy-life-bank-test-backend already set
happy-life-bank-test-auth already set
     data_received..................: 960 kB 16 kB/s
     data_sent......................: 1.9 MB 32 kB/s
     http_req_blocked...............: avg=8.11µs  min=2.46µs   med=4.97µs   max=5.72ms   p(90)=6.2µs    p(95)=6.7µs   
     http_req_connecting............: avg=235ns   min=0s       med=0s       max=158.56µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=86.73ms min=8.21ms   med=73.54ms  max=528.25ms p(90)=149.01ms p(95)=170.13ms
       { expected_response:true }...: avg=86.73ms min=8.21ms   med=73.54ms  max=528.25ms p(90)=149.01ms p(95)=170.13ms
     http_req_failed................: 0.00%  ✓ 0         ✗ 2754
     http_req_receiving.............: avg=79.43µs min=28µs     med=69.55µs  max=4.25ms   p(90)=103.36µs p(95)=127.84µs
     http_req_sending...............: avg=36.52µs min=8.91µs   med=26.57µs  max=2.26ms   p(90)=40.61µs  p(95)=56.3µs  
     http_req_tls_handshaking.......: avg=0s      min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=86.62ms min=8.06ms   med=73.44ms  max=527.54ms p(90)=148.78ms p(95)=170.03ms
     http_reqs......................: 2754   45.803319/s
     iteration_duration.............: avg=261.5ms min=155.87ms med=247.06ms max=1.02s    p(90)=323.72ms p(95)=355.44ms
     iterations.....................: 919    15.284405/s
     vus............................: 4      min=4       max=4 
     vus_max........................: 4      min=4       max=4 

@njlie njlie merged commit f5b325f into main May 28, 2025
38 of 44 checks passed
@njlie njlie deleted the nl/3397/payment-completion-histogram branch May 28, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: backend Changes in the backend package. type: source Changes business logic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add approximate payment completion histogram

2 participants