Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-1555

APIcast container image does not manage dnsmasq process

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • None
    • 2.3 GA, SaaS
    • Gateway
    • 0
    • 0% 0%

    Description

      When running the APIcast container image it spawns a background process for dnsmasq.

      https://github.com/3scale/apicast/blob/c3e431df20f65686798d1e67d8c4e9f568ef9c08/gateway/.s2i/bin/run#L21

      This is difficult to support for a number of reasons.

      Most importantly:

      First, if the dnsmasq process exits then it doesn't stop the apicast process and the container will continue to run but it will encounter errors when it tries to resolve hosts. See attached screenshot.

      Second, if there is an issue with dnsmasq it's difficult to diagnose. dnsmasq is run using --log-facility=- which means the syslog is output to stderr but since the process is run in daemon mode the logs don't appear to be reachable. If they are, please instruct on how retrieve them. Customers will be relying on relevant docker commands, oc commands, or the openshift console to retrieve the logs.

      It's best practice to limit containers to a single process and not spawn background processes. If it is a technical requirement to run dnsmasq in the same container, we should manage the process better and react to dnsmasq process exits and make the logs easier to retrieve.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-spoole Shannon Poole
            Eloy Coto Eloy Coto (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: