)]}'
{"specs/liberty/buffered-reader-for-swift-driver.rst":[{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"f705ffbe91db7b69249459e439e3703f89dbe00a","unresolved":false,"context_lines":[{"line_number":52,"context_line":"\u0027tell\u0027 operations. This leads to swift client aborting the upload. So,"},{"line_number":53,"context_line":"providing \u0027seek\u0027 and \u0027tell\u0027 operations on the image data source would help"},{"line_number":54,"context_line":"solve this issue automatically by virtue of swift client\u0027s retry mechanism."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Proposed change"},{"line_number":57,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a50d1a3_ccfe4905","line":55,"updated":"2015-07-24 18:02:55.000000000","message":"I will try to take some time to add some use cases and feature documentation that can be added to the spec. I don\u0027t think it\u0027s strictly required, but quite useful.\n\nFor example, https://review.openstack.org/#/c/194303/3/specs/liberty/approved/glance-seam.rst","commit_id":"d9ad86ebb8953540412fc31e486b06e5f93ec8a8"},{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"f705ffbe91db7b69249459e439e3703f89dbe00a","unresolved":false,"context_lines":[{"line_number":128,"context_line":"uploads. However, the bulk of time elapsed for image upload is spent in"},{"line_number":129,"context_line":"transferring data over the network. In comparison, read and write operations"},{"line_number":130,"context_line":"to disk are relatively much quicker. With some thorough testing, the"},{"line_number":131,"context_line":"performance impact of this approach can be studied in further detail."},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Other deployer impact"},{"line_number":134,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a50d1a3_e1678e23","line":131,"updated":"2015-07-24 18:02:55.000000000","message":"I\u0027ve actually done some performance testing on this. The slowest parts of uploading are the compression done in Nova and getting the data into Swift (including network transmission). However, if the disk buffering is done in serial (no split pipe, which is probably hard in python), then we will add a measurable amount of time to image uploads. Since upload reliability is far more important than upload performance, this is an acceptable cost.","commit_id":"d9ad86ebb8953540412fc31e486b06e5f93ec8a8"},{"author":{"_account_id":8158,"name":"Hemanth Makkapati","email":"makstacker+osgerrit@gmail.com","username":"hemanth.makkapati"},"change_message_id":"de75e2eec8ecb5c8538229a9954f9a696eaa9b2d","unresolved":false,"context_lines":[{"line_number":128,"context_line":"uploads. However, the bulk of time elapsed for image upload is spent in"},{"line_number":129,"context_line":"transferring data over the network. In comparison, read and write operations"},{"line_number":130,"context_line":"to disk are relatively much quicker. With some thorough testing, the"},{"line_number":131,"context_line":"performance impact of this approach can be studied in further detail."},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Other deployer impact"},{"line_number":134,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a50d1a3_31ea2410","line":131,"in_reply_to":"3a50d1a3_e1678e23","updated":"2015-07-28 16:59:50.000000000","message":"+1. It is indeed an acceptable cost if reliability is the concern. \nDo you have any data to share? I just want to mention the costs involved so that the trade-off is clear","commit_id":"d9ad86ebb8953540412fc31e486b06e5f93ec8a8"},{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"f705ffbe91db7b69249459e439e3703f89dbe00a","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"As the image data is buffered to disk, there will be more disk utilization on"},{"line_number":137,"context_line":"the API than before. The disk utilization will be equivalent to:"},{"line_number":138,"context_line":"( image segment size * number of simultaneous snapshots on the API node)"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"Deployers need to take the extra disk utilization into account while using"},{"line_number":141,"context_line":"this feature."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a50d1a3_a148a688","line":138,"updated":"2015-07-24 18:02:55.000000000","message":"If you revise this, you have an extra space after the paren.","commit_id":"d9ad86ebb8953540412fc31e486b06e5f93ec8a8"},{"author":{"_account_id":8158,"name":"Hemanth Makkapati","email":"makstacker+osgerrit@gmail.com","username":"hemanth.makkapati"},"change_message_id":"5ba2e5b042d9b733510f5c5c7658727e7cf56ee8","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"As the image data is buffered to disk, there will be more disk utilization on"},{"line_number":137,"context_line":"the API than before. The disk utilization will be equivalent to:"},{"line_number":138,"context_line":"( image segment size * number of simultaneous snapshots on the API node)"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"Deployers need to take the extra disk utilization into account while using"},{"line_number":141,"context_line":"this feature."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a50d1a3_1773674f","line":138,"in_reply_to":"3a50d1a3_a148a688","updated":"2015-07-28 16:39:52.000000000","message":"Done","commit_id":"d9ad86ebb8953540412fc31e486b06e5f93ec8a8"},{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"d44c7555045ac52e5276f897b709822dfe86c77b","unresolved":false,"context_lines":[{"line_number":8,"context_line":"Buffered Reader for Swift Driver"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Include the URL of your launchpad blueprint:"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This change proposal introduces a buffering wrapper around image data for use"},{"line_number":14,"context_line":"during image uploads. This wrapper helps improve the reliability of"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3a50d1a3_39536a6e","line":11,"updated":"2015-07-31 00:11:27.000000000","message":"Missing URL","commit_id":"0a0baf041f7bee1b4a8c3fda29c2602dd57ef894"},{"author":{"_account_id":8158,"name":"Hemanth Makkapati","email":"makstacker+osgerrit@gmail.com","username":"hemanth.makkapati"},"change_message_id":"3b4a1d04d615dfb1197e75badf81101050590c88","unresolved":false,"context_lines":[{"line_number":8,"context_line":"Buffered Reader for Swift Driver"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Include the URL of your launchpad blueprint:"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This change proposal introduces a buffering wrapper around image data for use"},{"line_number":14,"context_line":"during image uploads. This wrapper helps improve the reliability of"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a4dcd0f_d3236a04","line":11,"in_reply_to":"3a50d1a3_39536a6e","updated":"2015-08-03 19:45:01.000000000","message":"Done","commit_id":"0a0baf041f7bee1b4a8c3fda29c2602dd57ef894"},{"author":{"_account_id":2537,"name":"Nikhil Komawar","email":"nik.komawar@gmail.com","username":"nikhil-komawar"},"change_message_id":"7b0609cf23ad43d346a705100ea3eba1862488e4","unresolved":false,"context_lines":[{"line_number":51,"context_line":"input source is a data stream, which unfortunately doesn\u0027t support the \u0027seek\u0027"},{"line_number":52,"context_line":"and \u0027tell\u0027 operations. This leads to swift client aborting the upload. So,"},{"line_number":53,"context_line":"providing \u0027seek\u0027 and \u0027tell\u0027 operations on the image data source would help"},{"line_number":54,"context_line":"solve this issue automatically by virtue of swift client\u0027s retry mechanism."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Proposed change"},{"line_number":57,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3a50d1a3_894b655f","line":54,"updated":"2015-10-13 16:08:45.000000000","message":"It might be worth checking if the lowest allowed version of the py-swiftclient supports seek and tell. This is most likely going to exist but to good to check.","commit_id":"0a0baf041f7bee1b4a8c3fda29c2602dd57ef894"},{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"d44c7555045ac52e5276f897b709822dfe86c77b","unresolved":false,"context_lines":[{"line_number":129,"context_line":"uploads. However, the bulk of time elapsed for image upload is spent in"},{"line_number":130,"context_line":"transferring data over the network. In comparison, read and write operations"},{"line_number":131,"context_line":"to disk are relatively much quicker. With some thorough testing, the"},{"line_number":132,"context_line":"performance impact of this approach can be studied in further detail."},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"Other deployer impact"},{"line_number":135,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3a50d1a3_b9ba1a70","line":132,"updated":"2015-07-31 00:11:27.000000000","message":"We discussed teeing like glance cache code so this is not done in serial. We need to add whether we are going to pursue such approach in this spec or a follow-up spec.","commit_id":"0a0baf041f7bee1b4a8c3fda29c2602dd57ef894"},{"author":{"_account_id":8158,"name":"Hemanth Makkapati","email":"makstacker+osgerrit@gmail.com","username":"hemanth.makkapati"},"change_message_id":"3b4a1d04d615dfb1197e75badf81101050590c88","unresolved":false,"context_lines":[{"line_number":129,"context_line":"uploads. However, the bulk of time elapsed for image upload is spent in"},{"line_number":130,"context_line":"transferring data over the network. In comparison, read and write operations"},{"line_number":131,"context_line":"to disk are relatively much quicker. With some thorough testing, the"},{"line_number":132,"context_line":"performance impact of this approach can be studied in further detail."},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"Other deployer impact"},{"line_number":135,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a4dcd0f_931de2bf","line":132,"in_reply_to":"3a50d1a3_b9ba1a70","updated":"2015-08-03 19:45:01.000000000","message":"Done","commit_id":"0a0baf041f7bee1b4a8c3fda29c2602dd57ef894"},{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"d44c7555045ac52e5276f897b709822dfe86c77b","unresolved":false,"context_lines":[{"line_number":139,"context_line":"(image segment size * number of simultaneous snapshots)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"Deployers need to take the extra disk utilization into account while using"},{"line_number":142,"context_line":"this feature."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"Developer impact"},{"line_number":145,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3a50d1a3_5973d6e7","line":142,"updated":"2015-07-31 00:11:27.000000000","message":"We discussed making a configurable segment of the drive space for buffered uploads similar to how glance cache works and skipping buffering if the buffer is full so that it falls back to the original behavior in the out of buffer space error case. We need to add whether we are going to pursue such approach in this spec or a follow-up spec.","commit_id":"0a0baf041f7bee1b4a8c3fda29c2602dd57ef894"},{"author":{"_account_id":8158,"name":"Hemanth Makkapati","email":"makstacker+osgerrit@gmail.com","username":"hemanth.makkapati"},"change_message_id":"3b4a1d04d615dfb1197e75badf81101050590c88","unresolved":false,"context_lines":[{"line_number":139,"context_line":"(image segment size * number of simultaneous snapshots)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"Deployers need to take the extra disk utilization into account while using"},{"line_number":142,"context_line":"this feature."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"Developer impact"},{"line_number":145,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a4dcd0f_33796efd","line":142,"in_reply_to":"3a50d1a3_5973d6e7","updated":"2015-08-03 19:45:01.000000000","message":"Done","commit_id":"0a0baf041f7bee1b4a8c3fda29c2602dd57ef894"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"9dd7b21c369e52c94e497dc4aae12b251a33794e","unresolved":false,"context_lines":[{"line_number":37,"context_line":"- Leads to wastage of network bandwidth utilized to upload data leading up to"},{"line_number":38,"context_line":"the error"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Why is swift client incapable of recovering frrom errors? Why not improve it"},{"line_number":41,"context_line":"instead?"},{"line_number":42,"context_line":"Swift client is actually equipped to recover from socket errors, 401s, 408s,"},{"line_number":43,"context_line":"rate-limit errors, 5XXs and others. It handles a decent range of errors and"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da20952f_abfb417a","line":40,"updated":"2015-08-30 03:34:28.000000000","message":"s/frrom/from/","commit_id":"16634031ff08781ee2da5b3b4fa6ddcd069b3071"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"9dd7b21c369e52c94e497dc4aae12b251a33794e","unresolved":false,"context_lines":[{"line_number":66,"context_line":"individually to the backend storage. However, before passing on the image"},{"line_number":67,"context_line":"segments to swift client, the swift driver wraps [2] the segments with"},{"line_number":68,"context_line":"ChunkReader class [3], which enables the swift client to upload the image"},{"line_number":69,"context_line":"segment in smaller chunks, usally 64KB in size."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"In the proposed approach, instead of wrapping every segment with ChunkReader,"},{"line_number":72,"context_line":"we wrap it with BufferedReader, which buffers the image segment by tee-ing"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da20952f_6bfa0977","line":69,"updated":"2015-08-30 03:34:28.000000000","message":"s/usally/usually/","commit_id":"16634031ff08781ee2da5b3b4fa6ddcd069b3071"}],"specs/mitaka/approved/buffered-reader-for-swift-driver.rst":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b2a7ec3c7c95a49d665ab216bf46d8afd9a0c00d","unresolved":false,"context_lines":[{"line_number":37,"context_line":"- Leads to wastage of network bandwidth utilized to upload data leading up to"},{"line_number":38,"context_line":"the error"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Why is swift client incapable of recovering frrom errors? Why not improve it"},{"line_number":41,"context_line":"instead?"},{"line_number":42,"context_line":"Swift client is actually equipped to recover from socket errors, 401s, 408s,"},{"line_number":43,"context_line":"rate-limit errors, 5XXs and others. It handles a decent range of errors and"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a29b11f_eff79af3","line":40,"updated":"2015-10-18 10:10:43.000000000","message":"from*","commit_id":"3d548dc6bc942ed4de334e2abff040c6ddec04c4"},{"author":{"_account_id":8158,"name":"Hemanth Makkapati","email":"makstacker+osgerrit@gmail.com","username":"hemanth.makkapati"},"change_message_id":"4268f60545d217d35d27f01d87b9117977a3b31b","unresolved":false,"context_lines":[{"line_number":37,"context_line":"- Leads to wastage of network bandwidth utilized to upload data leading up to"},{"line_number":38,"context_line":"the error"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Why is swift client incapable of recovering frrom errors? Why not improve it"},{"line_number":41,"context_line":"instead?"},{"line_number":42,"context_line":"Swift client is actually equipped to recover from socket errors, 401s, 408s,"},{"line_number":43,"context_line":"rate-limit errors, 5XXs and others. It handles a decent range of errors and"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a29b11f_bc9410e2","line":40,"in_reply_to":"3a29b11f_eff79af3","updated":"2015-10-21 14:46:54.000000000","message":"Done","commit_id":"3d548dc6bc942ed4de334e2abff040c6ddec04c4"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b2a7ec3c7c95a49d665ab216bf46d8afd9a0c00d","unresolved":false,"context_lines":[{"line_number":82,"context_line":"leaving the default behavior as is. Also, we propose to introduce a"},{"line_number":83,"context_line":"configuration option to regulate the amount of disk space used for buffering."},{"line_number":84,"context_line":"If the allotted space for buffering is full, BufferedReader reverts to default"},{"line_number":85,"context_line":"behavior, i.e. data is uploaded to Swift without being buffered."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Alternatives"},{"line_number":88,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a29b11f_8fddc672","line":85,"updated":"2015-10-18 10:10:43.000000000","message":"Can we just have 1 option? We can use the `swift_max_buffering_space` option as a way to enable this feature by setting some positive value or disabling it by setting it to 0 (or -1).","commit_id":"3d548dc6bc942ed4de334e2abff040c6ddec04c4"},{"author":{"_account_id":8158,"name":"Hemanth Makkapati","email":"makstacker+osgerrit@gmail.com","username":"hemanth.makkapati"},"change_message_id":"4268f60545d217d35d27f01d87b9117977a3b31b","unresolved":false,"context_lines":[{"line_number":82,"context_line":"leaving the default behavior as is. Also, we propose to introduce a"},{"line_number":83,"context_line":"configuration option to regulate the amount of disk space used for buffering."},{"line_number":84,"context_line":"If the allotted space for buffering is full, BufferedReader reverts to default"},{"line_number":85,"context_line":"behavior, i.e. data is uploaded to Swift without being buffered."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Alternatives"},{"line_number":88,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a29b11f_d24a13ac","line":85,"in_reply_to":"3a29b11f_8fddc672","updated":"2015-10-21 14:46:54.000000000","message":"Done","commit_id":"3d548dc6bc942ed4de334e2abff040c6ddec04c4"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b2a7ec3c7c95a49d665ab216bf46d8afd9a0c00d","unresolved":false,"context_lines":[{"line_number":90,"context_line":"- An alternative is to use memory buffering instead of disk buffering. With"},{"line_number":91,"context_line":"  memory buffering, there\u0027ll be a substantial increase in the memory footprint,"},{"line_number":92,"context_line":"  which may degrade the API performance. Also, disk is a cheaper resource than"},{"line_number":93,"context_line":"  memory."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"- A solution is proposed in [4] to solve this problem for 401s specifically."},{"line_number":96,"context_line":"  This proposal basically works by ensuring the token is not nearing"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a29b11f_afda0277","line":93,"updated":"2015-10-18 10:10:43.000000000","message":"but not necessarily faster","commit_id":"3d548dc6bc942ed4de334e2abff040c6ddec04c4"},{"author":{"_account_id":8158,"name":"Hemanth Makkapati","email":"makstacker+osgerrit@gmail.com","username":"hemanth.makkapati"},"change_message_id":"4268f60545d217d35d27f01d87b9117977a3b31b","unresolved":false,"context_lines":[{"line_number":90,"context_line":"- An alternative is to use memory buffering instead of disk buffering. With"},{"line_number":91,"context_line":"  memory buffering, there\u0027ll be a substantial increase in the memory footprint,"},{"line_number":92,"context_line":"  which may degrade the API performance. Also, disk is a cheaper resource than"},{"line_number":93,"context_line":"  memory."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"- A solution is proposed in [4] to solve this problem for 401s specifically."},{"line_number":96,"context_line":"  This proposal basically works by ensuring the token is not nearing"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a29b11f_dc8f8cca","line":93,"in_reply_to":"3a29b11f_afda0277","updated":"2015-10-21 14:46:54.000000000","message":"Done","commit_id":"3d548dc6bc942ed4de334e2abff040c6ddec04c4"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b2a7ec3c7c95a49d665ab216bf46d8afd9a0c00d","unresolved":false,"context_lines":[{"line_number":133,"context_line":"uploads. However, the bulk of time elapsed for image upload is spent in"},{"line_number":134,"context_line":"transferring data over the network. In comparison, read and write operations"},{"line_number":135,"context_line":"to disk are relatively much quicker. With some thorough testing, the"},{"line_number":136,"context_line":"performance impact of this approach can be studied in further detail."},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"Other deployer impact"},{"line_number":139,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a29b11f_4fe7ae40","line":136,"updated":"2015-10-18 10:10:43.000000000","message":"TBH, I don\u0027t like the wording here. As I read it (and please correct me if I\u0027m misreading it). Saying that the disk read/write doesn\u0027t have a huge impact because most of the time is spent in transfering the bits over the wire makes me feel like we don\u0027t care much and I know this is not case. It\u0027s just how I read the above.\n\nI\u0027d probably prefer just mentioning the performance impact caused by reading/writing on disk without mentioning the rest.","commit_id":"3d548dc6bc942ed4de334e2abff040c6ddec04c4"},{"author":{"_account_id":8158,"name":"Hemanth Makkapati","email":"makstacker+osgerrit@gmail.com","username":"hemanth.makkapati"},"change_message_id":"4268f60545d217d35d27f01d87b9117977a3b31b","unresolved":false,"context_lines":[{"line_number":133,"context_line":"uploads. However, the bulk of time elapsed for image upload is spent in"},{"line_number":134,"context_line":"transferring data over the network. In comparison, read and write operations"},{"line_number":135,"context_line":"to disk are relatively much quicker. With some thorough testing, the"},{"line_number":136,"context_line":"performance impact of this approach can be studied in further detail."},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"Other deployer impact"},{"line_number":139,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a29b11f_d2721349","line":136,"in_reply_to":"3a29b11f_4fe7ae40","updated":"2015-10-21 14:46:54.000000000","message":"Like you said, the intention here is to not underplay the performance penalty caused by disk read/write. Just trying to give an idea about what the penalty would be like by comparison. Just mentioning that there\u0027d be a penalty doesn\u0027t give enough information to a deployer in my opinion. One needs to know what\u0027s the kinda of penalty in question, if not absolute values, at least in comparison. \n\nLet me know if you feel strongly about removing the comparison. I\u0027ll drop it.","commit_id":"3d548dc6bc942ed4de334e2abff040c6ddec04c4"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b2a7ec3c7c95a49d665ab216bf46d8afd9a0c00d","unresolved":false,"context_lines":[{"line_number":144,"context_line":""},{"line_number":145,"context_line":"Deployers need to take the extra disk utilization into account while using"},{"line_number":146,"context_line":"this feature. Additional care should be taken so that this disk utilization"},{"line_number":147,"context_line":"doesn\u0027t impact the disk space available for glance cache in any way."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Developer impact"},{"line_number":150,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a29b11f_6fe4ea3a","line":147,"updated":"2015-10-18 10:10:43.000000000","message":"Where is this data going to be stored exactly? I don\u0027t think ia t was mentioned anywhere in the spec. There\u0027s currently a `work_dir` option used for tasks that could probably be used for this as well. This, however, will require deployers to take the required space for this *and* tasks under consideration when provisioning glance.","commit_id":"3d548dc6bc942ed4de334e2abff040c6ddec04c4"},{"author":{"_account_id":8158,"name":"Hemanth Makkapati","email":"makstacker+osgerrit@gmail.com","username":"hemanth.makkapati"},"change_message_id":"4268f60545d217d35d27f01d87b9117977a3b31b","unresolved":false,"context_lines":[{"line_number":144,"context_line":""},{"line_number":145,"context_line":"Deployers need to take the extra disk utilization into account while using"},{"line_number":146,"context_line":"this feature. Additional care should be taken so that this disk utilization"},{"line_number":147,"context_line":"doesn\u0027t impact the disk space available for glance cache in any way."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Developer impact"},{"line_number":150,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a29b11f_b282f792","line":147,"in_reply_to":"3a29b11f_6fe4ea3a","updated":"2015-10-21 14:46:54.000000000","message":"We are using tempfile module for buffering. It creates the temporary files as described here https://docs.python.org/2/library/tempfile.html#tempfile.tempdir","commit_id":"3d548dc6bc942ed4de334e2abff040c6ddec04c4"},{"author":{"_account_id":16683,"name":"Alexey Galkin","email":"agalkin@mirantis.com","username":"agalkin"},"change_message_id":"9717be158dc8140a443b928e584c613694a0c256","unresolved":false,"context_lines":[{"line_number":66,"context_line":"individually to the backend storage. However, before passing on the image"},{"line_number":67,"context_line":"segments to swift client, the swift driver wraps [2] the segments with"},{"line_number":68,"context_line":"ChunkReader class [3], which enables the swift client to upload the image"},{"line_number":69,"context_line":"segment in smaller chunks, usally 64KB in size."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"In the proposed approach, instead of wrapping every segment with ChunkReader,"},{"line_number":72,"context_line":"we wrap it with BufferedReader, which buffers the image segment by tee-ing"}],"source_content_type":"text/x-rst","patch_set":10,"id":"3a29b11f_df403038","line":69,"updated":"2015-10-26 08:28:22.000000000","message":"I think you mean: usually. Please fix this typo.","commit_id":"5e3321b4d5c75f8476eeac4a00b317f4e03d62fa"},{"author":{"_account_id":21722,"name":"Dharini Chandrasekar","email":"dharini.chandrasekar@intel.com","username":"dharinic"},"change_message_id":"c7f8ac4b5e191ff271079ce198c42943b2f9ef59","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"We propose to introduce the BufferedReader as a configurable option, while"},{"line_number":82,"context_line":"leaving the default behavior as is. Using this configuration option, the"},{"line_number":83,"context_line":"amount of disk space used for buffering can be regulated as well. If the"},{"line_number":84,"context_line":"allotted space for buffering is full, BufferedReader reverts to default"},{"line_number":85,"context_line":"behavior, i.e. data is uploaded to Swift without being buffered."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Alternatives"},{"line_number":88,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ba5201f7_c8a83a8f","line":85,"range":{"start_line":83,"start_character":66,"end_line":85,"end_character":64},"updated":"2017-01-12 00:44:03.000000000","message":"A question on this:\nOne way to do this would be to check before buffering the particular chunk, if the directory provided via the config option \u0027swift_upload_buffer_dir\u0027 [1] has enough space for that chunk. This is cool if only one image upload is happening on that Glance node.\nWhat if there are multiple upload attempts happening in the same node?\n\n[1] https://review.openstack.org/#/c/120866/27/glance_store/_drivers/swift/buffered.py","commit_id":"5e3321b4d5c75f8476eeac4a00b317f4e03d62fa"}]}
