Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10276

Job Manager and Task Manager Metrics Reporter Ports Configuration

    XMLWordPrintableJSON

Details

    Description

      Problem Statement:

      When deploying Flink using YARN, the job manager and task manager can be on the same node or different nodes.  Say I specify the port range to be 9249-9250, if JM and TM are deployed on the same node, the port for JM will be 9249 and the port for TM will be 9250.  If JM and TM are deployed on different nodes, then the ports for JM and TM will be 9249.

      I can only configure Prometheus once for the ports to scrape JM and TMs metrics.  In this case, I won't know whether port 9249 is for JM or TM.  If would be great if we can specify in flink-conf.yaml on the port we want for JM reporter and TMs reporter.

      Comment from Till:

      I think we could extend Vino's proposal for Yarn as well: Maybe it makes sense to allow to override certain configuration settings for the TaskManagers when deploying on Yarn. That way one could define a fixed port for the JM and a port range for the TMs. Having such a distinction you can configure your Prometheus to scrape for the single JM and the TMs individually. However, Flink does not yet support such a feature. You can open a JIRA issue to track the problem.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            dykong Deirdre Kong
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: