@@ -46,11 +46,11 @@ func ListUnitFiles(argv []string, b backend.Backend) error {
4646}
4747
4848// Scale grows or shrinks the number of running components.
49- // Currently "router" and "registry " are the only types that can be scaled.
49+ // Currently "router", "registry" and "store-gateway " are the only types that can be scaled.
5050func Scale (argv []string , b backend.Backend ) error {
5151 usage := `Grows or shrinks the number of running components.
5252
53- Currently "router" and "registry " are the only types that can be scaled.
53+ Currently "router", "registry" and "store-gateway " are the only types that can be scaled.
5454
5555Usage:
5656 deisctl scale [<target>...] [options]
7474 return err
7575 }
7676 // the router is the only component that can scale at the moment
77- if ! strings .Contains (component , "router" ) && ! strings .Contains (component , "registry" ) {
77+ if ! strings .Contains (component , "router" ) && ! strings .Contains (component , "registry" ) && ! strings . Contains ( component , "store-gateway" ) {
7878 return fmt .Errorf ("cannot scale %s components" , component )
7979 }
8080 b .Scale (component , num , & wg , outchan , errchan )
@@ -171,7 +171,7 @@ func startDefaultServices(b backend.Backend, wg *sync.WaitGroup, outchan chan st
171171 wg .Wait ()
172172
173173 // we start gateway first to give metadata time to come up for volume
174- b .Start ([]string {"store-gateway" }, wg , outchan , errchan )
174+ b .Start ([]string {"store-gateway@1 " }, wg , outchan , errchan )
175175 wg .Wait ()
176176 b .Start ([]string {"store-volume" }, wg , outchan , errchan )
177177 wg .Wait ()
@@ -282,7 +282,7 @@ func stopDefaultServices(b backend.Backend, wg *sync.WaitGroup, outchan chan str
282282 wg .Wait ()
283283
284284 outchan <- fmt .Sprintf ("Storage subsystem..." )
285- b .Stop ([]string {"store-volume" , "store-gateway" }, wg , outchan , errchan )
285+ b .Stop ([]string {"store-volume" , "store-gateway@1 " }, wg , outchan , errchan )
286286 wg .Wait ()
287287 b .Stop ([]string {"store-metadata" }, wg , outchan , errchan )
288288 wg .Wait ()
@@ -428,7 +428,7 @@ func InstallPlatform(b backend.Backend) error {
428428func installDefaultServices (b backend.Backend , wg * sync.WaitGroup , outchan chan string , errchan chan error ) {
429429
430430 outchan <- fmt .Sprintf ("Storage subsystem..." )
431- b .Create ([]string {"store-daemon" , "store-monitor" , "store-metadata" , "store-volume" , "store-gateway" }, wg , outchan , errchan )
431+ b .Create ([]string {"store-daemon" , "store-monitor" , "store-metadata" , "store-volume" , "store-gateway@1 " }, wg , outchan , errchan )
432432 wg .Wait ()
433433
434434 outchan <- fmt .Sprintf ("Logging subsystem..." )
@@ -524,7 +524,7 @@ func uninstallAllServices(b backend.Backend, wg *sync.WaitGroup, outchan chan st
524524 wg .Wait ()
525525
526526 outchan <- fmt .Sprintf ("Storage subsystem..." )
527- b .Destroy ([]string {"store-volume" , "store-gateway" }, wg , outchan , errchan )
527+ b .Destroy ([]string {"store-volume" , "store-gateway@1 " }, wg , outchan , errchan )
528528 wg .Wait ()
529529 b .Destroy ([]string {"store-metadata" }, wg , outchan , errchan )
530530 wg .Wait ()
0 commit comments