mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-28 17:57:22 +03:00
feature #258: Default values for mm_sched
This commit is contained in:
parent
df272f8dbe
commit
6d8cf78623
@ -114,7 +114,17 @@ start()
|
||||
fi
|
||||
|
||||
# Start the scheduler
|
||||
$ONE_SCHEDULER -p $PORT &
|
||||
# The following command line arguments are supported by mm_shed:
|
||||
# [-p port] to connect to oned - default: 2633
|
||||
# [-t timer] seconds between two scheduling actions - default: 30
|
||||
# [-m machines limit] max number of VMs managed in each scheduling action
|
||||
# - default: 300
|
||||
# [-d dispatch limit] max number of VMs dispatched in each scheduling action
|
||||
# - default: 30
|
||||
# [-h host dispatch] max number of VMs dispatched to a given host in each
|
||||
# scheduling action - default: 1
|
||||
|
||||
$ONE_SCHEDULER -p $PORT -t 30 -m 300 -d 30 -h 1&
|
||||
|
||||
LASTRC=$?
|
||||
LASTPID=$!
|
||||
|
@ -38,8 +38,8 @@ public:
|
||||
unsigned int host_dispatch_limit
|
||||
):Scheduler(url,
|
||||
timer,
|
||||
machines_limit,
|
||||
dispatch_limit,
|
||||
machines_limit,
|
||||
dispatch_limit,
|
||||
host_dispatch_limit),rp(0){};
|
||||
|
||||
~RankScheduler()
|
||||
@ -67,9 +67,9 @@ int main(int argc, char **argv)
|
||||
RankScheduler * ss;
|
||||
int port = 2633;
|
||||
time_t timer= 30;
|
||||
unsigned int machines_limit = 400;
|
||||
unsigned int dispatch_limit = 300;
|
||||
unsigned int host_dispatch_limit = 3;
|
||||
unsigned int machines_limit = 300;
|
||||
unsigned int dispatch_limit = 30;
|
||||
unsigned int host_dispatch_limit = 1;
|
||||
char opt;
|
||||
|
||||
ostringstream oss;
|
||||
@ -106,8 +106,8 @@ int main(int argc, char **argv)
|
||||
oss << "http://localhost:" << port << "/RPC2";
|
||||
|
||||
ss = new RankScheduler(oss.str(),
|
||||
timer,
|
||||
machines_limit,
|
||||
timer,
|
||||
machines_limit,
|
||||
dispatch_limit,
|
||||
host_dispatch_limit);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user