Skip to main content

Automated optimizer for MySQL InnoDB configurations

Reason this release was yanked:

Requirement is not enumerated

Project description

Pypi MIT licensed GitHub Release Date

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

The --commit flag should be included for an interactive run. The user is first asked whether the configuration should be saved; there is an option to print the generated config to console.
If the configuration is read, the user is prompted for the same question.
If the configuration is saved, the user is prompted to restart MySQL; there is an option to schedule the restart using bash’s at program.
innodb-optimize --commit
Standard Loop

Standard Loop

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

innodb_optimize-0.2.0-py3.8.egg (5.1 kB view details)

Uploaded Source

innodb_optimize-0.2.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file innodb_optimize-0.2.0-py3.8.egg.

File metadata

  • Download URL: innodb_optimize-0.2.0-py3.8.egg
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/62.0.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for innodb_optimize-0.2.0-py3.8.egg
Algorithm Hash digest
SHA256 20bbb90480d3bc476a9b1d475050afabb9150d11c6ed273e507c538b53a6862c
MD5 d955d91bba9b8e31d2c4bbd59198da89
BLAKE2b-256 48c08c809261a324ee87b3ce5c848f032a818e85d38515f1fc4e0ce684ab08a7

See more details on using hashes here.

File details

Details for the file innodb_optimize-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: innodb_optimize-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/62.0.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for innodb_optimize-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7320903657015daa22a5751628ae6dab90b9ee7161ff4ea29bb967637fdec48
MD5 5bb8ebdd50651259631644826dad4523
BLAKE2b-256 947c64e207b675113a33605da934e9a8a728d45bc37fec2cdadb8bf7a5776eca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page