Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (1.3 kB)

1 1277fb19 Vangelis Koukis
# -*- coding: utf-8 -*-
2 1277fb19 Vangelis Koukis
#
3 1277fb19 Vangelis Koukis
# Ganeti backend configuration
4 1277fb19 Vangelis Koukis
###################################
5 1277fb19 Vangelis Koukis
6 1277fb19 Vangelis Koukis
# This prefix gets used when determining the instance names
7 1277fb19 Vangelis Koukis
# of Synnefo VMs at the Ganeti backend.
8 1277fb19 Vangelis Koukis
# The dash must always appear in the name!
9 1277fb19 Vangelis Koukis
BACKEND_PREFIX_ID = "snf-"
10 2da5f785 Giorgos Verigakis
11 1c382247 Vangelis Koukis
# The following dictionary defines deployment-specific
12 1c382247 Vangelis Koukis
# arguments to the RAPI CreateInstance call.
13 1c382247 Vangelis Koukis
# At a minimum it should contain the
14 1c382247 Vangelis Koukis
# 'disk_template', 'os_provider', and 'hvparams' keys.
15 1c382247 Vangelis Koukis
#
16 1c382247 Vangelis Koukis
# More specifically:
17 1c382247 Vangelis Koukis
# a) disk_template:
18 1c382247 Vangelis Koukis
#    The disk template to use when creating the instance.
19 1c382247 Vangelis Koukis
#    Suggested values: 'plain', or 'drbd'.
20 1c382247 Vangelis Koukis
# b) os:
21 1c382247 Vangelis Koukis
#    The OS provider to use (customized Ganeti Instance Image)
22 1c382247 Vangelis Koukis
# c) hvparams:
23 1c382247 Vangelis Koukis
#    Hypervisor-specific parameters (serial_console = False, see #785)
24 1c382247 Vangelis Koukis
# d) If using the DRBD disk_template, you may want to include
25 1c382247 Vangelis Koukis
#    wait_for_sync = False (see #835).
26 1c382247 Vangelis Koukis
#
27 1c382247 Vangelis Koukis
GANETI_CREATEINSTANCE_KWARGS = {
28 e316f1d4 Vangelis Koukis
    'os': 'snf-image+default',
29 1c382247 Vangelis Koukis
    'hvparams': {'serial_console': False},
30 1c382247 Vangelis Koukis
    'wait_for_sync': False}
31 cc7c0f44 Christos Stavrakakis
32 16ddd1fe Christos Stavrakakis
# If True, qemu-kvm will hotplug a NIC when connecting a vm to
33 16ddd1fe Christos Stavrakakis
# a network. This requires qemu-kvm=1.0.
34 16ddd1fe Christos Stavrakakis
GANETI_USE_HOTPLUG = False
35 16ddd1fe Christos Stavrakakis
36 cc7c0f44 Christos Stavrakakis
# This module implements the strategy for allocating a vm to a backend
37 cc7c0f44 Christos Stavrakakis
BACKEND_ALLOCATOR_MODULE = "synnefo.logic.allocators.default_allocator"
38 cc7c0f44 Christos Stavrakakis
# Refresh backend statistics timeout, in minutes, used in backend allocation
39 cc7c0f44 Christos Stavrakakis
BACKEND_REFRESH_MIN = 15