This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Examples: | |
# | |
# # Deploy everything | |
# :; target/cli/conduit-latest-macos inject config/strest.yml \ | |
# | kubectl apply -f - --prune -l 'app=strest' | |
# | |
# # Add server instances | |
# :; kubectl -n strest scale -l 'strest-role=server' --replicas=3 | |
# | |
# # Stop a specific test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:; cat ~/b/hello-world.yml | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: hello | |
spec: | |
selector: | |
app: hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
echo -n -e \\x00\\x00\\x00\\x08\\x4e\\x49\\x5f\\x50\\x49\\x4e\\x47\\x00 | nc $@ |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs | |
Running `target/debug/linkerd-tcp example.yml` | |
[34mDEBUG[0m:[1mlinkerd_tcp::balancer::dispatcher[0m: start_send: dispatching waiter | |
[35mTRACE[0m:[1mlinkerd_tcp::balancer::dispatchq [0m: start_send: dispatching sendq=1/1048575 recvq=0 | |
[35mTRACE[0m:[1mlinkerd_tcp::balancer::dispatchq [0m: dispatch: took waiter from sendq; polling recvq | |
[35mTRACE[0m:[1mlinkerd_tcp::balancer::dispatchq [0m: dispatch: recvq not ready | |
[35mTRACE[0m:[1mlinkerd_tcp::balancer::dispatchq [0m: start_send: dispatched sendq=1/1048575 recvq=0 | |
[34mDEBUG[0m:[1mlinkerd_tcp::balancer::dispatcher[0m: initiating 1 connections | |
[34mDEBUG[0m:[1mlinkerd_tcp::balancer::dispatcher[0m: start_send: dispatched waiter ready=true | |
[34mDEBUG[0m:[1mlinkerd_tcp::balancer::dispatcher[0m: start_send: dispatching waiter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use futures::{Future, Stream, Poll, Async, AsyncSink, Sink, StartSend}; | |
use futures::unsync::{oneshot, mpsc}; | |
use std::cell::RefCell; | |
use std::collections::VecDeque; | |
use std::rc::Rc; | |
/// Creates a dispatching channel. | |
/// | |
/// This channel supports a single producer task and many consumers. | |
/// It is intended to be used by a producer task that pushes T-typed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin: | |
port: 9989 | |
metricsIntervalSecs: 10 | |
routers: | |
- label: default | |
interpreter: | |
kind: io.l5d.namerd.http |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate rand; | |
use rand::Rng; | |
use std::cell::RefCell; | |
use std::collections::HashMap; | |
use std::rc::Rc; | |
use std::thread; | |
use std::time::Duration; | |
fn main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# When the current branch has been merged to the origin, update master | |
# and delete the local branch. | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
if [ -z "$branch" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"net/http" | |
"os" | |
) | |
func dieIf(err error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
l5d: | |
image: buoyantio/linkerd:nightly | |
container_name: l5d | |
ports: | |
- 4142:4142 | |
- 9990:9990 |