I suppose this is more of a juju questions but I wanted to make sure I understood how to scale out the pieces of a full Anbox deployment on bare-metal. Let me know if the following steps are correct:
-
Setup VMs with Ubuntu
-
On the juju controller, add the machines using juju add-machine
-
Add the specified service to the specific machines:
a) For scaling AMS, the initial deploy does not contain the ams load balancer so this must be deployed first and utilize the --to parameter to specify one of the previously added machines:juju deploy ams-load-balancer --channel 1.XX --to N
i) Since this is a new LB, it must be related to the service viajuju relate ams ams-load-balancer
b) For the service that is to be scaled (ams, anbox-stream-gateway, anbox-stream-agent), use the juju add-unit command along with specifying a comma separated list of machine ids that were previously added.
i) The docs say to runjuju relate anbox-stream-gateway:api anbox-stream-gateway-lb:reverseproxy
after adding more units. Does this need to be done even though the anbox-stream-gateway-lb already exists? If so does it need to be ran after every scale up ? -
Scaling LXD works similarly in that only add-unit is needed with specifying the --to parameter to target specific machines (
juju add-unit -n N lxd --to N1,N2,NX
)
Tangentially, is it possible to use a cloud provider and juju to scale all portions of Anbox except for LXD or is it all or nothing with utilizing juju’s cloud provider plugin?