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

Interpret Flink MemoryUnits according to the actual user input

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Currently all MemorySize.MemoryUnits are interpreted in "bibyte" notation, regardless of the units that users specify: https://github.com/apache/flink/blob/release-1.17/flink-core/src/main/java/org/apache/flink/configuration/MemorySize.java#L352-L356
      (i.e. G = Gi)

      Flink Kubernetes Operator utilizes these units for specifying resources in user-facing CR API (taskManager.resource.memory, jobManager.resource.memory). In other places this CR requires native K8S units specification (i.e. spec.containers[*].ephemeral-storage). 

      There are two issues with this:

      • users cannot rely on the same units notation (taskManager.resource.memory = 16Gi fails)
      • taskManager.resource.memory = 16G is not interpreted as other units in the spec (16G is implicitly converted into 16Gi)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sr.praneeth@gmail.com Praneeth Ramesh
            afedulov Alexander Fedulov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment