Skip to content

Instantly share code, notes, and snippets.

View thanethomson's full-sized avatar

Thane Thomson thanethomson

View GitHub Profile
@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.

@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 / 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 / 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 / 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 / 04-validators.yaml
Created July 30, 2019 21:24
Tendermint Load Testing: 4-validator network
# A simple 4-validator test network, geographically dispersed.
id: testnet_04validators
templates:
base_tendermint_node: &base_tendermint_node
binary: v0.32.1
config_template: ./validator-config.toml
base_load_test: &base_load_test
method: "tm-bench"
@thanethomson
thanethomson / 08-validators.yaml
Created August 1, 2019 16:27
Possible mempool bug - configuration for reproducing
# Configuration file for tmtestnet: https://github.com/interchainio/testnets
# A geographically dispersed 8-validator test network.
id: testnet_08validators
templates:
base_validator: &base_validator
binary: v0.32.1
config_template: ./validator-config.toml
validators: yes
in_genesis: yes
@thanethomson
thanethomson / 16-validators.yaml
Created August 6, 2019 21:05
Tendermint Load Testing: 16-validator network
# A geographically dispersed 16-validator test network.
id: testnet_16validators
templates:
base_validator: &base_validator
binary: v0.32.1
config_template: ./validator-config.toml
validators: yes
in_genesis: yes
@thanethomson
thanethomson / validator-config.toml
Last active November 5, 2019 15:42
Issue with load testing 16-validator network
# 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