Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-1864

[EAP7] Support clean shutdown on TERM

    XMLWordPrintable

    Details

    • Target Release:
    • Story Points:
      1
    • Release Notes Text:
      Hide
      Feature: Replaced the EAP7 image prestop hooks in application templates with a TERM signal handler in the EAP7 openshift-launch script.
      Reason: Relying on a prestop hook for clean shutdown of EAP7 on a TERM signal adds an extra 2 seconds to termination. A TERM handler in the openshift-launch scripts cleanly terminates the EAP7 images without the 2 second delay.
      Result : The openshift-launch script wrapper now sets a trap for a TERM signal, forks the EAP7 application process in the background, then waits for EAP process to terminate. When a TERM signal is given, the wrapper process catches the signal and runs the jboss-cli script to cleanly shutdown the EAP process.
           
      Show
      Feature: Replaced the EAP7 image prestop hooks in application templates with a TERM signal handler in the EAP7 openshift-launch script. Reason: Relying on a prestop hook for clean shutdown of EAP7 on a TERM signal adds an extra 2 seconds to termination. A TERM handler in the openshift-launch scripts cleanly terminates the EAP7 images without the 2 second delay. Result : The openshift-launch script wrapper now sets a trap for a TERM signal, forks the EAP7 application process in the background, then waits for EAP process to terminate. When a TERM signal is given, the wrapper process catches the signal and runs the jboss-cli script to cleanly shutdown the EAP process.      
    • Sprint:
      CLOUD Maintenance Sprint 11

      Description

      At present we rely on a prestop hook to cleanly shutdown the EAP 7.x images, we should add in a wrapper script to handle clean shutdown on receipt of a TERM signal so the prestop hook is no longer necessary.

      Both mechanisms are impacted by the same termination period although there is an extra 2 second grace if the prestop hook is used.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kliberti Kyle Liberti
                  Reporter:
                  kconner Kevin Conner
                  Tester:
                  Pavel Drobek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: