Force Azure RI Buy Actions in 24 hours

Document created by jason.shaw on Dec 5, 2019Last modified by jason.shaw on Dec 5, 2019
Version 2Show Document
  • View in full screen mode

First you need to ensure you are running Turbonomic v6.4.x or higher

 

Second you need to have Azure targets added

 

Third you need to have an Azure EA Target added for over 24 hours.  As without that you cannot generate any Azure RI Buy Actions.  

 

Now there are 2 settings that need to be updated to speed up see the Azure RI Buy actions, one is in the server.properties file which is located in /srv/tomcat/data/config

 

ssh login to the instance:

vi /srv/tomcat/data/config/server.properties

change the value of:

   workload.isStable.lookBackDays=21

to be for example 1 day as shown below:

   workload.isStable.lookBackDays=1

save the file esc :wq

 

Now you need to login to Swagger on the Turbonomic instance URL:

https://turbonomic_servername/vmturbo/apidoc/#/Settings/getSettingByUuidAndName

You need to apply the updated settings as shown in the screen shot below:

The Uuid of the settings manager = reservedinstancemanager

The Uuid of the setting = riMinimumDataPoints

The new value for the setting = {"value":24}

Click on Execute

You should receive a Code 200 with a Response body of:

{
"uuid": "riMinimumDataPoints",
"displayName": "Minimum number of data points needed to make an RI buy decision",
"value": "24",
"defaultValue": "168",
"valueType": "NUMERIC",
"valueObjectType": "String",
"min": 1,
"max": 168,
"sourceGroupName": "Global"
}

 

Now if you log back into the UI under the Cloud tab and scroll down you should see the Recommended RI Purchases widget populated now.  if not it can take up to 5 mins, refresh and try again.

 

Now to revert the settings back to default after the Azure EA target has been added for over 21 days:

ssh login to the instance:

vi /srv/tomcat/data/config/server.properties

change the value of:

   workload.isStable.lookBackDays=1

to be for example 7 days as shown below:

   workload.isStable.lookBackDays=21

save the file esc :wq

 

Now you need to login to Swagger on the Turbonomic instance URL:

https://turbonomic_servername/vmturbo/apidoc/#/Settings/getSettingByUuidAndName

You need to apply the updated settings as shown in the screen shot below:

The Uuid of the settings manager = reservedinstancemanager

The Uuid of the setting = riMinimumDataPoints

The new value for the setting = {"value":168}

Click on Execute

You should receive a Code 200 with a Response body of:

{
"uuid": "riMinimumDataPoints",
"displayName": "Minimum number of data points needed to make an RI buy decision",
"value": "168",
"defaultValue": "168",
"valueType": "NUMERIC",
"valueObjectType": "String",
"min": 1,
"max": 168,
"sourceGroupName": "Global"
}

 

Now log back into the UI under the Cloud tab and scroll down you should see the Recommended RI Purchases widget populated now. 

 

If you do not and the widget is blank, that means there could be issues with your instance:

  • Not having the Azure EA target added for at least 22 days. If that is the case just wait until day 22 and check the widget again.
  • If it has been added longer than 22 days then there could be an issue with the instance not updating the DB table named:  "instance_type_hourly_by_week" properly and not having the correct amount of data in it to make RI Buy recommendations.  If that is the case please open a ticket with Turbonomic support to look into the issue further.

Attachments

    Outcomes