Skip to content

Instantly share code, notes, and snippets.

Creating EC2 security group 'chef'
Creating inbound security group rule for icmp(-1 -> -1)
Creating inbound security group rule for tcp(0 -> 65535)
Creating inbound security group rule for udp(0 -> 65535)
Creating inbound security group rule for tcp(22 -> 22)
Creating inbound security group rule for tcp(443 -> 443)
Creating inbound security group rule for tcp(444 -> 444)
ERROR: Fog::Compute::AWS::NotFound: The security group 'chef' does not exist
EC2 security group 'chef' exists
Inbound security group rule icmp(-1 -> -1) exists
Inbound security group rule tcp(0 -> 65535) exists
Inbound security group rule udp(0 -> 65535) exists
Inbound security group rule tcp(22 -> 22) exists
Inbound security group rule tcp(443 -> 443) exists
Inbound security group rule tcp(444 -> 444) exists
ERROR: Fog::Compute::AWS::NotFound: The security group 'chef' does not exist
@dodizzle
dodizzle / gist:5864194
Created June 26, 2013 02:04
fe17 dmesg output
[Wed Jun 26 00:10:50 2013] [ pid ] uid tgid total_vm rss cpu oom_adj oom_score_adj name
[Wed Jun 26 00:10:50 2013] [ 1033] 0 1033 4341 101 15 0 0 upstart-udev-br
[Wed Jun 26 00:10:50 2013] [ 1035] 0 1035 5395 142 35 -17 -1000 udevd
[Wed Jun 26 00:10:50 2013] [ 1876] 0 1876 3797 43 16 0 0 upstart-socket-
[Wed Jun 26 00:10:50 2013] [ 2008] 101 2008 62753 3119 32 0 0 rsyslogd
[Wed Jun 26 00:10:50 2013] [ 2017] 103 2017 5983 113 39 0 0 dbus-daemon
[Wed Jun 26 00:10:50 2013] [ 2026] 0 2026 4792 126 25 0 0 bluetoothd
[Wed Jun 26 00:10:50 2013] [ 4567] 0 4567 1306 110 21 0 0 iscsid
[Wed Jun 26 00:10:50 2013] [ 4568] 0 4568 1431 882 36 0 -17 iscsid
[Wed Jun 26 00:10:50 2013] [ 4682] 0 4682 3686 166 5 0 0 getty
@dodizzle
dodizzle / gist:5869389
Created June 26, 2013 17:20
slow query log for db12
# 5.8s user time, 50ms system time, 29.40M rss, 88.84M vsz
# Current date: Wed Jun 26 17:17:31 2013
# Hostname: db12
# Files: slow.log
# Overall: 16.13k total, 98 unique, 0.11 QPS, 0.50x concurrency __________
# Time range: 2013-06-25 00:02:45 to 2013-06-26 17:11:36
# Attribute total min max avg 95% stddev median
# ============ ======= ======= ======= ======= ======= ======= =======
# Exec time 74513s 1s 340s 5s 5s 14s 3s
# Lock time 7s 26us 227ms 411us 98us 4ms 57us
@dodizzle
dodizzle / gist:6002496
Created July 15, 2013 19:02
fe8 error
2013-07-14T08:22:32.436 ERROR (81712) #B6761E862510] ActiveRecord::ConnectionTimeoutError: reconnect timed out
> [#B6761E862510] /u/apps/weheartit/shared/bundle/ruby/1.9.1/bundler/gems/seamless_database_pool-5e4a936596f9/lib/seamless_database_pool/connect_timeout.rb:20:in `rescue in reconnect_with_connect_timeout!'
> [#B6761E862510] /u/apps/weheartit/shared/bundle/ruby/1.9.1/bundler/gems/seamless_database_pool-5e4a936596f9/lib/seamless_database_pool/connect_timeout.rb:15:in `reconnect_with_connect_timeout!'
> [#B6761E862510] /u/apps/weheartit/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `verify!'
> [#B6761E862510] /u/apps/weheartit/shared/bundle/ruby/1.9.1/bundler/gems/seamless_database_pool-5e4a936596f9/lib/active_record/connection_adapters/seamless_database_pool_adapter.rb:224:in `block in verify!'
> [#B6761E862510] /u/apps/weheartit/shared/bundle/ruby/1.9.1/bundler/gems/seamless_database_pool-5e4a936596f9/lib/active_record/conn
all.each do |user|
directory "/home/#{user[0]}/" do
owner "#{user[0]}"
group "root"
mode "0755"
action :create
end
directory "/home/#{user[0]}/.ssh" do
owner "#{user[0]}"
group "#{user[0]}"
@dodizzle
dodizzle / gist:6731643
Created September 27, 2013 16:57
hot threads search02
::: [search02.weheartit.com][BhLFmPTJRYSGh2LrecepMw][inet[/10.84.30.10:9300]]{max_local_storage_nodes=1}
107.7% (538.3ms out of 500ms) cpu usage by thread 'elasticsearch[search02.weheartit.com][search][T#86]'
2/10 snapshots sharing following 28 elements
sun.nio.ch.NativeThread.current(Native Method)
sun.nio.ch.NativeThreadSet.add(NativeThreadSet.java:46)
sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:670)
org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.readInternal(NIOFSDirectory.java:176)
org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:272)
org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:138)
@dodizzle
dodizzle / gist:6733355
Created September 27, 2013 18:46
stats all
{"ok":true,"_shards":{"total":72,"successful":72,"failed":0},"_all":{"primaries":{"docs":{"count":91923482,"deleted":3455871},"store":{"size":"52.1gb","size_in_bytes":56031408449,"throttle_time":"13.7m","throttle_time_in_millis":826392},"indexing":{"index_total":18756808,"index_time":"4.3h","index_time_in_millis":15677810,"index_current":0,"delete_total":318,"delete_time":"66ms","delete_time_in_millis":66,"delete_current":0},"get":{"total":0,"get_time":"0s","time_in_millis":0,"exists_total":0,"exists_time":"0s","exists_time_in_millis":0,"missing_total":0,"missing_time":"0s","missing_time_in_millis":0,"current":0},"search":{"open_contexts":2170,"query_total":99496761,"query_time":"22.6d","query_time_in_millis":1954587020,"query_current":183,"fetch_total":87698215,"fetch_time":"6.6h","fetch_time_in_millis":24002054,"fetch_current":2},"merges":{"current":2,"current_docs":4787,"current_size":"11.1mb","current_size_in_bytes":11667197,"total":26652,"total_time":"6.1h","total_time_in_millis":22033477,"total_docs":11
@dodizzle
dodizzle / gist:6733369
Created September 27, 2013 18:46
nodes all
{"ok":true,"cluster_name":"prod","nodes":{"nXGqcVzQQvKrM7sQ1eoBMg":{"name":"search05.weheartit.com","transport_address":"inet[/10.84.30.30:9300]","hostname":"search05.weheartit.com","version":"0.90.5","http_address":"inet[/10.84.30.30:9200]","attributes":{"max_local_storage_nodes":"1"},"settings":{"path.home":"//elasticsearch","pidfile":"/var/run/elasticsearch/search05_weheartit_com.pid","config":"/etc/elasticsearch/elasticsearch.yml","action.disable_delete_all_indices":"true","gateway.type":"local","node.max_local_storage_nodes":"1","bootstrap.mlockall":"true","path.data":"/var/data/elasticsearch","cluster.name":"prod","index.mapper.dynamic":"true","path.conf":"/etc/elasticsearch","discovery.zen.minimum_master_nodes":"1","network.host":"10.84.30.30","node.data":"true","gateway.expected_nodes":"1","node.name":"search05.weheartit.com","http.enabled":"true","path.logs":"/var/log/elasticsearch","discovery.zen.ping.unicast.hosts":"10.84.30.32,10.84.30.10,10.84.30.56,10.84.30.60,10.84.30.30,10.84.30.58,10.84.30.28
@dodizzle
dodizzle / gist:9903087
Created March 31, 2014 21:46
nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
DN 10.84.189.183 10.92 MB 256 80.5% 0429410c-111b-4d0f-a71d-4ae7a849be7b rack1
UN 10.84.189.179 41.01 MB 256 99.0% 166ac779-ff8c-489d-8084-a5309d00e027 rack1
UN 10.84.189.181 90.83 MB 256 27.4% a09e4785-2ecc-413f-a1ae-b99063284645 rack1
UN 10.84.189.143 448.2 MB 256 93.1% f58d712b-4a46-4126-b383-51ccfae8080a rack1