Creating a cluster with existing instances¶
As described in Clusters, all clusters have an orchestrator host and a set of factories hosts.
Instances in a cloud service provider¶
Let’s assume that the user contains the following cluster:
It’s not required that the factories contain GPU.
It is required that:
- All instances are in same private LAN.
- All host have the same username.
- All host are accessible with the same private key.
SSHCluster is as simple as:
!SSHCluster name: my-cluster orchestrator_ip: [188.8.131.52, 10.150.0.1] factories_ips: - [184.108.40.206, 10.150.0.2] - [220.127.116.11, 10.150.0.3] key: /path/to/my/key username: ubuntu
Note that all hosts have information about both the public IP and the private IP.
Instances in the private LAN¶
If the instances do not have a public IP because they are running on-premise, then
SSHCluster supports providing private IPs only.
!SSHCluster name: my-cluster orchestrator_ip: 10.150.0.10 factories_ips: - 10.150.0.20 - 10.150.0.30 key: /path/to/my/key username: ubuntu