Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/envek/puppet-pgtune
Puppet module for configuring PostgreSQL installations for optimal performance.
https://github.com/envek/puppet-pgtune
optimization performance pgtune postgresql puppet tuning
Last synced: about 2 months ago
JSON representation
Puppet module for configuring PostgreSQL installations for optimal performance.
- Host: GitHub
- URL: https://github.com/envek/puppet-pgtune
- Owner: Envek
- License: mit
- Created: 2015-06-01T12:03:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-10T11:55:20.000Z (over 8 years ago)
- Last Synced: 2024-12-07T13:38:18.560Z (about 2 months ago)
- Topics: optimization, performance, pgtune, postgresql, puppet, tuning
- Language: Puppet
- Size: 20.5 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PgTune
[![Puppet
Forge](http://img.shields.io/puppetforge/v/Envek/pgtune.svg)](https://forge.puppetlabs.com/Envek/pgtune) [![Build Status](https://travis-ci.org/Envek/puppet-pgtune.png)](https://travis-ci.org/Envek/puppet-pgtune) [![Puppet Forge
Downloads](http://img.shields.io/puppetforge/dt/Envek/pgtune.svg)](https://forge.puppetlabs.com/Envek/pgtune/scores)Puppet module for configuring PostgreSQL installations for optimal performance.
Heavily based on web version of [PgTune] utility by Alexey Vasiliev aka @le0pard. _Note: not all functionality is implemented yet._
Please note that such autoconfiguration is not absolutely optimal in every case and should be considered as "quick start" solution. Most probably at some point of time you will stop use this module and will pick `postgresql::server::config_entry` definitions from its `init.pp` with values optimal for you.
Installation
------------### Using [librarian-puppet] _(recommended)_
Place in your `Puppetfile`
mod 'Envek-pgtune'
And execute
librarian-puppet install
### Just to install
Type on your Puppet master command:
puppet module install Envek-pgtune
Usage
-----To configure by default:
```puppet
include pgtune
```To limit memory for PostgreSQL by a half of installed RAM:
```puppet
class { "pgtune":
available_memory_mb => $memorysize_mb / 2,
}
```To specify database purpose and desired connection limit:
```puppet
class { 'pgtune':
max_connections => 150,
db_type => 'web',
}
```### Available DB types
* `web` - Web applications
* `oltp` - Online transaction processing systems
* `dw` - Data warehouses
* `desktop` - Desktop applications
* `mixed` - Mixed type of applications (this is default)Found a mistake? Have a question?
----------------------------------Search for an (or open new) issue here: https://github.com/Envek/puppet-pgtune/issues or send a pull request!
Contributing
------------1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Make your changes
4. Write tests for them, make sure that `rake test` passes
5. Commit your changes (`git commit -am 'Add some feature'`)
6. Push to the branch (`git push origin my-new-feature`)
7. Create a new Pull Request[PgTune]: http://pgtune.leopard.in.ua/
[librarian-puppet]: http://librarian-puppet.com/