Skip to content

Commit

Permalink
Merge pull request heavywater#3 from heavywater/feature/tuned-graphite
Browse files Browse the repository at this point in the history
Extracted tuning from production deployment
  • Loading branch information
Darrin Eden committed Feb 15, 2012
2 parents 1a28316 + 98bc7f3 commit 5d12d67
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
1 change: 1 addition & 0 deletions attributes/graphite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
default[:graphite][:carbon][:cache_query_interface] = "127.0.0.1"

default[:graphite][:password] = "change_me"
default[:graphite][:url] = "graphite"
10 changes: 6 additions & 4 deletions metadata.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
maintainer "Heavy Water Software Inc."
maintainer_email "darrin@heavywater.ca"
maintainer_email "ops@hw-ops.com"
license "Apache 2.0"
description "Installs/Configures graphite"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.1.3"
version "0.2.0"

depends "python"
depends "apache2"
supports "ubuntu"

depends "python"
depends "apache2"
depends "runit"

suggests "graphiti"
1 change: 1 addition & 0 deletions recipes/carbon.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package "python-twisted"
package "python-simplejson"

version = node[:graphite][:version]

Expand Down
4 changes: 2 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
2 changes: 1 addition & 1 deletion templates/default/carbon.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LOCAL_DATA_DIR = /opt/graphite/storage/whisper/
# Specify the user to drop privileges to
# If this is blank carbon runs as the user that invokes it
# This user must have write access to the local data directory
USER =
USER =

# Limit the size of the cache to avoid swapping or becoming CPU bound.
# Sorts and serving cache queries gets more expensive as the cache grows.
Expand Down
2 changes: 1 addition & 1 deletion templates/default/graphite-vhost.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ NameVirtualHost *:80
# in this file to your chosen install location.

<VirtualHost *:80>
ServerName graphite
ServerName <%= node[:graphite][:url] %>
DocumentRoot "/opt/graphite/webapp"
ErrorLog /opt/graphite/storage/log/webapp/error.log
CustomLog /opt/graphite/storage/log/webapp/access.log common
Expand Down
7 changes: 1 addition & 6 deletions templates/default/storage-schemas.conf.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
[stats]
priority = 100
pattern = ^stats\..*
retentions = 10:2160,60:10080,600:262974

[catchall]
priority = 0
pattern = ^.*
retentions = 60:565920
retentions = 60:100800,900:63000

0 comments on commit 5d12d67

Please sign in to comment.