Fix web-server memory overrun when downloading objects from Swift

Bug #1439443 reported by OpenStack Infra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Unassigned
openstack-manuals
Invalid
Undecided
Unassigned

Bug Description

https://review.openstack.org/161204
commit 46405d456d9b056e648a4e60235b4c1b251f1236
Author: Timur Sufiev <email address hidden>
Date: Wed Mar 4 16:15:04 2015 +0300

    Fix web-server memory overrun when downloading objects from Swift

    To prevent memory overrun when downloading large objects from Swift
    * `resp_chunk_size` keyword should be passed to swiftclient
    * `obj.data` iterator returned from swiftclient is passed to HttpResponse
      (or StreamingHttpResponse for Django>=1.5) as usual since both response
      classes work with iterators/files/byte strings (yet StreamingHttpResponse
      does it better).

    The commit introduces new setting SWIFT_FILE_TRANSFER_CHUNK_SIZE that
    defines the size of chunk in bytes for Swift objects downloading.

    DocImpact

    Change-Id: I18e5809b86bfa24948dc642da2a55dffaa1a4ce1
    Closes-Bug: #1427819

Tags: horizon
Revision history for this message
Lana (loquacity) wrote :

This should be added to dev docs.

Changed in openstack-manuals:
status: New → Confirmed
JuliusChen (julius-j-g)
Changed in openstack-manuals:
assignee: nobody → JuliusChen (julius-j-g)
Changed in openstack-manuals:
assignee: JuliusChen (julius-j-g) → nobody
Revision history for this message
Alexandra Settle (alexandra-settle) wrote :

If this should be added to the dev docs, throwing back over the fence to horizon :)

Thanks team.

Changed in openstack-manuals:
status: Confirmed → Invalid
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Closing, since the dev doc change was part of the horizon change.

Changed in horizon:
status: New → Fix Released
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → queens-1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.