Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There seems to be a race condition on boot when PG is sometimes started before shmmax kernel parameter is set. Maybe 30-level is too late, but we can afford to replace /etc/sysctl.conf for Travis Vagrant VMs anyway.
- Loading branch information
1 parent
5b40adf
commit 1195cda
Showing
3 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# 64 MB | ||
default[:sysctl][:kernel_shmall] = 67108864 | ||
# 64 MB | ||
default[:sysctl][:kernel_shmmax] = 67108864 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
template "/etc/sysctl.conf" do | ||
source "sysctl.conf.erb" | ||
owner "root" | ||
group "root" | ||
mode 0644 | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kernel.shmall=<%= node[:sysctl][:kernel_shmall] %> | ||
kernel.shmmax=<%= node[:sysctl][:kernel_shmmax] %> |