Blame view

elasticity/migrations/0001_initial.py 3.43 KB
8146dcf82   Thanasis Naskos   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  # -*- 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'),
          ),
      ]