sven-lange-last opened a new pull request #2858: Make Docker action container 
cleanup during invoker startup / shutdown more robust
URL: https://github.com/apache/incubator-openwhisk/pull/2858
 
 
   Remove all Docker containers on the system that match the naming filter 
`wsk<invoker instance number>_` at startup and shutdown. In the past, only 
running containers matching the filter were removed - paused containers are 
considered to be running. The new strategy will also remove containers that are 
stopped or could never be started properly for any reason. From time to time, 
we see action containers that are not running but should be cleaned up.
   
   If Docker commands used to remove containers (`docker ps`, `docker-runc 
resume` and `docker rm`) do not return within 30 seconds during startup, abort 
startup and let Docker re-start the invoker container. We have seen systems 
with heavy load where Docker commands take too long to complete. In that 
situation, we need a defined behavior, i.e. re-start and re-try the cleanup. At 
the moment, an uncaught exception will end the main thread leaving the invoker 
inoperational.
   
   Also changed the invoker initialization sequence such that Docker action 
container cleanup is performed as soon as possible - in particular, before 
starting other tasks / actors. At the moment, a cleanup timeout would end the 
main thread while the activation message feed is already running and consuming 
messsages that will never be processed.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to