-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept both 0
and 'off'
as inputs to interpolate builtin
#1044
Milestone
Comments
PR expected today |
9 tasks
needs more changes in the plugin factory and make a new release of if core |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What
interpolate
- this should be treated as a valid point to interpolate.off
, as an input tointerpolate
that causes the builtin to return zero for the cpu power, rather than the value that assumes the server is idle.Why
There are two aspects to this - one is that there is no reason to throw an error on
x=0
in the interpolation code - 0 is a valid interpolation point. Even in the canonical IF example (Teads) there is a giveny
value forx=0
which we cannot retrieve because the builtin throws an exception onx=0
.Secondly, we can't model a server that periodically shuts down and spins up within a time series - the best we can do is provide
cpu-util: 0
but the power drawn by an idling server is ~50-70% of full utilization. For servers that are actually totally turned off, we still assign power to them as if they were idling. To model, for example a monthly conference call in a 30 day, 1-day resolution time series,, we are forced to include an idling server for the full month, even though we only really want to capture 30 mins of activity.Context
as above
Prerequisites/resources
n/a
SoW (scope of work)
interpolate
'off'
as a valid input - it always returns 0.Acceptance criteria
Given the builtin accepts
0
as an input:When I run the following manifest:
Then I get the following result:
Given the builtin accepts
'off'
as an input:When I run the following manifest:
Then I will get the following result:
The text was updated successfully, but these errors were encountered: