Tag: v0.1.3 - ResourceFit
ResourceFit v0.1.3 - Comprehensive Update with New Features and Bug Fixes
Key Updates:
-
New Export Options:
- Users can now export EC2 instance recommendations in multiple formats (
CSV
,Excel
, andJSON
). This allows for easier sharing, further analysis, and direct integration with other tools.
- Users can now export EC2 instance recommendations in multiple formats (
-
Best Instance Selection Feature:
- With the
-b
option, users can now return the best EC2 instance option by index. For example, runningresourcefit -b 1 -j
will return the best (first) recommendation in JSON format. This improves the efficiency of retrieving EC2 instance information directly for specific use cases.
- With the
-
JSON Output Support:
- The addition of the
-j
option enables users to output instance data in JSON format. This is especially useful for automation and integration with other tools, allowing seamless consumption of recommendation data.
- The addition of the
-
Memory Utilization Calculation Fix:
- A bug that caused memory utilization calculations to incorrectly show 100% has been fixed. The memory utilization logic now properly reflects the actual usage of memory in Docker containers, ensuring that the recommended instances are more accurate.
Bug Fixes:
-
Resolved Memory Buffer Calculation Issue:
- The memory buffer calculations have been refined, ensuring that recommendations take into account the actual memory usage plus a configurable buffer for peak usage conditions. This makes instance recommendations more robust and reliable.
-
Improved Docker Stats Parsing:
- Several improvements were made to the way Docker container stats (such as memory, CPU, and disk I/O) are collected and analyzed, ensuring better accuracy and compatibility with various Docker environments.
-
Instance Filtering Enhancements:
- EC2 instance filtering now better respects the resource constraints of your containers, particularly with respect to memory, vCPU, and disk space. The filtering process has been streamlined to more accurately match instances to your Docker container’s needs.
Example of New Options:
Here are some usage examples of the new features introduced in ResourceFit v0.1.3:
-
Exporting Recommendations:
- To export the recommendations in CSV format:
resourcefit -e csv
- To export the recommendations in Excel format:
resourcefit -e xlsx
- To export the recommendations in JSON format:
resourcefit -e json
- To export the recommendations in CSV format:
-
Retrieving the Best Instance in JSON:
- To retrieve the best EC2 instance (first) and output its data in JSON:
resourcefit -b 1 -j
- To retrieve the best EC2 instance (first) and output its data in JSON:
-
Basic Usage Without Export or JSON:
- Running the basic recommendation without any export or JSON output:
resourcefit
- Running the basic recommendation without any export or JSON output:
How to Update:
To update ResourceFit to version v0.1.3
, simply run the following command:
pip install --upgrade resourcefit
Additional Resources:
- Documentation: You can find full usage instructions and examples in the README.
- Changelog: The complete changelog for all previous versions is available in the CHANGELOG.