Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8922

general Karaf readiness probe for Karaf template and quickstarts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • FIS 2.0
    • FIS 1.0 - OpenShift Fuse 3.1-GA
    • FIS-Karaf
    • None
    • % %
    • FIS 2.0 Sprint 4

      Having a CXF REST or WS application on Karaf (such as karaf-cxf-rest), clients accessing the service will receive transient connection resets and HTTP 404 errors when scaling up to more replicas.

      The problem is that the newly created pods are put into service too soon before the actual application bundle is deployed. There needs to be a readiness probe defined to make sure only a properly deployed karaf is put into service.

      While customers can potentially define their own application-specific probes, there should be a general readiness probe for Karaf that would mark the Karaf container "Ready" when all the bundles have finished deploying (see also the readinessProbe.sh in the EAP openshift image, which handles the same problem in EAP, or the A-MQ readiness probe which uses Jolokia in https://github.com/jboss-openshift/application-templates/blob/master/amq/amq6-basic.json )

      This probe should be defined by default in Karaf archetypes and any karaf templates shipped with Fuse on OSE.

              Unassigned Unassigned
              maschmid@redhat.com Marek Schmidt
              David Simansky David Simansky
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: