This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cluster_type = 'Grover' | |
differentiator = 'test' | |
# cluster_name = "#{cluster_type}_#{differentiator}" | |
cluster_name = "Grover" | |
require "Chef" | |
data = Chef::DataBagItem.load('cluster_template_values', cluster_type)['default'] | |
ClusterChef.cluster cluster_name do | |
recipe "tuning" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# To create a cluster using cluster_chef, an ssh key must exist with | |
# that cluster name in EC2/AWS. Since we use generic keys, it makes | |
# sense to continue to use a per-account key, but to upload that key | |
# to AWS as needed. | |
# | |
# E.g. .ssh/FOO-utility.pub can be uploaded to EC2 as UtilityCluster | |
# to enable a cluster called UtilityCluster to be bootstrapped. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@domU-12-31-39-0F-76-61:/usr/share/cassandra$ sudo /etc/sv/cassandra/run | |
/etc/sv/cassandra/run: 32: source: not found | |
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 12345; nested exception is: | |
java.net.BindException: Address already in use | |
ubuntu@domU-12-31-39-0F-76-61:/usr/share/cassandra$ sudo /etc/sv/cassandra/run | |
/etc/sv/cassandra/run: 32: source: not found | |
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 12345; nested exception is: | |
java.net.BindException: Address already in use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/chef/knife/bootstrap/ubuntu11.04-cluster_chef_knewton.erb b/lib/chef/knife/bootstrap/ubuntu11.04-cluster_chef_knewton.erb | |
index fcbba02..9ac69b3 100644 | |
--- a/lib/chef/knife/bootstrap/ubuntu11.04-cluster_chef_knewton.erb | |
+++ b/lib/chef/knife/bootstrap/ubuntu11.04-cluster_chef_knewton.erb | |
@@ -237,6 +237,10 @@ service chef-client stop | |
service chef-client disable | |
<%- if (@config[:bootstrap_runs_chef_client].to_s == 'true') || (@chef_config.knife[:bootstrap_runs_chef_client].to_s == 'true') %> | |
+if [ "$APT_UPDATED" != "yes" ] ; then | |
+ echo -e "`date` \n\n**** \n**** apt update:\n****\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
# file { | |
# path => ["/var/log/knewton/*/*.log"] | |
# type => "knewton_logback" | |
# } | |
stdin { | |
type => "knewton_logback" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
file { | |
path => ["/var/log/knewton/*/*.log"] | |
type => "knewton_logback" | |
} | |
} | |
filter { | |
grok { | |
type => "knewton_logback" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chef-solo -l debug -c solo.rb -j node-cassandra.json -L /var/log/chef/solo.log -r /tmp/Systems-0.0.2.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default config example from: | |
# - http://logstash.net/docs/1.0.14/getting-started-simple | |
# XXX: add platform knowledge to tag messages | |
input { | |
file { | |
path => ["/var/log/knewton/*/*.log"] | |
type => "knewton_logback" | |
} | |
file { | |
path => ["/var/log/knewton/Spiky/current", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pn@ip-10-28-30-172:/var/tmp$ sudo /usr/bin/chef-solo -l debug -c solo.rb -j node-jettyperf.json -L /var/log/chef/solo.log -r /tmp/Systems-0.0.9.tar.gz | |
[Thu, 14 Jun 2012 21:01:35 +0000] DEBUG: Creating path /var/tmp to extract recipes into | |
[Thu, 14 Jun 2012 21:01:35 +0000] DEBUG: Executing tar zxvfC /var/tmp/recipes.tgz /var/tmp | |
[Thu, 14 Jun 2012 21:01:35 +0000] DEBUG: ---- Begin output of tar zxvfC /var/tmp/recipes.tgz /var/tmp ---- | |
[Thu, 14 Jun 2012 21:01:35 +0000] DEBUG: STDOUT: cookbooks/ | |
cookbooks/apt/ | |
cookbooks/bib/ | |
cookbooks/big_log_dir/ | |
cookbooks/cassandra/ | |
cookbooks/diamond/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object Histogram: | |
num #instances #bytes Class description | |
-------------------------------------------------------------------------- | |
1: 14024 25627952 int[] | |
2: 43063 7176744 * ConstMethodKlass | |
3: 6309 5812704 * InstanceKlassKlass | |
4: 43063 5176584 * MethodKlass | |
5: 6309 4924416 * ConstantPoolKlass | |
6: 64122 3206440 * SymbolKlass |
OlderNewer