Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-4805

Allow the gc log to change the timezone

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2.4.0.GA
    • 2.3.0.GA
    • docker-images
    • None
    • False
    • None
    • False

      • RFE:
        • Allow the gc log to change the timezone
      • Problem:
        • It seems unable to change the timezone of gc logs
          • gcLoggingEnabled can be used in KafkaClusterSpec, KafkaConnectSpec, KafkaMirrorMaker2Spec and ZookeeperClusterSpec.
        • ZK environment variable can be changed on the container as below, but the timezone of the gc logs can not be changed.
          •   kafka:
                jvmOptions:
                  gcLoggingEnabled: true
                template:
                  container:
                    env:
                    - name: TZ
                      value: Asia/Tokyo
            
          • [2023-04-10T03:07:49.600+0000] GC(17) Concurrent Mark From Roots 30.657ms
            [2023-04-10T03:07:49.600+0000] GC(17) Concurrent Preclean
            [2023-04-10T03:07:49.600+0000] GC(17) Concurrent Preclean 0.073ms
            [2023-04-10T03:07:49.602+0000] GC(17) Pause Remark
            ...
            
      • As far as investigated:
        • I ran a simple test of the solution in "ENTMQST-4721 Allow Kafka exporter to change the timezone", and it worked, so it seems the same solution can solve this problem.
        • The above problem is scheduled to be resolved in AMQ Streams 2.4, so this problem may have already been resolved as well.

      – FYI, The container image of the Kafka exporter doesn't have the zone info (/usr/share/zoneinfo/) because of ubi8-minimal[1].

      [1] Why is /usr/share/zoneinfo empty in ubi8-minimal images despite the tzdata package being present?
      https://access.redhat.com/solutions/5616681

            morsak Maros Orsak
            rhn-support-tyamashi Tomonari Yamashita
            Maros Orsak Maros Orsak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: