Added new DDPG columns to migrations

This commit is contained in:
Dana Van Aken 2019-09-27 16:40:31 -04:00
parent 2c619e017f
commit d7d7f9111f
3 changed files with 6 additions and 3 deletions

View File

@ -191,7 +191,7 @@ class Migration(migrations.Migration):
('creation_time', models.DateTimeField()), ('creation_time', models.DateTimeField()),
('last_update', models.DateTimeField()), ('last_update', models.DateTimeField()),
('upload_code', models.CharField(max_length=30, unique=True)), ('upload_code', models.CharField(max_length=30, unique=True)),
('tuning_session', models.CharField(choices=[('tuning_sesion', 'Tuning Session'), ('no_tuning_session', 'No Tuning'), ('randomly_generate', 'Randomly Generate')], max_length=64)), ('tuning_session', models.CharField(choices=[('tuning_session', 'Tuning Session'), ('no_tuning_session', 'No Tuning'), ('randomly_generate', 'Randomly Generate')], max_length=64)),
('target_objective', models.CharField(choices=[(b'throughput_txn_per_sec', b'Throughput'), (b'99th_lat_ms', b'99 Percentile Latency')], max_length=64, null=True)), ('target_objective', models.CharField(choices=[(b'throughput_txn_per_sec', b'Throughput'), (b'99th_lat_ms', b'99 Percentile Latency')], max_length=64, null=True)),
('nondefault_settings', models.TextField(null=True)), ('nondefault_settings', models.TextField(null=True)),
('dbms', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.DBMSCatalog')), ('dbms', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.DBMSCatalog')),

View File

@ -118,7 +118,7 @@ class Migration(migrations.Migration):
migrations.AlterField( migrations.AlterField(
model_name='session', model_name='session',
name='tuning_session', name='tuning_session',
field=models.CharField(choices=[('tuning_session', 'Tuning Session'), ('no_tuning_session', 'No Tuning'), ('randomly_generate', 'Randomly Generate')], default='tuning_sesion', max_length=64), field=models.CharField(choices=[('tuning_session', 'Tuning Session'), ('no_tuning_session', 'No Tuning'), ('randomly_generate', 'Randomly Generate')], default='tuning_session', max_length=64),
), ),
migrations.AlterField( migrations.AlterField(
model_name='workload', model_name='workload',

View File

@ -188,6 +188,9 @@ class Session(BaseModel):
hardware = models.ForeignKey(Hardware) hardware = models.ForeignKey(Hardware)
algorithm = models.IntegerField(choices=AlgorithmType.choices(), algorithm = models.IntegerField(choices=AlgorithmType.choices(),
default=AlgorithmType.OTTERTUNE) default=AlgorithmType.OTTERTUNE)
ddpg_actor_model = models.BinaryField(null=True, blank=True)
ddpg_critic_model = models.BinaryField(null=True, blank=True)
ddpg_reply_memory = models.BinaryField(null=True, blank=True)
project = models.ForeignKey(Project) project = models.ForeignKey(Project)
creation_time = models.DateTimeField() creation_time = models.DateTimeField()
@ -200,7 +203,7 @@ class Session(BaseModel):
("randomly_generate", "Randomly Generate") ("randomly_generate", "Randomly Generate")
] ]
tuning_session = models.CharField(choices=TUNING_OPTIONS, tuning_session = models.CharField(choices=TUNING_OPTIONS,
max_length=64, default='tuning_sesion') max_length=64, default='tuning_session')
TARGET_OBJECTIVES = [ TARGET_OBJECTIVES = [
('throughput_txn_per_sec', 'Throughput'), ('throughput_txn_per_sec', 'Throughput'),