def _get_slave_configuration()

in services/jenkins-autoscaling/lambda_mxnet_ci/autoscaling/handler.py [0:0]


def _get_slave_configuration():
    return {
        'ub18-c6g': {
            'num_executors': _get_nb_executors_per_label()['ub18-c6g'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Ubuntu',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'ub18-c6g',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^(?!restricted-).+'  # Run only unrestricted jobs
        },
        'restricted-ub18-c6g': {
            'num_executors': _get_nb_executors_per_label()['restricted-ub18-c6g'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Ubuntu',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'restricted-ub18-c6g',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^restricted-(.*)'  # Only run jobs which start with restricted-
        },
        'mxnetlinux-cpu': {
            'num_executors': _get_nb_executors_per_label()['mxnetlinux-cpu'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Ubuntu',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'mxnetlinux-cpu',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^(?!restricted-).+'  # Run only unrestricted jobs
        },
        'restricted-mxnetlinux-cpu': {
            'num_executors': _get_nb_executors_per_label()['mxnetlinux-cpu'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Ubuntu',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'restricted-mxnetlinux-cpu',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^restricted-(.*)'  # Only run jobs which start with restricted-
        },
        'mxnetlinux-gpu': {
            'num_executors': _get_nb_executors_per_label()['mxnetlinux-gpu'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Ubuntu',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'mxnetlinux-gpu',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^(?!restricted-).+'  # Run only unrestricted jobs
        },
        'restricted-mxnetlinux-gpu': {
            'num_executors': _get_nb_executors_per_label()['restricted-mxnetlinux-gpu'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Ubuntu',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'restricted-mxnetlinux-gpu',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^restricted-(.*)'  # Only run jobs which start with restricted-
        },
        'mxnetlinux-gpu-g4': {
            'num_executors': _get_nb_executors_per_label()['mxnetlinux-gpu-g4'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Ubuntu on g4',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'mxnetlinux-gpu-g4',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^(?!restricted-).+'  # Run only unrestricted jobs
        },
        'mxnetlinux-gpu-g5': {
            'num_executors': _get_nb_executors_per_label()['mxnetlinux-gpu-g5'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Ubuntu on g5',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'mxnetlinux-gpu-g5',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^(?!restricted-).+'  # Run only unrestricted jobs
        },
        'restricted-mxnetlinux-gpu-g4': {
            'num_executors': _get_nb_executors_per_label()['restricted-mxnetlinux-gpu-g4'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Ubuntu on g4',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'restricted-mxnetlinux-gpu-g4',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^restricted-(.*)'  # Only run jobs which start with restricted-
        },
        'mxnetlinux-gpu-p3-8xlarge': {
            'num_executors': _get_nb_executors_per_label()['mxnetlinux-gpu-p3-8xlarge'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Ubuntu on p3.8xlarge',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'mxnetlinux-gpu-p3-8xlarge',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^(?!restricted-).+'  # Run only unrestricted jobs
        },
        'mxnetwindows-cpu': {
            'num_executors': _get_nb_executors_per_label()['mxnetwindows-cpu'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Windows',
            'remote_fs': 'C:/jenkins_slave',  # Remote workspace location
            'labels': 'mxnetwindows-cpu',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^(?!restricted-).+'  # Run only unrestricted jobs
        },
        'mxnetwindows-gpu': {
            'num_executors': _get_nb_executors_per_label()['mxnetwindows-gpu'],  # Number of executors
            'node_description': '[AUTOSCALING] MXNet slave running Windows on a GPU instance',
            'remote_fs': 'C:/jenkins_slave',  # Remote workspace location
            'labels': 'mxnetwindows-gpu',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^(?!restricted-).+'  # Run only unrestricted jobs
        },
        'utility': {
            'num_executors': _get_nb_executors_per_label()['utility'],  # Number of executors
            'node_description': '[AUTOSCALING] Slave for utility operations',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'utility',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^(?!restricted-).+'  # Run only unrestricted jobs
        },
        'restricted-utility': {
            'num_executors': _get_nb_executors_per_label()['restricted-utility'],  # Number of executors
            'node_description': '[AUTOSCALING] Restricted slave for utility operations',
            'remote_fs': '/home/jenkins_slave',  # Remote workspace location
            'labels': 'restricted-utility',  # Space separated labels string
            'exclusive': True,  # Only run jobs assigned to it
            'tunnel': _get_jenkins_private_tunnel_address(),
            'job_name_restriction_regex': '^restricted-(.*)'  # Only run jobs which start with restricted-
        }
    }