Closed timalces closed 2 years ago
I have an event that will ensure node counts are at 0 at 2am on 24/2/22
Someone requested the following scheduled exact counts for **democluster**:
**default**
Standard_B2s: 0 nodes
Standard_DS1_v2: 0 nodes
**special**
Standard_F2s_v2: 0 nodes
Standard_B2s: 0 nodes
**Scheduled time:** 2022-02-24 02:00:00 +0000
Yet the UI seems to be assuming the 1 node that is up will be up all of tomorrow. Is this expected? I'd have expected to see ~3 compute units as the estimated cost for the node tomorrow.
Merging this as appears to be working as intended.
Aims to resolve #4
Creation Wizard
Change Requests
ChangeRequest
object will be createdOneOffChangeRequest
or aRepeatedChangeRequest
Carrying out Change Requests
AzureInstanceManager
andAwsInstanceManager
. These then handle switching instances on/offActionLog
s are also created, recording details of the instance status change. These action logs are also used when calculating cost forecasts, to estimate instances' up-time (on forecast days in the past, and today)With Actions:
No Actions:
Manual Action Logs
rake action_logs:add [project_name,action,reason,instance_id,actioned_at_time]
.instance_id
here refers to the id given by the instance's platform and must be in the appropriate format. For example, for aws this would be something likei-0b00efe3aab7010da
, or for azure/subscriptions/#{subscription_id}/resourceGroups/#{resource_group}/providers/Microsoft.Compute/virtualMachines/#{instance_name}
.action
must beon
oroff
andactioned_at_time
in the format "yyyy-mm-dd HH:MM".