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
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
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 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
#!/bin/sh | |
set -e | |
echo -n -e \\x00\\x00\\x00\\x08\\x4e\\x49\\x5f\\x50\\x49\\x4e\\x47\\x00 | nc $@ |
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
# 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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: bot | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: |
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 -eu | |
DEFAULT_URL="http://localhost:4191/metrics" | |
DEFAULT_CURL="curl" | |
curl="${CURL:-$DEFAULT_CURL}" | |
url="${1:-$DEFAULT_URL}" | |
while true ; do |
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 | |
# :; kubectl apply -f strest.yml --prune -l 'app=strest' | |
# | |
# # Add server instances | |
# :; kubectl -n strest scale -l 'strest-server-profile=fast' --replicas=10 | |
--- | |
kind: Namespace |