Skip to content

Instantly share code, notes, and snippets.

cwright@saio:/var/log/hummingbird$ curl -v -H 'X-Auth-User: test:tester' -H 'X-Auth-Key: testing' http://127.0.0.1:8080/auth/v1.0
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /auth/v1.0 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 127.0.0.1:8080
> Accept: */*
> X-Auth-User: test:tester
> X-Auth-Key: testing
cwright@saio:~/hummingbird/bin$ find /etc/hummingbird/
/etc/hummingbird/
/etc/hummingbird/hummingbird.conf
/etc/hummingbird/container-server
/etc/hummingbird/container-server/2.conf
/etc/hummingbird/container-server/3.conf
/etc/hummingbird/container-server/1.conf
/etc/hummingbird/container-server/4.conf
/etc/hummingbird/object-server
/etc/hummingbird/object-server/2.conf
cwright@saio:~/hummingbird/bin$ strace ./hummingbird start proxy -c /etc/hummingbird/proxy-server.conf
execve("./hummingbird", ["./hummingbird", "start", "proxy", "-c", "/etc/hummingbird/proxy-server.co"...], [/* 25 vars */]) = 0
brk(0) = 0x25d8000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f63c6a6a000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=24058, ...}) = 0
mmap(NULL, 24058, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f63c6a64000
close(3) = 0
cwright@saio:~/hummingbird$ cd bin/
cwright@saio:~/hummingbird/bin$ ./hummingbird bench /etc/hummingbird/bench.conf
Error creating client: Get http://localhost:8080/auth/v1.0: dial tcp [::1]:8080: getsockopt: connection refused
cwright@saio:~/hummingbird/bin$ ./hummingbird start all
Proxy server started.
object : Found already running object server
Object-Replicator server started.
object-auditor : Found already running object-auditor server
container : Found already running container server
Container-Replicator server started.
cwright@saio:~/hummingbird$ git fetch origin; git merge origin/master
Already up-to-date.
cwright@saio:~/hummingbird$ sudo make install
cp bin/hummingbird /usr/bin/hummingbird
cwright@saio:~/hummingbird$ hummingbird start all
Proxy server started.
Object server started.
Object-Replicator server started.
Object-Auditor server started.
Container server started.
[bench]
auth = http://localhost:8080/auth/v1.0
user = test:tester
key = testing
concurrency = 15
object_size = 131072
num_objects = 5000
num_gets = 30000
delete = yes
allow_insecure_auth_cert = no
cwright@saio:/etc/hummingbird$ hummingbird bench bench.conf
Error creating client: [71 101 116 32 104 116 116 112 58 47 47 108 111 99 97 108 104 111 115 116 58 56 48 56 48 47 97 117 116 104 47 118 49 46 48 58 32 100 105 97 108 32 116 99 112 32 91 58 58 49 93 58 56 48 56 48 58 32 103 101 116 115 111 99 107 111 112 116 58 32 99 111 110 110 101 99 116 105 111 110 32 114 101 102 117 115 101 100]
cwright@saio:~/go/src/github.com/troubling/hummingbird$ make get test all
go get -t ./...
go vet ./...
go test -cover ./...
ok github.com/troubling/hummingbird/accountserver 0.482s coverage: 74.5% of statements
? github.com/troubling/hummingbird/bench [no test files]
ok github.com/troubling/hummingbird/client 0.003s coverage: 1.3% of statements
? github.com/troubling/hummingbird/cmd/hummingbird [no test files]
ok github.com/troubling/hummingbird/common 0.004s coverage: 58.2% of statements
ok github.com/troubling/hummingbird/common/conf 0.172s coverage: 72.4% of statements
apache2:
service.running:
- reload: True
api-checks:
event.wait:
- name: iland/monitor/api
- data:
nodename: {{ grains['nodename'] }}
ip: {{ grains['ipv4'] | first() }}
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}