)]}'
{"watcher/decision_engine/strategy/strategies/host_maintenance.py":[{"author":{"_account_id":24872,"name":"YumengBao","email":"yumeng_bao@yahoo.com","username":"Yumeng_Bao"},"change_message_id":"c2ba4697482db74ddd4db0a385c0df20e214e5ab","unresolved":false,"context_lines":[{"line_number":50,"context_line":"       - It migrates all instances from one host to other hosts. It\u0027s better to"},{"line_number":51,"context_line":"         execute such strategy when load is not heavy, and use this algorithm"},{"line_number":52,"context_line":"         with `ONESHOT` audit."},{"line_number":53,"context_line":"       - It assume that cold and live migrations are possible."},{"line_number":54,"context_line":"    \"\"\""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    INSTANCE_MIGRATION \u003d \"migrate\""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_307fffbc","line":53,"range":{"start_line":53,"start_character":12,"end_line":53,"end_character":18},"updated":"2018-11-26 12:12:16.000000000","message":"assumes","commit_id":"6ac9d94ea6cf14c493eb5a6e87c2059fb8d68762"},{"author":{"_account_id":24872,"name":"YumengBao","email":"yumeng_bao@yahoo.com","username":"Yumeng_Bao"},"change_message_id":"c2ba4697482db74ddd4db0a385c0df20e214e5ab","unresolved":false,"context_lines":[{"line_number":243,"context_line":"        \"\"\"safe maintain one compute node"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"        Migrate all instances of the maintenance_node intensively to the"},{"line_number":246,"context_line":"        backup host. If user didn\u0027t give the backup host, it will select"},{"line_number":247,"context_line":"        one unused node to backup the maintaining node."},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"        It calculate the resource both of the backup node and maintaining"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_30561f2d","line":246,"range":{"start_line":246,"start_character":24,"end_line":246,"end_character":28},"updated":"2018-11-26 12:12:16.000000000","message":"the user","commit_id":"6ac9d94ea6cf14c493eb5a6e87c2059fb8d68762"},{"author":{"_account_id":24872,"name":"YumengBao","email":"yumeng_bao@yahoo.com","username":"Yumeng_Bao"},"change_message_id":"c2ba4697482db74ddd4db0a385c0df20e214e5ab","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        the backup node, it will set the maintaining node in"},{"line_number":253,"context_line":"        \u0027watcher_maintaining\u0027 status, and add the migrations to solution."},{"line_number":254,"context_line":"        \"\"\""},{"line_number":255,"context_line":"        # If user gives a backup node with required capacity, then migrates"},{"line_number":256,"context_line":"        # all instances from the maintaining node to the backup node."},{"line_number":257,"context_line":"        if backup_node:"},{"line_number":258,"context_line":"            if self.host_fits(maintenance_node, backup_node):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_d04ecb8f","line":255,"range":{"start_line":255,"start_character":13,"end_line":255,"end_character":17},"updated":"2018-11-26 12:12:16.000000000","message":"the user","commit_id":"6ac9d94ea6cf14c493eb5a6e87c2059fb8d68762"},{"author":{"_account_id":24872,"name":"YumengBao","email":"yumeng_bao@yahoo.com","username":"Yumeng_Bao"},"change_message_id":"c2ba4697482db74ddd4db0a385c0df20e214e5ab","unresolved":false,"context_lines":[{"line_number":261,"context_line":"                self.host_migration(maintenance_node, backup_node)"},{"line_number":262,"context_line":"                return True"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"        # If user didn\u0027t give the backup host, select one unused node"},{"line_number":265,"context_line":"        # with required capacity, then migrates all instances"},{"line_number":266,"context_line":"        # from maintaining node to it."},{"line_number":267,"context_line":"        nodes \u003d sorted("}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_902a9394","line":264,"range":{"start_line":264,"start_character":13,"end_line":264,"end_character":17},"updated":"2018-11-26 12:12:16.000000000","message":"ditto","commit_id":"6ac9d94ea6cf14c493eb5a6e87c2059fb8d68762"}]}
