)]}'
{"specs/newton/stochastic-weighing-scheduler.rst":[{"author":{"_account_id":1207,"name":"Duncan Thomas","email":"duncan.thomas@gmail.com","username":"duncan-thomas"},"change_message_id":"fd1f726d78277180da0cbb4892dc4c512af41a60","unresolved":false,"context_lines":[{"line_number":237,"context_line":"algorithm, it will be challenging to write automated functional test cases"},{"line_number":238,"context_line":"without subverting the random number generation. I propose that we rely on"},{"line_number":239,"context_line":"unit tests to ensure correctness because it\u0027s easy to \"fake\" random numbers"},{"line_number":240,"context_line":"in unit tests."},{"line_number":241,"context_line":""},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"1a122d0e_1922a7b9","line":240,"range":{"start_line":240,"start_character":3,"end_line":240,"end_character":7},"updated":"2016-04-18 21:23:53.000000000","message":"I\u0027d suggest we can write a large-ops tests using the fake backend, and feed it a very large number of creates - with large numbers, the statistical properties of the random numbers should average out well enough to give us an idea if the scheduler is doing its job or not. e.g. If you create 100 volumes in a row and they all go to the same backend when others are available, then something is almost certainly broken - the false positive rate becomes statistically small enough that we can take the hit of needing a recheck every X years","commit_id":"d7d9b2176ca8301a40d32014f4acfd6e65c1d920"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"baec69246d4538cb5aeee84a996197e2fbc2de48","unresolved":false,"context_lines":[{"line_number":237,"context_line":"algorithm, it will be challenging to write automated functional test cases"},{"line_number":238,"context_line":"without subverting the random number generation. I propose that we rely on"},{"line_number":239,"context_line":"unit tests to ensure correctness because it\u0027s easy to \"fake\" random numbers"},{"line_number":240,"context_line":"in unit tests."},{"line_number":241,"context_line":""},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"1a122d0e_bc139c0c","line":240,"range":{"start_line":240,"start_character":3,"end_line":240,"end_character":7},"in_reply_to":"1a122d0e_1922a7b9","updated":"2016-04-19 20:44:27.000000000","message":"I like this idea. I didn\u0027t know there was a fake backend which could be used in functional tests, but it makes sense.","commit_id":"d7d9b2176ca8301a40d32014f4acfd6e65c1d920"},{"author":{"_account_id":1207,"name":"Duncan Thomas","email":"duncan.thomas@gmail.com","username":"duncan-thomas"},"change_message_id":"6a4805b80ae8b88f5466f5c2cf3a611ca5bfaf4f","unresolved":false,"context_lines":[{"line_number":237,"context_line":"algorithm, it will be challenging to write automated functional test cases"},{"line_number":238,"context_line":"without subverting the random number generation. I propose that we rely on"},{"line_number":239,"context_line":"unit tests to ensure correctness because it\u0027s easy to \"fake\" random numbers"},{"line_number":240,"context_line":"in unit tests."},{"line_number":241,"context_line":""},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"1a122d0e_475d0346","line":240,"range":{"start_line":240,"start_character":3,"end_line":240,"end_character":7},"in_reply_to":"1a122d0e_bc139c0c","updated":"2016-04-20 11:34:15.000000000","message":"The fake backend might need some minor enhancements to it\u0027s configuration to do a good job of this, but they\u0027re likely to be trivial, and useful for other tests too. I certainly wouldn\u0027t gate this functionality on getting that done, but I think they\u0027d be a great addition to have.","commit_id":"d7d9b2176ca8301a40d32014f4acfd6e65c1d920"}]}
