projects
/
living-lab-site.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
SwarmPlayer is now detected; CIS-LB random load balancer created
[living-lab-site.git]
/
cis
/
cis_lb
/
load_balancer
/
random_lb.py
1
import random
2
3
from base import LoadBalancer
4
import config
5
6
class RandomLoadBalancer(LoadBalancer):
7
8
def choose(self):
9
return config.CIS_URLS[random.randint(0, len(config.CIS_URLS) - 1)]