File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181
8282Note that the default install command activates 1 of each component.
8383You can scale components with ` deisctl scale router=3 ` , for example.
84+ The router is the only component that _ currently_ scales beyond 1 unit.
8485
8586You can also use the ` deisctl uninstall ` command to destroy platform units:
8687
Original file line number Diff line number Diff line change @@ -47,8 +47,11 @@ func Scale(b backend.Backend, targets []string) error {
4747 if err != nil {
4848 return err
4949 }
50- err = b .Scale (component , num )
51- if err != nil {
50+ // the router is the only component that can scale past 1 at the moment
51+ if num > 1 && ! strings .Contains (component , "router" ) {
52+ return fmt .Errorf ("cannot scale %s past 1" , component )
53+ }
54+ if err := b .Scale (component , num ); err != nil {
5255 return err
5356 }
5457 }
You can’t perform that action at this time.
0 commit comments