Skip to content

Conversation

@Meldiron
Copy link
Contributor

Method useful for simply getting the percentage of CPU usage between 0 and 100. This is used in the Appwrite functions proxy as part of CPUBasedAdapter proxy.

  • Tests implemented

@Meldiron
Copy link
Contributor Author

Manual QA went well ✅

On 8x CPU droplet and 5 duration.

Init value: float(0.05001250312578145)
With stress --cpu 1 running: float(12.590557082188358)
With stress --cpu 4 running: float(50.06248437890527)
With stress --cpu 7 running: float(87.575)
With stress --cpu 8 running: float(100)

Ensured stress test is running properly with htop:

CleanShot 2022-10-18 at 11 56 32

CleanShot 2022-10-18 at 11 56 43

CleanShot 2022-10-18 at 11 56 25

Copy link
Contributor

@PineappleIOnic PineappleIOnic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Gets my 🦭

Copy link
Member

@eldadfux eldadfux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also update the readme with the new function support for different OSs

Meldiron and others added 2 commits November 7, 2022 12:47
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
@christyjacob4 christyjacob4 merged commit 289c432 into main Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants