- disable backups (
backup_retention=0
) - disable multi-AZ and autovacuum
pg_dump -Fc
(compressed) andpg_restore -j
(parallel)- Increase
maintenance_work_mem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'fog' | |
require 'json' | |
require 'open-uri' | |
module AWSAdvent | |
class Demo | |
attr_reader :instance, :compute, :server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
LABEL: CORE_DUMP | |
IDENTIFIER: A924A5FC | |
Date/Time: Tue Dec 2 16:17:18 CST 2014 | |
Sequence Number: 1229 | |
Machine Id: 00F905A14C00 | |
Node Id: l5a1vp050_pub | |
Class: S | |
Type: PERM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /etc/security/limits | |
* | |
* Sizes are in multiples of 512 byte blocks, CPU time is in seconds | |
* | |
* fsize - soft file size in blocks | |
* core - soft core file size in blocks | |
* cpu - soft per process CPU time limit in seconds | |
* data - soft data segment size in blocks | |
* stack - soft stack segment size in blocks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo yum -y install git | |
sudo yum -y install gcc gcc-c++ patch | |
wget -O /tmp/ruby-install-v0.4.3.tar.gz https://codeload.github.com/postmodern/ruby-install/tar.gz/v0.4.3 | |
cd /tmp && tar zxvf ruby-install-v0.4.3.tar.gz | |
sudo yum remove libyaml # cloud-init on IBM PDP conflicts, but we don't care if that's removed now | |
cd ruby-install-0.4.3 | |
sudo make install | |
sudo /usr/local/bin/ruby-install ruby 2.1.2 # TODO: put flags from https://github.com/opscode-cookbooks/omnibus/blob/master/libraries/ruby_install.rb#L53-L59 in here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chef/log' | |
require 'pry' | |
module ChefSoftware | |
class CookbookVersionsHandler < Chef::Handler | |
def report | |
Chef::Log.info('Pausing in handler to run pry; type "exit" to leave pry') | |
binding.pry | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(christmas_handler). | |
-behaviour(cowboy_http_handler). | |
-export([init/3]). | |
-export([handle/2]). | |
-export([terminate/3]). | |
-record(state, {}). | |
init(_, Req, _Opts) -> |
Chef Client 12 uses the UTF-8 locale. By default, BOS doesn't include it so Chef will throw warnings. Here's how you install it.
You need at least the AIX media (first disc), or copy all the files in /installp/ppc/*EN_US*
somewhere on your LPAR. Let's say it's /tmp/rte
It's recommended that you use smit
to install this charset so any WPARs you have also get the charset applied.
From a root shell type:
` $ smit lang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Starting Chef Client, version 12.2.0.dev.0 | |
resolving cookbooks for run list: ["chef-client::config", "chef-client::service", "chef-client::delete_validation"] | |
Synchronizing Cookbooks: | |
- cron | |
- chef-client | |
- logrotate | |
- windows | |
- chef_handler | |
Compiling Cookbooks... | |
Converging 12 resources |
Thanks for wanting to contribute to Chef! There are many ways to get involved in various areas of the project, tools, and documentation. This document will help you get started; the links below point to how-to-contribute information for each project.