Skip to main content

Odoo Resource Assessor

This tool calculates the Odoo configuration based on the available system resources. It is designed to automate the configuration process by calculating the optimal number of worker processes and memory limits for Odoo based on the server's specifications.

Installation

To install the Odoo Resource Assessor, run the following command:

pip install odoo_resource_assesor

Usage

To assess the resources and get a recommended Odoo configuration, simply execute the tool:

resource-assesor

For assessing the current system automatically, use the --self flag to have the script determine the available system resources:

resource-assesor --self

You can check all the features by passing --help flag:

$ resource-assesor --help

usage: resource_assesor.py [-h] [--cpu CPU] [--ram RAM] [--limit-time-cpu LIMIT_TIME_CPU] [--limit-time-real LIMIT_TIME_REAL] [--output OUTPUT] [--self]

Calculate Odoo configuration.

optional arguments:
  -h, --help            show this help message and exit
  --cpu CPU             Number of CPUs
  --ram RAM             Amount of RAM in GB
  --limit-time-cpu LIMIT_TIME_CPU
                        Limit time CPU (default to 600)
  --limit-time-real LIMIT_TIME_REAL
                        Limit time real (default to 1200)
  --output OUTPUT       Output file path to write the configuration
  --self                Run quietly and use the current machine's resources

Features

  • Automatically calculates the number of HTTP workers for Odoo.
  • Determines optimal memory limits based on system's RAM.
  • Can use the current system's resources with the --self flag for convenience.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repository and create a pull request. You can also simply open an issue with the tag "enhancement".

Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Metadata

Release files for odoo-resource-assesor 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for odoo-resource-assesor 0.1.1
File Size Uploaded
odoo_resource_assesor-0.1.1.tar.gz 14.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for odoo-resource-assesor 0.1.1
File Interpreter ABI Platform
odoo_resource_assesor-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.8 kB

Release files / odoo_resource_assesor-0.1.1.tar.gz

Download URL odoo_resource_assesor-0.1.1.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
84ee6543f2e40d2d58a41d8b53153a66b0a8270b9f6c326ce18546080cd8f1c3
BLAKE2b-256 checksum
How to use checksums
cee34139d315ba365904af38747aa6e150598443e58502e4d5770b1cc904b775
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / odoo_resource_assesor-0.1.1-py3-none-any.whl

Download URL odoo_resource_assesor-0.1.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b345e17f99253b6e750832ffb6cafe1c6fc20c94fd1edda9495a9acf3a446f49
BLAKE2b-256 checksum
How to use checksums
25757ca1866c060f0aac320c6f9eaa4dc4ae80de2d0de01e61be141fa5f3154b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page