Skip to content

Instantly share code, notes, and snippets.

View thanethomson's full-sized avatar

Thane Thomson thanethomson

View GitHub Profile
@thanethomson
thanethomson / 02-validators.yaml
Last active July 30, 2019 15:23
2-validator network manual load test results
# A 2-validator test network with a single seed node.
id: testnet_02validators
templates:
base_tendermint_node: &base_tendermint_node
binary: v0.32.1
# We use the same config for validators and the seed because of
# https://github.com/tendermint/tendermint/issues/3778
config_template: ./validator-config.toml
@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.