cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages
defaults.py
Go to the documentation of this file.
1 ##
2 # @package src.cm.defaults
3 # @date May 8, 2014
4 #
5 # @author Zosia Sobocinska
6 #
7 import logging
8 
9 LOG_DIR = '/var/log/cc1/cm/'
10 LOG_LEVEL = logging.DEBUG
11 LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
12 USER_QUOTA = {
13  'cpu': 20,
14  'memory': 40000, # MB
15  'storage': 40000, # MB
16  'public_ip': 1,
17  'points': 2000
18 }
19 MONITOR_ENABLE = False
20 TIMEOUT = 30 # timeout of reading information from node
21 PATH_TO_RRD = '/var/lib/cc1/cm/rrd/' # path to stats db
22 BACKUP_PATH = '/var/lib/cc1/cm/rrd_backup/' # path to backuped stats
23 
24 PERIOD = 5 # period of the check every node (in seconds)
25 
26 CLEANING_PERIOD = 60 # period in seconds of running cleaning thread
27 TIME_TO_REMOVE = 60 * 10 # after this time (s) stats are removed (and moved to backup) if vm was closed
28 CTX_SSL_DIR = '/etc/cc1/cm/ctx'
29 CTX_SSL_CERT = 'ctx.crt'
30 CTX_SSL_KEY = 'ctx.key'
31