Skip to content

Instantly share code, notes, and snippets.

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to seperate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from July 13, 2017

Service Mesh vs Reverse Proxy

@sfoolish
sfoolish / supermicro-ipmi-mac-address.md
Created March 23, 2017 06:58 — forked from DavidWittman/supermicro-ipmi-mac-address.md
Pull the LAN1/eth0 MAC address from SuperMicro IPMI

You can find the MAC address for LAN1/eth0 (not the BMC MAC) via the SuperMicro IPMI interface by running the following command:

$ ipmitool -U $IPMI_USER -P $IPMI_PASS -H $IPMI_HOST raw 0x30 0x21 | tail -c 18

The eth0 MAC address will be output in this format:

00 25 90 f0 be ef
@sfoolish
sfoolish / jinja2_file_less.py
Created February 28, 2017 06:17 — forked from wrunk/jinja2_file_less.py
python jinja2 examples
#!/usr/bin/env/python
#
# More of a reference of using jinaj2 without actual template files.
# This is great for a simple output transformation to standard out.
#
# Of course you will need to "sudo pip install jinja2" first!
#
# I like to refer to the following to remember how to use jinja2 :)
# http://jinja.pocoo.org/docs/templates/
#
@sfoolish
sfoolish / smtp-gmail-send.go
Created February 18, 2017 12:57 — forked from jpillora/smtp-gmail-send.go
Send email using Go (Golang) via GMail with net/smtp
package main
import (
"log"
"net/smtp"
)
func main() {
send("hello there")
}
#!/bin/bash
compass_work_dir=$1
if [[ $compass_work_dir == "" ]]; then
echo "Please Run: $0 <compass_work_dir>"
exit 1
fi
cd $compass_work_dir
COMPASS_WORK_DIR=$(pwd)
@sfoolish
sfoolish / kolla-multinode-local-registry-setup.md
Created December 21, 2016 01:50
Kolla Multinode Local Registry Setup

Kolla Multinode Local Registry Setup

Deploy node setup

install and configure docker

curl -sSL https://get.docker.io | bash
mkdir -p /etc/systemd/system/docker.service.d
tee /etc/systemd/system/docker.service.d/kolla.conf <<-'EOF'

[Service]

文件比较,高亮显示差异

colordiff installation:

  • Linux: sudo apt-get install colordiff
  • OS X: brew install colordiff

colordiff usage:

diff -u old new | colordiff

# pull and run yardstick continer
docker pull opnfv/yardstick
docker run -it opnfv/yardstick bash
# export compass credential
export OS_PASSWORD=console
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://172.16.1.222:35357/v2.0
export OS_USERNAME=admin
export OS_VOLUME_API_VERSION=2

yardstick release b test cases and metrics

Compute

  • Latency for random memory access [lmbench]
  • Latency for cache read/write operations [lmbench C release]
  • Processing speed (instructions per second) [unixbench]
  • Throughput for random memory access (bytes per second) [lmbench]

memory latency lmbench