Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # mycookbook/myrecipe.rb
- include_recipe "graphite::carbon"
- graphite_carbon_relay "default" do
- config ({
- line_receiver_interface: "0.0.0.0",
- line_receiver_port: 2003,
- relay_method: "consistent-hashing",
- destinations: [
- "127.0.0.1:2003:a",
- "127.0.0.1:2004:b"
- ]
- })
- end
- graphite_carbon_cache "default" do
- config ({
- enable_logrotation: true,
- user: "graphite",
- max_cache_size: "inf",
- max_updates_per_second: 500,
- max_creates_per_minute: 50,
- line_receiver_interface: "0.0.0.0",
- line_receiver_port: 2003,
- udp_receiver_port: 2003,
- pickle_receiver_port: 2004,
- enable_udp_listener: true,
- cache_query_port: "7002",
- cache_write_strategy: "sorted",
- use_flow_control: true,
- log_updates: false,
- log_cache_hits: false,
- whisper_autoflush: false
- })
- end
- graphite_carbon_cache "a" do
- config ({
- line_receiver_port: 2004,
- udp_receiver_port: 2004,
- pickle_receiver_port: 2005,
- cache_query_port: 7003
- })
- end
- graphite_carbon_cache "b" do
- config ({
- line_receiver_port: 2006,
- udp_receiver_port: 2006,
- pickle_receiver_port: 2007,
- cache_query_port: 7004
- })
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement