Skip to content

HOWTO deal with light topology

This page is designed as a quick reference for configuring your work with the concept of Light Topology.

Running topologies is usually done through a Storm cluster. But a lighter alternative named "Light Topology" is also available.

Foreground

You can run a light topology in foreground like any traditional topology by specifying the light mode instead of "local" or "cluster".

1
punchplatform-topology.sh --start-foreground -m light -t ./topology.json

With Shiva

To execute the Light topology like any channel you have to configure the channel using the ltr_light profile provided in standalone.

1
punchplatform-channel.sh --configure conf/tenants/mytenant/etc/channel_config/ltr_light.json --profile ltr_light

Your channel folder now contains a punchplatform-light-topology.sh script and the channel_structure.json is set to run in "Light Topology" mode your channel.

1
2
3
4
5
conf/tenants/mytenant/channels/ltr_light
├── channel_structure.json
├── forwarding_topology.json
├── input_topology.json
└── punchplatform-light-topology.sh

You can run this channel like any other channel.

1
punchplatform-channel.sh --start mytenant/ltr_light