The WeRSS Cascade system uses a parent-child architecture to distribute data management and task execution.
Parent Node Configuration
By default, the parent node runs in independent mode. To ensure it is configured as a parent, use the following settings in config.yaml or via environment variables:
YAML (config.yaml):
cascade:
enabled: False
node_type: parent
Environment Variables:
CASCADE_ENABLED=False
Child Node Configuration
Child nodes must be configured to connect to a parent node to pull data and report results. You can configure them via config.yaml or environment variables.
YAML (config.yaml):
cascade:
enabled: True
node_type: child
parent_api_url: "http://parent-server:8001"
api_key: "CNxxxxx"
api_secret: "CSxxxxx"
sync_interval: 300
heartbeat_interval: 60
Environment Variables:
CASCADE_ENABLED=True
CASCADE_NODE_TYPE=child
CASCADE_PARENT_URL=http://parent-server:8001
CASCADE_API_KEY=CNxxxxx
CASCADE_API_SECRET=CSxxxxx
CASCADE_SYNC_INTERVAL=300
CASCADE_HEARTBEAT_INTERVAL=60
# config.yaml for Child Node
cascade:
enabled: True
node_type: child
parent_api_url: "http://parent-server:8001"
api_key: "CNxxxxx"
api_secret: "CSxxxxx"
sync_interval: 300
heartbeat_interval: 60