t.s.tao
t.s.tao

Reputation: 61

How to specify count for module inside a composed module?

For example, I'd like to create a composed module as 'myprocessor':

xd> module compose myprocessor --definition "processor1 | processor2 | processor3".

In addition, I'd also like to make the number of processor1, processor2 and processor3 be 4:2:1 in the composed module and all the communication between them are in-process.

How can I achieve it? Can I specify it during creation using command like:

xd> module compose myprocessor --definition "processor1 --count=4| processor2 --count=2| processor3 --count=1"

or during deployment?

Thanks,
Simon

Upvotes: 1

Views: 78

Answers (1)

Gary Russell
Gary Russell

Reputation: 174719

No; that's not possible. A composed module is a single module (a black box) with the component modules being hard-wired together.

But since you have "reducing" counts, simply set the count to 4 when using the composed module. What are you trying to achieve using fewer processor2/3 than 1 ?

Upvotes: 1

Related Questions