Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. # mycookbook/myrecipe.rb
  2.  
  3. include_recipe "graphite::carbon"
  4.  
  5.  
  6. graphite_carbon_relay "default" do
  7. config ({
  8. line_receiver_interface: "0.0.0.0",
  9. line_receiver_port: 2003,
  10. relay_method: "consistent-hashing",
  11. destinations: [
  12. "127.0.0.1:2003:a",
  13. "127.0.0.1:2004:b"
  14. ]
  15. })
  16. end
  17.  
  18. graphite_carbon_cache "default" do
  19. config ({
  20. enable_logrotation: true,
  21. user: "graphite",
  22. max_cache_size: "inf",
  23. max_updates_per_second: 500,
  24. max_creates_per_minute: 50,
  25. line_receiver_interface: "0.0.0.0",
  26. line_receiver_port: 2003,
  27. udp_receiver_port: 2003,
  28. pickle_receiver_port: 2004,
  29. enable_udp_listener: true,
  30. cache_query_port: "7002",
  31. cache_write_strategy: "sorted",
  32. use_flow_control: true,
  33. log_updates: false,
  34. log_cache_hits: false,
  35. whisper_autoflush: false
  36. })
  37. end
  38.  
  39. graphite_carbon_cache "a" do
  40. config ({
  41. line_receiver_port: 2004,
  42. udp_receiver_port: 2004,
  43. pickle_receiver_port: 2005,
  44. cache_query_port: 7003
  45. })
  46. end
  47.  
  48. graphite_carbon_cache "b" do
  49. config ({
  50. line_receiver_port: 2006,
  51. udp_receiver_port: 2006,
  52. pickle_receiver_port: 2007,
  53. cache_query_port: 7004
  54. })
  55. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement