Each log line corresponds to a line of JSON. This is backward compatible with the existing steno output.
{
timestamp: TIMESTAMP, // formatted as fmt.Sprintf("%.9f", time.Now().UnixNano()) / 1e9)
if we modify storeadapter#compareAndSwapByIndex to return the new index, we can use this mechanism for our lifecycle/state machines:
type StoreAdapter interface {
CompareAndSwapByIndex(prevIndex uint64, newNode StoreNode) (newIndex uint64, err error)
}
This would allow our state machines to continue, even if the values changed (provided all versions of the model have a StoreIndex field that we can use). Doesn't solve the issue of our processes expecting the data to be in a different format that the model they currently have, but it does prevent model changes from messing up the state machine.
#!/bin/bash | |
set -e -x | |
apt-get install aufs-tools | |
pushd $GOPATH_ROOT/src/github.com/cloudfoundry-incubator/warden-linux | |
make # compile wshd/etc. | |
export WARDEN_BINPATH=$PWD/linux_backend/bin | |
popd |
This is a minimal-ish set of instruction to set up a freshly imaged OS X workstation for working on Diego. If you've already used the Pivotal sprout
recipes to provision your machine, you might have a bad time.
These are nice for the core developer team, feel free to skip this section:
ShiftIt.zip
from github.com/onsi/shiftit
.package main | |
import ( | |
"bytes" | |
"errors" | |
"io" | |
"io/ioutil" | |
"os" | |
) |
type Range interface { | |
Add(low, high int) | |
Remove(low, high int) | |
Contains(int) bool | |
Lowest() int | |
Highest() int | |
Each(func(int, int) bool) | |
Union(Range) Range |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"strconv" | |
"time" | |
) |
Install the following:
module.exports = test_data = { | |
defaults:{ | |
protocol: 'http', | |
host: 'target-site.com', | |
port: 80 | |
}, | |
requests:[ | |
{method:'get', path:'/test', weight:200}, | |
{method:'post', path:'/foo', body:'bar=false', weight:5}, | |
{method:'post', path:'/bar', body:'foo=true', weight:10}, |