Skip to content

Instantly share code, notes, and snippets.

View koolhead17's full-sized avatar

koolhead17 koolhead17

View GitHub Profile
"nats": {
"1": {
"enable": true,
"address": "0.0.0.0:4222",
"subject": "bucketevents",
"username": "yourusername",
"password": "yoursecret",
"token": "",
"secure": false,
"pingInterval": 0
"postgresql": {
"1": {
"enable": true,
"format": "namespace",
"connectionString": "sslmode=disable",
"table": "bucketevents",
"host": "127.0.0.1",
"port": "5432",
"user": "postgres",
"password": "mypassword",
bucketevents_db=# select * from bucketevents;
key | value
--------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
images/myphoto.jpg | {"Records": [{"s3": {"bu
@koolhead17
koolhead17 / compileminio.sh
Created October 3, 2016 12:06
Steps to compile Minio for Pine64
Note: You should have go-1.7.1 installed, if not follow: https://docs.minio.io/docs/how-to-install-golang
$ GOOS=linux GOARCH=arm64 go get -u github.com/minio/minio
This will install compile Minio inside /bin/linux_arm64 of your $GOPATH
@koolhead17
koolhead17 / clusterstart.sh
Last active November 18, 2016 14:21
Start minio server cluster on 8 node.
export MINIO_ACCESS_KEY=BKIKJAA5BMMU2RHO6IBB
export MINIO_SECRET_KEY=V8f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12
./minio server http://192.168.1.2/home/minio/data http://192.168.1.3/home/minio/data http://192.168.1.4/home/minio/data http://192.168.1.5/home/minio/data http://192.168.1.6/home/minio/data http://192.168.1.7/home/minio/data http://192.168.1.8/home/minio/data http://192.168.1.9/home/minio/data
@koolhead17
koolhead17 / scp.sh
Created September 30, 2016 03:36
script to scp Minio binary, configuration file and starting distributed cluster.
#!/bin/bash
for dest in $(<pine64Iplist.txt); do
scp ~/.minio/config.json ${dest}:/home/minio/.minio
scp -p ~/minio ${dest}:/home/minio/
scp -p ~/clusterstart.sh ${dest}:/home/minio/
done
@koolhead17
koolhead17 / pine64Iplist.txt
Created September 30, 2016 03:23
List of IP address for 7 pine64 nodes.
192.168.1.3
192.168.1.4
192.168.1.5
192.168.1.6
192.168.1.7
192.168.1.8
192.168.1.9
@koolhead17
koolhead17 / config.json
Created September 30, 2016 00:59
XL config.json
{
"version": "7",
"credential": {
"accessKey": "Q3AM3UQ546GPQQA43E6D",
"secretKey": "rma+tfteSlswJu7BJ86wekfutifILbZam1KZZ3TG"
},
"region": "us-east-1",
"logger": {
"console": {
### Create config.json on all 4 nodes and copy config.json to each one of those inside ``~/.minio``.
{
"version": "7",
"credential": {
"accessKey": "minio",
"secretKey": "miniostorage"
@koolhead17
koolhead17 / gist:60b7bca8c8402253d943d731c887f508
Created September 19, 2016 21:50
Initializing redis monitor
$ redis-cli -a yoursecret
127.0.0.1:6379> monitor
OK