<div dir="ltr"><div>Hello,<br></div><div><br></div><div>I can't change a weight of the device.</div><div>Here is a list of my devices:</div><div><br></div><div>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta</div><div>             0       1     1           host1  6000           host1              6000        d1 1000.00       1024    0.00 bla bla1 bla2</div><div>             1       1     1           host1  6000           host1              6000        d2 1000.00       1024    0.00 bla bla1 bla2</div><div>             2       1     1           host1  6000           host1              6000        d3 1000.00       1024    0.00 bla bla1 bla2</div><div><br></div><div>Here is what I tried to change a weight:</div><div>swift-ring-builder object.builder set_weight --region 1 --zone 1 --ip host1 --port 6000 --replication-ip host1 --replication-port 6000 --device d1 --meta "bla bla1 bla2" --weight 1000</div><div><br></div><div>swift-ring-builder object.builder set_weight r1z1-host1:6000Rhost1:6000 d1_"bla bla1 bla2" 2000</div><div><br></div><div>In both cases it doesn't work and shows the next information:</div><div><br></div><div>swift-ring-builder <builder_file> set_weight <search-value> <weight>                                                                 </div><div>    [<search-value> <weight] ...                                                                                                     </div><div>    [--yes]                                                                                                                          </div><div>                                                                                                                                     </div><div>or                                                                                                                                   </div><div>                                                                                                                                     </div><div>swift-ring-builder <builder_file> set_weight                                                                                         </div><div>    --region <region> --zone <zone> --ip <ip or hostname> --port <port>                                                              </div><div>    --replication-ip <r_ip or r_hostname> --replication-port <r_port>                                                                </div><div>    --device <device_name> --meta <meta> --weight <weight>                                                                           </div><div>    [--yes]                                                                                                                          </div><div>                                                                                                                                     </div><div>    Where <r_ip>, <r_hostname> and <r_port> are replication ip, hostname                                                             </div><div>    and port.                                                                                                                        </div><div>    Any of the options are optional in both cases.                                                                                   </div><div>                                                                                                                                     </div><div>    Resets the devices' weights. No partitions will be reassigned to or from                                                         </div><div>    the device until after running 'rebalance'. This is so you can make                                                              </div><div>    multiple device changes and rebalance them all just once.                                                                        </div><div>                                                                                                                                     </div><div>    Option --yes assume a yes response to all questions.</div><div><br></div><div><br></div><div>Please, correct me if it is my fault.</div><div><br></div><div>Best regards,</div><div>Alexandr</div></div>