Skip to content

Commit

Permalink
[migrations] Remove autotuned vm.kmem_size tunable
Browse files Browse the repository at this point in the history
We don't need to additionally increase KVA size and should be fine with default value.
Purge previously set values.

Ticket: #73917
  • Loading branch information
Ryan Moeller committed Feb 12, 2019
1 parent 7766816 commit db8ea13
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions gui/services/migrations/0026_delete_vm_kmem_size_tunable.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from django.db import migrations


def delete_vm_kmem_size(apps, schemaeditor):
tunables = apps.get_model('system', 'tunable')
kmem_size_tunable = tunables.objects.filter(tun_var='vm.kmem_size',
tun_comment='Generated by autotune')
kmem_size_tunable.delete()


class Migration(migration.Migration):

dependencies = [
('services', '0026_s3_fields'),
]

operations = [
migrations.RunPython(
delete_vm_kmem_size
),
]

0 comments on commit db8ea13

Please sign in to comment.