nicknezis edited a comment on issue #3724:
URL: 
https://github.com/apache/incubator-heron/issues/3724#issuecomment-965961400


   In the Heron executor, this is the 
[logic](https://github.com/apache/incubator-heron/blob/ff7093f95c479cdd45278f1698c6a4782678219c/heron/executor/src/python/heron_executor.py#L990)
 that decides which processes are launched inside of the container. 
   ```
       if self.shard == 0:
         commands = self._get_tmanager_processes()
       else:
         self._untar_if_needed()
         commands = self._get_streaming_processes()
   ```
   So the management StatefulSet should just work, but we will need to figure 
out how to increment the `SHARD_ID` by 1 for the executor processing 
StatefulSet. Maybe updating `SHARD_ID=${POD_NAME##*-}` to `SHARD_ID=$(expr 
${POD_NAME##*-} + 1)` (or something better if your bash-fu is better than mine. 
:)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to