Skip to content

Instantly share code, notes, and snippets.

View markusthoemmes's full-sized avatar

Markus Thömmes markusthoemmes

View GitHub Profile
@markusthoemmes
markusthoemmes / continue.go
Last active June 8, 2020 12:12
Had a little play with how the http.StatusContinue behavior works in a potential Knative setup.
package main
import (
"fmt"
"io"
"io/ioutil"
"math/rand"
"net/http"
"net/http/httptest"
"net/http/httputil"
@markusthoemmes
markusthoemmes / bench.go
Created October 29, 2020 06:58
TCP vs Unix connection with no keepalive benchmark
func BenchmarkConnection(b *testing.B) {
tests := []struct {
proto string
addr string
}{{
proto: "unix",
addr: unixSocketPath,
}, {
proto: "tcp",
addr: ":8888",
@markusthoemmes
markusthoemmes / results.md
Last active September 1, 2021 13:07
Results of measuring the effectiveness of our startup probe optimization

Readiness probe optimization results

All of these measurements are taken on my local machine using kind. The usual disclaimers apply. YMMV.

Note: "Adjusted" means HEAD without startup probe on the queue-proxy but HTTP probe on user-container. The following patch is applied to podspeed

diff --git a/pkg/pod/types/knative.go b/pkg/pod/types/knative.go
index 59b2c8d..1aab20b 100644
--- a/pkg/pod/types/knative.go