Automated optimizer for MySQL InnoDB configurations
Project description
innodb-optimize is a package for automatically calucalating optimized InnoDB configurations, and generating an updated my.cnf file with those values.
Installation
# PyPi Installation
pip install innodb-optimize
# GitHub Installation
pip install git+'https://github.com/Scraps23/innodb_optimize.git'
Usage
Basic Output
The following command will output the generated configuration to STDOUT. This is useful when using this tool in other scripts, such as automating system deployments.
innodb-optimize
Standard Commit Loop
innodb-optimize --commit
Available Arguments
file: Where the MySQL configuration file is located. Defaults to /etc/mysql/my.cnf.
percent: Determines what percentage of the total memory will be devoted to InnoDB engine usage. Defaults to 75%.
memory: Allows the user to override the total memory amount (i.e. a fixed amount is already pre-allocated which is not easily accounted for in percentages). Only allows for kilobyte unit.
commit: Is required to start the loop which will commit the changes. Without it, the program only outputs the config to standard out to allow for piping/redirecting the output as needed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file innodb_optimize-0.1.5-py3.8.egg
.
File metadata
- Download URL: innodb_optimize-0.1.5-py3.8.egg
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddb597593d5f3b3667a5f064bb5058cad0d0f1bc288ee790c476eba16781814c |
|
MD5 | c431f4e5e4419021de68c8b28942234c |
|
BLAKE2b-256 | 9d275ccd5cae33269e5a59520a572ee59dc541a843dcca96a2adac5bbfe17301 |
File details
Details for the file innodb_optimize-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: innodb_optimize-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0dfd3086f420fe98ebdde1cd6ebfffc65d62afc49b2334db01f92fe33309922 |
|
MD5 | 171a5bdbdcbc5bd16a12659f4bb95e1b |
|
BLAKE2b-256 | df54e9d142dff6251bfb5a217b45d2b9e5faad897ecbe209e04397e057e3cf74 |