Giter Club home page Giter Club logo

ansible-postgresql-tune's Introduction

postgresql_tune

Tune PostgreSQL configuration by hardware.

Synopsis

Optimize PostgreSQL configuration by setting up postgresql.conf parameter file according to hardware configuration and database usage. Optimizations are based on https://github.com/le0pard/pgtune/, developed by Alexey Vasiliev and released under MIT license.

Options

parameter required default choices comments
db_version no 9.6 PostgreSQL version.
total_memory yes Total memory on the target PostgreSQL server, in megabytes.
harddrive_type no hdd
  • hdd
  • ssd
  • san
Hard drive type, which PostgreSQL use as storage for data.
db_type no mixed
  • desktop
  • dw
  • mixed
  • oltp
  • web
Database usage type. Available types are web applications (web), online transaction processing systems (oltp), data warehouses (dw), desktop applications (dw), mixed type of applications (mixed).
cpus no 1 Number of CPUs, which PostgreSQL can use.
connections no Maximum number of connections for PostgreSQL clients (minimum value is 10). Will be computed automatically, dependency on the database type, if not specified.
others no All arguments accepted by the file module also work here.
follow no False This flag indicates that filesystem links, if they exist, should be followed.
path yes Path to the PostgreSQL postgresql.conf to modify.
backup no False Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
os_type no linux
  • linux
  • windows
Operation system type where PostgreSQL runs.

Examples

# Optimize PostgreSQL configuration
- local_action:
    module: postgresql_tune
    db_version: 9.2
    os_type: linux
    db_type: web
    total_memory: 8192
    path: /var/lib/pgsql/data/postgresql.conf

ansible-postgresql-tune's People

Contributors

m4ddav3 avatar melmorabity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fxkraus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.