Skip to content

Instantly share code, notes, and snippets.

View thanethomson's full-sized avatar

Thane Thomson thanethomson

View GitHub Profile
@thanethomson
thanethomson / my-seeds-config.toml
Created July 9, 2019 13:30
Tendermint seed mode issue
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml
##### main base config options #####
# TCP or UNIX socket address of the ABCI application,
# or the name of an ABCI application compiled in with the Tendermint binary
proxy_app = "kvstore"
# A custom human readable name for this node
@thanethomson
thanethomson / test_portalloc.go
Created May 28, 2019 20:39
Testing GetFreePort concurrent allocation with 1000 goroutines
package main
import (
"fmt"
"net"
"sync"
)
func GetFreePort() (int, error) {
addr, err := net.ResolveTCPAddr("tcp", "localhost:0")
@thanethomson
thanethomson / tm-obj-viz.go
Created March 19, 2019 21:23
Tendermint object type graph visualization
package main
import (
"flag"
"fmt"
"os"
"reflect"
"sort"
"strings"
@thanethomson
thanethomson / k8s-open-file-descriptors.md
Last active August 8, 2018 07:22
kube-apiserver and kubelet open file descriptors over time

While running a 3-host K8s v1.11.0 cluster (where all nodes are masters and workers) on Azure, it appears as though the number of open file descriptors increases steadily over time for kube-apiserver and kubelet. All other K8s components have low and steady numbers of open file descriptors.

Heketi is running in the cluster, with Host 0 and Host 1 each having one glusterfs brick. Host 2 has no glusterfs bricks.