Skip to content

Instantly share code, notes, and snippets.

@zwily
Last active December 19, 2015 13:09
Show Gist options
  • Save zwily/5959853 to your computer and use it in GitHub Desktop.
Save zwily/5959853 to your computer and use it in GitHub Desktop.

CPUUtilization Based:

1 week ago 1 week ago
+ 1 hour
Now In 1 hour
(Prediction)
Avg CPU avg_cpu 50% 45% 52%
Num Nodes nodes 2 4 2
See if the present is matching the past
Total CPU
total_cpu = avg_cpu * nodes
100 104
100 and 104 are close enough together to assume that the future will match the past
Calculate total cpu for 1w ago + 1h
Total CPU 180
Assuming the future looks like the past, we can calculate the Average CPU for 1 hour from now (total_cpu / nodes)
90

QLen Based:

1 week ago 1 week ago
+ 1 hour
Now In 1 hour
(Prediction)
Queue Len qlen 100 70 125
Num Nodes nodes 2 4 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment