Expand source code
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2022 Universidade da Coruña
# Authors:
# - Jonatan Enes [main](jonatan.enes@udc.es)
# - Roberto R. Expósito
# - Juan Touriño
#
# This file is part of the ServerlessContainers framework, from
# now on referred to as ServerlessContainers.
#
# ServerlessContainers is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# ServerlessContainers is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ServerlessContainers. If not, see <http://www.gnu.org/licenses/>.
base_container = dict(
type='structure',
subtype='container',
host='host0',
host_rescaler_ip='host0',
host_rescaler_port='8000',
name="base_container",
guard=False,
resources=dict(
cpu=dict(max=600, min=150, guard=False),
mem=dict(max=46080, min=1024, guard=False),
disk=dict(max=100, min=20, guard=False),
net=dict(max=200, min=100, guard=False),
energy=dict(max=20, min=0, guard=False)
)
)
base_host = dict(
type='structure',
subtype='host',
name="host0",
host="host0",
resources=dict(
cpu=dict(max=2400),
mem=dict(max=184320)
)
)