Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / app_settings / default / backend.py @ 9599e997

History | View | Annotate | Download (1.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
# This module implements the strategy for allocating a vm to a backend
37
BACKEND_ALLOCATOR_MODULE = "synnefo.logic.allocators.default_allocator"
38
# Refresh backend statistics timeout, in minutes, used in backend allocation
39
BACKEND_REFRESH_MIN = 15