# octave file # run it by starting octave and this following command : source(file) # Calculate the worst case scenario for the number for connexions for # loadbalancing The goal is to compare architectures regarding the number of # connexions per minutes on average for each scenario. # Let's x be the number of server, from 1 to 30 nb_s = 1:1:30; # The ratio between servers and clients is 20 tc = nb_s .* 20; # A terminal gets 1 login per hour # Scenario 1, from https://wiki.ubuntu.com/LDMLoadbalancingSupport # Each servers reply to each clients twice a minute. s1 = nb_s .* tc .* 2; # Scenario 2, from https://wiki.ubuntu.com/SimpleLDMLoadBalancing # Each servers reply to each client once per login s2 = nb_s .* tc ./ 60; # Scenario 3, from http://www.mille-xterm.org/en/LTSP_loadbalancer # Each servers reply to the two loadbalancer twice a minute and loadbalancer # server reply to clients once per login s3 = nb_s .* 2 .* 2 + tc ./ 60; figure(1); title("Average connexions per minute according to the number of servers for the scenario 1"); xlabel("Servers"); ylabel("Connexions per minute"); plot(nb_s, s1); figure(2); title("Average connexions per minute according to the number of servers for scenario 2 and 3"); xlabel("Servers"); ylabel("Connexions per minute"); plot(nb_s, s2, nb_s, s3);