You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will create or update a configuration file stored at `.vagrant/workers.json`.
27
-
Now you can create the virtual machines with:
39
+
_NOTE: Using the `--public` flag will make your worker VMs accessible to anyone
40
+
on your local network, which may be a modest security concern.
41
+
We suggest this to minimize possibility of errors while creating the
42
+
worker machines and will revert this in a later step._
43
+
44
+
_NOTE: Running a socket command while a worker machine is running can detach the
45
+
process, making the VM inaccessible to vagrant. If this happens and you are unable
46
+
to `vagrant workers halt`, then you may run `pkill -15 -f qemu-system-` to kill
47
+
all virtual machines running on your computer (including the main Submitty VM)._
48
+
49
+
6. Now you can create the worker machine(s) with:
28
50
```
29
-
vagrant up
51
+
vagrant workers up
30
52
```
53
+
_NOTE: Do not use the --provider flag with this command, since it will conflict with the
54
+
provider of the main virtual machine._
31
55
32
-
If you happen to encounter error messages regarding IP addresses or port conflicts, you can manually edit the `workers.json` file as needed.
56
+
When this is finished, you should see the Submitty duck ASCII art for each new worker machine.
57
+
58
+
7. You can verify that all the worker machines are running with:
59
+
```
60
+
vagrant workers status
61
+
```
33
62
34
-
__NOTE__: Do not edit the `workers.json` configuration file or run the aforementioned python script if there are any existing vagrant machines in your project. This can result in the existing VMs continuing to run in the background or storing their data with no clean way to remove them.
63
+
8.`vagrant ssh` into the main virtual machine and run:
4. To delete the worker machines and revert to a normal development setup, you can first run
69
+
9. To stop the worker machines, you can run:
37
70
```
38
-
vagrant destroy
71
+
vagrant workers halt
72
+
vagrant workers socket stop
39
73
```
40
-
And confirm to delete all the existing virtual machines.
41
74
42
-
Next, you can delete the `workers.json` file, which will remove the worker configuration from your project.
43
-
The next `vagrant up` should only create the primary development virtual machine without any workers.
75
+
_For MacOS QEMU users: Once the virtual machine(s) are halted, if you would like to restart under
76
+
private networking, you may do so by omitting the `--public` flag from the `vagrant workers socket start` command._
77
+
44
78
45
79
---
46
80
@@ -50,14 +84,15 @@ If you would like to ensure the worker is functioning properly, or enter the wor
50
84
51
85
To connect to a worker machine through SSH, run:
52
86
```
53
-
vagrant ssh <worker-name>
87
+
vagrant workers ssh <worker-name>
54
88
```
55
89
56
90
If you want to test the connection between the primary VM and a worker, you can first `vagrant ssh` into the primary machine and then run this command to SSH into the worker from there:
57
91
```
58
-
su submitty_daemon -c ssh submitty@<ip-address>
92
+
su submitty_daemon -c ssh <worker-name>
59
93
```
60
-
The IP address of the worker machine will be indicated in the `.vagrant/workers.json` file.
94
+
95
+
The list of worker names can be displayed with `vagrant workers status`.
61
96
62
97
__NOTE__: Depending on the performance of your computer and the size of the autograding queue passed to the worker, the SSH command may hang for some time.
0 commit comments