Module: Chef::Expander
- Defined in:
- lib/chef/expander.rb,
lib/chef/expander/node.rb,
lib/chef/expander/vnode.rb,
lib/chef/expander/logger.rb,
lib/chef/expander/control.rb,
lib/chef/expander/version.rb,
lib/chef/expander/loggable.rb,
lib/chef/expander/solrizer.rb,
lib/chef/expander/flattener.rb,
lib/chef/expander/vnode_table.rb,
lib/chef/expander/daemonizable.rb,
lib/chef/expander/configuration.rb,
lib/chef/expander/vnode_supervisor.rb,
lib/chef/expander/cluster_supervisor.rb
Defined Under Namespace
Modules: Configuration, Daemonizable, Loggable Classes: AlreadyRunning, ChefCompatibleConfig, ClusterSupervisor, Control, Flattener, InvalidLogDevice, InvalidLogLevel, Logger, NoSuchGroup, NoSuchUser, Node, Solrizer, VNode, VNodeSupervisor, VNodeTable
Constant Summary collapse
- VNODES =
VNODES is the number of queues in rabbit that are available for subscribing. The name comes from riak, where the data ring (160bits) is chunked into many vnodes; vnodes outnumber physical nodes, so one node hosts several vnodes. That is the same design we use here.
See the notes on topic queue benchmarking before adjusting this value.
1024
- SHARED_CONTROL_QUEUE_NAME =
"chef-search-control--shared"
- BROADCAST_CONTROL_EXCHANGE_NAME =
'chef-search-control--broadcast'
- VERSION =
"11.0.0.alpha.1"
Class Method Summary collapse
Class Method Details
.config ⇒ Object
32 33 34 |
# File 'lib/chef/expander/configuration.rb', line 32 def self.config @config ||= Configuration::Base.new end |
.init_config(argv) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/chef/expander/configuration.rb', line 36 def self.init_config(argv) config.apply_defaults remaining_opts_after_parse = Configuration::CLI.(argv) # Need to be able to override the default config file location on the command line config_file_to_use = Configuration::CLI.config.config_file || config.config_file config.merge_config(Configuration::Base.from_chef_compat_config(config_file_to_use)) # But for all other config options, the CLI config should win over config file config.merge_config(Configuration::CLI.config) config.validate! remaining_opts_after_parse end |
.version ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/chef/expander/version.rb', line 28 def self.version @rev ||= begin begin rev = Open3.popen3("git rev-parse HEAD") {|stdin, stdout, stderr| stdout.read }.strip rescue Errno::ENOENT rev = "" end rev.empty? ? nil : " (#{rev})" end "#{VERSION}#@rev" end |