Merge lp:~dpb/storm/db-setup-pg-shmmax into lp:storm
Proposed by
David Britton
Status: | Merged |
---|---|
Approved by: | Andreas Hasenack |
Approved revision: | 460 |
Merged at revision: | 457 |
Proposed branch: | lp:~dpb/storm/db-setup-pg-shmmax |
Merge into: | lp:storm |
Diff against target: |
44 lines (+22/-3) 1 file modified
dev/db-setup (+22/-3) |
To merge this branch: | bzr merge lp:~dpb/storm/db-setup-pg-shmmax |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andreas Hasenack (community) | Approve | ||
Review via email: mp+150625@code.launchpad.net |
Description of the change
On pg9.1 and certain memory configurations, the settings introduced by dev/db-setup can overrun the default shmmax settings on the kernel. This change catches the error and attempts to tune the kernel correctly.
To post a comment you must log in.
Just make sure $size is a number before writing it to that file and feeding it to sysctl. That regexp might fail one day if the error message from postgresql changes.