)]}'
{"specs/liberty/swift_multithreading_support.rst":[{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"b9d4990e77c88929fff93582d28aff1abb835e37","unresolved":false,"context_lines":[{"line_number":47,"context_line":"default. Currently Glance is using dynamic large object (DLO) manifests, those"},{"line_number":48,"context_line":"stitch together a large object based on the container listing. So, if an image"},{"line_number":49,"context_line":"is retrieved right after upload but one of the segments isn\u0027t in the listing"},{"line_number":50,"context_line":"yet, the client gets a corrupt image."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Using SLO will decrease the likelihood of a delayed container update, and"},{"line_number":53,"context_line":"extend the window that Swift has to fix it while remaining segments are"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa1b9901_f856f828","line":50,"updated":"2015-08-20 01:38:39.000000000","message":"True story. I believe this can manifest in one of two ways:\n\n1. Upload completes; verification check is made; segment is missing; image upload errors out / fails\n\n2. Upload completes; verification check is made; everything is returned; image upload is successful; request for image has missing segment; corrupt image is obtained\n\nOption 2 occurs due to eventual consistency. I\u0027ve observed a loop on a segment list call to Swift oscillating between listing all segments and missing 1 segment.\n\nOne downside is that a manifest file can have at most 1000 entries IIRC. Perhaps this is configurable, but regardless, it is limited. Therefore you would have to either support nested manifests or scale segment sizes based on image size (which seems less goodlier).","commit_id":"eb4886106e54bb4b4f85818f331eee339af183d2"},{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"f60684afb555800ba58edce6c00f5b9aa752bbd7","unresolved":false,"context_lines":[{"line_number":47,"context_line":"default. Currently Glance is using dynamic large object (DLO) manifests, those"},{"line_number":48,"context_line":"stitch together a large object based on the container listing. So, if an image"},{"line_number":49,"context_line":"is retrieved right after upload but one of the segments isn\u0027t in the listing"},{"line_number":50,"context_line":"yet, the client gets a corrupt image."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Using SLO will decrease the likelihood of a delayed container update, and"},{"line_number":53,"context_line":"extend the window that Swift has to fix it while remaining segments are"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa1b9901_b5004c03","line":50,"in_reply_to":"fa1b9901_a715909c","updated":"2015-08-21 01:32:24.000000000","message":"Yeah, I\u0027m familiar with this technique. Seems reasonable.","commit_id":"eb4886106e54bb4b4f85818f331eee339af183d2"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"71e8744b53a4ad97467d30d8cc4d908f06e55c62","unresolved":false,"context_lines":[{"line_number":47,"context_line":"default. Currently Glance is using dynamic large object (DLO) manifests, those"},{"line_number":48,"context_line":"stitch together a large object based on the container listing. So, if an image"},{"line_number":49,"context_line":"is retrieved right after upload but one of the segments isn\u0027t in the listing"},{"line_number":50,"context_line":"yet, the client gets a corrupt image."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Using SLO will decrease the likelihood of a delayed container update, and"},{"line_number":53,"context_line":"extend the window that Swift has to fix it while remaining segments are"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa1b9901_a715909c","line":50,"in_reply_to":"fa1b9901_f856f828","updated":"2015-08-20 17:51:01.000000000","message":"Nested manifests are probably the way to go here. They can typically go up to 9 deep, so the total tree depth is 10 including segments. (I might be off by one so it\u0027s 8 and 9; I don\u0027t recall.)\n\nOne good way to handle this is to borrow something from filesystem design and use indirect blocks. Fill the first 991 slots in your manifest with segment references, and then use slot 992 for a single-indirect manifest, i.e. slot 992 references a manifest that then references up to 1000 segments. Then use slot 993 for a double-indirect manifest, so slot 993 -\u003e manifest -\u003e 1000 manifests -\u003e 1000000 segments. Slot 994 gets a triple-indirect manifest, 995 quadruple-indirect, and so on until slot 1000, which gets a nonuple-indirect manifest, allowing you to address up to 1000^8 segments.\n\nThat keeps your time-to-first-byte reasonable, as Swift only has to retrieve the top-level manifest and the first byte of the first segment before it can send data to the client, and it also allows for a ridiculously large number of segments so you don\u0027t have to worry about running out.","commit_id":"eb4886106e54bb4b4f85818f331eee339af183d2"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"71e8744b53a4ad97467d30d8cc4d908f06e55c62","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Using SLO will decrease the likelihood of a delayed container update, and"},{"line_number":53,"context_line":"extend the window that Swift has to fix it while remaining segments are"},{"line_number":54,"context_line":"uploaded."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"The segment uploading process remains the same, but the manifest creation will"},{"line_number":57,"context_line":"be slightly different. Instead of uploading an empty object and setting a"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa1b9901_1f02b60b","line":54,"updated":"2015-08-20 17:51:01.000000000","message":"This is true, but not the point. SLOs don\u0027t depend on the container at all, so container updates don\u0027t matter any more.\n\nParallel uploads increase the likelihood of a delayed container update; using SLOs doesn\u0027t decrease that likelihood. It simply removes the dependency on the container so container-update delays become irrelevant.","commit_id":"eb4886106e54bb4b4f85818f331eee339af183d2"},{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"b9d4990e77c88929fff93582d28aff1abb835e37","unresolved":false,"context_lines":[{"line_number":56,"context_line":"The segment uploading process remains the same, but the manifest creation will"},{"line_number":57,"context_line":"be slightly different. Instead of uploading an empty object and setting a"},{"line_number":58,"context_line":"specific header, there will be uploaded a JSON document, that names the"},{"line_number":59,"context_line":"segments of the object, and a query param will be set."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"SLO support is fully implemented in ``swiftclient.service`` and glance_store"},{"line_number":62,"context_line":"may use it as well as the other methods."}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa1b9901_580cc440","line":59,"updated":"2015-08-20 01:38:39.000000000","message":"+1; I did this with GBP that we later killed. It\u0027s pretty trivial in the code. I can actually pull an example implementation if you\u0027re interested from our internal git.","commit_id":"eb4886106e54bb4b4f85818f331eee339af183d2"},{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"b9d4990e77c88929fff93582d28aff1abb835e37","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"  2. ``swift_thread_number`` which defines the number of active threads"},{"line_number":72,"context_line":"     that will be used for image uploading if multithreading is enabled."},{"line_number":73,"context_line":"     Default value: 10."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"As a possible implementation, it is suggested to dynamically override"},{"line_number":76,"context_line":"corresponding methods when creating a new object in the ``Store``"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa1b9901_b328a187","line":73,"updated":"2015-08-20 01:38:39.000000000","message":"Maybe I\u0027m crazy, but I like the idea of the default being the number of segments (so dynamic). A Swift deployment should be able to handle it if the Glance deployment can.","commit_id":"eb4886106e54bb4b4f85818f331eee339af183d2"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"71e8744b53a4ad97467d30d8cc4d908f06e55c62","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"  2. ``swift_thread_number`` which defines the number of active threads"},{"line_number":72,"context_line":"     that will be used for image uploading if multithreading is enabled."},{"line_number":73,"context_line":"     Default value: 10."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"As a possible implementation, it is suggested to dynamically override"},{"line_number":76,"context_line":"corresponding methods when creating a new object in the ``Store``"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa1b9901_47711475","line":73,"in_reply_to":"fa1b9901_b328a187","updated":"2015-08-20 17:51:01.000000000","message":"You don\u0027t need hundreds at a time, just enough to have a shot at saturating the network link between Glance and Swift. 10 seems sane to me.\n\nYou\u0027re right, though, a decent-size Swift cluster can certainly handle whatever one machine can throw at it.","commit_id":"eb4886106e54bb4b4f85818f331eee339af183d2"},{"author":{"_account_id":11642,"name":"Jesse J. Cook","email":"jesse.cook@rackspace.com","username":"crashenx"},"change_message_id":"b9d4990e77c88929fff93582d28aff1abb835e37","unresolved":false,"context_lines":[{"line_number":196,"context_line":"  3. Download a big file;"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"  4. Delete a big file."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"Documentation Impact"},{"line_number":202,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa1b9901_135e2d12","line":199,"updated":"2015-08-20 01:38:39.000000000","message":"I\u0027d love to see some performance criteria captured by the Product Working Group documented in a \"permission to play\" User Story and tests developed for multiple OpenStack deployment configurations that run on the new OSIC clusters.","commit_id":"eb4886106e54bb4b4f85818f331eee339af183d2"}]}
