def scale_out(self, blocks=<NUM_LIT:1>, block_size=<NUM_LIT:1>):
self.config['<STR_LIT>'.format(self.pool)]['<STR_LIT>']<EOL>count = <NUM_LIT:0><EOL>if blocks == <NUM_LIT:1>:<EOL><INDENT>block_id = len(self.blocks)<EOL>self.blocks[block_id] = []<EOL>for instance_id in range(<NUM_LIT:0>, block_size):<EOL><INDENT>instances = self.server_manager.create(<EOL>'<STR_LIT>'.format(block_id, instance_id),  <EOL>self.client.images.get('<STR_LIT>'),  <EOL>self.client.flavors.list()[<NUM_LIT:0>],<EOL>min_count=<NUM_LIT:1>,<EOL>max_count=<NUM_LIT:1>,<EOL>userdata=setup_script.format(engine_config=self.engine_config),<EOL>key_name='<STR_LIT>',<EOL>security_groups=['<STR_LIT>'],<EOL>nics=[{<EOL>"<STR_LIT>": '<STR_LIT>',<EOL>"<STR_LIT>": '<STR_LIT>',<EOL>"<STR_LIT>": '<STR_LIT>'<EOL>}])<EOL>self.blocks[block_id].extend([instances])<EOL>count += <NUM_LIT:1><EOL><DEDENT><DEDENT>return count<EOL>
Scale out the existing resources.