Skip to content

Instantly share code, notes, and snippets.

This is to track moving completely off of vms for rpcs.

We currently have 4 rpc boxes: rpcb1..4 and 16 vms: rpc1..16

At peak we are handling about 8k connections per second.

1 physical machine at peak is handling about 1.3k connections per sec. This is in an underutilized state too, plenty of resource room (at peak with php7 we're talking < 20% CPU and 130Mbps) 1 vm is handling about 230 connections per sec

To maintain our current capacity we should determine how many more new hardware boxes we should add accounting for the fact that rpcb1,2 need to go away.

when when rollup dies with cache:

{ rss: 154533888, heapTotal: 125739008, heapUsed: 91440776 },
{ rss: 373751808, heapTotal: 345399296, heapUsed: 241697880 },
{ rss: 392359936, heapTotal: 365342720, heapUsed: 317458824 },
{ rss: 593084416, heapTotal: 563167232, heapUsed: 510649792 },
{ rss: 790614016, heapTotal: 759365632, heapUsed: 708062936 },
{ rss: 668528640, heapTotal: 634781696, heapUsed: 455590688 },
@cfebs
cfebs / entry.js
Last active December 9, 2016 16:59
rollup small dist
// entry.js
import 'three/src/polyfills.js'
import { Bone } from 'three/src/objects/Bone';
import { _Math } from 'three/src/math/Math';
window.THREE = {};
window.THREE.Bone = Bone;
window.THREE.Math = _Math;
@cfebs
cfebs / index.html
Last active December 6, 2016 22:40
focusblur
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div class="outer">
<button class="js-click">btn1</button>
<button class="js-click">btn2</button>
package main
import (
"fmt"
"net/http"
"log"
"bufio"
"io"
"io/ioutil"
"os"
[ { u'accessControlled': False,
u'creationTimestamp': u'1333047535673660',
u'deleted': False,
u'id': u'start',
u'kind': u'sj#playlist',
u'lastModifiedTimestamp': u'1333047535673660',
u'name': u'',
u'ownerName': u'Collin Lefeber',
u'ownerProfilePhotoUrl': u'http://lh4.googleusercontent.com/-iZOZs_RTSwU/AAAAAAAAAAI/AAAAAAAAAFY/5yxQqj5Xz4c/photo.jpg',
u'recentTimestamp': u'1333047535663000',
[ 532.780]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[ 532.781] X Protocol Version 11, Revision 0
[ 532.782] Build Operating System: Linux 3.13.0-85-generic x86_64 Ubuntu
[ 532.783] Current Operating System: Linux ubu 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64
[ 532.784] Kernel command line: BOOT_IMAGE=/vmlinuz-4.4.0-21-generic root=/dev/mapper/ubu--vg-root ro
[ 532.785] Build Date: 07 April 2016 09:18:50AM
[ 532.786] xorg-server 2:1.18.3-1ubuntu2 (For technical support please see http://www.ubuntu.com/support)
[ 532.787] Current version of pixman: 0.33.6
[ 79.021]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[ 79.022] X Protocol Version 11, Revision 0
[ 79.022] Build Operating System: Linux 3.13.0-85-generic x86_64 Ubuntu
[ 79.023] Current Operating System: Linux ubu 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64
[ 79.023] Kernel command line: BOOT_IMAGE=/vmlinuz-4.4.0-21-generic root=/dev/mapper/ubu--vg-root ro
[ 79.025] Build Date: 07 April 2016 09:18:50AM
[ 79.025] xorg-server 2:1.18.3-1ubuntu2 (For technical support please see http://www.ubuntu.com/support)
[ 79.026] Current version of pixman: 0.33.6
@cfebs
cfebs / scratch.md
Last active April 23, 2016 20:06
setting up phpvm and framework from scrath

php from scratch

Want to document how to setup a php project from scratch.

We will setup

  • ubuntu server in virtualbox
    • no vagrant, we just want a light solid VM running X and openbox.

We will build (or rewrite)

  • phpvm a version manager
echo " ____ _ __ ______ ___ _____ "
echo "| _ \\ / \\\\ \\ / / ___| / _ \\| ___|"
echo "| | | |/ _ \\\\ V /\\___ \\ | | | | |_ "
echo "| |_| / ___ \\| | ___) | | |_| | _| "
echo "|____/_/ \\_\\_| |____/ \\___/|_| "
echo " "
echo " _____ _ _ _ _ _ _ ____ _____ ____ "
echo "|_ _| | | | | | | \\ | | _ \\| ____| _ \\ "
echo " | | | |_| | | | | \\| | | | | _| | |_) |"
echo " | | | _ | |_| | |\\ | |_| | |___| _ < "