Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / app_settings / default / backend.py @ 62232bba

History | View | Annotate | Download (2.3 kB)

1
# -*- coding: utf-8 -*-
2
#
3
# Ganeti backend configuration
4
###################################
5

    
6
# This prefix gets used when determining the instance names
7
# of Synnefo VMs at the Ganeti backend.
8
# The dash must always appear in the name!
9
BACKEND_PREFIX_ID = "snf-"
10

    
11
# The following dictionary defines deployment-specific
12
# arguments to the RAPI CreateInstance call.
13
# At a minimum it should contain the
14
# 'os' and 'hvparams' keys.
15
#
16
# More specifically:
17
# a) os:
18
#    The OS provider to use (customized Ganeti Instance Image)
19
# b) hvparams:
20
#    Hypervisor-specific parameters (serial_console = False, see #785),
21
#    for each hypervisor(currently 'kvm', 'xen-pvm' and 'xen-hvm').
22
# c) If using the DRBD disk_template, you may want to include
23
#    wait_for_sync = False (see #835).
24
#
25
GANETI_CREATEINSTANCE_KWARGS = {
26
    'os': 'snf-image+default',
27
    'hvparams': {"kvm": {'serial_console': False},
28
                 "xen-pvm": {},
29
                 "xen-hvm": {}},
30
    'wait_for_sync': False}
31

    
32
# If True, qemu-kvm will hotplug a NIC when connecting a vm to
33
# a network. This requires qemu-kvm=1.0.
34
GANETI_USE_HOTPLUG = True
35

    
36
# If True, Ganeti will try to allocate new instances only on nodes that are
37
# not already locked. This might result in slightly unbalanced clusters.
38
GANETI_USE_OPPORTUNISTIC_LOCKING = True
39

    
40
# This module implements the strategy for allocating a vm to a backend
41
BACKEND_ALLOCATOR_MODULE = "synnefo.logic.allocators.default_allocator"
42
# Refresh backend statistics timeout, in minutes, used in backend allocation
43
BACKEND_REFRESH_MIN = 15
44

    
45
# Maximum number of NICs per Ganeti instance. This value must be less or equal
46
# than 'max:nic-count' option of Ganeti's ipolicy.
47
GANETI_MAX_NICS_PER_INSTANCE = 8
48

    
49
# The following setting defines a dictionary with key-value parameters to be
50
# passed to each Ganeti ExtStorage provider. The setting defines a mapping from
51
# the provider name, e.g. 'archipelago' to a dictionary with the actual
52
# arbitrary parameters.
53
GANETI_DISK_PROVIDER_KWARGS = {}
54

    
55
# List of ExtStorage providers that support cloning. For these providers, the
56
# hashmap of the image is passed as an ExtStorage disk parameter('origin') and,
57
# since disk will be already filled with data, 'snf-image' performs only
58
# customization (no data copying).
59
GANETI_CLONE_PROVIDERS = ['vlmc', 'archipelago']