Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-19530

Promote Docker Image API performance issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 6.11.1
    • Fix Version/s: 6.19.0, 7.4.0
    • Component/s: Docker
    • Labels:
      None
    • Severity:
      High

      Description

      POST api/docker/<repoKey>/v2/promote

      During the promotion of a docker image (between local repositories) Artifactory reading and writing layer by layer to the filestore instead of updating DB references.

      As a result, the promotion of a large image takes a lot more time than the promotion of a small image.

      For example:

      docker image size 1.97GB

      2019-07-02 18:03:23,181 [http-nio-8081-exec-4] [INFO ] (o.a.a.d.r.v.p.DockerV2Promoter:63) - Promoting docker image 'cuda' from 'docker-local' to 'docker-prom'
      2019-07-02 18:03:23,201 [http-nio-8081-exec-4] [INFO ] (o.a.a.d.r.v.p.DockerV2Promoter:78) - Copying file 'cuda/latest/manifest.json' to 'docker-prom:cuda/latest/manifest.json'
      2019-07-02 18:03:23,272 [http-nio-8081-exec-4] [DEBUG] (o.a.a.d.r.v.p.DockerV2Promoter:82) - Deleting file 'cuda/latest/manifest.json' from 'docker-local'
      2019-07-02 18:03:23,303 [http-nio-8081-exec-4] [INFO ] (o.a.a.d.r.v.p.DockerV2Promoter:78) - Copying file 'cuda/latest/sha256__07f3fc56927fcbbf3e9b28c8f74062958bb59354c9e486160f71511d4847762f' to 'docker-prom:cuda/latest/sha256__07f3fc56927fcbbf3e9b28c8f74062958bb59354c9e486160f71511d4847762f'
      2019-07-02 18:03:23,324 [http-nio-8081-exec-4] [DEBUG] (o.a.a.d.r.v.p.DockerV2Promoter:82) - Deleting file 'cuda/latest/sha256__07f3fc56927fcbbf3e9b28c8f74062958bb59354c9e486160f71511d4847762f' from 'docker-local'
      2019-07-02 18:03:23,348 [http-nio-8081-exec-4] [INFO ] (o.a.a.d.r.v.p.DockerV2Promoter:78) - Copying file 'cuda/latest/sha256__0addb6fece630456e0ab187b0aa4304d0851ba60576e7f6f9042a97ee908a796' to 'docker-prom:cuda/latest/sha256__0addb6fece630456e0ab187b0aa4304d0851ba60576e7f6f9042a97ee908a796'
      2019-07-02 18:03:23,368 [http-nio-8081-exec-4] [DEBUG] (o.a.a.d.r.v.p.DockerV2Promoter:82) - Deleting file 'cuda/latest/sha256__0addb6fece630456e0ab187b0aa4304d0851ba60576e7f6f9042a97ee908a796' from 'docker-local'
      2019-07-02 18:03:23,389 [http-nio-8081-exec-4] [INFO ] (o.a.a.d.r.v.p.DockerV2Promoter:78) - Copying file 'cuda/latest/sha256__18d680d616571900d78ee1c8fff0310f2a2afe39c6ed0ba2651ff667af406c3e' to 'docker-prom:cuda/latest/sha256__18d680d616571900d78ee1c8fff0310f2a2afe39c6ed0ba2651ff667af406c3e'
      2019-07-02 18:03:24,222 [http-nio-8081-exec-4] [DEBUG] (o.a.a.d.r.v.p.DockerV2Promoter:82) - Deleting file 'cuda/latest/sha256__18d680d616571900d78ee1c8fff0310f2a2afe39c6ed0ba2651ff667af406c3e' from 'docker-local'
      2019-07-02 18:03:24,246 [http-nio-8081-exec-4] [INFO ] (o.a.a.d.r.v.p.DockerV2Promoter:78) - Copying file 'cuda/latest/sha256__1b48d63763c4392cdb0a4f648b909cf51e79a54d49d4ce67ae061b3637ad64dc' to 'docker-prom:cuda/latest/sha256__1b48d63763c4392cdb0a4f648b909cf51e79a54d49d4ce67ae061b3637ad64dc'
      2019-07-02 18:03:36,249 [http-nio-8081-exec-4] [DEBUG] (o.a.a.d.r.v.p.DockerV2Promoter:82) - Deleting file 'cuda/latest/sha256__1b48d63763c4392cdb0a4f648b909cf51e79a54d49d4ce67ae061b3637ad64dc' from 'docker-local'
      2019-07-02 18:03:36,274 [http-nio-8081-exec-4] [INFO ] (o.a.a.d.r.v.p.DockerV2Promoter:78) - Copying file 'cuda/latest/sha256__3d28d96eb352624d3a750f1704dbd2c1287ea05c5e8b67440d8f37f05abbdb87' to 'docker-prom:cuda/latest/sha256__3d28d96eb352624d3a750f1704dbd2c1287ea05c5e8b67440d8f37f05abbdb87'
      2019-07-02 18:03:36,293 [http-nio-8081-exec-4] [DEBUG] (o.a.a.d.r.v.p.DockerV2Promoter:82) - Deleting file 'cuda/latest/sha256__3d28d96eb352624d3a750f1704dbd2c1287ea05c5e8b67440d8f37f05abbdb87' from 'docker-local'
      2019-07-02 18:03:36,315 [http-nio-8081-exec-4] [INFO ] (o.a.a.d.r.v.p.DockerV2Promoter:78) - Copying file 'cuda/latest/sha256__6ef1ff668c93f90b2f43c37bff5cd3d7a007dc54ac8f7d68f23a57ea3f3d0062' to 'docker-prom:cuda/latest/sha256__6ef1ff668c93f90b2f43c37bff5cd3d7a007dc54ac8f7d68f23a57ea3f3d0062'
      

      request.log:

      20190702180349|26241|REQUEST|RESTRICTED_IP|admin|POST|/api/docker/docker-local/v2/promote|HTTP/1.1|200|54

        Attachments

          Activity

              People

              Assignee:
              hezic Hezi Cohen
              Reporter:
              valeriyp Valeriy Petrov
              Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: