Statistics
| Branch: | Tag: | Revision:

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

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
# 'disk_template', 'os_provider', and 'hvparams' keys.
15
#
16
# More specifically:
17
# a) disk_template:
18
#    The disk template to use when creating the instance.
19
#    Suggested values: 'plain', or 'drbd'.
20
# b) os:
21
#    The OS provider to use (customized Ganeti Instance Image)
22
# c) hvparams:
23
#    Hypervisor-specific parameters (serial_console = False, see #785)
24
# d) If using the DRBD disk_template, you may want to include
25
#    wait_for_sync = False (see #835).
26
#
27
GANETI_CREATEINSTANCE_KWARGS = {
28
    'os': 'snf-image+default',
29
    'hvparams': {'serial_console': False},
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 = False
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