@@ -47,11 +47,11 @@ func ListUnitFiles(argv []string, b backend.Backend) error {
4747}
4848
4949// Scale grows or shrinks the number of running components.
50- // Currently "router" is the only type that can be scaled.
50+ // Currently "router" and "registry" are the only types that can be scaled.
5151func Scale (argv []string , b backend.Backend ) error {
5252 usage := `Grows or shrinks the number of running components.
5353
54- Currently "router" is the only type that can be scaled.
54+ Currently "router" and "registry" are the only types that can be scaled.
5555
5656Usage:
5757 deisctl scale [<target>...] [options]
7575 return err
7676 }
7777 // the router is the only component that can scale at the moment
78- if ! strings .Contains (component , "router" ) {
78+ if ! strings .Contains (component , "router" ) && ! strings . Contains ( component , "registry" ) {
7979 return fmt .Errorf ("cannot scale %s components" , component )
8080 }
8181 b .Scale (component , num , & wg , outchan , errchan )
@@ -186,12 +186,12 @@ func startDefaultServices(b backend.Backend, wg *sync.WaitGroup, outchan chan st
186186
187187 // optimization: start all remaining services in the background
188188 b .Start ([]string {
189- "cache" , "database" , "registry" , "controller" , "builder" ,
189+ "cache" , "database" , "registry@1 " , "controller" , "builder" ,
190190 "publisher" , "router@1" , "router@2" , "router@3" },
191191 & _wg , _outchan , _errchan )
192192
193193 outchan <- fmt .Sprintf ("Control plane..." )
194- b .Start ([]string {"cache" , "database" , "registry" , "controller" }, wg , outchan , errchan )
194+ b .Start ([]string {"cache" , "database" , "registry@1 " , "controller" }, wg , outchan , errchan )
195195 wg .Wait ()
196196 b .Start ([]string {"builder" }, wg , outchan , errchan )
197197 wg .Wait ()
@@ -270,7 +270,7 @@ func stopDefaultServices(b backend.Backend, wg *sync.WaitGroup, outchan chan str
270270 wg .Wait ()
271271
272272 outchan <- fmt .Sprintf ("Control plane..." )
273- b .Stop ([]string {"controller" , "builder" , "cache" , "database" , "registry" }, wg , outchan , errchan )
273+ b .Stop ([]string {"controller" , "builder" , "cache" , "database" , "registry@1 " }, wg , outchan , errchan )
274274 wg .Wait ()
275275
276276 outchan <- fmt .Sprintf ("Logging subsystem..." )
@@ -432,7 +432,7 @@ func installDefaultServices(b backend.Backend, wg *sync.WaitGroup, outchan chan
432432 wg .Wait ()
433433
434434 outchan <- fmt .Sprintf ("Control plane..." )
435- b .Create ([]string {"cache" , "database" , "registry" , "controller" , "builder" }, wg , outchan , errchan )
435+ b .Create ([]string {"cache" , "database" , "registry@1 " , "controller" , "builder" }, wg , outchan , errchan )
436436 wg .Wait ()
437437
438438 outchan <- fmt .Sprintf ("Data plane..." )
@@ -512,7 +512,7 @@ func uninstallAllServices(b backend.Backend, wg *sync.WaitGroup, outchan chan st
512512 wg .Wait ()
513513
514514 outchan <- fmt .Sprintf ("Control plane..." )
515- b .Destroy ([]string {"controller" , "builder" , "cache" , "database" , "registry" }, wg , outchan , errchan )
515+ b .Destroy ([]string {"controller" , "builder" , "cache" , "database" , "registry@1 " }, wg , outchan , errchan )
516516 wg .Wait ()
517517
518518 outchan <- fmt .Sprintf ("Logging subsystem..." )
0 commit comments