Skip to content

Instantly share code, notes, and snippets.

View sioncojp's full-sized avatar

Shohei "Sion" Koyama sioncojp

View GitHub Profile
#!/bin/bash
#
# consul Startup script for consul
#
# chkconfig: - 94 16
# processname: consul
# config: /etc/conusl.d
# config: /etc/sysconfig/consul
# pidfile: /var/run/consul.pid
# description: consul makes service discovery and configuration made easy
#!/bin/bash
#
# consul-template Startup script for consul-template
#
# chkconfig: - 95 16
# processname: consul
# config: /etc/conusl-template
# pidfile: /var/run/consul-template.pid
# description: consul-template queries a Consul instance and updates any number of specified templates on the filesystem.
#
@sioncojp
sioncojp / capacity_test.go
Created March 22, 2017 07:42
channelを作成する際に、capacityをつける場合とつけない場合のbenchmark
package main
import "testing"
func BenchmarkChan1(b *testing.B) {
ch := make(chan int)
go func() {
for {
<-ch
}
# サーバ
* サーバの種類を全部把握していること
* ストレージ容量、見積もり
* N+2構成になっているか
* サーバを更新する方法
* リリースプロセスの確認
# ネットワーク
* ネットワークQoS: 帯域、輻輳/制御、保証、回避