On this page:
Target audience:
CAST Administrators
Description
Consider the following:
- IT operations run on electricity
- kWh production leads to CO2 emissions (or equivalent)
- Lack of efficiency in IT operations wastes energy
- Unnecessary CPU cycles = unnecessary kWh consumption
- Efficiency in IT operations is for a large part conditioned by the way the operation of application was developed
- People have been used to ever-growing computing resources
- Forgetting the impact on the environment through the energy consumption
- Resulting in software that is far from optimized
- Energy can be saved by making software more efficient
With this in mind, CAST has developed a specific indicator called the GreenIT index (based on CAST's algorithms and measures) that is designed to show how efficient (on a scale of 1.00 - 4.00, with 4.00 being the best possible score) an Application is. The indicator can help identify pieces of software that could be optimized (by evolving the code) to require less CPU resources.
In what situation should you install this extension?
If you want to know how "green" (i.e. efficient) your Application is, you should install this extension.
- Function Points (transactions): a green tick indicates that OMG Function Point counting and Transaction Risk Index are supported
- Quality and Sizing: a green tick indicates that CAST can measure size and that a minimum set of Quality Rules exist
Function Points (transactions) | Quality and Sizing |
---|---|
CAST AIP release | Supported |
---|---|
≥ 8.2.x |
Prerequisites
An installation of any compatible release of CAST AIP (see table above) | |
A Dashboard Service containing at least one snapshot |
Download and installation instructions
To add the GreenIT index to the CAST Health Dashboard, various actions are required:
- Step 1 - Download and installation
- Step 2 - Add the indicator configuration to your deployed CAST Health Dashboard
- Step 3 - Use the CAST Management Studio to consolidate a snapshot
Each step is detailed below.
Step 1 - Download and installation
Please see:
- http://doc.castsoftware.com/display/EXTEND/Download+an+extension
- http://doc.castsoftware.com/display/EXTEND/Install+an+extension
- Please note that Step 4 in the document linked above is NOT relevant for the GreenIT index extension. Please skip it.
- The latest release status of this extension can be seen when downloading it from the CAST Extend server
Step 2 - Add the indicator configuration to your deployed CAST Health Dashboard
Modify the cmp.json and app.json files
To start, you need to modify (using a text editor - Notepad or other similar application) the following files that are part of your deployed CAST Health Dashboard:
- %CATALINA_HOME%\webapps\CAST-AAD\portal\resources\cmp.json
- %CATALINA_HOME%\webapps\CAST-AAD\portal\resources\app.json
cmp.json
Add the following plugin configuration to the file. Save the file on completion.
{ "id": 1040, "plugin": "QualityIndicatorResults", "color": "eco-green", "autoFit":false, "parameters": { "title": "Green IT Index", "icon": true, "qualityIndicator": { "id": "GREEN_IT", "format": "0.00" } } }
CAST recommends adding the plugin to the Overview section of the file:
"areas": [ { "id": 1, "title": "Overview", "panels": [
app.json
Add the following plugin configuration to the file. Save the file on completion.
{ "id": 1040, "plugin": "QualityIndicatorResult", "color": "eco-green", "autoFit":false, "parameters": { "title": "Green IT Index", "icon": true, "qualityIndicator": { "id": "GREEN_IT", "format": "0.00" } } }
CAST recommends adding the plugin to the Overview section of the file:
"areas": [ { "id": 1, "title": "Overview", "panels": [
Modify the app-navigation.json file
Modify (using a text editor - Notepad or other similar application) the app-navigation.json file located here:
%CATALINA_HOME%\webapps\CAST-AAD\portal\resources\internal\app-navigation.json
Add the indicator details to BOTH of the "healthfactors" sections located under the "Sizing" and the "Evolution" sections:
Sizing: healthfactors section
The GreenIT Index section has been added to the end of the section. Save the file on completion.
{ "id": "healthFactors", "plugin": "CriticalQualityRuleRatio", "parameters": { "order": "descending", "mode": null, "title": "Health Factors", "format": "0,000", "description": "", "indicators": [ { "id": "60017", "description": "TQI" }, { "id": "60016", "description": "Security" }, { "id": "60013", "description": "Robustness" }, { "id": "60014", "description": "Efficiency" }, { "id": "60012", "description": "Changeability" }, { "id": "60011", "description": "Transferability" }, { "id": "20140522", "description": "Green IT" } ] } },
Evolution: healthfactors section
The GreenIT index section has been added to the end of the section. Save the file on completion.
{ "id": "healthFactors", "description":"Health Factors", "indicators": [ { "id": "60017", "format":"0.00", "selected": true, "description": "TQI" }, { "id": "60016", "format":"0.00", "selected": false, "description": "Security" }, { "id": "60013", "format":"0.00", "selected": false, "description": "Robustness" }, { "id": "60014", "format":"0.00", "selected": false, "description": "Efficiency" }, { "id": "60012", "format":"0.00", "selected": false, "description": "Changeability" }, { "id": "60011", "format":"0.00", "selected": false, "description": "Transferability" }, { "id": "20140522", "format":"0.00", "selected": false, "description": "Green IT" } ] },
Step 3 - Use the CAST Management Studio to consolidate a snapshot
In the CAST Management Studio:
- Locate an existing snapshot in the Application editor > Execute tab:
- Select the snapshot and click the Consolidate option:
What results can you expect?
Once the analysis/snapshot consolidation has completed, you can view the results in the CAST Health Dashboard: the GreenIT index will be displayed as follows at both multi-Application level and single Application level:
Clicking the tile will drill down as follows:
Multi-Application level:
Single Application level: