Skip to content

Instantly share code, notes, and snippets.

@markstgodard
markstgodard / get-route.md
Created December 2, 2016 19:35
How to get route info from a gorouter in-memory routing table

Get Route

The example below is an example using bosh-lite

  • Go on to a gorouter VM
$ bosh ssh router_z1
  • Get the user, password info for the gorouter status endpoint

gorouter.yml

logging:
  file: /var/vcap/sys/log/gorouter/gorouter.log
  syslog: vcap.gorouter
  level: error

gorouter_ctl

netman-release/src

github.com/
├── cloudfoundry-incubator
    ├── c2c
        ├── cli-plugin
        ├── cni-wrapper-plugin
        ├── garden-external-networker
        ├── netmon
 ├── netman-cf-acceptance

netman-release/src

├── cf-pusher
├── cli-plugin
├── cni-wrapper-plugin
├── example-apps
│   ├── cats-and-dogs
│   ├── proxy
│   └── tick
├── flannel-watchdog

create a service (as SpaceDeveloper)

mark at evilcorp ~ $ cf t

API endpoint:   https://api.bosh-lite.com (API version: 2.62.0)
User:           mark
Org:            o
Space:          s
mark at evilcorp ~ $ cf m
Getting services from marketplace in org o / space s as mark...

Total requests

Every 10 seconds, gorouter emits total_requests which is a total running count of requests processed

Looking at the firehose, using NOAA:

$ CF_ACCESS_TOKEN=`cf oauth-token |grep bearer` go run firehose_sample/main.go |grep total_req

output

Container Networking Scalability Test

Below is just some notes on my thoughts on how we can structure some of the scalability tests for CF Container Networking.

Apps:

  • registry app
    • This app will be a central registry for app instances
    • Apps POST to /api/v1/instances to register themselves and heartbeat on an interval
    • GET /api/v1/instances returns a list of currently registered app instances
    • Reference: https://github.com/amalgam8/registry
  • Deploy
@markstgodard
markstgodard / 25apps-5instances-registry.json
Created September 10, 2016 16:57
Container to Container - 25 apps, 5 instances, register heartbeats w/ registry app
{
"instances": [
{
"id": "762357fefd921c3b",
"service_name": "8594a1c2-1b90-43c8-6f09-17bcae19aadb/0",
"endpoint": {
"type": "tcp",
"value": "10.255.66.109:8080"
},
"ttl": 20,

Perf tests (AWS)

boom -n 50000 -c 100 -host gostatic.toque.c2c.cf-app.com http://10.10.2.70:80

RR

Summary:
  Total:       	32.6194 secs
  Slowest:     	0.4148 secs
  Fastest:     	0.0012 secs