pgtune
Version information
Start using this module
Add this module to your Puppetfile:
mod 'Envek-pgtune', '0.1.4'
Learn more about managing modules with a PuppetfileDocumentation
PgTune
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:
include pgtune
To limit memory for PostgreSQL by a half of installed RAM:
class { "pgtune":
available_memory_mb => $memorysize_mb / 2,
}
To specify database purpose and desired connection limit:
class { 'pgtune':
max_connections => 150,
db_type => 'web',
}
Available DB types
web
- Web applicationsoltp
- Online transaction processing systemsdw
- Data warehousesdesktop
- Desktop applicationsmixed
- 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
- Fork it (https://github.com/Envek/puppet-pgtune/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Make your changes
- Write tests for them, make sure that
rake test
passes - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Dependencies
Copyright © 2015 Andrey Novikov MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.