Permalink
Browse files

Some fixes.

  • Loading branch information...
1 parent 1de3be8 commit 9e5d999ee65224a0d6c92255fe500019d0be544d @jacobian jacobian committed Mar 15, 2010
Showing with 17 additions and 9 deletions.
  1. +9 −1 apache/apache2.conf
  2. +1 −1 fabfile.py
  3. +1 −1 fumblerooski-site/buildout.cfg
  4. +3 −3 fumblerooski-site/fski/settings.py
  5. +3 −3 pgpool/pgpool-single-db.conf
View
10 apache/apache2.conf
@@ -68,4 +68,12 @@ DocumentRoot "/home/web/static"
# And finally the app config.
#
-WSGIScriptAlias / "/home/web/django-deployment-workshop/fumblerooski-site/bin/django.wsgi"
+WSGIScriptAlias / "/home/web/django-deployment-workshop/fumblerooski-site/bin/django.wsgi"
+
+
+
+
+
+
+
+
View
2 fabfile.py
@@ -21,7 +21,7 @@ def bootem():
flavor = CS.flavors.find(ram=256)
image = CS.images.find(name="Ubuntu 9.10 (karmic)")
for name in env.hosts:
- server = CS.servers.boot(name, flavor=flavor, image=image)
+ server = CS.servers.create(name, flavor=flavor, image=image)
servers.append(server)
print "%s: ips: %s/%s pass: %s" % (name, server.public_ip, server.private_ip, server.adminPass)
View
2 fumblerooski-site/buildout.cfg
@@ -13,7 +13,7 @@ extra-paths = ${buildout:directory}
[django]
recipe = djangorecipe
-version = 1.1.1
+version = trunk
eggs = ${buildout:eggs}
project = fski
settings = settings
View
6 fumblerooski-site/fski/settings.py
@@ -27,16 +27,16 @@
# Umcomment this and the middleware below to enable caching.
# Replace the IPs with the internal IPs of the machines running memcached.
-# CACHE_BACKEND = 'memcached://10.X.X.X:11211;10.X.X.X:11211/'
+CACHE_BACKEND = 'memcached://10.X.X.X:11211;10.X.X.X:11211/'
MIDDLEWARE_CLASSES = (
- # 'django.middleware.cache.UpdateCacheMiddleware',
+ 'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
- # 'django.middleware.cache.FetchFromCacheMiddleware',
+ 'django.middleware.cache.FetchFromCacheMiddleware',
)
ROOT_URLCONF = 'fumblerooski.urls'
View
6 pgpool/pgpool-single-db.conf
@@ -24,10 +24,10 @@ backend_port0 = 5432
health_check_period = 0
fail_over_on_backend_error = false
-# Connection pooling: 20 pre-forked child processes, 2 connections per process.
+# Connection pooling: 2 pre-forked child processes, 20 connections per process.
connection_cache = true
-num_init_children = 20
-max_pool = 2
+num_init_children = 2
+max_pool = 20
child_life_time = 300
# Lifecycle control times

0 comments on commit 9e5d999

Please sign in to comment.