Skip navigation links

Package org.thales.punch.apps.shiva.kafka

Shiva Worker logic

See: Description

Package org.thales.punch.apps.shiva.kafka Description

Shiva Worker logic

An example makes it a lot easier to understand the shiva scheduler logic. Say you have a channel called "mychannel", which a single shiva application in there called "myapp".

The channel structure looks like this:


 {
 "version" : "6.0",
 "start_by_tenant" : false,
 "stop_by_tenant" : true,
 "applications" : [
 {
 "type" : "shiva",
 "name" : "myapp",
 "command" : "command.sh",
 "args": [
 "file.json"
 ],
 "cluster" : "local",
 "shiva_runner_tags" : ["local"]
 }
 ]
 
Assume you have a "tenants/mytenant/channels/shiva-basic/test" application. That string is the name of the application. It is unique

Punch Kafka Protocol Design

Here is the logic of our protocol between shiva daemons (leader and workers), and between the various clients and the shiva daemons. :

Skip navigation links

Copyright © 2023. All rights reserved.