Skip to content

Instantly share code, notes, and snippets.

View girishkalele's full-sized avatar

Girish Kalele girishkalele

View GitHub Profile
@girishkalele
girishkalele / bind-stats.xml
Created September 1, 2016 21:50
BIND Example XML Statistics
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/bind9.xsl"?>
<isc version="1.0">
<bind>
<statistics version="2.2">
<views>
<view>
<name>_default</name>
<zones>
<zone>
(pprof) top1000
5.54s of 6.37s total (86.97%)
Dropped 138 nodes (cum <= 0.03s)
Showing top 100 nodes out of 195 (cum >= 3.41s)
flat flat% sum% cum cum%
1.46s 22.92% 22.92% 1.57s 24.65% syscall.Syscall
0.30s 4.71% 27.63% 0.30s 4.71% runtime.futex
0.30s 4.71% 32.34% 0.30s 4.71% runtime.usleep
0.28s 4.40% 36.73% 0.28s 4.40% runtime.readvarint
@girishkalele
girishkalele / Kubernetes_1.3_DNS_Perf.md
Created June 20, 2016 21:29
Kubernetes 1.3 DNS Reliability and Performance testing

Kubernetes 1.3 DNS Reliability and Performance Testing

Ran dnsbench in varying number of test containers to test DNS QPS and reliability. Worker nodes were n1-standard-2 GCE instances.

1 DNS Pod and 1 client pod

~ 1300 QPS

1 DNS Pod and 10 Client/Test Pods

@girishkalele
girishkalele / laundromat.sh
Last active June 17, 2016 00:55
Launder using routing into a loopback tunnel
#!/bin/bash
# SIGSTOP kube-proxy
kill -STOP `ps auxwww | grep kube-proxy | grep -v /bin/sh | grep -v grep | awk '{print $2}'`
export NODEID="3"
export CBRA="10.244.$NODEID.1"
export ETHA="10.128.0.$NODEID"
# GRE point to point tunnel to launder packets
FROM ubuntu
MAINTAINER Abhishek Shah "abshah@google.com"
ADD README.md README.md
#ADD Dockerfile Dockerfile
RUN apt-get -q update
#Install dependencies needed for building dnsperf
RUN apt-get install -y build-essential
@girishkalele
girishkalele / gist:e3645d4bbe8eb95f0ee0db3d24649824
Last active May 1, 2019 01:19
proxy/userspace unit test failure
https://github.com/kubernetes/kubernetes/issues/26364
E0607 14:09:38.968177 116580 proxysocket.go:218] ReadFrom failed, exiting ProxyLoop: read udp [::]:43857: use of closed network connection
E0607 14:09:39.218909 116580 proxysocket.go:292] WriteTo failed: write udp [::]:35756->127.0.0.1:38629: use of closed network connection
E0607 14:09:39.219070 116580 proxysocket.go:238] SetDeadline failed: set udp 127.0.0.1:49782: use of closed network connection
E0607 14:09:39.486255 116580 proxysocket.go:218] ReadFrom failed, exiting ProxyLoop: read udp [::]:35503: use of closed network connection
panic: test timed out after 2m0s
goroutine 114 [running]:
panic(0xc6b280, 0xc820216dd0)