Skip to content

Instantly share code, notes, and snippets.

#[derive(PartialEq, Eq, Debug)]
#[must_use]
pub enum Async<M, V> {
Continue(M, V),
Stop,
Timeout(M, SteadyTime),
}
fn ready(self, events: EventSet, context: &mut C)
-> Async<Self, Option<Self>>;
> ./wrk -t8 -c 400 http://127.0.0.1:6754
Running 10s test @ http://127.0.0.1:6754
8 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.01ms 1.41ms 33.06ms 91.36%
Req/Sec 63.02k 18.13k 125.13k 75.50%
5027436 requests in 10.04s, 421.92MB read
Requests/sec: 500565.14
Transfer/sec: 42.01MB
@tailhook
tailhook / vagga.yaml
Created November 17, 2015 21:13
python ubuntu trusty
setup:
- !Ubuntu trusty
- !Install [python]
@tailhook
tailhook / vagga.yaml
Created November 17, 2015 21:14
python alpine
setup:
- !Alpine v3.2
- !Install [python]
@tailhook
tailhook / Dockerfile
Created November 17, 2015 21:17
docker python
FROM ubuntu:trusty
RUN apt-get update && apt-get install -y python
@tailhook
tailhook / vagga.yaml
Created November 17, 2015 21:34
babel + webpack
setup:
- !Ubuntu trusty
- !NpmInstall
- babel
- babel-cli
- babel-preset-es2015
- webpack
> vagga
Available commands:
doc Build documentation
make Compile javascripts with webpack
make-test-page Compile test page
serve Serve test pages
test Run automated tests
watch Build and watch javascripts
setup:
- !Install [ubuntu]
- !Py3Install
- aiohttp
- pytest
@tailhook
tailhook / onedc_to_twodc_upgrade.diff
Last active December 23, 2015 10:39
Diffs showing how complex (i.e. easy) it's to add a another cluster to the topology managed by rulens
diff -u examples/onedc/topology.yaml examples/twodc/topology.yaml
--- examples/onedc/topology.yaml 2013-09-19 15:17:42.546613699 +0300
+++ examples/twodc/topology.yaml 2013-09-19 14:49:10.519955115 +0300
@@ -81,6 +81,20 @@
# If worker p isi not in the list above, choose random balancer for it
default: random
+ cluster2:
+ layout: cluster
+ rule: