Skip to content

Instantly share code, notes, and snippets.

Nginx vs h2o (http/1.1)

Environment

Web Server

AWS c3.xlarge on VPC (ap-northeast-1)

LoadWorker

AWS c3.8xlarge on VPC (ap-northeast-1)

@2matzzz
2matzzz / gist:45664f6f68f76887e8bc
Last active August 29, 2015 14:10
Google load balancing performance test

Google load balancing performance test

Env

Web Server

MachineType

  • n1-highcpu-4 (4 vCPU, 3.6 GB memory)

Zone

  • asia-east1-a

Load Worker

@2matzzz
2matzzz / gist:c63448b8df12198cd7ca
Created December 31, 2014 06:07
CoffeeFormation
for i in [0..1]
Resources["PublicSubnet"+i]=
Type: "AWS::EC2::Subnet"
Properties:
AvailabilityZone:
"Fn::Select": [
"#{i}"
"Fn::GetAZs":
Ref: "AWS::Region"
]

AWS Network performance test (in ap-northeast-1)

Jan 11, 2015

Env

Sender/Receiver

  • c3.8xlarge
  • Amazon Linux AMI 2014.09.1 ami-4985b048
  • iperf-2.0.5-11.el6.x86_64
  • VPC

ELB scale-out/scale-up test

This test goal was to determine ELB is to scale out / scale-up at what time when a load is applied to the ELB. But results of the tests it was completely different from the behavior of ELB that I was assumed in advance. As there is a possibility that there was a problem in the test method, the test I do again. This test result is I keep a record for interesting.

Env

Jan 12, 2015

  • ap-northeast-1
  • VPC
  • EC2(c3.8xlarge)
@2matzzz
2matzzz / gist:45e2c8a02858850275df
Last active January 9, 2018 07:51
Load testing h2o on Raspberry Pi 2

Load testing h2o on Raspberry Pi 2

H2O config

$ cat /etc/h2o/h2o.conf
listen: 8080
http1-request-timeout: 5
本稿は以下のURLで公開されているGoogleのDremel論文の個人的な日本語訳である。
http://research.google.com/pubs/pub36632.html
本稿から受けたいかなる損害も責任はとりません。
Dremel: Webスケールデータセットのインタラクティブ分析
Sergey Melnik, Andrey Gubarev, Jing Jing Long, Geoffrey Romer,
Shiva Shivakumar, Matt Tolton, Theo Vassilakis
ABSTRACT
@2matzzz
2matzzz / gist:ded1426f18f40dbcddd7
Created July 15, 2015 07:30
terraform first step
BUCKET_NAME="your-bucket-name"
aws s3 mb "${BUCKET_NAME}"
terraform remote config -backend=S3 -backend-config="bucket=${BUCKET_NAME}" -backend-config="key=terraform.tfstate"
package main
import (
"fmt"
"time"
)
func main() {
currentTimeUnix := time.Now().Unix()
currentTimeRFC3339 := time.Now().Format("2006-01-02T15:04:05Z07:00")
@2matzzz
2matzzz / elb-policy-list.sh
Last active November 23, 2015 11:53
ELB policy list which "Server Order Preference" is enabled
aws elb describe-load-balancer-policies | jq '[
.PolicyDescriptions[]|
{
"PolicyName": .PolicyName,
"PolicyAttributeDescriptions": .PolicyAttributeDescriptions[]|
select(.AttributeName == "Server-Defined-Cipher-Order" and .AttributeValue == "true")
}
]'