Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

An SSH connection is created for each input file to be copied to the VM #26

Description

@NicholasMy

In the current design, a new SSH connection is established for each file being copied into the VM.

Tango/vmms/distDocker.py

Lines 205 to 218 in 34c6ca7

for file in inputFiles:
ret = timeout(["scp"] + DistDocker._SSH_FLAGS + vm.ssh_flags +
DistDocker._SSH_AUTH_FLAGS + [file.localFile] +
["%s@%s:%s/%s" % \
(self.hostUser, vm.domain_name, volumePath, file.destFile)],
config.Config.COPYIN_TIMEOUT)
if ret == 0:
self.log.debug('Copied in file %s to %s' %
(file.localFile, volumePath + file.destFile))
else:
self.log.error(
"Error: failed to copy file %s to VM %s with status %s" %
(file.localFile, vm.domain_name, str(ret)))
return ret

Grading could be greatly sped up if multiple files were copied with one connection rather than wasting time closing and reopening the connection.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions