Skip to content

Instantly share code, notes, and snippets.

View Dieterbe's full-sized avatar

Dieter Plaetinck Dieterbe

View GitHub Profile
## Global settings ##
# instance id's distinguish stats of multiple relays.
# do not run multiple relays with the same instance id.
# supported variables:
# ${HOST} : hostname
instance = "${HOST}"
max_procs = 2
admin_addr = "0.0.0.0:2004"
#!/bin/bash
log () {
echo "$(date +'%Y/%m/%d %H:%M:%S') $@"
}
for commit in $(cat commits); do
echo
log "doing $commit"
echo
package main
import (
"bufio"
"errors"
"flag"
"fmt"
"log"
"os"
"runtime"
package main
import (
"bufio"
"errors"
"flag"
"fmt"
"log"
"os"
"runtime"
@Dieterbe
Dieterbe / main.go
Last active August 29, 2018 18:37
mem heap/sys tester
package main
import (
"fmt"
"os"
"runtime"
"time"
"github.com/prometheus/procfs"
)
(pprof) list getSeriesCachedStore
Total: 11.87GB
ROUTINE ======================== github.com/grafana/metrictank/api.(*Server).getSeriesCachedStore in /go/src/github.com/grafana/metrictank/api/dataprocessor.go
0 3.73GB (flat, cum) 31.38% of Total
. . 498:}
. . 499:
. . 500:// will only fetch until until, but uses ctx.To for debug logging
. . 501:func (s *Server) getSeriesCachedStore(ctx *requestContext, until uint32) ([]chunk.Iter, error) {
. . 502: var iters []chunk.Iter
. 512.03kB 503: var prevts uint32
~ ❯❯❯ kubemt logs jaeger-agent-540844109-lzx8v -f
{"level":"info","ts":1528222477.9354095,"caller":"tchannel/builder.go:89","msg":"Enabling service discovery","service":"jaeger-collector"}
{"level":"info","ts":1528222477.9355032,"caller":"peerlistmgr/peer_list_mgr.go:111","msg":"Registering active peer","peer":"jaeger-stunnel-client:14267"}
{"level":"info","ts":1528222477.9361155,"caller":"agent/main.go:62","msg":"Starting agent"}
{"level":"info","ts":1528222478.936633,"caller":"peerlistmgr/peer_list_mgr.go:157","msg":"Not enough connected peers","connected":0,"required":1}
{"level":"info","ts":1528222478.9367397,"caller":"peerlistmgr/peer_list_mgr.go:166","msg":"Trying to connect to peer","host:port":"jaeger-stunnel-client:14267"}
{"level":"info","ts":1528222479.1866703,"caller":"peerlistmgr/peer_list_mgr.go:176","msg":"Connected to peer","host:port":"[::]:14267"}
{"level":"info","ts":1528223079.9363415,"caller":"peerlistmgr/peer_list_mgr.go:157","msg":"Not enough connected peers","connected":0,"required":1}
[WARN] Conflict: github.com/stretchr/testify rev is currently ^v1.2.1, but github.com/uber/tchannel-go wants master
[INFO] github.com/stretchr/testify reference master:
[INFO] - author: Joshua T Corbin <joshua@uber.com>
[INFO] - commit date: Thu, 13 Jul 2017 09:51:06 -0700
[INFO] - subject (first line): Fix the actuality of InEpsilon
[INFO] Keeping github.com/stretchr/testify ^v1.2.1
[ERROR] Error scanning github.com/pkg/errors: open /home/dieter/go/src/github.com/jaegertracing/jaeger/cmd/agent/vendor/github.com/pkg/errors: no such file or directory
[ERROR] Error scanning github.com/spf13/cobra: open /home/dieter/go/src/github.com/jaegertracing/jaeger/cmd/agent/vendor/github.com/spf13/cobra: no such file or directory
[ERROR] Error scanning github.com/spf13/viper: open /home/dieter/go/src/github.com/jaegertracing/jaeger/cmd/agent/vendor/github.com/spf13/viper: no such file or directory
[ERROR] Error scanning go.uber.org/zap: open /home/dieter/go/src/github.com/jaegertracing/jaeger/cmd/agent/vendor/go.uber.org/
--- FAIL: TestMockTCollectorErrors (0.00s)
assertions.go:247: ^M ^M Error Trace: mock_collector_test.go:162
^M Error: An error is expected but got nil.
^M Test: TestMockTCollectorErrors
^M Messages: error because of bad address
=== RUN TestNewZipkinThriftUDPClient
--- FAIL: TestNewZipkinThriftUDPClient (0.00s)
assertions.go:247: ^M ^M Error Trace: thriftudp_client_test.go:27
^M Error: An error is expected but got nil.
^M Test: TestNewZipkinThriftUDPClient
@Dieterbe
Dieterbe / prepare-benchmarking.sh
Last active January 11, 2021 11:02
I use this script to set up my system for benchmarking. read it carefully, the 3 first steps are instructions to change your bootloader configuration.
#!/bin/bash
# useful articles:
# https://vstinner.github.io/journey-to-stable-benchmark-system.html
# http://perf.readthedocs.io/en/latest/system.html
# https://baiweiblog.wordpress.com/2017/11/02/how-to-set-processor-affinity-in-linux-using-taskset/
# https://wiki.archlinux.org/index.php/CPU_frequency_scaling#CPU_frequency_driver
if [[ $EUID > 0 ]]; then
echo "Please run as root"
exit 1