Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4875

t5memory docker container health check: Add automatic restart on reaching memory limit

XMLWordPrintable

    • High
    • Hide
      Some newer t5memory versions support some watchdog scripts in order to recognise t5memory crashes and faster restart the service. In order to use that watchdog scripts the proper t5memory image must be used and the entrypoint must be changed from /root/t5memory PARAMETERS to /root/start-with-watchdog.sh PARAMETERS in order to use the watchdog script. If the t5memory service does not start up after the entrypoint change - your version does not support that yet - change back to old entrypoint then. Further documentation is found under: https://confluence.translate5.net/x/AYApJw
      Show
      Some newer t5memory versions support some watchdog scripts in order to recognise t5memory crashes and faster restart the service. In order to use that watchdog scripts the proper t5memory image must be used and the entrypoint must be changed from /root/t5memory PARAMETERS to /root/start-with-watchdog.sh PARAMETERS in order to use the watchdog script. If the t5memory service does not start up after the entrypoint change - your version does not support that yet - change back to old entrypoint then. Further documentation is found under: https://confluence.translate5.net/x/AYApJw
    • Add t5memory docker container health check for automatic restart on reaching memory limit

      Problem

      t5memory has memory leaks. Sometimes they are eating up all available memory.

      Solution

      Implement health check inside t5memory docker container, that automatically restarts t5memory with proper shutdown and restart signals to t5memory.

      Restart should happen, when a memory limit that is set somewhere that t5memory should not exceed in usage is reached. Good place is docker compose file for this, if possible.

      When proper signals are send, t5memory will end running processes (what in case of TMX import or export can take a while) and then shuts down and restarts.

      (translate5 itself takes care/will take care about running interaction waiting/being redone in case t5memory is down for a moment. The remaing issues in this frame are currently in implementation and linked).

            volodymyr@mittagqi.com Volodymyr Kyianenko
            marcmittag Marc Mittag [Administrator]
            Leon Kiz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: