Skip to content

Instantly share code, notes, and snippets.

View joshwilsdon's full-sized avatar

Josh Wilsdon joshwilsdon

View GitHub Profile

Keybase proof

I hereby claim:

  • I am joshwilsdon on github.
  • I am jwilsdon (https://keybase.io/jwilsdon) on keybase.
  • I have a public key ASArc37yOXGHpqXNirmu431rz7W5m3RJ5Q4G0RC7s3mLzQo

To claim this, I am signing this object:

@joshwilsdon
joshwilsdon / capping
Last active August 29, 2015 14:16 — forked from jjelinek/capping
The physical memory limit and the swap cap are two independent and
unrelated limits.
The physical memory limit is a soft cap that controls how many pages of
physical memory can be resident for the zone. Once that value is exceeded
the memory capper will invalidate pages until the RSS of the set of
processes within the zone is below the limit.
The swap cap is a hard limit and is used to control how much anonymous
memory is available. Because anonymous memory is reserved when it is
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
stats socket /tmp/haproxy
defaults
log global
mode http
option httplog
- if [[ -d /.stage/site && -n $(ls /.stage/site) ]]; then
- echo "install site"
- (cd /.stage/site && tar cbf 512 - *) | \
- (cd /lib/svc/manifest/site && tar xbf 512 -)
- fi