1 """Global parameters and configuration."""
4 from bwlimit import bwmin, bwmax
6 DEFAULT_RSPEC = {'nm_cpu_share': 32, 'nm_cpu_guaranteed_share': 0,
7 'nm_disk_quota': 5000000,
9 'nm_net_min_rate': bwmin, 'nm_net_max_rate': bwmax,
10 'nm_net_exempt_min_rate': bwmin,
11 'nm_net_exempt_max_rate': bwmax,
13 except ImportError: pass
17 DB_FILE = '/root/pl_node_mgr_db.pickle'
19 KEY_FILE = '/home/deisenst/nm/key.pem'
21 LOANABLE_RESOURCES = set(['nm_cpu_share', 'nm_cpu_guaranteed_share',
22 'nm_net_max_rate', 'nm_net_exempt_max_rate',
25 LOG_FILE = '/var/log/pl_node_mgr.log'
27 PID_FILE = '/var/run/pl_node_mgr.pid'
29 SA_HOSTNAME = 'plc-a.demo.vmware'
33 TICKET_SERVER_PORT = 1813