Skip to content

Instantly share code, notes, and snippets.

View rferreira's full-sized avatar

Rafael Ferreira rferreira

View GitHub Profile
ceph2:~# ceph -s
cluster 262700cb-1a94-4cd2-ab9a-ff0af3fe314e
health HEALTH_ERR 192 pgs stuck inactive; 192 pgs stuck unclean; no osds
monmap e1: 2 mons at {ceph1=172.20.22.90:6789/0,ceph2=172.20.22.91:6789/0}, election epoch 28, quorum 0,1 ceph1,ceph2
osdmap e1: 0 osds: 0 up, 0 in
pgmap v2: 192 pgs: 192 creating; 0 bytes data, 0 KB used, 0 KB / 0 KB avail
mdsmap e3: 1/1/1 up {0=ceph2=up:creating}
root@ceph1:/# cat /var/log/ceph/ceph.log
2013-08-21 00:28:58.109058 mon.1 172.20.22.91:6789/0 1 : [INF] mon.ceph2 calling new monitor election
2013-08-21 00:28:58.128803 mon.0 172.20.22.90:6789/0 1 : [INF] mon.ceph1 calling new monitor election
2013-08-21 00:28:58.148142 mon.0 172.20.22.90:6789/0 2 : [INF] mon.ceph1@0 won leader election with quorum 0,1
2013-08-21 00:28:58.158501 mon.0 172.20.22.90:6789/0 3 : [INF] pgmap v2: 192 pgs: 192 creating; 0 bytes data, 0 KB used, 0 KB / 0 KB avail
2013-08-21 00:28:58.158735 mon.0 172.20.22.90:6789/0 4 : [INF] mdsmap e1: 0/0/1 up
2013-08-21 00:28:58.158895 mon.0 172.20.22.90:6789/0 5 : [INF] osdmap e1: 0 osds: 0 up, 0 in
2013-08-21 00:43:21.886904 mon.1 172.20.22.91:6789/0 1 : [INF] mon.ceph2 calling new monitor election
2013-08-21 00:43:21.888309 mon.0 172.20.22.90:6789/0 1 : [INF] mon.ceph1 calling new monitor election
2013-08-21 00:43:21.917392 mon.0 172.20.22.90:6789/0 2 : [INF] mon.ceph1@0 won leader election with quorum 0,1
"""
http://tools.ietf.org/html/rfc1035
"""
import sys, threading, logging
from sentry import errors
from sentry import stats
"""
http://tools.ietf.org/html/rfc1035
"""
import sys, threading, logging
from sentry import errors
from sentry import stats
rafael-imac:dev rafael$ ab -n 100 -c 1 http://localhost:8080/hello-world/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)...apr_socket_recv: Connection reset by peer (54)
Total of 1 requests completed
package net.lightbody.able.core.internal;
import com.google.common.collect.Maps;
import com.google.inject.Inject;
import net.lightbody.able.core.Request;
import net.lightbody.able.core.Response;
import net.lightbody.able.core.ResponseNotFound;
import net.lightbody.able.core.http.XHeaders;
import net.lightbody.able.core.middleware.MiddlewareManager;
import net.lightbody.able.core.routing.Router;
$ ab -n 1000 http://localhost:8080/hello-world/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
apr_socket_recv: Connection reset by peer (54)
Total of 9 requests completed
on the server:
{
"name": "demo",
"default_attributes": {
},
"json_class": "Chef::Role",
"run_list": [
"recipe[build-essential::default]",
"recipe[chef-client::default]",
"recipe[motd::default]"
USPHXAMN51G27XK:chef-repo raferrei$ knife bootstrap a56924ccc9.devapollogrp.edu --sudo -x foo.bar -d centos5-gems -r "role[demo]"
Bootstrapping Chef on a56924ccc9.devapollogrp.edu
Password for [email protected]:
a56924ccc9.devapollogrp.edu Retrieving http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
a56924ccc9.devapollogrp.edu Preparing...
a56924ccc9.devapollogrp.edu ######################################## (100%)
a56924ccc9.devapollogrp########################################### [100%]
a56924ccc9.devapollogrp.edu package epel-release-5-4.noarch is already installed
a56924ccc9.devapollogrp.edu --2011-05-16 10:34:31-- http://rpm.aegisco.com/aegisco/el5/aegisco.repo
a56924ccc9.devapollogrp.edu Resolving rpm.aegisco.com...
select YEAR(created_at), MONTH(created_at), count(device_name) from v_devices_flat where hardware_category_name = "Server" group by YEAR(created_at), MONTH(created_at)
YEAR(created_at) MONTH(created_at) count(device_name)
NULL NULL 390
2009 10 3224
2009 11 4
2009 12 120
2010 1 164
2010 2 345
2010 3 73