• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

xapi-project / xen-api / 11122257998
78%
master: 80%

Build:
Build:
LAST BUILD BRANCH: private/gangj/CA-384228
DEFAULT BRANCH: master
Ran 01 Oct 2024 09:12AM UTC
Jobs 1
Files 37
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Oct 2024 09:10AM UTC coverage: 78.279%. Remained the same
11122257998

push

github

web-flow
CP-48676: Reuse pool sessions on slave logins (#5986)

This PR allows pool sessions to be reused, rather than wasting time
creating new ones each time to talk to the slaves.

The average time spent across 15 slave get_servertime xenapi calls on a
virtual pool was 20.97ms with reuse-pool-sessions = false.

![image](https://github.com/user-attachments/assets/a2cf31cb-5832-4e0d-928e-fc9df95626e6)
Compared to an average of 17.11ms with reuse-pool-sessions = true

![image](https://github.com/user-attachments/assets/186685a4-e763-449a-9f77-73cb29896200)

In particular, the part of the request that has actually been changed,
the login_no_password call has gone from about 2.41ms to 0.008ms, 300x
faster than previously.

One part of why this speedup is possible is because we no longer have to
do a pool.get_all for each session (to force the newly created session's
time to update). If we were to validate the reusable pool session is
valid before use, we would still need to do this pool.get_all. However,
as we are now no longer destroying the db session after use, it should
continue to be valid. As such, to achieve the best speed increase, this
option of validating the reusable pool session
(validate-reusable-pool-session in xapi.conf) is off by default.

3456 of 4415 relevant lines covered (78.28%)

0.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 11122257998.1 01 Oct 2024 09:12AM UTC 37
78.28
GitHub Action Run
Source Files on build 11122257998
  • Tree
  • List 37
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11122257998
  • 15721afb on github
  • Prev Build on master (#11122294964)
  • Next Build on gh-readonly-queue/master/pr-5986-9a2e94b0584d3315c4ceaf56068e6ebe8aed371d (#11122258171)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc