Browse Source

Stresstests: -T argument now -Z to avoid conflicts

Ask Solem 11 years ago
parent
commit
e4c534bc5b

+ 7 - 7
funtests/stress/README.rst

@@ -56,7 +56,7 @@ Ideas include:
 
 ::
 
-    $ celery -A stress worker -c1 --maxtasksperchild=1 -t acks_late
+    $ celery -A stress worker -c1 --maxtasksperchild=1 -Z acks_late
 
 
 8) Worker using eventlet pool.
@@ -80,7 +80,7 @@ test suite is currently not suited for automatic runs.
 Configuration Templates
 -----------------------
 
-You can select a configuration template using the `-t` command-line argument
+You can select a configuration template using the `-Z` command-line argument
 to any :program:`celery -A stress` command or the :program:`python -m stress`
 command when running the test suite itself.
 
@@ -108,27 +108,27 @@ The templates available are:
 You can see the resulting configuration from any template by running
 the command::
 
-    $ celery -A stress report -t redis
+    $ celery -A stress report -Z redis
 
 
 Example running the stress test using the ``redis`` configuration template::
 
-    $ python -m stress -t redis
+    $ python -m stress -Z redis
 
 Example running the worker using the ``redis`` configuration template::
 
-    $ celery -A stress worker -t redis
+    $ celery -A stress worker -Z redis
 
 
 You can also mix several templates by listing them separated by commas::
 
-    $ celery -A stress worker -t redis,acks_late
+    $ celery -A stress worker -Z redis,acks_late
 
 In this example (``redis,acks_late``) the ``redis`` template will be used
 as a configuration, and then additional keys from the ``acks_late`` template
 will be added on top as changes::
 
-    $ celery -A stress report -t redis,acks_late,pickle
+    $ celery -A stress report -Z redis,acks_late,pickle
 
 Running the client
 ------------------

+ 1 - 1
funtests/stress/stress/app.py

@@ -23,7 +23,7 @@ class App(Celery):
         super(App, self).__init__(*args, **kwargs)
         self.user_options['preload'].add(
             Option(
-                '-t', '--template', default='default',
+                '-Z', '--template', default='default',
                 help='Configuration template to use: {0}'.format(
                     template_names(),
                 ),

+ 1 - 0
funtests/stress/stress/templates.py

@@ -63,6 +63,7 @@ class default(object):
 class redis(default):
     BROKER_URL = os.environ.get('CSTRESS_BROKER', 'redis://')
     CELERY_RESULT_BACKEND = os.environ.get('CSTRESS_bACKEND', 'redis://')
+    BROKER_TRANSPORT_OPTIONS = {'fanout_prefix': True}
 
 
 @template()