Skip to content

Instantly share code, notes, and snippets.

@oranie
oranie / gist:79c03157097a7a5ca28015d70f734586
Created April 23, 2018 10:50
memtier_benchmark test実行
[ec2-user@ip-172-31-28-226 memtier_benchmark]$ ./memtier_benchmark -s oranie-mem.ab0uwo.cfg.apne1.cache.amazonaws.com -p 11211 -P memcache_binary -- threads 1 -c 20000 --test-time=60 --ratio=1:10 --data-size- list=100000:60,500000:30,100000:10 --key-prefix=memtier-memtier-memtier- --key- maximum=100000
[RUN #1] Preparing benchmark client...
[RUN #1] Launching threads now...
[RUN #1 100%, 39 secs] 4 threads: 1993880 ops, 75826 (avg: 50389) ops/sec, 3.08MB/sec (avg: 2.04MB/sec), 2.64 (avg: 3.97) msec latenc[RUN #1 100%, 39 secs] 0 threads: 2000000 ops, 75826 (avg: 50450) ops/sec, 3.08MB/sec (avg: 2.05MB/sec), 2.64 (avg: 3.96) msec latency
4 Threads
50 Connections per thread
10000 Requests per thread
[ec2-user@ip-172-31-30-60 omnibus-td-agent]$ bin/omnibus build td-agent2
[CLI] I | 2016-10-06T05:19:19+00:00 | Using config from 'omnibus.rb'
[Software: config_guess] W | 2016-10-06T05:19:20+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.
Building td-agent 2.3.3...
[Software: preparation] I | 2016-10-06T05:19:20+00:00 | Resolving manifest entry for preparation
[NullFetcher: preparation] I | 2016-10-06T05:19:20+00:00 | Fetching `preparation' (nothing to fetch)
[Software: config_guess] I | 2016-10-06T05:19:20+00:00 | Resolving manifest entry for config_guess
[Software: config_guess] W | 2016-10-06T05:19:20+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.
[Software: config_guess] W | 2016-10-06T05:19:20+00:00 | Version master for software config_guess was not parseable. Comparison methods such
worker_processes 2;
events {
worker_connections 4096;
}
http {
include mime.types;
default_type application/octet-stream;
[Builder: fluentd-ui] I | Build fluentd-ui: 52.9431s
The following shell command exited with status 1:
$ BUNDLE_GEMFILE=Gemfile.production /opt/td-agent/embedded/bin/rake build
Output:
(nothing)
Error:
import boto3
import time
# Get the service resource.
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('access_log')
print(table.item_count)
starttime = time.time()
#!/bin/bash
cd /home/ec2-user/as_app
git clone https://github.com/conmame/as_demo_app.git
cd as_demo_app
npm install
node bin/www &
@oranie
oranie / gist:765248d198552e1a3851
Created August 24, 2015 04:46
sstablemetadata result
[ec2-user@ip-172-31-21-237 tools]$ sstablemetadata /var/lib/cassandra/data/OpsCenter/rollups60-a4bcce003b4411e5b6f94d9babac77ac/la-1-big-Data.db
SSTable: /var/lib/cassandra/data/OpsCenter/rollups60-a4bcce003b4411e5b6f94d9babac77ac/la-1-big
Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
Bloom Filter FP chance: 0.010000
Minimum timestamp: 1438763524378000
Maximum timestamp: 1439295851510001
SSTable max local deletion time: 1439900651
Compression ratio: -1.0
Estimated droppable tombstones: 0.897405094748573
SSTable Level: 0
if (task.getIAMRoles == 1){
val client: AmazonDynamoDBClient = new AmazonDynamoDBClient(
new ClientConfiguration().withMaxConnections(10))
.withRegion(Regions.fromName(task.getRegion))
} else {
val client: AmazonDynamoDBClient = new AmazonDynamoDBClient(
credentialsProvider,
new ClientConfiguration().withMaxConnections(10))
.withRegion(Regions.fromName(task.getRegion))
}
// To run this test.
// $ go get github.com/garyburd/redigo/redis
// $ go test -bench=.
package main
import (
"fmt"
"log"
"math/rand"
@oranie
oranie / activity_result.xml
Created August 28, 2014 05:18
練習クソアプリ画面2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:onClick="onClick"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.androidday2thema.ResultActivity" >