# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-04 13:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Elasticity',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('utility_function', models.CharField(max_length=300)),
('dataset', models.CharField(max_length=300)),
('decision_policy', models.CharField(max_length=300)),
('smoothing', models.CharField(max_length=300)),
('min_vms', models.IntegerField(default=2)),
('max_vms', models.IntegerField()),
('max_add', models.IntegerField()),
('max_remove', models.IntegerField()),
('prism_path', models.CharField(max_length=200)),
('latency_threshold', models.IntegerField()),
('clusters_num', models.IntegerField()),
('time_steps', models.IntegerField()),
('verification_steps', models.IntegerField()),
('cumulative_reward', models.BooleanField(default=True)),
('violation_cluster', models.BooleanField(default=True)),
('attack_model', models.BooleanField(default=True)),
('transaction_steps', models.IntegerField(default=2)),
('acceptance_percentage', models.FloatField(default=0.0)),
('hourly', models.BooleanField(default=True)),
('punishment', models.IntegerField()),
],
),
migrations.CreateModel(
name='NoSQLCluster',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('cluster_type', models.CharField(max_length=200)),
('owner', models.CharField(max_length=200)),
('init_cluster_size', models.IntegerField(default=2)),
],
),
migrations.CreateModel(
name='NoSQLInstance',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('image_id', models.CharField(max_length=200)),
('dns_name', models.CharField(max_length=200)),
('ip_address', models.CharField(max_length=200)),
('mac_address', models.CharField(max_length=200)),
('vpn', models.CharField(max_length=200)),
('state', models.CharField(max_length=200)),
('instance_type', models.CharField(max_length=200)),
('launch_time', models.DateTimeField(auto_now_add=True)),
('placement', models.CharField(max_length=200)),
('username', models.CharField(max_length=200)),
('password', models.CharField(max_length=200)),
('cluster', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='elasticity.NoSQLCluster')),
],
),
migrations.AddField(
model_name='elasticity',
name='cluster',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='elasticity.NoSQLCluster'),
),
]