Skip to content

Instantly share code, notes, and snippets.

View fwessels's full-sized avatar

Frank Wessels fwessels

  • Los Altos Hills, CA
View GitHub Profile
@fwessels
fwessels / throughput-measurement.md
Created March 21, 2019 16:16
Throughput utility

Throughput Measurement Utility

# ./throughput 
NAME:
  throughput - HTTP throughput benchmark

USAGE:
  throughput [global options] command [command options] [arguments...]

Server Instructions

Introductions

Prior to running minio, the following preparations have to be made:

  • format the drives
  • mount the drives, it is suggested to use a "standardized" way of naming the mounts, eg. /mnt/drive1, /mnt/drive2, /mnt/drive3, etc.
  • setup networking (see below)

Client Instructions

Introduction

These instructions should be run on the client. There are the following stages:

  • Download executables
  • Prepare objects on the server
  • Test the server
  • Clean up on server
@fwessels
fwessels / gist:903c5b07be6605a4cf4454441962f9de
Created May 23, 2017 22:18
AWS policy with minimal permissions to allow Minio Gateway access to a single bucket
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1495498207000",
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:ListAllMyBuckets"
],
@fwessels
fwessels / random-servers.go
Last active December 26, 2018 21:42
Create a list of random servers
package main
import (
"fmt"
"hash/crc32"
)
func randomServers(token string, count int) []int {
hTok := crc32.Checksum([]byte(token), crc32.IEEETable)
val := uint32(hTok)
@fwessels
fwessels / gist:02cb94777817f69798dec002cb5d6363
Created June 21, 2016 08:49
blake512 computation using codahale lib (SSE-optimized)
package main
import (
"fmt"
"github.com/codahale/blake2"
"io"
"os"
)
func calcStream(r io.Reader) {