Skip to content

Commit

Permalink
More documentation for column family options
Browse files Browse the repository at this point in the history
  • Loading branch information
b committed Mar 24, 2010
1 parent af2cfe8 commit 94c004a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cassandra/recipes/autoconf.rb
Expand Up @@ -39,6 +39,10 @@
# Simple columns: {:compare_with => <comparison>}
# Super columns: {:compare_with => <comparison>, :column_type => "Super", :compare_subcolumns_with => <comparison>}
#
# Columns may optionally include:
# :rows_cached => <count>|<percent>% (:rows_cached => "1000", or :rows_cached => "50%")
# :keys_cached => <count>|<percent>% (:keys_cached => "1000", or :keys_cached => "50%")
# :comment => <comment string>

# Gather the seeds
#
Expand All @@ -56,7 +60,8 @@
local_addr = node[:rackspace][:private_ip]
seeds = (search(:node, "cassandra_cluster_name:#{node[:cassandra][:cluster_name]} AND cassandra_seed:true").map do |n|
n["rackspace"]["private_ip"] if n["rackspace"]
end).compact
end).compact # This compaction is done to work around OHAI-170.
# Once the OHAI-170 fix is merged in ohai, the compaction should be removed.
seeds = ["127.0.0.1"] unless seeds.length > 0
else
local_addr = node[:ipaddress]
Expand Down

0 comments on commit 94c004a

Please sign in to comment.