Loadfactor

Top  Previous  Next

SUMMARY

Servers of different capacity are assigned requests in proportion to their capacity as defined by a load factor.

 

SCRIPT

/usr/ngasi/apiclient/bin/ncli.sh -user=myuser -password=coolgeek -url=http://localhost:8666 -command=setloadfactor -value=50 -node=mynode:/server1

 

JAVA API

Properties properties = new Properties();

properties.put("url","http://localhost:8666");

properties.put("user","myuser");

properties.put("password","coolgeek");

properties.put("command","setloadfactor");

properties.put("value","50");

properties.put("node","mynode:/server1");

String result = NGAPIClient.exec(properties);