summaryrefslogtreecommitdiff
path: root/trunk/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/README
blob: 88b6a01e03c4ab40bccd1a0c8b167dbe881b3e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
RedGreen Test

This test will measure throughput in different configurations of the
Notify Service.

DESCRIPTION
-----------
The Test creates an Event Channel, one consumer admin and supplier
admin.

It connects 2 types of consumers to the consumer admin:
A "slow" consumer that has a 1 sec "wait" in its "push" implementation
and a "normal" consumer that returns immediately without any intensive
processing in its "push".

A supplier pushes 2 types of events to the channel. A "RED" event and
a ""GREEN" event in a burst of RED and GREEN events alternatively.

The subscriptions are specified in such a manner that the "slow"
consumer only receives RED events while the "normal" consumer receives
the "GREEN" events,

We use a TP reactor with 4 worker threads to allow upcalls to the
normal consumers servant proceed without having to wait for the slow
consumer to finish. The default ORB configuration is reactive.

First Run the Notify Service in the reactive mode.
Each participant in this (supplier and both consumers) are coupled
together because all calls are sychronous. The 1 sec wait should affect
throughput of all 3.

Next use 2 Lookup thread and check performance. The throughput
values should increase for the supplier and normal consumer but same
for the slow consumer.

Lastly, deploy a thread each at each  proxy supplier. The Throughput
of the normal consumer should increase dramatically.
This is because its data path is completely decoupled from the "slow consumer".

COMMAND LINE OPTIONS:
--------------------
"-burst_size [size]"

RUNNING THE TEST:
-----------------

Test 1
------

run $TAO_ROOT/orbsvcs/Notify_Service/Notify_Service -ORBsvcconf reactive.conf
run RedGreen_Test


Test 2
------

run $TAO_ROOT/orbsvcs/Notify_Service/Notify_Service -Notify_TPReactor 2 -ORBsvcconf lookup.conf
run RedGreen_Test


Test 3
------

run $TAO_ROOT/orbsvcs/Notify_Service/Notify_Service -Notify_TPReactor 2 -ORBsvcconf listener.conf
run RedGreen_Test